1 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
3 * DataGridView.cs: Implement mouse wheel scrolling.
6 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
8 * DataGridView.cs: When DataSource changes the rebinding should happen
9 not if IsHandleCreated but if BindingContext != null.
12 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
14 * DataGridView.cs: Browsable(false) properties should be skipped when
15 autogenerating the columns.
18 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20 * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
21 user should use a different handling, trying to use every pressed char
22 as a unique and only one prefix to compare against the items. Also,
23 refactor some input check code to avoid duplication.
26 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
28 * DataGridViewCell.cs: In OwningColumng Handle invalid column index
32 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
34 * DataGridViewBand.cs: Update our State whenever a property changes.
35 * DataGridView.cs: Don't be so generous in reseting Displayed, because
36 it will spawn lots and lots of unneeded State changed events.
39 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
41 * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
42 Add support for invisible rows and columns.
45 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
47 * DataGridViewCell.cs: Escape literal { in ToString.
48 * DataGridViewTextBoxCell.cs: Fix ToString.
51 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
53 * MenuAPI.cs: When navigating items using the keyboard properly handle
54 the case when no item is selected - this way we should try to select
55 the first or the last item depending on the direction, but no the
56 second or third one, etc.
58 2209-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
60 * Form.cs: When calling ProcessCmdKey, just after checking for any
61 MainMenu, check if there's an active ContextMenu that is *not* owned
62 by the form - this is needed when a non-focusable control owns a
63 ContextMenu but its ProcessCmdKey method can't be called since it
64 can't receive any input.
67 2009-03-13 Neville Gao <nevillegao@gmail.com>
69 * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
70 * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
71 ContextMenu is displayed.
73 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
75 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
76 WM_HELP message for the associated window, don't call
77 NativeWindow.WndProc *at all*, since this could send a WM_*
78 key-related to Control.WndProc. Also, return the keypress message, in
79 case it needs to be preprocessed for any menu.
82 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
84 * DataGridView.cs: When removing the first displayed row and moving
85 the current cell up one we must invalidate the first displayed row
86 index before calculating the row heights, etc.
89 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
91 * DataGridView.cs: Fix three column bugs:
92 - Rows should be cleared (but not removed) if columns become 0.
93 - The current cell should get moved
94 - ColumnCount increase was adding too many columns.
96 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
98 * DataGridView.cs: Fix RowCount decrease which wasn't working well
99 in both scenarions - with and without editing row.
101 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
103 * DataGridView.cs: Be compatible with MS in that the scroll to
104 selection has a synchronous effect. The trick here is that in
105 order to avoid unnecessary calculations each time a row/column
106 is added/removed we recalculate the whole grid size just before
107 just before the scroll to selection.
110 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
112 * RichTextBox.cs: LoadFile(string path) should pass by default
113 RichTextBoxStreamType.RichText, without caring about the detection or
114 extension of the file.
116 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
118 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
119 introduced by StreamReader, since it will convert the EOF to an EOL.
122 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
124 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
125 preferred size twice.
127 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
129 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
130 string if we aren't on a ToolStripDropDownMenu.
132 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
134 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
135 code from Item to Button. Patch from Alex Shulgin.
137 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
139 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
140 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
141 not a ToolStripDropDown.
142 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
144 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
146 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
148 Based on a patch by Tom Hindle <tom_hindle@sil.org>
151 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
153 * DataGridView.cs, DataGridViewElement.cs:
154 - Always calls OnDataGridViewChanged() if the new DGV is
155 not the same/null as the current one.
156 - Do not throw NREs when setting TopLeftHeaderCell to null
157 - Unset the DGV for TopLeftHeaderCell when replacing it
158 Based on a patch by Tom Hindle <tom_hindle@sil.org>
161 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
163 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
164 hit a NRE if we are a ContextMenuStrip and do not have a parent.
167 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
169 * ListView.cs: When removing items from a ListViewItemCollection
170 contained in ListView (not in ListViewGroup), before actually removing
171 the items remove them also from their -if any- associated groups. If
172 the item is present in ListViewGroup.Items but not in ListView.Items,
173 then don't remove it - this is *exactly* what .net seems to do.
174 Fixes the remaining bits of #478689.
176 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
178 * ListView.cs: In our MouseDown handler in ItemControl use the item in
179 the very specific *real* position where the mouse was pressed, using
180 GetItemAtDisplayIndex for that purpose, instead of directly accessing
181 Items - this is specially useful when groups with Details view is
182 used. This is what we do in other places when using groups.
183 Fixes part of #478689.
185 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
187 * MaskedTextBox.cs: Properly replace selection when a new valid key
188 is pressed - even when IsOverwriteMode is false. This is what .net
191 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
193 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
194 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
195 since Set will keep the previous value in case of error (just what we
196 need), but still call MaskedTextProvider.Clear if
197 RejectOnFirstFailure is false - match .net.
199 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
201 * MaskedTextBox.cs: When setting Text use the very precise algorithm
202 that .net uses: iterate over every char of the new value, trying to
203 use every char, and use a normal call to MaskedTextProvider.Replace
204 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
205 in case of error in both cases, as well.
208 2009-02-25 Neville Gao <nevillegao@gmail.com>
210 * ColorDialog.cs: Added UIA Framwork Property:
211 UIASelectedSmallColorControl.
213 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
215 * MaskedTextBox.cs: Forgot to update the call of the new method
216 introduces in the previous patch.
218 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
220 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
221 key. Also create a new method to avoid code duplication between
222 OnKeyDown and OnKeyPress.
225 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
227 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
231 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
233 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
234 actually inversed, so put it the right way. Also, don't automatically
235 look for the next editable item after adding a new one, but way for
236 the next insertion (this is what .net does) - this is not needed when
237 MaskedTextProvider.InsertAt is called however, since it already looks for the
238 next editable position.
239 Fixes the remaining bits of #477383.
241 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
243 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
244 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
245 property after the text was modified, adjust the testPosition value
246 depending on what method was called.
247 Fixes part of #477383.
249 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
251 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
252 the existence of the column headers, as well as using this information
253 to adjust the vscrollbar value, so items never get hidden by the
257 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
259 * DataGridView.cs: Make the ScrollBars property work properly.
261 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
263 * TextBox.cs: Some code lifting for AutoComplete's support. First,
264 when handling non-navigation keys, save the original Text typed by the
265 user, and don't motify it BEFORE. This was a design mistake, since the
266 re-assignation happens only when navigating the append/suggest list,
267 not while creating the matches. Also, process the Delete key just like
268 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
270 Fixes some missing bits of #469967.
272 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
274 * DataGridView.cs: Fix row removal in the data-bound scenario.
276 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
278 * DataGridViewCell.cs: Use strict equality comparison in order to
279 prevent superfluous CellValueChanged events.
281 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
283 * DataGridView.cs: Do not reset the columns when the data list changes,
284 but only the rows. Fixes multiple bugs related to sorting, custom
285 column styles being reset and more.
287 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
289 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
292 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
294 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
296 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
298 * ToolBarButton.cs: Event for Enabled property (needed to fix
301 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
303 * TextBox.cs: When handling WndProc with autocomplete activated,
304 event if the new text is not causing any change in the look up
305 algorithm, save it as we normally do when numbers and letters.
308 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
310 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
311 Invalidate the proper bounds in the TreeView, not only resetting the
315 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
317 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
318 BackColor property. This is what .net does in both 1.1 and 2.0.
319 * TreeView.cs: When selected_node is not the same as highlighted_node,
320 we need to handle the back color in a different way, trying to use the
321 node's BackColor if it's not Color.Empty.
324 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
326 * TreeView.cs: When canceling selection in our MouseUp handler,
327 invalidate also the previous selected node bounds.
330 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
332 * DataGridView.cs: End or if end fails then cancel the current edit
333 operation before clearing the data source.
335 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
337 * DataGridView.cs: Data-bind only after the handle is created.
340 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
342 * TreeView.cs: When handling the MouseMove event, check if
343 focused_node and selected_node fields are null - usually they are non
344 null, since we have always a selected node, but canceling selection by
345 handling BeforeSelect event leaves the two of them as null.
348 2009-02-06 Neville Gao <nevillegao@gmail.com>
350 * TabControl.cs: Control enabled to support accessibility.
353 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
355 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
356 - Use ArrayList.Insert instead of the Item property so that the item
357 is actually inserted and not an existing item replaced.
358 - Call DataGridView.OnRowsAddedInternal and drop internal from
359 OnRowsAdded for binary compitability. This also fixes several
363 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
365 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
368 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
370 * ToolBarButton.cs: Add another event (OnUIATextChanged).
372 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
374 * ToolBarButton: Fix typo in previous commit (r125704).
376 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
378 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
379 when a button gets focus, firing the events from the ToolBar.
382 2009-02-04 Mario Carrion <mcarrion@novell.com>
384 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
386 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
387 ColumnHeader to raise ColumnWidthChanged.
390 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
392 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
393 code in the row collection code, so that the completion happens before
394 the CollectionChanged event, also better encapsulation.
397 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
399 * DataGridView.cs: When editing is finished do not remove the editing
400 row, because it has already become a real one. Instead add a new one.
403 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
405 * TreeView.cs: When drawing the node's image, check that the index
406 specified by the node is valid for the ImageList.
409 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
411 * ToolBar.cs: Add new UIAPerformClick method to be called by
412 UIAutomationWinforms when someone calls Invoke() on the
413 ToolBarButtonProvider. r: jpobst
415 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
417 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
418 MapNotify/UnmapNotify events - we are already firing those events in
419 the proper places, so we avoid this way to send the same message two
420 times. I'm leaving the handling code in case we could break something
421 in the future, as this change seems dangerous (but needed).
424 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
426 * DataGridView.cs: Complete incomplete rows when they are added to
430 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
432 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
433 binding is cleared prior to setting it to null. Fixes a regression
434 causing exceptions when the DataSource is set to null and then set
435 again to a data source.
437 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
439 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
440 - Make Image/Bitmap cells work.
441 - Handle images with size greater than the cell.
442 - Default to MiddleCenter alignment for image cells.
445 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
447 * UpDownBase.cs: Force Height to PreferredHeight.
449 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
451 * XplatUIX11.cs: We should use utf8 handling clipboard transference
452 with other x11 applications, and use utf16 when handling clipboard
453 data in the class library. Update the related points as well.
456 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
458 * DataGridViewCell.cs: Format strings according to the supplied
462 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
464 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
465 addition or removal. Fixes multiple crashes in OnMouseMove.
467 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
469 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
471 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
473 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
477 2009-01-26 Andreia Gaita <avidigal@novell.com>
479 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
480 won't be disabled by default.
483 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
485 * DataGridView.cs: Do not clear the rows if we are not databound.
487 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
489 * DataGridView.cs: Do not be too smart about selecting the first cell
490 when the first row is added as this is not what MS does. Fixes the
493 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
495 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
496 take into account the fact that OpenTreeNodeEnumerator needs to call
497 MoveNext/MovePrevious to actually put the passed node as the one
498 retrieved in Current. This way this property should work as really
500 Fixes part of #467225.
502 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
504 * TreeView.cs: When calculating the scrollbars, don't use
505 TreeNode.Bounds, since it still can have the values of the previous
506 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
507 could not have been updated as well-, and use the actual number of
508 visible number of nodes to compute the height needed to contain all
509 the nodes. Also reset the value of vbar to 0 when disabled - this way
510 we make sure that, when re-enabled, it will update the visible area of
511 the treeview, even if the previous value before disabling it is the
512 same as now. Finally don't do anything for the vbar.ValueChanged
513 handler - for the case wheer we manually set the value but don't the
514 vbar is disabled already.
515 Fixes part of #467225.
517 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
519 * ToolStrip.cs: Switch from foreach to for, in case the collection
520 somehow changes while enumerating it.
522 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
524 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
527 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
529 * DataGridView.cs: Fix new row adding/editing in the non-databound
532 2009-01-21 Mike Gorse <mgorse@novell.com>
534 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
536 Added UIAValueParamChangedEvent.
538 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
540 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
541 of trying to set as top node the highest parent of the previous top
542 node. Moving to the bottom of the TreeView after a call to CollapseAll
543 is exactly what .net does. This should avoid some nasty issue when
544 CollapseAll is called and we don't need the vertical scroll bar.
546 2009-01-21 Mario Carrion <mcarrion@novell.com>
548 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
549 and UIATopMostChanged.
551 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
553 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
554 UIAEnabledChanged, and UIATextChanged events.
556 * Form.cs: Add UIAMenuChanged event.
559 * MenuAPI.cs: Note which internal APIs are being used by UIA.
561 2009-01-21 Neville Gao <nevillegao@gmail.com>
563 * ToolBar.cs: Control enabled to support accessibility.
566 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
568 * TreeView.cs: When handling mouse up event, check whether
569 highlighted_node is null or not - usually it should be non-null
570 alwaays, since the mouse down handler sets it, but some externa
571 operations, such TreeNodeCollection.Clear, could set it to null.
574 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
576 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
579 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
581 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
584 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
586 * MonthCalendar.cs: When handling the selection changes using the
587 mouse, don't set SelectionRange if the selection range didn't actually
588 change. This matters because, even if we set the range to the same
589 previous range, an extra DateChanged event is fired. Just to be clear:
590 SelectionRage property doesn't check whether the new value is
591 different to the previous one (by ref equals doesn't work here).
592 Fixes other bits of #364914.
594 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
596 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
597 selection using the keyboard, since we are already firing this event
598 when setting SelectionRange. Also don't set SelectionRange if the
599 previous and the new value are the same (the property, just as .net
600 does, doesn't check whether the previous value and the new one are the
601 same). This saves us from firing OnDateChanged event if the selection
602 range didn't change actually.
603 Fixes the remaining bits of #364914.
605 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
607 * ListBox.cs: When removing an item and the last item is selected,
608 remove it from the selection, and if selection mode is One try to
609 select the new last item.
612 2009-01-16 Mike Gorse <mgorse@novell.com>
614 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
616 2009-01-16 Mario Carrion <mcarrion@novell.com>
618 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
621 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
624 * XplatUIX11.cs: Properly encode/decode the unicode strings we
625 store/retrieve in the Clipboard. Also, since we try to convert the
626 data to different formats, separate the source and the result of
627 it, so we can always fallback to the original and don't mix wrong
630 2009-01-16 Mike Gorse <mgorse@novell.com>
632 * TextControl.cs: Add UIASelectionChanged event.
634 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
636 * DataGridView.cs: Forward the first key events to the editing control.
639 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
641 * Application.cs: Oops, launch the copied handler of PreRun instead of
642 the global one (gendarme would bark otherwise). (Improving r123375)
644 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
647 * Application.cs: Move the PreRun event fire to the end of the XplatUI
648 static ctor (we don't move the PreRun event to this class because its
649 usage would cause the call to the static ctor). This way we can get
650 a11y support for dialogs that run without App.Run.
652 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
654 * ListView.cs: New internal property to know the inner array's length of
655 the location of items, in order to avoid a try-catch strategy for the
656 case when this array has not been resized yet (for reference, look at
659 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
661 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
662 reflection calls. This requires UIAutomationWinforms r123213.
664 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
666 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
667 handlers and fire the DateSelected event until MouseUp is reached,
668 like .net does, instead of firing it for each mouse event.
669 Fixes part of #364914.
671 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
673 * TreeView.cs: When the selection gets canceled using the BeforeSelect
674 event, invalidate the previous highlighted_node bounds, to show the
675 user that the item was *not* selected.
678 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
680 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
681 well as -in DropDown and Simple modes- writing in the textbox should
682 try to set the requested item as the top one, but navigating with the
683 keyboard and handling mouse selection don't need that behaviour. Also,
684 when resetting selected_index handling key press events, reset
685 ComboListBox.HighlightIndex.
686 Fixes the remaining bits of #464188.
688 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
690 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
692 - CurrentCellAddress should be -1, -1 and not 0, 0.
693 - Be tolerant and fall back to clearing the current cell if either
694 column or row is -1 in MoveCurrentCell.
695 - Misc. more -1 checks.
697 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
699 * DataGridView.cs: Preserve the column index. Fixes a regression
700 introduced by the data binding position tracking code.
702 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
704 * DataGridView.cs: If the bottom of the row matches the client height
705 do not regard the row as partially visible. Fixes the weird scrolling
706 when there is no scrollbar.
708 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
710 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
712 2009-01-09 Mario Carrion <mcarrion@novell.com>
714 * MessageBox.cs: Fixed internal UIAIconRectangle property.
716 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
718 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
720 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
722 * DataGridView.cs: Track the Position in the CurrencyManager.
724 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
726 * DataGridView.cs: Implement data-bound new item editing/addition.
727 * DataGridViewRowCollection.cs: Make it possible for us to internally
729 [Fixes bugs #457107, #457308, #325240]
731 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
733 * CurrencyManager.cs: Even if Position is set to a greater value than the
734 list count reset it to position of the last item.
736 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
738 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
739 Fix that in order to make CancelNew to work.
741 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
743 * BindingSource.cs: When adding a new item try to delegate to the internal
744 list first before throwing an exception.
746 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
748 * ComboBox.cs: When setting the text and adjusting the top_item, do it
749 *only* if the current item is *not* visible already.
750 Fixes part of #464188.
752 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
754 * DataGridView.cs: Requesting the CurrencyManager for the first time can
755 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
759 2009-01-08 Brad Taylor <brad@getcoded.net>
761 * ComboBox.cs: Expose a few private fields as internal UIA properties.
763 2009-01-07 Mario Carrion <mcarrion@novell.com>
765 * DataGrid.cs: CWL removed.
767 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
769 * RadioButton.cs: When setting Checked, we should first update the
770 check state of the current RadioButton, as well as invalidating it,
771 and after that actually update the siblings. This is done to match
773 Fixes the remaining bits of #463028.
775 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
777 * RadioButton.cs: Setting Checked to false should set TabStop to stop
778 as well. Also, when we get the focus and no other RadioButton is
779 selected in the parent control, we should mark ourselves as Checked.
780 Fixes part of #463028.
782 2009-01-05 Mario Carrion <mcarrion@novell.com>
784 * DataGrid.cs: UIA suppport. internal events:
785 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
786 UIASelectionChanged, UIACollectionChanged. Internal properties:
787 UIARowHeight, UIACellsArea, UIACaptionArea,
788 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
789 UIAVScrollBar and UIAHScrollBar.
791 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
793 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
794 of the buttons are set to Overflow = Always.
797 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
799 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
800 based on whether the binding source is availble or not. Fixes #463008.
802 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
804 * DataGridViewCell.cs: We should return a value even if we are not bound
807 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
809 * CurrencyManager.cs, DataGrid.cs:
810 - Rename CanAddRows to AllowNew. The CurrencyManager has no
812 - Add two more internal properties AllowRemove and AllowEdit.
813 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
814 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
815 CurrencyManager data source.
817 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
819 * DataGridView.cs: Fix crashes caused by assigning negative values to
820 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
821 the column/row heights/widths.
824 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
826 * DataGridView.cs: Non-autogenerated columns that have a data property
827 set that exists in the current datasource should be set to be data-bound.
829 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
831 * DataGridView.cs: Fix column sorting for columns containing null
832 values. A "null" value is not always "null" (e.g could be String.Empty)
833 and thus parsing numeric types throwed an exception for "null" values.
835 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
837 * DataGridView.cs: Detach the editing control when the edit is
840 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
842 * DataGridView.cs: Multiple fixes to handle last column/row removal
843 and cell movement after that instead of throwing exceptions.
845 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
847 * DataGridViewCellCollection.cs: When cells are removed the column
848 indices become invalid if the cell is not the last one and have to
851 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
853 * DataGridView.cs: Return false in CommitEdit if there was an error.
855 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
857 * DataGridView.cs: Remove a leftover Console.WriteLine.
859 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
861 * DataGridViewRow.cs: Access the indexer of the data manager directly
862 instead of the internal list.
864 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
866 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
867 Rewrite the value getting, setting, parsing, formatting logic:
868 - If data-bound value get/set should actually get and set from the
870 - Make proper usage of TypeConverters for value parsing/formatting.
871 - Raise DataError if setting the new value fails.
872 - Get rid off the internal valueType field and get/set the ValueType
876 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
878 * DataGridView.cs: Rewrite the DataBinding layer:
879 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
881 - Get rid off the per DataSource type column autogeneration code.
882 - Use the CurrencyManager for everything that is DataBinding related.
884 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
886 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
888 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
890 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
891 DataManager to fetch the CurrencyManager for the DataGridView and to
892 spare this logic for the other components to follow.
894 2008-12-31 Mario Carrion <mcarrion@novell.com>
896 * MessageBox.cs: UIA support: new properties: UIAMessage,
897 UIAMessageRectangle and UIAIconRectangle.
899 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
901 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
902 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
904 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
906 * DataGridView.cs: Do not autogenerate duplicate column for a
907 data member that has already problematically been assigned one.
910 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
912 * ProfessionalColorTable.cs: Better detection of user's theme.
915 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
917 * DataGridView.cs: In the case where there are no autogenerated
918 columns and the user adds columns problematically we must generate
919 the rows after the very first column is added.
921 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
923 * DateTimePicker.cs: When increasing/decreasing the value of month
924 with ShowUpDown set to true, moving from december to january, and
925 moving from january to december should adjust the year to the next and
926 the previous year, respectively.
927 Fixes the remaining bits of #459674.
929 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
931 * DataGridView.cs: If a new cell is selected edit mode should be
932 immediately enabled only if EditOnEnter is set. Whether the mouse
933 or not was used to select the cell is irrelevant.
935 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
937 * DataGridView.cs: Remove a bogus ReBind call, which was causing
940 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
942 * DateTimePicker.cs: Handle the "MMMM" month format.
945 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
948 - Make ReBind private and refactor various calls to call ReBind
949 instead of ClearBinding/DoBinding
950 - Rebind when the column collection changes
951 * DataGridViewColumnCollection.cs:
952 - Leave the rebinding on change to be handled by the DataGridView.
954 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
956 * DataGridView.cs: Add a ReBind convenience method.
957 * DataGridViewColumnCollection.cs: Rebind when a column is added.
960 2008-12-23 Neville Gao <nevillegao@gmail.com>
962 * StatusBar.cs: Modified argument variable.
963 * SplitContainer.cs: Control enabled to support accessibility.
966 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
968 * ToolStripMenuItem.cs: Guard against an NRE.
971 2008-12-22 Mario Carrion <mcarrion@novell.com>
973 * Control.cs: AccessibleXXXX properties don't return
974 AccessibleObject.XXXX, instead a local referece is returned.
976 2008-12-22 Neville Gao <nevillegao@gmail.com>
978 * PrintPreviewControl.cs: Added internal properties to support
982 2008-12-19 Mario Carrion <mcarrion@novell.com>
984 * Control.cs: Reverted r121561.
986 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
988 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
989 it has been moved to the bridge.
991 2008-12-18 Brad Taylor <brad@getcoded.net>
993 * DateTimePicker.cs: Add a few UIA specific events, and a couple
994 internal methods useful for UIA.
996 2008-12-18 Mario Carrion <mcarrion@novell.com>
998 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1001 2008-12-17 Mike Gorse <mgorse@novell.com>
1003 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1004 item's Focused property is set.
1006 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
1010 * TreeNodeCollection.cs: Add events for UIA support:
1011 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1012 UIACollectionChanged.
1014 2008-12-17 Bill Holmes <billholmes54@gmail.com>
1016 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
1017 SubItemStyle member field.
1019 Contributed under MIT/X11 license.
1021 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1023 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1024 y coord, since it's useless in this case, and we need to rely only on
1025 the number of rows and ItemHeight to compute this value.
1026 Fixes part of #257471.
1028 2008-12-15 Mike Gorse <mgorse@novell.com>
1030 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1032 2008-12-15 Mario Carrion <mcarrion@novell.com>
1034 * Control.cs: Accessibility properties instantiate AccessibilityObject when
1038 2008-12-15 Brad Taylor <brad@getcoded.net>
1040 * ToolStripItem.cs: Add a UIA specific event for listening for when a
1041 ToolStripItem becomes selected or deselected.
1043 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1045 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1046 .net does. Use the date in the point of the mouse move coords as the
1047 new range as well, if the left button of the mouse is being pressed.
1050 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1052 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1053 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1054 effectively repaint the control.
1055 Fixes the remaining bits of #417961.
1057 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1059 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1060 range to contain only dates within the new possible range.
1061 Fixes part of #417961.
1063 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1065 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1066 length of the text, but the end position, so we need to substract 1 to
1067 have a valid value. Also, in the same InputText method, don't use
1068 SelectionLength as the length of the text, since the selected text
1069 could actually be empty, but we need to set the value anyway.
1072 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1074 * TextBox.cs: Don't do any auto complete task if the custom source is
1075 null or empty. Also avoid duplication of code.
1078 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
1080 * DataGridView.cs: Refresh column sizes when new rows are added.
1083 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1084 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1085 Split to create a line - we are already doing this, by _adding_ a new
1086 one when rtf_cursor_x is 0 (this field gets this value just after we
1087 receive the newline param as true). This avoids having a proportional number
1088 of empty lines in the end of the rich text box.
1091 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1093 * RichTextBox.cs: When saving the contents as a plain text, don't add
1094 a new line for every Line structure, since the data in Document
1095 already contains the new line characters. This avoids duplicated new
1096 lines using the Save methods.
1099 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
1101 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1102 framework. Fixes bug #457678.
1104 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1106 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
1107 where datasource is null.
1108 [Fixes exception reported in bug 441240]
1110 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1112 * DataGridView.cs: EndEdit validation fixes.
1114 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1116 * DataGridView.cs: This is the cool patch that adds support for
1117 actually updating the data in the databinding backend after editing.
1118 With bonus firing and handling the DataError event.
1120 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1122 * Line.cs: When calculating the text tags's Shift value, store it as
1123 pixels instead of points. This way we can actually handle different
1124 fonts in the same RichTextBox, as well as the right size of the caret.
1125 Fixes part of #351938.
1127 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1129 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
1130 casted to CheckState causing InvalidCastExceptions.
1132 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1134 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
1135 to not depend on the item being clicked.
1137 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1139 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
1140 longer throws a NotImplementedException.
1142 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1144 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
1145 IDataGridViewEditingControl for editing.
1147 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1149 * DataGridViewComboBoxCell.cs: Implement data binding support.
1151 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1153 * DataGridView.cs: Use the CurrencyManager to update the data source
1154 binding position instead of casting the data sourcde to BindingSource.
1155 This enables position updating for other type of data sources.
1157 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1159 * ComboBox.cs: Update the SelectedIndex before updating the Text
1160 in OnDisplayMemberChanged.
1162 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
1164 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1167 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1169 * DataGridView.cs: Sorting fixes:
1170 - Be strict when sorting is enabled.
1171 - If there is a data source delegate the sorting request.
1173 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1175 * Binding.cs: When converting the data also try with the destination
1176 type typeconverter. This indirectly adds support for Nullable types
1177 in our databinding layer.
1179 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1181 * DataGridView.cs: When cell editing is finished focus back the
1182 DataGridView. Fixes keyboard navigation post-editing.
1184 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1186 * DataGridView.cs: Fix the cell editing by delaying the currentCell
1187 setting to after EndEdit is called for the old cell.
1189 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1191 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1193 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1195 * XplatUIX11.cs: Send WM_HELP only to the focused window.
1197 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1199 * CurrencyManager.cs: Fix exceptions when resetting the data source
1200 for the same time (e.g. in ComboBox):
1201 - Do not set the list position if we are still transferring data
1202 - When resetting the list firstly push the data then update the
1204 * Binding.cs: Check BindingManager.Position == -1 instead of
1205 BindingManager.Current == null in order to avoid unexpected
1208 2008-12-05 Brad Taylor <brad@getcoded.net>
1210 * MonthCalendar.cs: Add UIA specific events so that we can know when
1211 the selection changes, and when MaxSelectedCount changes.
1213 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1215 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
1218 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1220 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1221 to the control being drawn for the first time by:
1222 - Implement DisplayedRowsCount to not rely on the control being
1223 already painted. Also added support for the partial row flag.
1224 - Fix scrolling to take into account partial rows and scroll to
1228 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1230 * DataGridView.cs: Do not reset the CurrentCell when the handle is
1231 created if the user has already set it.
1233 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1235 * DataGridView.cs: Fix CurrentCell to actually select the cell.
1237 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1239 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1240 text and then let the underneath users of IDataObject interpret and
1241 parse by themselves.
1244 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1246 * DataGridView.cs: Fix my previous commit to actually update what it
1249 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1251 * DataGridView.cs: Ensure that when a row is removed the all the
1252 current row/column/cell get updated. Fixes multiple exceptions.
1254 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1256 * DataGridView.cs: Fix scrolling to the current cell when key navigation
1260 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1262 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1263 * DataGridViewCell.cs: Set the cell as selected prior to setting the
1265 [Fixes issue 1 in bug #443560]
1267 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1269 * DataGridView.cs: Invalidate after the current row/column seletion
1273 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1275 * DataGridView.cs: Refresh the data if the data list is reset, etc.
1277 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1279 * DataGridView.cs: Handle datasource state changes:
1280 - IBindingList - list changes
1281 - BindingSource - list changed and datasource changes
1283 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1285 * DataGridView.cs: Select the first cell when databound.
1286 Visually select when CurrentCell is set.
1288 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1290 * DataGridView.cs: Set the current cell before raising CellClick.
1292 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1294 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
1295 CellLeave events as this is already done in SetCurrentCellAddressCore.
1297 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1299 * DataGridView.cs: Set the minimum size for the columns to be the
1300 width of their header, so that the columns don't get squashed
1303 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1305 * DataGridView.cs: After the data is bound PerformLayout, so that
1306 the columns get autosized.
1308 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1310 * DataGridView.cs: Move all currentCell setting code into
1311 one central place - SetCurrentCellAddressCore. That way the
1312 current cell is properly updated when programatically set.
1313 Fire RowEnter/Leave events.
1315 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1317 * DataGridView.cs: Update the CurrencyManager.Position, so that
1318 when a BindingSource is used BindingSource.Current will be correct.
1320 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1322 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1323 - No caption text is drawn because Color.Empty is used.
1324 - Fix top and height off by 1.
1326 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1328 * DataGridViewRow.cs: Implement DataBoundItem.
1330 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1332 * BindingSource.cs: Return null for Current if there is no data present.
1334 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1336 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1337 menus using the arrow keys. Also when handling the left arrow key, don't
1338 assign the current menu to the parent one, if the parent is null.
1341 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
1343 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1346 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1349 * ScrollableControl.cs: Simplify the code to manually set the size of
1350 the thum area, avoiding duplication of code, and also preserving the
1351 right value for different code paths - this can happen when size
1352 changes are made to the scrollbar after setting LargeChange, Maximum
1353 or related properties for the ScrollBar.
1355 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1357 * ScrollableControl.cs: When scrolling, don't invalidate the entire
1358 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1359 what .Net does: copy the visible area, and only invalidate the part of
1360 the area that wasn't visible before scrolling.
1363 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1365 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1366 can clear ourselves when it is raised, we don't have a newrowindex
1367 if we don't have any columns.
1368 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1369 re-index after each delete so the NewRow will have the correct index.
1372 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1374 * Form.cs: Don't change min/max size if it is empty.
1377 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1380 * ScrollableControl.cs: When the manual thumb size is used, the
1381 maximum allowed value should depend on that thumb size, instead of
1382 LargeChange (using the maximum - LargeChange + 1 value). But
1383 LargeChange should be used normally when incrementing/decrementing.
1384 Fixes the remaining part of #441546.
1386 2008-11-23 Andreia Gaita <avidigal@novell.com>
1388 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
1389 until an about:blank has been loaded (according to spec). Fix
1390 ScrollbarsEnabled to set when a document is loaded (since we use js
1391 for it). Fix url so it reflects the current loading document and not
1392 the previous one. Send StatusChanged events.
1394 2008-11-23 Andreia Gaita <avidigal@novell.com>
1396 * Application.cs: If a message comes in for an embedded control
1397 (like webbrowser) when we're capturing the keyboard, release the
1398 capture and continue.
1401 2008-11-22 Andreia Gaita <avidigal@novell.com>
1403 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1405 2008-11-21 Andreia Gaita <avidigal@novell.com>
1407 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1409 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1412 * ScrollableControl.cs: Set manually the thumb size for the
1413 ScrollableControl scrollbars, so any further changes to the underneath
1414 scrollbars respect the original size.
1415 Fixes part of #441546.
1417 2008-11-21 Geoff Norton <gnorton@novell.com>
1419 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1420 PlatformID.MacOSX now exists.
1422 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1424 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1425 Having something internal abstract isn't very nice for people who want
1426 to inherit from this class.
1428 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1430 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1431 invalid value. Just return null for the Image, and use the ImageList's
1432 ImageSize for calculations.
1434 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1436 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1437 through DroppedDown so the proper events get called and state gets reset.
1440 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
1442 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1443 the collection is modified.
1445 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1447 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
1448 aren't always correct, and fixing them for every case is not worth the
1449 negligible benefit they provide.
1452 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1454 * DataGridView.cs: We should never add actual cells to the RowTemplate.
1455 Internally, use RowTemplateFull to give us a new row with cells.
1456 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1457 * DataGridViewRowCollection.cs: Use RowTemplateFull.
1459 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1461 * XplatUIX11.cs: Forms without borders should be able to change its
1462 size - specially they should be able to be maximized, adding the
1463 respective MotifFunctions.Resize bit when setting window properties as
1464 well as *not* marking the Hwnd as size fixed.
1467 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
1469 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1473 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1475 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1476 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
1477 AutoSizeColumnModeChanged.
1480 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1482 * DataGridViewRowCollection.cs: Guard against the user deleting the
1483 NewRow. Add an internal delete so we can still delete it.
1484 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1487 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1489 * TextControl.cs: Add some order of operation to our math so
1490 we don't end up with a negative height for our invalidate rect.
1493 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1495 * Control.cs: When our enabled changes, notify our implicit children
1496 controls as well as our regular controls.
1499 2008-11-08 Andreia Gaita <shana@jitted.com>
1501 * HtmlElement.cs: Small code cleanup
1503 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1505 * BindingNavigator.cs: MoveFirstItem should be enabled only if
1506 position is larger than 0, not only different than 0. Also Position
1507 and Count items should be enabled if the BindingSource is non null and
1511 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
1513 * TabControl.cs: Don't raise SelectedIndexChanged until we have
1514 actually modified the tab collection, so TabCount will be correct.
1517 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
1519 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1520 NonSerialized to fix serialization of ListViewItem.
1522 2008-11-04 Mike Gorse <mgorse@novell.com>
1524 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1525 focus change, and always call in SetFocusedItem.
1526 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1528 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
1530 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1531 mode. Based on a patch by John Mortlock.
1534 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1536 * ListView.cs: Use the UsingGroups property where needed, instead of
1537 duplicating the check in other places.
1539 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1541 * ListView.cs: When calculating layout, refresh the count of items
1542 belonging to the default item, insteas of doing it only one time. This
1543 was already working fine for icon views, not not for details.
1546 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1550 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1551 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1555 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1557 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1559 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1561 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
1562 #441280, patch by Mike Gorse <mgorse@novell.com>.
1564 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1566 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1567 if there is no scrollbar.
1570 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1572 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1573 patch from Andy Hume that fixes many issues with ProgressBar.
1576 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1578 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1581 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1585 * NumericUpDown.cs: Internal events added to UpDownBase:
1586 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
1589 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1591 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1593 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1596 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1597 Application.EnableVisualStyles hasn't been called.
1598 Fixes part of #437933.
1600 2008-10-31 Andreia Gaita <shana@jitted.com>
1602 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1603 if the container is not focused already, we need to specifically set
1604 focus to the first available control, or to the form itself if there
1607 2008-10-31 Andreia Gaita <shana@jitted.com>
1609 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1610 WM_ACTIVATE have been processed before returning, so it is guaranteed that
1611 once it returns and the form is visible, it is actually on the screen on X11
1613 * ContainerControl.cs: Only send focus to the control if the top container
1614 is already focused. This is so that, when a form is first shown, all
1615 the enter/leave events are done first before any focus stuff comes in.
1616 If a control has no top container, there's an extra check on Control.Focus
1617 to make sure it gets focused in this particular case.
1619 * Control.cs: Force focus if the control is active but did not receive
1620 focus after being set as active.
1622 * MdiClient.cs: Dispose the form when closing
1624 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1625 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1626 if the window is a top Form.
1627 Reset all hwnd properties when the window has been destroyed so that
1628 we don't land in any codepaths that might try to do something with it.
1629 Added a bunch of debugging messages. If TRACE is defined, all X calls
1630 are logged through DebugHelper. Set a few missing EntryPoint attributes.
1632 2008-10-29 Mario Carrion <mcarrion@novell.com>
1634 * ListViewItem.cs: Control enabled to support Accessibility:
1635 - Internal events: UIATextChanged, UIASubItemTextChanged.
1636 - Internal event UIATextChanged in ListViewSubItem that triggers
1637 UIASubItemTextChanged.
1638 * ListView.cs: Control enabled to support Accessibility:
1639 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
1640 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1641 - Internal event UIACollectionChanged in ColumnHeaderCollection.
1642 - Internal event UIACollectionChanged in ListViewItemCollection.
1643 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
1644 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
1645 - Internal methods: UIAGetHeaderBounds.
1647 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1649 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
1650 the event from the respective scrollbars.
1653 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1655 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
1656 textbox to know whether any navigation key will be handled or not. If
1657 not, don't pass the message to the textbox, and use it here instead.
1658 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
1659 is more precise- than the previous AutoCompleteMatches one.
1660 This should the keyboard navigation in ComboBox when using auto
1663 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1665 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
1668 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
1670 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
1671 overridden methods will get called.
1672 * ToolStripItem.cs: Raise Click before MouseUp.
1673 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
1674 the item's location into account.
1677 2008-10-24 Neville Gao <nevillegao@gmail.com>
1679 * NumericUpDown.cs: Control enabled to support accessibility.
1680 [Fiexes bug #438135]
1682 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1684 * TextBox.cs: Check that we actually have items no navigate, select
1685 text when pressing enter, as well as handle direction keys only if
1686 mode is different to Suggest or the suggest listbox is visible.
1688 2008-10-23 Andreia Gaita <shana@jitted.com>
1690 * WebBrowser.cs: Use the new ContentStream property to retrieve
1691 a stream encoded from the document content
1693 2008-10-23 Andreia Gaita <shana@jitted.com>
1697 HtmlWindow.cs: Fix GetHashcode for null objects
1699 2008-10-22 Andreia Gaita <shana@jitted.com>
1703 HtmlWindow.cs: Fix equality operators (fixes #428173)
1705 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1707 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
1708 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
1711 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
1713 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
1714 same item with the mouse as was already selected.
1717 2008-10-21 Brad Taylor <brad@getcoded.net>
1719 * TextControl.cs: Break out code to get the visible range into
1720 GetVisibleLineIndexes to be used in UIA code.
1724 * TextBoxBase.cs: Add comments indicating that the method or property
1725 is used via reflection from UIA code.
1727 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1729 * ListViewItem.cs: Match .net serialization.
1730 Fixes remaining part of #417520.
1732 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
1734 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
1736 2008-10-20 Mario Carrion <mcarrion@novell.com>
1738 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
1739 added: UIAToolTipRectangle.
1741 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1743 * ListViewItem.cs: When deserializing enumerate over the data, instead
1744 of accessing the data directly. This way we handle much better the
1745 cases were we lack information.
1748 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1750 * ListView.cs: When removing an item from a main ListView.Items
1751 collection (and not a ListViewGroupCollection.Items one), remove it
1752 also from the group, as .net does. Patch by Mario Carrion (mario at
1756 2008-10-19 Andreia Gaita <avidigal@novell.com>
1758 * Form.cs: Forms that get closed without a handle being created are
1759 disposed in 2.0. Fixes failing FormTest.FormClose and
1760 FormTest.FormClose2 on windows.
1762 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764 * ListView.cs: If both scrollbars are visible, the vertical one
1765 shouldn't extend too far down.
1768 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1770 * DataGridView.cs: Add the ability to resize columns and rows with
1771 the mouse. Also support double-clicking to autoresize.
1772 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
1773 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
1774 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
1775 isn't shown on autoresize.
1778 2008-10-17 Mario Carrion <mcarrion@novell.com>
1780 * ComboBox.cs: Remove UIAListbox.
1782 2008-10-17 Mario Carrion <mcarrion@novell.com>
1784 * ComboBox.cs, ListBox.cs: Using added/removed item in
1785 OnUIACollectionChangedEvent instead of index.
1787 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
1789 * ComboBox.cs: When we are sorting the items, if the item's type
1790 doesn't support IComparer, use a default one that compares based
1791 off the item's visible text.
1794 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1796 * ColumnHeader.cs: Invalidate ListView.header_control when setting
1797 ImageIndex/ImageKey.
1798 * ThemeWin32Classic.cs: When drawing the column header, draw a image
1799 for the column if available, and make the required adjustments to the
1803 2008-10-17 Neville Gao <nevillegao@gmail.com>
1805 * StatusBarPanel.cs: Control enabled to support accessibility.
1808 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1810 * DataGridView.cs: When a user begins an edit in the 'new row',
1811 make that a real row, and add a new 'new row'. If the user
1812 cancels the edit, remove the new 'new row' and reset everything.
1813 Also, ensure UserAddedRow and UserRemovedRow events are raised.
1816 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
1818 * TableLayoutSettings.cs: Fix NREs when deserializing and
1819 panel is not yet set.
1822 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1824 * DataGridView.cs: Invalidate after deleting a row.
1826 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1828 * DataGridView.cs: Handle Enter and Escape keys.
1829 - Move call to EndEdit to MoveCurrentCell.
1830 - Remove call to EndEdit from navigation key routines.
1831 - Fire CellLeave and CellEnter.
1833 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1835 * DataGridViewCell.cs: Some fixes to the new cell border
1838 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
1840 * ThemeEngine.cs: Enable visualstyles rendering by default
1841 (on platforms that support it).
1843 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
1845 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
1846 MainForm.OnLoad has completed unless DoEvents is forced.
1849 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1851 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
1853 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
1855 * Control.cs: Make our implementation of DrawToBitmap better
1856 match WmPaint. [Fixes bug #435579]
1858 2008-10-14 Andreia Gaita <avidigal@novell.com>
1860 * WebBrowser.cs: Use DocumentElement as the document's root for the
1861 whole content. Should fix DocumentText and DocumentStream problems.
1863 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
1865 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
1866 these will get called in DGV.OnCollectionChanged. Make sure
1867 OnCollectionChanged always gets called.
1868 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
1869 from every row. Call this in OnCollectionChanged.
1872 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1874 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
1875 textbox if auto complete is used, since we need to navigate over it.
1876 And in this case don't pass this messages to the base impl. Also hide
1877 the auto complete list box when displaying the drop down listbox.
1878 * TextBox.cs: new internal members to expose some of the auto complete
1879 functionality to combobox.
1881 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
1883 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
1884 MainForm.OnLoad has completed.
1887 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1889 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
1890 Append support to this controls. We need it to apply new patches.
1892 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1894 * Control.cs: When updating z order in child controls, send to back
1895 the implicit controls. Also, do it explicitly, instead of making
1896 GetAllControls return the implicit controls in a specific order, and
1897 thus avoid depending on that, which could change in the future.
1900 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1902 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
1903 call to StartDrag, since we must fire DragDrop/DragLeave *before*
1904 that, as .net does - instead of firing DragDrop/DragLeave *after* the
1905 call to Control.DoDragDrop has completed. This is needed since at the
1906 point of returning, we have sent related dnd ClientMessages, but we
1907 need to wait for them to fire the wmf respective ones.
1910 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1912 * LinkLabel.cs: Recreate link pieces when change Padding.
1914 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
1916 * LinkLabel.cs: Take Padding into account when recreate link pieces.
1919 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
1921 * Control.cs: Implement internal property PaddingClientRectangle, it will be
1922 useful for drawing controls that must take care about Padding property.
1924 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
1926 * BindingSource.cs: Make item_type internal so we can access it in DGV.
1927 * DataGridView.cs: Add support for autogenerating columns from a
1930 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1932 * DataGridView.cs: Comment out an exception that is getting thrown
1933 too often currently.
1935 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1937 * DataGridView.cs: Always rebind to the datasource, as things may
1938 have changed in it that we aren't capturing yet.
1940 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
1942 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
1943 drawing mode. If we are top aligned, give ourselves some top padding.
1945 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1947 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
1948 events on the control under the mouse pointer, instead of firing them
1949 on the window generating the dnd operation. To achieve this re-use the
1950 code used to get the window under the pointer when getting MouseMove
1954 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1956 * X11Dnd.cs: Don't check that that the window sending the dnd events
1957 is the owner of the selection. Although Gtk+ sets it that way, it's
1958 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
1959 So, just as Gtk+ does, we set our window sending the dnd events as the
1960 owner of the selection, but don't check it when receiving them. This
1961 should fix interoperability with Qt/Kde.
1964 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1966 * DataGridView.cs: Make sure we take the vertical scrollbar into
1967 account when autosizing columns.
1969 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
1971 * DataGridView.cs: Handle sorting datetimes.
1973 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
1975 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
1976 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
1977 compilation warnings.
1979 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1981 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
1982 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
1983 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
1984 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
1985 compilation warnings.
1987 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1989 * DataGridView.cs, DataGridViewCell.cs,
1990 DataGridViewCellValidatingEventArgs.cs,
1991 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
1992 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1993 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
1995 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
1997 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
1998 Cleanup compilation warnings.
2000 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2002 * XplatUIWin32.cs: Cleanup compilation warnings.
2004 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2006 * PropertyGrid.cs: Cleanup compilation warnings.
2008 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2010 * DataGridViewRow.cs: Only clear the row background if we
2011 are going to paint a new background.
2013 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2015 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2016 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2017 use PaintBorder instead.
2019 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2021 * DataGridView.cs: When CellBorderStyle is set, update the
2022 AdvancedCellBorderStyle to match.
2024 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2026 * DataGridViewCell.cs: Add helper methods to convert Alignment
2027 to TextFormatFlags and align rectangles.
2028 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2029 * DataGridViewImageCell.cs: Use Alignment when painting the image.
2031 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
2033 * ToolTip.cs: Display tooltips only for controls on the active form.
2036 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2038 * DataGridView.cs: Make OnCellValueNeeded internal.
2039 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2040 user can supply their own value if they choose.
2042 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2044 * DataGridViewColumnHeaderCell.cs: Create a new style object
2045 so the DefaultCellStyle doesn't get changed.
2047 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2049 * ToolStripItem.cs: Check to make sure the owner is actually
2050 changing in InternalOwner before doing any work. Fixes some
2053 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2055 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2056 * DataGridView.cs: Use a column header's inherited style instead
2057 of just using the default.
2059 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2061 * SplitContainer.cs: Raise SplitterMoved when the splitter is
2064 2008-10-01 Mario Carrion <mcarrion@novell.com>
2066 * ScrollBar.cs: Internal property added: UIAThumbPosition.
2068 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2070 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2072 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2074 * ToolStripItem.cs: When the user sets Owner, we need to remove
2075 it from its previous owner and then add it to the new owner's
2076 item collection. Also, create InternalOwner, so we can set the owner
2077 that doesn't do this new stuff.
2078 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2080 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2082 * ToolStripItem.cs: When our parent changes, recalculate our text
2083 size, since we may be getting our Font from our parent. When our
2084 owner's Font changes, recalculate ourselves as we may be using
2087 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
2089 * MenuAPI.cs: Select the first option of a popup when opening the popup via
2090 return key. [Fixes bug #413792].
2092 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2094 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2095 ambient properties. (Get their value from their parents if
2096 values haven't been set.)
2098 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2100 * ToolStripSystemRenderer.cs: Call overridden methods' bases
2101 after our logic, so users can do painting by handling the events.
2102 Currently, we draw over any user painting.
2104 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2106 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2107 after our logic, so users can do painting by handling the events.
2108 Currently, we draw over any user painting.
2110 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
2112 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2114 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2116 * TreeNode.cs, TreeView.cs: Move logic that determines the node
2117 image to draw to TreeNode. Give Index/Keys put on the node
2118 precedence over the global one for the TreeView.
2120 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2122 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2124 2008-09-29 Mario Carrion <mcarrion@novell.com>
2126 * ListBox.cs: Index fixed.
2128 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2130 * TabControl.cs: When expanding the tab -because it's selected now-,
2131 using Right alignment, instead of adding some selected delta value to
2132 the X origin, substract it, so it gets a location adjacent to the panel,
2133 instead of be more separated.
2136 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
2138 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2141 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2143 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2144 as well as the other static fields, to avoid using their previous
2145 values my mistake when handling the dnd events. This should avoid
2146 handling any status event after the drop has been finalized/cancelled.
2148 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2150 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2151 operation, instead of waiting until we get any movement - this will
2152 help us to have the data available in case no movement was detected
2153 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2154 Finally add a windows.forms-only fallback to fire the mentioned events
2155 if no movement at all was detected, just like .net does.
2158 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
2160 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2161 return early if the text is empty because the icon doesn't get
2162 drawn then. [Fixes bug #428113]
2164 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2166 * FileDialog.cs: Implement basic support for sorting by columns in
2167 Details view. Patch by Eric Petit.
2170 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2172 * ThemeWin32Classis.cs: When drawing gridlines take into account the
2173 case where ListView.ItemSize hasn't been computed, and provide a
2174 fallback as well. This prevents a division by 0.
2176 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2178 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2179 correctly draw tooltip backgrounds.
2181 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2183 * ImageList.cs: Change CopyTo implementation to ensure clones are
2184 created of our images.
2187 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2189 * Control.cs: When setting fonts, we need to ensure we change our
2190 reference to the new font object, even if it represents the same
2191 font as before. If we don't, the original font can get disposed
2192 and we will still try to use it.
2195 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2197 * FileDialog.cs: Take into account Tile view when selecting the view
2200 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2202 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2203 the item bounds, since we can't iterate over them in virtual mode.
2204 Also fix wrong calculation of the gridlines when using scrolling.
2207 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2209 * XplatUIX11.cs: When handling EnterNotify events, take into account
2210 both the public and implicit controls when trying to detect the
2211 grab/ungrab process. This should fix ListView selection in Details
2214 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2216 * TreeView.cs: Redraw the whole node area when the selected node changes.
2217 Things like state images were not getting redrawn because the invalid
2218 rectangle was too small.
2221 2008-09-23 Mario Carrion <mcarrion@novell.com>
2223 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2226 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2228 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2231 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2233 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2236 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2238 * StatusBar.cs: Add tooltip support.
2241 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2243 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2244 alignments of sub items in Details view. Patch by John Mortlock (johnm at
2245 hlaustralia.com.au).
2248 2008-09-23 Neville Gao <nevillegao@gmail.com>
2250 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2253 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
2255 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2258 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2260 * ListView.cs: Don't do anything when EnsureVisible is called inside a
2261 BeginUpdate/EndUpdate block.
2264 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2266 * ListViewItem.cs: The semantics for the public .ctor of
2267 ListViewSubItemCollection need us to already have a Text value for the
2268 item, which in our implementation have as available *after* adding the
2269 first sub item. So create an internal .ctor that satisfies our needs
2270 and let the public .ctor have the same semantics as .net.
2273 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2275 * ListControl.cs: Changes in Formatting related values should call
2276 RefreshItems, as .net does.
2278 * ListBox.cs: In the respective overrides of RefreshItems calculate
2279 layout as well as refreshing - again, this is what .net does.
2282 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2284 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2285 since we are already doing that when we change the value of the
2286 scrollbar or force the call to ScrollWindow in the same method. This
2287 way we don't cause a Invalidate call for all the listbox bounds for
2288 methods calling UpdateTopItem with an already updated top item. This
2289 was happening specially calling EnsureVisible with already visible
2292 2008-09-18 Mike Gorse <mgorse@novell.com>
2294 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2295 XplatUIStructs.cs: Added KeyFilter
2298 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2300 * RelatedPropertyManager.cs: The properties returned by
2301 GetItemProperties should be that ones of the *actual* object returned
2302 by the property, not the property type - this is very special when the
2303 property exposes a type, but the returned object actually is a child
2304 class and implements more functionality and properties.
2306 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2308 * Binding.cs: Don't look for the property in the data source if the
2309 passed string is empty.
2311 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2313 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
2314 fix unused variable warnings.
2316 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2318 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2321 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2324 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
2325 leads to the window manager overriding our border style and zorder.
2326 - Allow the activation of non-modal forms, which are children of a
2330 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2332 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
2333 ask the window manager to do the work instead of changing the property
2337 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2339 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2340 AddNew to fix some navigation for empty datasets. [Fixes #323053]
2342 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2344 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
2345 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2346 border and fixes some drawing issues when resize form.
2348 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2350 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2352 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2355 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2357 * TextBoxBase.cs: For standard textbox the scrollbars are always
2358 visible if Multiline is true.
2361 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2363 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2366 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2368 [Fixes most od DBNull and HeadersVisible problems]
2371 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2372 returns the value that we need.
2373 - Fixed FromPixelToColumn method that return zero for first column and for
2374 row header cell, now it returns -1 for row header cell.
2375 - Fixed HitTest to check row header cell in column header area, it now
2376 returns HitTestType.None. [Fixes #322864]
2377 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2378 checks for RowHeadersVisible and other things.
2379 - If an exception occurs when setting CurrentCell and user type 'yes' in
2380 message dialog, invalidade current and new cell and set setting_current_cell
2381 to false to prevent future errors. [Partially fixes #323050]
2383 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2384 value (SetColumnValueAtRow), it must be done by grid to properly show
2385 messages. [Fixes #323050]
2387 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2388 better draw column and row header. Also dont draw anything when column
2389 headers is not visible.
2391 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2393 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2396 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2398 * TreeView.cs: Don't start editing a node on right click, only
2401 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2403 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2404 disabled over a year ago.
2405 * Form.cs: Wrap calling Load in a try/catch because it can happen
2406 before the catch-all one in NativeWindow.
2409 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2411 * ToolStripDropDownMenu.cs: Calculate the connected area better
2412 to take into account when the drop down is not directly under the
2414 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2416 2008-09-16 Mario Carrion <mcarrion@novell.com>
2418 * ScrollBar.cs: New event added: UIAValueChanged, generated when
2419 LargeChange, SmallChange, Maximum or Minimum values are changed.
2422 2008-09-16 Mario Carrion <mcarrion@novell.com>
2424 * ErrorProvider.cs: Component enabled to support accessibility.
2425 * Application.cs: Updated to Initialize UIA in ErrorProvider.
2428 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2430 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2431 so we don't highlight on first focus.
2434 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2436 * TextControl.cs: Correctly calculate the height of the area we
2437 need to invalidate when we have started scrolling and viewport_y
2438 is used. [Fixes bug #387608]
2440 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2442 * TextControl.cs: When getting the SelectedText, don't add in
2443 NewLine characters, as they are already contained in the lines.
2446 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2448 * TextBoxBase.cs: Replace the buggy Lines setter with one that
2449 simply concats the lines and send it to the Text setter.
2450 [Fixes issue #2 and #3 of 388115]
2452 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2454 * Binding.cs: The default value of DataSourceNullValue should be
2455 Convert.DBNull actually. Also, the NullValue should only be used *if*
2456 itself is not null, and use the null/Convert.DBNull value instead.
2458 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2460 * TextControl.cs: Add a method to convert a string newline to the
2462 * TextBoxBase.cs: When the user hits enter, insert a native newline.
2463 [Fixes part 1 of bug #388115]
2465 2008-09-15 Mario Carrion <mcarrion@novell.com>
2467 * ToolTip.cs: UnPopup event set to internal to match public API.
2469 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2471 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2472 have to remove the Ctrl in order for the focus moving code to kick in.
2475 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2477 * CheckedListBox.cs: Return the real item index from Add. It may not be
2478 the last item if the list is sorted. The user can change the NewValue in
2479 the ItemCheck event, we need to use that value if so.
2480 * ListBox.cs: Return the real item index from a sorted Add.
2483 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
2485 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
2486 happen that the icons from the theme is missing or the particular size
2490 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2492 * Binding.cs: When assigning null or DBNull depending on value/ref type,
2493 use IsValueType instead to get the precise desired value.
2496 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2498 * TreeNodeCollection.cs: When adding a new node to an opened node,
2499 we have to invalidate everything below the parent node because
2500 every node scoots down and we have to repaint them.
2503 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2505 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2506 property into account when drawing.
2509 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2511 * ListBox.cs: When calling Items.Clear(), call
2512 SelectedIndexCollection.ClearCore instead of normal Clear method, to
2513 not fire any Selected*Changed event - this is done to match .net and
2514 don't have invalid values when changing the DataSourceProperty.
2517 2008-09-12 Mario Carrion <mcarrion@novell.com>
2519 * HelpProvider.cs: Control enabled to support accessibility.
2520 * Application.cs: Updated to Initialize UIA in HelpProvider.
2523 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2525 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2526 make the dialog TopMost as well.
2529 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2531 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2532 clipboard data better.
2535 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2537 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2538 TextChanged and SelectionChanged events fire in the same order as .Net.
2541 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2543 * DataGridView.cs: When sorting a column, if it only contains numbers,
2544 do a numeric sort instead of a string sort.
2547 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2549 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2550 against NRE's when the settings have a null panel.
2551 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2555 2008-09-11 Mario Carrion <mcarrion@novell.com>
2557 * ToolTip.cs: Control enabled to support accessibility.
2558 * Application.cs: Updated to Initialize UIA in ToolTip.
2561 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2563 * Control.cs: Make the custom Enumerator internal to fix build.
2565 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2567 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2568 already in edit mode, begin edit mode. Generally edit mode isn't
2569 started until the second click, but CheckBoxes are special.
2571 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2573 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2574 since that can be set to anything. Always add them to the Control's
2575 parent. [Fixes bug #416058]
2577 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2579 * ListView.cs: Use a custom enumerator for ListViewItemCollection
2580 so items can be deleted in a foreach.
2583 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2585 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2586 Store the user set explicit height so that the row can be AutoSized
2587 and then when AutoSize is turned off, it can get its original size back.
2588 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
2589 duplicating the logic. When setting AutoSizeRowsMode to None, reset
2590 rows' heights back to their explicit values.
2593 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2595 * DateTimePicker.cs: When getting focus, select the checkbox if we are
2596 already showing it. Also, don't change its value when pressing space
2597 if the checkbox is not visible (ShowCheckBox as false). Finally, the
2598 checkbox should remain selected as long as Checked is false, and the
2599 other parts are disabled.
2602 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2604 * MessageBox.cs: Handle shortcut keys to dialog buttons.
2607 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2609 * Binding.cs: When the value retrieved from the control property is
2610 null, don't return Convert.DBNull for Nullable instances, since they
2611 can *actually* get a null value.
2614 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2616 * Control.cs: Add an internal field to force doublebuffering regardless
2617 of what the public mechanisms are set to. This is because MS's native
2618 controls are doublebuffered even though their .Net bits are set to false.
2619 * ProgressBar.cs: Set force_double_buffer to true.
2622 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2624 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2626 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2627 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2628 without EditingControls, paint background selection for types without
2629 EditingControls, reset the EditingCellValueChanged flag when the
2630 cell's value is committed.
2631 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2632 have EditingControls, remove a double call to a cell's OnContentClickInternal,
2633 don't do cell changing logic in OnMouseDown if the cell didn't change.
2636 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2638 * DateTimePicker.cs: Fix the edition of am/pm specifier.
2640 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
2642 * TextControl.cs: Add "&" to the list of valid characters in a URL.
2644 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2646 * DateTimePicker.cs: Before incrementing or decrementing any part in
2647 the textbox, end any current edit. Also when ending the current edit
2648 use the editing_part_index field instead of the current selected
2649 value, since they can be out of synch, and we really need to work on
2650 the *real* current edit part. Finally when PartData.Selected changes,
2651 always try to end any ongoing edit.
2652 This should fix some small errors handling mouse navigation and
2653 increase/decrease operations.
2655 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2657 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
2658 respectively) should handled different, since the 12 hours format
2659 needs the value typed by the user to be adjusted depending on the
2660 a.m/p.m value, so it is preserved, and only changed when the value
2661 reaches the 12 value (when it changes from a.m to p.m).
2662 Fixes part of #416555.
2664 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2666 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
2667 * ToolStripDropDownItem.cs: Don't fire events and such again if
2668 ShowDropDown is called on an already dropped down item.
2669 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
2670 subitems, the user may add some in the DropDownOpening event.
2673 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2675 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
2678 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
2680 * MdiClient.cs: When looking for menustrips on a child form to merge,
2681 look inside ToolStripContainers.
2684 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2686 * ErrorProvider.cs: Unbreak my previous commit.
2688 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
2690 * ErrorProvider.cs: Icon should always be 16x16.
2693 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2695 * GridEntry.cs: Invalidate the child items cache when the property
2698 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
2700 * GridEntry.cs, PropertyGridView.cs:
2701 - Update the ReadOnly detection and rendering to finally hopefully
2702 match the one of MSFT.
2703 - Niceify and move the debug CWLS.
2706 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2708 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
2709 since we are already calling Invalidate for the entire control when
2710 needed - and call Redraw() when size changes, since we need to paint
2711 there by ourselved and not anymore from the mentioned method.
2712 This should improve the layout process. Also clean some not needed calls
2715 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2717 * MenuAPI.cs: Add a null check to the Alt-F4 code.
2720 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
2722 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
2725 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
2727 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
2728 PropertyGridView.sc: Implement lazy/delayed propertygrid population
2729 on item expansion. Improves performance and fixes bug #417955.
2732 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
2734 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
2737 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2739 * TextControl.cs: Add "_" to the list of valid characters in a URL.
2742 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2744 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
2748 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2750 * FontDialog.cs: When storing our font size from the starting font,
2751 use SizeInPoints instead of Size in case Size is a different unit
2755 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
2757 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
2758 don't use it for anything else, check if a directory is highlighted.
2759 If it is, navigate into it.
2762 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2764 * Binding.cs: When acquiring a BindingManagerBase for the first time,
2765 check that the specified property actually exists in the data source,
2766 and throw an ArgumentException if that's not the case - this is only
2767 done for this scenario, since for later cases (such Position changes)
2768 we throw different exceptions (match .Net).
2770 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
2772 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
2773 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
2774 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
2775 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
2776 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
2777 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
2781 2008-09-03 Neville Gao <nevillegao@gmail.com>
2783 * StatusBar.cs: Control enabled to support accessibility.
2786 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2788 * Binding.cs: When connecting the event handler for the "Changed"
2789 event for the property, only do it for PropertyManager, and not for
2790 CurrencyManager - this is exactly what does .Net, totally ignoring any
2791 change in the property of the elements of a list.
2794 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
2796 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
2797 to Windows when creating a window, as we fake MDI stuffs.
2800 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
2802 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
2803 change takes effect.
2805 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
2807 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
2810 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2812 * DataGridView.cs: Raise CellContentClick event.
2813 [Fixes part of bug #420351]
2815 2008-08-27 Mario Carrion <mcarrion@novell.com>
2817 * ScrollBar.cs: Control enabled to support accessibility.
2820 2008-08-27 Mario Carrion <mcarrion@novell.com>
2822 * ComboBox.cs: Control enabled to support accessibility.
2825 2008-08-27 Mario Carrion <mcarrion@novell.com>
2827 * ListBox.cs: Control enabled to support accessibility.
2830 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
2832 * ComboBox.cs: Don't suppress the TextChanged event when changing
2834 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
2838 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
2840 * ErrorProvider.cs: Fix a regression NRE when setting properties
2841 for a control before it has a parent.
2844 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2846 * Binding.cs: Use the BindingManagerBase.Current value to obtain
2847 connect the property "Changed" event, instead of using the data
2848 sources - this is useful when the property specifies actually a
2849 multiple objects path.
2850 Fixes part of #417973.
2852 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2854 * RelatedPropertyManager.cs: PropertyManager instances associated to a
2855 nested properties should return not the properties of the data source
2856 itself, but the properties of the type of a specific property in the
2857 data source - match .net.
2859 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
2861 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
2862 AddRange overloads into AddItems method, and added missing NULL check.
2863 Added extra argument check to RemoveAt for compatibility with MS.
2864 Modified IList implementation of Add, Contains, IndexOf and Remove to
2865 throw an ArgumentException if item is not an int. Modified IList.Insert
2866 to throw a NotSupportException instead of an Exception. Implemented
2868 (ObjectCollection): To avoid duplication, use AddItems method from
2869 AddRange overloads. On 1.0 profile, first perform NULL check on items
2872 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
2874 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
2877 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2879 * X11Keyboard.cs : comment out some Console.WriteLine().
2881 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
2883 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
2884 even if premises are not filled. Also XLookupString() was not
2885 receiving correct input, which blocked precise input handling
2888 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2890 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
2891 type of delegate, instead of EventHandler - this was causing a type
2892 cast exception in all apps handling this event.
2895 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
2897 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
2898 ShowDropDown to give the user a chance to dynamically add
2899 drop down items. [Step 1 of fixing bug #417877]
2901 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2903 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
2904 had any mouse motion since the call to StartDrag, to match the dnd
2906 Fixes part of #381876.
2908 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2910 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
2911 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
2912 Also, if we are actually moving into a different window after
2913 grabbing, generate a LeaveNotify event for the previous window, since
2914 we need to fire the leave events until the grab ends, not when
2915 actually moving outside of the control.
2917 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2919 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
2920 events only for client windows was wrong - we need to compare the
2921 client window against the window receiving the EnterNotify event, not
2922 against zero (since client window is never Zero, btw).
2923 This prevents having unnecessary handling of EnterNotify events for
2924 non-client windows when a gran begins.
2926 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2928 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
2929 MouseMove/MotionNotify events at all (which should only happen after
2930 MouseUp/ButtonRelease, as .Net does).
2931 This avoids firing an extra and unnecessary MouseMove event just after
2932 every MouseDown event.
2934 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2936 * LinkLabel.cs: Always clear any previous links when LinkArea
2937 is set. [Fixes bug #410709]
2939 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2941 * ToolStripProfessionalRenderer.cs: Revert last change.
2942 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
2943 for ToolStripDropDownBackground.
2945 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
2947 * ToolStripProfessionalRenderer.cs: Use Window color for the
2948 background of dropdowns to match .Net when the user is not
2949 using the default white. [Fixes bug #418108]
2951 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
2953 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
2954 it caused timer registration twice. Fixed bug #418107.
2956 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2958 [Correction: This is the actual change to X11Dnd issue, not the
2959 previous one, which was actually a different issue.]
2961 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
2962 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2963 when the pointer is actually in motion, but only when the pointer
2964 seems to stop (as .net does).
2965 Fixes part of #381876.
2968 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2970 * ListBox.cs: Fix CopyTo implementation.
2973 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
2975 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
2976 drawing a ComboBox's background. Fixes bad disabled rendering when
2977 the control is not at 0,0.
2980 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
2982 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
2983 ComponentModel layer, which will properly prioritize the attributes.
2984 Avoids wrong prioritization of duplicate attributes when retrieving
2985 the converter and editor.
2988 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2990 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
2991 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
2992 when the pointer is actually in motion, but only when the pointer
2993 seems to stop (as .net does).
2994 Fixes part of #381876.
2996 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
2998 * GridEntry.cs: Perform stricter check for the ParentEntry's
2999 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
3003 2008-08-14 Geoff Norton <gnorton@novell.com>
3005 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3006 Fixes #396983. Properly fix ActiveWindow trackin and do not
3007 prematurely show POPUP windows.
3009 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3011 * XplatUIX11.cs: Handle the obscured regions while scrolling using
3012 GraphicsExpose event, processing it just after we copy the scrolled
3013 area. This ensures that the next calls to ScrollWindow will copy
3014 regions already updated, and the scrolling will be smooth. Also remove
3015 the code that was trying to detect the obscured regions, since we are
3016 not using it anymore (too slow).
3018 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3020 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3021 MultiExtended mode, by separating some logic between the ctrl/shift
3022 handling. Also ignore any MouseMove events generated together with
3023 MouseDown events - we are only interested in the real motion event.
3024 Fixes part of #414963.
3026 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
3028 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3029 is selected. [Fixes bug #414143]
3031 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
3033 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
3034 and not the parent one (the propertyowner). Fixes the behavior of
3035 GetConverter/GetEditor.
3038 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
3040 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3041 [Fixes part of bug #415452]
3043 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
3045 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
3046 GridEntry, not the current.
3049 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
3051 * TextBoxBase.cs: De-internalize max_length field.
3052 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
3053 share the same logic.
3056 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3058 * ListBox.cs: Selection changes made in the MouseDown handler should
3059 use the *Core versions of selection in SelectedIndices collection,
3060 since the SelectedIndexChanged/SelectedValueChanged events are fired
3061 until we get a MouseUp event, and thus we need to separate the logic
3062 from the events, as done in the keyboard navigation. Also, fire those
3063 selection events from keyboard navigation in SelectionMode.None, even
3064 if we don't have a selection, as .Net does.
3066 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
3068 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3069 last change introduced when an item is clicked but isn't on a toolstrip.
3071 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3073 * ListBindingHelper.cs: When looking for an object's properties, check
3074 if it implements ICustomTypeDescriptor, in which case we should
3075 resolve the propertu based on its GetProperties method, not in its
3076 actual properties. This is what .Net seems to do.
3077 Fixes a UsingWebBrowser problem during initialization.
3079 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3081 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3082 sitting on a MenuStrip.
3084 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3086 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3087 no children with the keyboard, we need to release the keyboard capture.
3090 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3092 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3093 no children with the keyboard, we need to release the keyboard capture.
3096 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3098 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3099 the GTK+-based implementation of VisualStyles.
3100 * ThemeWin32Classic.cs: Exposed various layout values for use in the
3101 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3102 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3103 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3104 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3105 TrackBarHorizontalTrackHeight.
3107 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3109 * TabControl.cs: Added hot style handling for the scroll buttons.
3110 right_slider_state, left_slider_state are now of type PushButtonState to
3111 allow for a hot state. Added tracking of the mouse button being held down
3112 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3113 LeftScrollButtonArea.
3114 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3115 TabControlGetRightScrollRect.
3117 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3119 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
3122 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3124 * Form.cs: Ensure that we reset the shown_raised flag after
3125 the form is closed, so that we raise the show events the next
3126 time the form is shown.
3129 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3131 * Form.cs: Ensure closing events are raised only once.
3134 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3136 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
3137 so that we can successfully generate the LParam in-place instead of
3138 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
3139 navigation for menus.
3141 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3143 * MenuAPI.cs: When montion don't set the keyboard navigation state to
3144 'navigating'. Fixes bug #411356.
3146 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3148 [Fixed remaining issues of #406773 (#1)]
3149 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3151 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3152 MainMenu (already done) and ContextMenu creation.
3154 * ContextMenu.cs: Create tracker on construction.
3156 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3158 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3159 possible to instantiate MenuTracker without GrabControl.
3161 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3163 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3165 * MainMenu.cs: Set GrabControl on SetForm using current form.
3167 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3169 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3171 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3173 * MenuAPI.cs: Check if menu is activated before deactivate it in
3176 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3178 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
3180 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3181 - One style instance can only participate in a single style collection.
3182 - Styles can request their owner to layout whenever their properties
3184 [Fixes bugs #412583 and #412582]
3186 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
3188 * X11Keyboard.cs: Implement the generation of the LParam for
3189 all keyboard messages.
3192 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
3194 * ListBox.cs: Don't let the user set TopIndex so high that it
3195 scrolls up far enough to show empty items.
3198 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3200 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3201 (I'm an idiot and forgot to commit the actual changes, as well as
3202 specify the right file, which is this one, not ListView.cs).
3204 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3206 * ListView.cs: Don't draw ListViewSubItem instances from
3207 DrawListViewItem - we need to reuse the main item's drawing for the
3208 first sub item in case owner draw is true, but wants the system to
3209 do the default draw for the first sub item, without incurring in a
3213 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
3215 * ToolStripButton.cs: Update Checked for CheckOnClick before
3216 raising the Click event. [Fixes bug #412505]
3218 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
3220 * Form.cs: Remove some seems leftover code for non-TopLevel's
3221 CreateParams, which is breaking ClientSize sizing, because it
3222 removes the border window styles.
3224 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
3226 * PropertyGrid.cs: Invalidate the View when the PropertyTab
3229 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
3231 * WebBrowser.cs: Removed debug output.
3233 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
3235 * FileDialog.cs: Apply patch from Ernesto to clean up some
3238 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3240 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
3241 that the change has an immediate effect.
3243 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3245 * ScrollableControl.cs: Update PerformLayout calls to include
3246 provide the name of the property that changed.
3248 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3250 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
3251 location. Fixes drawing of border and cell borders if scrollable.
3253 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3255 * ScrollableControl.cs: Perform layouting after the AutoScroll
3256 properties have changed, so that the changes have immediate
3260 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3262 * XplatUIX11.cs: Non Client area is actually Client such in the
3263 case of NotifyIcon, so double check WholeWindow == ClientWindow
3264 when adding an expose.
3265 [Fixes bugs #324237 and #357022]
3267 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3269 * TableLayoutPanel.cs: Invalidate after layouting, so that we
3270 repaint the cell borders.
3272 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3274 * PropertyGridTextBox.cs: Stop filtering messages prior to our
3275 disposal to avoid unexpected ObjectDisposedExceptions.
3277 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
3279 * TableLayoutPanel.cs: Layout on Row/Column count change.
3281 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
3283 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3285 * PictureBox.cs: When ImageLocation is set to null or an empty string,
3286 only set image to null if it was previously initialized from an url
3287 (or using ImageLocation). In ImageLocation, load specified image
3288 asynchronously if WaitOnLoad is false. Added support for local file
3289 paths to LoadAsync, and added missing argument check.
3291 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3293 * DateTimePicker.cs:
3294 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3295 order to set the value as required (which means: when selection
3296 changes for a part being edited, and not before that if not needed).
3297 Also use an enum to describe which part are we using, and use the
3298 selection as a property in PartData, in order to notify the
3299 DateTimePicker owner that we need to end the current edit.
3302 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
3304 * PropertyGridTextBox.cs: Validation should be performed only if we
3305 are focused. We can lose focus for example if the Return key is used
3306 to set the entry and there is an error. When the message box is
3307 displayed we would have validate on click in the message box.
3309 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
3311 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
3312 in order to determine that we are expandable is wrong. There was a bug,
3313 now fixed, in TypeDescriptor that was causing the wrong converter to be
3314 returned which caused GetPropertiesSupported == false in most cases.
3317 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
3319 * ImageList.cs: Fix ICollection.CopyTo implementation for
3320 ImageListCollection. [Fixes bug #409169]
3322 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3324 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3325 WorkingArea so that menus can appear on the second monitor
3326 when one has dual monitors.
3328 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3330 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3333 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3335 * TextBox.cs: Implement navigation support for auto complete in
3336 TextBox, as well as refactor the code to show the auto complete window
3337 when receiving a WM_CHAR message, instead of TextChanged, since
3338 autocomplete itself should be able to set the Text a lot of times and
3339 finally only typing should show it, not changes from code.
3341 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3343 * TabControl.cs: When expanding the selected tab, don't adjust the
3344 width if alignment is Right, since it has a different offset than 0,
3345 as opposed to the other alignments.
3346 Fixes the selected tab not being painted at all with alignment = Right
3347 and using FillToRight size mode.
3349 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3351 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
3353 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3355 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3356 values from the textbox to the boundary values. [Fixes bug #409026]
3358 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3360 * TreeNodeCollection.cs: We were copying one too many elements when
3361 doing our array copy. Fixes a crash when RemoveAt is called.
3364 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3366 * TabControl.cs: When doing the layout and need to call FillRow -using
3367 FillToRight size mode-, use the overload receiving a bool param
3368 indicating whether we need to do a vertical or horizontal calculation.
3369 Fixes part of #399583.
3371 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3373 * TextBox.cs: When painting, use the value returned by
3374 GetLastVisibleItem instead of using the cached last_item field, since
3375 there could be a desynchronization between the layout and the
3376 painting. Fixes a AOOR exception in auto complete mode.
3378 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
3380 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3381 NonClientAreaEnabled until our VisualStyles is modified to allow it.
3383 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
3385 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3387 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3389 * TextBox.cs: When focus is lost, if the auto complete listbox is
3392 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3394 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3395 tracking size for tool windows.
3396 * Theme.cs, ThemeWin32Classic.cs : Extracted
3397 ManagedWindowSpacingAfterLastTitleButton.
3399 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3401 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3402 They are bit-rotted and have always been listed as "unsupported".
3404 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3406 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3408 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3410 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3412 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3414 * ListBox.cs: Make sure last_item_visible gets reset before we try
3415 to do a layout due to scrollbars appearing or disappearing.
3418 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3420 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3421 for different window themes. [Fixes bug #339140]
3423 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3425 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3426 in ManagedWindowBorderWidth.
3428 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3430 * InternalWindowManager.cs: Change MouseMove to take a point, so
3431 we can use the same point later on.
3432 * MdiWindowManager.cs: Store point sent to MouseMove so we can
3433 later reset to it. On Windows, the Cursor.Position had already
3434 changed by the time we were resetting to it.
3437 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3439 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3441 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3445 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3447 * MdiWindowManager.cs: Double-clicking on the title bar should not
3448 maximize a MDI form if MaximizeBox = false.
3450 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3452 * ThemeVisualStyles.cs: Fixed a warning.
3454 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3456 * ThemeVisualStyles.cs: Fixed warnings and formatted.
3458 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3460 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3461 implementation produces a better result.
3463 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3465 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3468 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3470 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3471 cannot be used from the ThemeEngine constructor.
3472 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3473 Application.VisualStylesEnabled because it does not work on X11.
3475 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
3477 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3478 that we did not always check for, as well as fixes to the IList
3479 implementations. [Fixes bug #402703]
3481 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3483 * IDeviceContext.cs: Added Dispose.
3485 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3487 * Control.cs: Added OnSizeInitializedOrChanged.
3488 * Form.cs: OnLoadInternal: Added a call to
3489 Control.OnSizeInitializedOrChanged.
3490 * InternalWindowManager.cs:
3491 * HandleTitleBarMouseMove: No longer invalidates the parent window.
3492 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3493 * TitleButton: Added Entered.
3494 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3495 * MdiWindowManager.cs:
3496 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3497 move over the maximized title buttons causes a change.
3498 * IsActive: Can now be called before the window is added to a MDI parent.
3499 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3500 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3501 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3502 * ThemeWin32Classic.cs:
3503 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3504 * DrawTitleButton takes a new form parameter.
3505 * Added ManagedWindowTitleButtonHasHotElementStyle,
3506 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3508 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3510 * ThemeEngine.cs: ThemeVisualStyles is now selected if
3511 Application.EnableVisualStyles has been called, even if the current system
3512 configuration does not support rendering with Visual Styles.
3513 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3514 Styles should not be used.
3516 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
3518 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
3519 ComboBox in FormsTest.
3521 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
3523 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
3524 for fixed toolwindows.
3526 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
3528 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3530 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3532 * Control.cs: CreateControl just returns if the Control is diposed
3533 and doesn't throw ObjectDisposedException.
3536 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3538 * Control.cs: Do not create the control if the parent isn't created
3539 yet, e.g in the case of a parented form on which .Show is called.
3540 It will be created when the parent is made visible/created.
3543 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3545 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
3546 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3549 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3551 * Form.cs: When disposed set owner to null. Improves #402446.
3553 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3555 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
3556 use children's PreferredSize if in AutoSize mode and ExplicitBounds
3558 * Form.cs: Take the Padding into account for the PreferredSize.
3561 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3563 * TabControl.cs: Since we don't support more than one direction in
3564 TabControl rows alignment (this is, the row becomes the
3565 bottom row when selected), make Direction return always 1. This way
3566 the layout doesn't get confused about a bad calculation.
3569 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3571 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
3572 so that the wparam is properly set.
3573 Fixes form moving in the test case in bug 402446.
3575 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
3577 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3578 the full tree instead of nothing. [Improves bug #406584]
3580 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3582 * ThemeWin32Classic.cs: Adjusted minimized window painting.
3584 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3586 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3589 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
3591 * TreeView.cs: Add a null check when using CollapseAll on an
3592 empty tree. [Fixes bug #406449]
3594 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3596 * Form.cs: Make OnMenuComplete internal so we can call it.
3597 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3600 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3602 * TabControl.cs: Handle Up and Down keys when TabControl is in
3606 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3608 * TabControl.cs: Invalidate when we remove a tab. Guard against
3609 an AOORE when trying to remove a tabpage that is not owned by the
3613 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3615 * ScrollBar.cs: Change the LargeChange calculation to be correct.
3616 Ensure we are using LargeChange instead of large_change so we our
3617 calculations are correct.
3620 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3622 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3623 we need to ensure the ColumnCount/RowCount gets set.
3626 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3628 * ListBox.cs: When handling item navigation, if selection mode is
3629 None, call EnsureVisible, since scrolling is normally handled by
3630 selection, that we are not calling in this case.
3633 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3635 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3636 a null check to our focus walking code. [Fixes bug #394332]
3638 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
3640 * ComboBox.cs: Case missed in bug 379596 "Support item
3641 navigation by entering text": On _close_ drop-down select
3642 the first item matching the text in the textbox. [Fixes bug #397265]
3644 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3646 * DataGridView.cs: Fix a crash when sorting by column headers,
3647 mentioned in bug #404841. Remove some dead switch cases.
3649 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3652 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
3653 uses the AutoComplete support in the internal TextBox. Also TextBox
3654 can store a reference to ComboBox, in case AutoCompleteSource is set
3655 to ListItems (this is, ComboBox's items, and we don't want to pass an
3656 additional collection).
3658 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3660 * ListViewItem.cs: Restore the initial value of bounds rect to
3661 Rectangle.Empty, and is this value for Layout detection in virtual
3662 mode. Fixes the tests.
3664 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
3666 * XPlatUI.cs: Remove references to "new" X11 backend.
3668 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3670 * Control.cs: Add an internal virtual OnDragDropEnd method
3671 to allow controls such as ListBox, which depend on a sequence
3672 of MouseDown+Move+End events, to handle the lack of a MouseUp
3673 when a DnD operation is started in MouseDown.
3674 * ListBox.cs: If a DnD operation is started in MouseDown we won't
3675 get a MouseUp, so reset our state whenever a DnD operation ends.
3677 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
3679 * PropertyGrid.cs: Clear the root griditem first thing when
3680 new object/s is/are selected. Fixes some rare cases where
3681 the View will get a paint request and won't know that the
3682 grid is in the process of repopulating.
3684 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3686 * XplatUIX11.cs, InternalWindowManager.cs:
3687 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
3688 doesn't automagically update the FormBorderStyle, so we must
3689 double check the CreateParams explicitly to determine if the
3690 window is a toolwindow.
3691 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
3692 instead of doing custom checks.
3694 Fixes toolwindows for the test case in bug #402446
3696 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3698 * Control.cs: Visibility of the control should be false
3699 when the handle is destroyed in WmDestroy and not immediately
3700 in Dispose(). This is effectively where the disposing process
3701 ends even though the control is marked as Disposed immediately
3702 after calling Dispose().
3705 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3707 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
3708 when the textbox gets focus.
3711 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
3713 * PropertyGridTextBox.cs, PropertyGridView.cs:
3714 - Alt + Down should show the drop down editor.
3715 - Focus the editor when showing it
3718 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
3720 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
3721 that are not the first panel.
3722 * StatusBar.cs: Ensure that the X coordinate of panels is always
3723 stored. Fix IList implementation of StatusBarPanelCollection to
3724 call the regular methods.
3725 [Fixes bug #403599, #402165]
3727 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
3729 * ThemeWin32Classic.cs: Fix position calculation for centered
3730 text on status bar panels. [Fixes bug #402165]
3732 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3734 * Splitter.cs: Fix Splitter to:
3735 - Work for arbitrary splitter size
3736 - Handle MinSize and MinExtra properly
3737 - Get rid of absolute positioning during drag and use relative
3738 - Multiple other fixes
3741 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
3743 * Cursor.cs: Show shouldn't hide the cursor.
3745 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3747 * ListViewItem.cs: When invalidating, add some extra space to bounds,
3748 since focus rectangle and selection can add some space and need to
3749 take into account those small offsets - specially in Details view.
3750 * ListView.cs: Instead of invalidate using item Bounds directly, call
3751 item.Invalidate, to have the code centralized.
3752 Fixes focused/selection garbage when selecting and deselecting items
3755 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3757 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
3758 mode we can check whether we have to force a Layout or not, and can
3759 cache based on this, instead of avoiding caching all the the time. Do
3760 this check in GetBounds and TextBounds.
3761 Fixes selection in Details view.
3763 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3765 * ListView.cs: Make HeaderControl internal, thus the theme engine can
3766 get its *real* height instead of trying to infere it.
3767 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
3768 get the position of them, since it's in general a bad idea in general,
3769 and because we can't do that in virtual mode. Instead get the first
3770 visible item as well as item height, and draw them.
3773 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
3775 * ToolStripSplitButton.cs: We can't add in extra width if
3776 the button is not AutoSize. [Fixes bug #401279]
3778 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
3780 * PaddingConverter.cs:
3781 - Implement conversion to InstanceDescriptor
3782 - Handle "All" in CreateInstance by using the supplied
3783 ITypeDescriptorContext.
3784 [Fixes bugs #396076 and #396078]
3786 Patch by Andy Hume <andyhume32@yahoo.co.uk>
3787 Code contributed under MIT/X11 license.
3789 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
3791 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
3793 Add Category attributes.
3794 Code is contributed under the MIT/X11 license.
3796 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
3799 - Fix a NRE when unparenting a form.
3800 - Do not recreate or destroy a parented form when
3803 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3805 * TextBox.cs: Implement basic support for AutComplete with custom
3808 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
3810 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
3811 DropDownButtonBounds should be from the origin of the button, not the
3812 ToolStrip. [Fixes bug #401279]
3814 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
3816 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
3817 running gtk_init_check. This prevents GAIL from loading
3818 unnecessarily, which was breaking UIA support. Initial fix for bug
3820 * Application.cs: Add UIA support to Winforms. New static constructor
3821 uses reflection to initialize UIAutomationWinforms assembly. Added
3822 PreRun event so UIA can initialize before the mainloop starts, and
3823 FormAdded event so UIA can provide a11y support for new Forms in an
3826 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
3828 * DataGridView.cs: When binding to a dataset, subscribe to table
3829 and column change events. Unsubscribe to these when we clear bindings.
3832 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
3834 [DataGrid drawing refactory]
3836 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
3838 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
3839 must be handle by Theme, now it call DataGridPaintColumnHeader.
3841 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
3842 test cases must be also fixed because it checks for wrong size.
3844 * ThemeWin32Classic.cs:
3845 - Draw the bottom line of grid caption.
3846 - Prevent to draw caption text when it is empty.
3847 - Use CPDrawBorder3D for 3D efects to simplify code.
3848 - Uses 3D (when not flat) to paint corner shared between row and column
3850 - Fix header drawing issues on win32, now borders are drawing.
3851 - Fix column header paint issues to mimic win32.
3852 - Adjust header drawing for last column, like first one it must be draw
3854 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
3856 - DataGridPaintColumnHeader created to draw column headers, it also
3857 paint stuff right on Win32.
3858 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
3862 - DataGridPaintRowHeaderStar method added.
3863 - DataGridPaintColumnHeader method added.
3865 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
3867 * Control.cs: Don't reset to Dock style layout if DockStyle is
3868 set to none. [Fixes bug #399316]
3870 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
3872 * Win32DnD.cs: Fix the check for control not equal null.
3873 Fixes bug #341420 and #381886.
3875 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3877 * DataGridViewRowCollection.cs: Update the indexes of rows after
3878 one has been removed.
3879 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
3880 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
3881 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
3882 rows for the Rows collection, or deleting rows from the bound DataSet.
3884 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
3886 * DataGridView.cs: Listen to a DataSet's changed event even
3887 when autogeneratecolumns is false. Refactor the changed event's
3888 add row code to use the same as the existing add row code.
3891 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3893 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
3894 much any time the caret moves and there is text, not just when
3895 the selection changes as one would think.
3896 * RichTextBox.cs: Override RaiseSelectionChanged and fire
3900 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3902 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
3903 instead of trying to duplicate the code.
3904 * ListBox.cs: Make method internal so we can send keyboard events.
3907 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3909 * TextBoxBase.cs: When pasting and checking the max length,
3910 subtract the selected text length (the text we will be replacing) from
3911 the document length.
3912 * TextControl.cs: Ensure every character insertion is reflected in
3913 charcount, so max length will work properly.
3916 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3918 * ListBox.cs: Ensure scrollbars are updated when a single
3919 column listbox with an already set top-index is created.
3922 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
3924 * FontDialog.cs: Typing in the font/style textboxes should search
3925 the list boxes case-insensitively. [Fixes bug #398343]
3927 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
3929 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
3930 widths of icon and buttons instead of hard coded values.
3932 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3934 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
3935 as well as generating a SelectedIndexChanged event, just like .Net does
3939 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3941 * ListBox.cs: When navigating items visually, use FocusedItem as the
3942 reference point instead of SelectedIndex, since even in
3943 SelectionMode.None we need to support navigation, and in that case we
3944 just can't use SelectedIndex.
3945 Fixes part of #398345.
3947 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
3949 * Control.cs: Make a SetBoundsInternal that avoids the new
3951 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
3952 SetBoundsInternal instead of SetBoundsCoreInternal.
3954 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
3956 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
3957 SetBounds for the scrollbars.
3959 2008-06-10 Andreia Gaita <avidigal@novell.com>
3961 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
3962 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
3963 OnMouseMove, OnMouseOver, OnMouseUp
3964 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
3965 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
3966 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
3967 to the WebControl object to pass to new collection objects
3968 * HtmlHistory.cs: Implement support for individual window histories.
3969 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
3970 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
3971 GotFocus, LostFocus, OnLoad, OnUnload
3972 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
3974 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
3975 security level changes and context menu event support.
3977 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3979 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
3980 as happens with Esc, patch my Andy Hume.
3983 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3985 * MdiWindowManager.cs: DrawMaximizedButtons now uses
3986 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
3987 * Theme.cs: Made MenuButtonSize platform dependent. Added
3988 ManagedWindowButtonSize.
3989 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
3990 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
3992 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3994 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
3995 Added support for rendering with VisualStyles.
3997 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
3999 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4000 support for rendering the border with VisualStyles.
4002 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4004 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4005 the icon is not shown.
4006 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4009 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4011 * InternalWindowManager.cs: Draw minimized windows even if they don't have
4014 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
4016 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4018 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
4020 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4023 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4025 * ComboBox.cs: When snaping height -because of IntegralHeight set to
4026 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4027 if the requested height leaves the listbox area with *less* than the
4028 required are to see one item. We were setting it to PreferredHeight
4029 even for values matching the height for a single item.
4032 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
4034 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4036 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
4038 * DataGridViewCell.cs: Use property instead of field.
4040 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4042 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4045 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4047 * Theme.cs: Added #region around the managed window code. Made the managed
4048 window methods abstract.
4049 * ThemeWin32Classic.cs: Added #region around the managed window code.
4051 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4053 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4055 * ThemeWin32Classic.cs: Removed HasBorders checks in
4056 DrawManagedWindowDecorations.
4058 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4060 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4061 Extracted ManagedWindowGetTitleBarIconArea.
4063 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4065 * DataGridViewCellStyle.cs: Don't clone the font.
4067 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4069 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4071 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4073 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4074 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4077 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4079 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4080 Use Format/FormatProvider before trying converters.
4081 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4082 are 'set'. Change constructor to not use ApplyStyle since it wants
4083 everything applied. Clone the Font.
4084 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4085 ApplyStyle the rest.
4087 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4089 * ListView.cs: We need to calculate the scrollbars even if the handle
4090 hasn't been created - this is needed when methods using scrollbars
4091 info, such EnsureVisible, are called before control has been created.
4094 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
4096 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4097 only if the elements are defined.
4099 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4101 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4102 section. Also, when setting bounds, snap height as well as save the
4103 requested height if Dock has any value affecting the height: Left,
4104 Right and Bottom - important if using IntegralHeight as true.
4106 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4108 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4109 passed to SetBounds to reflect the new adjusted height (Integral-wise),
4110 instead of doing that only in our SetBoundsCore override, since the
4111 bounds cached can be the same as saved one and we could not get the
4115 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4117 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4118 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4119 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4120 ToolWindowCaptionButtonSize.
4121 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4123 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4125 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4127 * Theme.cs: Made DoubleClickTime plaform dependent.
4129 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4131 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4132 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4133 ToolWindowCaptionHeight.
4135 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4137 * InternalWindowManager.cs: The adjustment to ensure positive client area
4138 sizes is now platform dependent (disabled on Windows).
4139 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4140 RequiresPositiveClientAreaSize.
4142 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4144 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4146 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4148 * InternalWindowManager.cs: Changed IconicSize to use
4149 SystemInformation.MinimizedWindowSize.
4150 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4151 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4153 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4155 * ComboBox.cs: If the combobox is anchored both on top and bottom,
4156 adjust height if IntegralHeight is true when calling SetBoundsCore (as
4157 likely the height was modified even if Height wasn't specified in
4158 BoundsSpecified parameter).
4159 Fixes part of #396297.
4161 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4163 * InternalWindowsManager.cs: Changed minimum window size while resizing to
4164 SystemInformation.MinWindowTrackSize.
4165 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4166 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4168 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4170 * MenuItem.cs: Fixed Dispose.
4172 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4174 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4175 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4176 EnteredHeaderCell, PressedHeaderCell: Added.
4177 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4178 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4179 theme a chance to override default painting.
4180 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4181 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4182 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4183 ListView and DataGridView header rendering.
4185 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4187 * RichTextBox.cs: GetPositionFromCharIndex should return the
4188 visual position of the character relative to the viewport.
4189 [Fixes part of bug #396664]
4191 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4193 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
4194 and not just for the existance of an UITypeEditor. In some cases
4195 there is an editor associated just to do PaintValue, but which
4196 doesn't actually support editing.
4199 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4201 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4202 if needed, instead of 0 - this should help us in the corner case where
4203 we have more than one item but we are only partially showing 1 item.
4204 Fixes part of #374713.
4206 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4208 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4209 control, return immediately if the any parent control's handle hasn't
4210 been created or isn't visible, as well as avoiding creating the parent
4211 Form if the handle hasn't been previously created.
4214 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4216 * TableLayoutPanel.cs: Use border sizes when calculating the
4217 panel's preferred size. [Fixes part of bug #396433]
4219 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4221 * SplitContainer.cs:
4222 - Fix SplitterDistance to update only if needed.
4223 - Make it force min and max validation.
4224 - Handle properly mouse moves outside the resizeable area.
4227 2008-06-02 Andreia Gaita <avidigal@novell.com>
4229 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4230 (which also suppresses all popup dialogs). Throw NotSupported
4231 exceptions for activex getters/setters.
4232 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4233 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4234 StatusText, Version, GoSearch
4235 * HtmlDocument.cs: Add DocType support
4237 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
4239 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4242 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4244 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4246 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4248 * TableLayoutPanel.cs: When calculating preferred size, use the
4249 actual number of columns and rows, not what the user set them to.
4252 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
4254 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4257 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4259 * XplatUIX11.cs: When detecting areas obscured in a control by other
4260 toplevel windows while scrolling, return if the control hasn't a
4264 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4266 * XplatUIX11.cs: Properly detect the visible area of a control being
4267 scrolled (obscured by other winforms controls and any X toplevel
4268 windows), to mark as invalid the requested area to be scrolled that
4269 isn't visible and thus can't be copied.
4272 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4274 * ListBox.cs: Compute the precise amount to vertically scroll when
4275 using DrawMode.OwnerDrawVariable.
4276 Patch by jkeymer (j.keymer@gmx.net).
4278 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4280 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
4281 to avoid setting an invalid value for the verticall scrollbar
4282 when navigating items. And, duh, also remove my silly debug messages
4283 from previous commits.
4286 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4288 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
4289 make it MS compatible.
4291 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4293 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
4294 - Allow the editing of entries even if their parent is read-only.
4295 - Do not render expandable properties read-only.
4296 - Refactor expansion checks form PropertyGrid into PropertyGrid.
4298 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
4300 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4301 support for the hover style.
4303 2008-05-29 Andreia Gaita <avidigal@novell.com>
4305 * ContainerControl.cs: Check for null dead-end when traversing the tree
4308 [Fixes #394332, patch by Ernesto Carrea]
4310 2008-05-29 Geoff Norton <gnorton@novell.com>
4312 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4313 constant that it is. Fixes #393981
4315 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4317 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4318 that the user probably doesn't want to set this.
4320 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4322 * ThemeWin32Classic.cs: Don't let the text size be bigger than
4323 the control size for CheckBox/RadioBox.
4324 [Fixes part of bug #394645]
4326 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4328 * PropertyGrid.cs: Update the state of the sorting buttons in
4329 the toolbar if PropertySort is set programatically.
4331 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4333 * GridItemCollection.cs: Add multiple items with conflicting names
4334 support and also preserve name ordering.
4337 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4339 * GridItemCollection.cs: Revert my multiple items with same
4342 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4344 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4346 Fixes part of #393908.
4348 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
4350 * ToolStripDrowDown.cs: When using the Show () methods that have a
4351 Control parameter, set the menu owner to that Control.
4354 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
4356 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4359 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4361 * GridItemCollection.cs: Refactor to support multiple items with the
4365 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
4367 * Control.cs: The 2.0 check for illegal cross thread calls in
4368 Control.Handle were throwing an exception when we were getting
4369 the Handle in order to invoke correctly. Created a private
4370 version that does not contain this check.
4373 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4375 * PropertyGrid.cs: Respect DefaultTabType.
4377 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4379 * ListView.cs: SPACE selects an item.
4382 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4384 * ListView.cs: Reset the search string whenever the items are
4388 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4390 * ListControl.cs: For the first added item PositionChanged is fired
4391 _before_ ItemChanged, which leave us in a temporary invalid state - so
4392 we need to set the selected index from ItemChanged handler *if* we
4393 know that the first item has just been added *and* the items have been
4394 actually added to the ListControl.
4397 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4399 * TabControl.cs: Only clicks with the left button should be
4403 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4407 * TextBox.cs: Expose an internal method in TextBox to restore the
4408 original context menu, and call it from ComboBox to re-use it in the
4409 combobox containing the file name in FileDialog.cs.
4410 Fixes part of #393775.
4412 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4414 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4417 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4419 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4422 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4424 * ComboBox.cs: Minor correction to previous patch: PageDown should
4425 also *try* to move by one item if the computed offset is negative,
4426 just like the PageUp case.
4428 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4430 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4431 should be done for at least 1 item, and not stay at the same item.
4432 Fixes part of #374713.
4434 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
4436 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4437 directories. [Fixes bug #393931]
4439 2008-05-22 Andreia Gaita <avidigal@novell.com>
4441 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4442 Don't fire events until the initial about:blank page has finished
4443 loading. Clean up events.
4445 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4447 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4448 FocusIn() too. This should fix the issue on switching
4451 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4453 * X11Keyboard.cs : set XIM font size to somewhat reasonable
4454 number (ideally the input textbox size, but that could be
4457 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
4459 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4460 the ToolStripItem's TextChanged. [Fixes bug #393597]
4462 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4464 * TabControl.cs: When invalidating in SelectedIndex and we need to
4465 inflate to take into account the border of the tabs, make sure that
4466 the invalidated rect doesn't overflow the control bounds, since that
4467 would avoid updating at all.
4469 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4471 * TabControl.cs: Don't substract scroller width from the row width,
4472 since we need to take into account the total width of the control when
4473 calculating the position of the tabs. This avoids showing scroller
4474 when it is actually not needed.
4475 Fixes part of #322325.
4477 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4479 * ThemeVisualStyles.cs: Added support for TextBoxBase.
4481 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4483 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4484 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4486 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4488 * DataGridView.cs: Only paint the top left header cell if there
4491 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4493 * DataGridView.cs: When binding to a BindingSource, get the underlying
4494 list to bind to. [Fixes bug #345483]
4496 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4498 * DataGridView.cs: Do not bind to collection properties.
4501 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4503 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4505 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4507 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4510 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4512 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4514 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4516 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4519 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4521 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4523 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4525 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4528 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4530 * TabControl.cs: Extended to handle the hot style.
4532 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4534 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4535 Extended UpDownBase code to handle hot and disabled styles.
4537 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4539 * DataGridView.cs: Handle databinding to generic list type things.
4542 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4544 * DataGridViewCellCollection.cs: Add a method to find the cell
4545 with the given DataPropertyName.
4546 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4547 * DataGridViewColumnCollection.cs: Add a method to clear all
4548 autogenerated columns.
4549 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4553 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4555 * DataGridView.cs: Don't try to update the RowTemplate with
4556 a null CellTemplate.
4558 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4560 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4561 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4562 * DataGridView.cs: Lots of fixes/enhancements to databinding to
4565 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4567 * Control.cs: Remove invalidating implicit child controls when
4568 control is invalidated. It was causing too many redraws on
4569 controls with implicit scrollbars.
4570 * ListView.cs: Listen to the Invalidated event and invalidate
4573 2008-05-20 Andreia Gaita <avidigal@novell.com>
4575 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4576 * HtmlDocument.cs: Check for nulls
4578 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4580 * Control.cs: In ControlCollection.RemoveInternal, remove the
4581 internal control before calling PerformLayout and OnControlRemoved,
4582 which was leaving us in an invalid state and causing a X error (bad
4583 match). Observe that Remove () call has the same order.
4584 Fixes an X error changing ComboBoxStyle.DropDownStyle.
4586 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4588 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4589 being fired if ControlStyles.UserPaint style is activated.
4592 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4594 * GridEntry.cs: Don't be so strict when setting the value -
4595 do not check if what we set is what we get.
4598 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4600 * XplatUIX11.cs: If there are no timers timeout should be 0
4603 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4605 * Control.cs: As a followup to invalidating implicit children when
4606 a control is invalidated, only invalidate them if they are in the
4609 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4611 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4613 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4615 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4617 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4619 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4620 * XplatUIWin32.cs: Made Win32DeleteObject public.
4622 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4624 * GridEntry.cs: Determine HasDefaultValue more strictly by using
4625 PropertyDescriptor.ShouldSerializeValue.
4628 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4630 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4631 in the classic theme.
4633 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4635 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4637 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4638 ScrollBarHasPressedThumbStyle.
4640 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4642 * TextRenderer.cs: Included some methods in the 1.1 profile.
4644 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4646 * Control.cs: When we make a control visible, it may have been
4647 previously visible and while it wasn't visible, the z-order of
4648 things may have been shuffled, so the control needs to have its
4649 z-order updated just in case. [Fixes bug #391518]
4651 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4653 * ThemeVisualStyles.cs: Added support for GroupBox.
4655 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4657 * GroupBoxRenderer.cs: Included in the 1.1 profile.
4659 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
4661 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
4662 bug #389996; XSelectInput() behaved as mouse handler robber,
4663 so remove extra call to it.
4665 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4667 * Control.cs: Simplify ControlCollection.Contains method.
4669 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4671 * DataGridViewRow.cs: Implement GetPreferredSize.
4673 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4675 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
4677 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
4679 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
4680 painting and edit control fixes.
4682 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4684 * DataGridView.cs, DataGridViewCell.cs: Work around some external
4685 checks to make sure we are in an actual row/col for top left header cell.
4686 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
4688 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4690 * Control.cs: Use long instead of int when handling WParam from
4691 mousewheel scrolling. Int was overflowing on Win64.
4693 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4695 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
4696 flow panel without scrolling first, and then calculate the
4697 scrolling based on the new layout. [Fixes bug #390149]
4699 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
4701 * ListBox.cs: Invalidate after scrolling up when selected index
4702 changes. [Fixes bug #390151]
4704 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
4707 set, default height to 150. I tried first with DefaultSize, but this
4708 is not generating a SetBoundsCore call before handle creation time, so
4709 we can take it into account. This is just what .net does.
4711 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4713 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
4714 as it broke some stuff. Calberto is filing a bug for eno to
4717 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4719 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
4720 to 0 is the current value is -1, and if style is not Simple, just
4721 return, like .net does.
4722 Fixes part of #374713.
4724 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
4726 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
4727 progress bar stuffs, use doubles instead of ints to prevent
4728 overflow. [Fixes bug #389798]
4730 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4732 * XplatUIX11.cs, X11Keyboard.cs :
4733 Significant refactoring on XIM support. Now IM engine UI
4734 should show up, at mostly-correct preedit position.
4735 - Eliminated use of FocusWindow, as it is never mapped
4736 and hence blocks correct preedit position. XIC is now
4737 created per window, and it must be destroyed too when
4738 the window is destroyed.
4739 - WM_QUIT messages should not be filtered even when hwnd
4740 is zombie. Filtering it could cause endless loop.
4741 - Preedit position must move only when the window is alive.
4742 - Make it IDisposable and make sure to release XIM/XICs.
4744 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
4746 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
4747 XplatUIX11.cs, XplatUIWin32.cs :
4748 fix for bug #325033 and #387693;
4749 - WM_QUIT should not be sent when no running application
4751 - SetTimer/KillTimer (especially on win32) should be
4752 invoked for the window that the timer is/will_be attached.
4753 - There could be unattached timers to a window when it's
4754 started. For those timers, hold pending timers and when
4755 a window is mapped, attach them to it.
4756 - WaitForHwndMessage() could run into loop when
4757 WM_SHOWWINDOW is handled before this method is called.
4758 So, strictly check wm_showwindow state.
4759 - Tick handler should not be invoked while one Tick handler
4760 call is still running (introduced Busy state).
4762 2008-05-13 Andreia Gaita <avidigal@novell.com>
4764 * WebBrowserBase.cs: Override Internal alternative methods for
4765 SetBoundsCore and OnResize instead of the protected ones.
4766 * Control.cs: Move SetBoundsCore and OnResize implementations to
4767 SetBoundsCoreInternal and OnResizeInternal, so they can be
4768 overriden internally (WebBrowserBase needs to catch them but can't
4769 override the protected methods without api compat problems)
4771 2008-05-13 Andreia Gaita <avidigal@novell.com>
4773 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
4775 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4778 * ListView.cs: Remove debug messages.
4780 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4782 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
4783 area is empty. Also calculate scrollbars in Simple mode based in area
4784 height and total number of items, not in MaxDropDownItems.
4785 Fixes part of #371991.
4787 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4789 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
4791 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4793 * BindingSource.cs: GetListSortDescription is not public.
4795 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4797 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
4799 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4801 * HtmlElement.cs: Fix parameter names to match MS.
4802 * HtmlWindowCollection.cs: Should not be sealed.
4804 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4806 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
4807 button, because the thumb button will not get drawn if the scrollbar
4808 is disabled. [Fixes bug #389262]
4810 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4812 * ListBox.cs: Handle End key for multi-column listboxen.
4815 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4817 * ListBox.cs: Fix algorithm to determine which column our item is in.
4820 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4822 * ListBox.cs: Invalidate when the listbox is resized.
4825 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4827 * ListBox.cs: There is always at least one row in the ListBox (if
4828 we are doing these calculations.) [Fixes bug #389253]
4830 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
4832 * ListBox.cs: There is always at least one column in the ListBox.
4835 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4837 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
4838 ensure in Simple mode that the height is exactly the requested one.
4839 Also add the ComboBoxListControl to the controls collection in Simple
4840 mode even if handle hasn't been created.
4841 Fixes part of #371991.
4843 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4845 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
4846 our ComboBox owner instead of giving it back to the previous control (
4847 as done in other controls). Also remove the empty override of Select
4848 method, since we want to be selected *and* give focus to our owner.
4849 This should let the user do keys-navigation in Simple mode.
4851 2008-05-10 Geoff Norton <gnorton@novell.com>
4853 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4854 problems with rapid scrolling of treeviews. Fixes #381084
4856 2008-05-10 Geoff Norton <gnorton@novell.com>
4858 * XplatUICarbon.cs: Deactivate the active window before
4859 activating the desired window. Completes fixing #386504
4861 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4863 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
4864 SmallChange to the item size width plus the padding, to match .net.
4866 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4868 * FileDialog.cs: Apply the custom filter typed by the user in the file
4869 name combobox as much as possible while navigating in the file dialog.
4872 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4874 * Binding.cs: Actually use NullValue if the retrieved value of
4875 data source is null or DBNull. Makes a test pass.
4877 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
4879 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
4880 * MimeIcon.cs: Provide a way to get icons from resources.
4882 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4884 * Binding.cs: When the value retrieved from the control to be assigned
4885 to the data source is null, actually use the 2.0 DataSourceNullValue
4886 value. Make pass a data binding test.
4888 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4890 * Control.cs: We need to invalidate implicit children even when
4891 invalidate is called with invalidatechildren = false. (Implicit
4892 children are really part of the parent.)
4893 * ListView.cs: Double-buffer internal child controls for less
4895 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
4896 owner ListView subitems for greatly increased performance.
4899 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
4901 * FileDialog.cs: When the user types a wildcard character in the
4902 filename combobox, update the contents of the folder using the text as
4904 Fixes part of #385261.
4906 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4908 * ListBox.cs: Various fixes for MultiColumn listboxen.
4911 2008-05-08 Andreia Gaita <avidigal@novell.com>
4913 * HtmlElement.cs: Implement Style property
4915 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
4917 * ListBox.cs: Respect checkboxes when measuring item size.
4918 * ThemeWin32Classis.cs: When drawing list items, don't draw
4919 text outside of the item's bounds to prevent overlapping.
4920 (.Net actually overlaps, but that's just silly.)
4923 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
4925 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
4926 Gert Driesen. Fixes bug #324830.
4928 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
4930 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
4933 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4935 * BindingSource.cs: When calling IsSynchronized, return the value of
4936 the related IList list.
4938 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4940 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
4943 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4945 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
4946 navigation to scroll the grid if the current cell is not visible.
4948 2008-05-07 Andreia Gaita <avidigal@novell.com>
4950 * HtmlElement.cs: Implement TabIndex
4952 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
4954 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
4955 properties, even when there are no items.
4958 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
4960 * NativeWindow.cs: Add support for multiple handles per window.
4961 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
4962 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
4963 directly - use FromHandle instead.
4966 2008-05-07 Andreia Gaita <avidigal@novell.com>
4968 * HtmlElement.cs: Implement InnerHTML setter
4970 2008-05-07 Andreia Gaita <avidigal@novell.com>
4972 * HtmlDocument.cs: Implement Focused
4974 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4976 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
4977 methods, as well as add messages to the exceptions.
4979 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4981 * BindingSource.cs: Setting DataSource should only reset DataMember if
4982 the previous value was null (make pass a not working test).
4984 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4986 * BindingSource.cs: When EndInit call is postponed and is called until
4987 DataSource.EndInit is called, remove the handler for data source.
4989 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4991 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
4993 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
4995 * ToolStripManager.cs: Store references to toolstrips as
4996 weak references so they do not prevent forms from getting collected.
4999 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5001 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5002 on .Net. So do the same thing in WndProc.
5004 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5006 * TrackBar.cs: Commit patch from Andy Hume that corrects
5007 the clickable areas to better match .Net.
5010 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5012 * TrackBar.cs: Commit patch from Andy Hume that adds the
5013 ResizeRedraw control flag so the track bar repaints itself
5014 when it is resized. [Fixes bug #387072]
5016 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5018 * TrackBar.cs: Commit patch from Andy Hume that adds better
5019 support for keyboard navigation when the TrackBar is vertical.
5022 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5024 * BindingSource.cs: Implement ISupportInitializeNotification support.
5026 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
5028 * ThemeVisualStyles.cs: Added support for ToolBar.
5030 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
5032 * ToolBar.cs: Made the Vertical property internal.
5034 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5036 * ThemeVisualStyles.cs: Added support for TrackBar.
5038 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5040 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5041 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5042 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5043 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5044 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5045 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5047 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5049 * ThemeVisualStyles.cs: Added support for UpDownBase.
5051 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5053 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5054 Extracted Theme.UpDownBaseDrawButton.
5056 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
5058 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5059 removed from the static toolstrips collection in ToolStripManager
5060 when they are disposed. Provides a workaround for bug #386483.
5062 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
5064 * GridEntry.cs: Read-only properties with Editor with
5065 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5068 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
5070 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5071 the menu key and there are no items on the menu.
5074 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
5076 * Control.cs: Avoid calling ToString on a string.
5077 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5078 * GroupBox.cs: In FlatStyle property throw, not just create, the
5079 exception. Avoid calling ToString on a string.
5080 * ProgressBar.cs: Avoid calling ToString on a string.
5081 * ScrollBar.cs: Avoid calling ToString on a string.
5082 [All issues were found using Gendarme]
5084 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5086 * NotifyIcon.cs: Prevent click events to be trigger after double click
5087 events. Fixes remaining issues of bug #324832.
5089 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5091 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5092 to mimic win32 behavior. Partially fixes bug #324832.
5094 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5096 * BindingSource.cs: Implement Find methods.
5098 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5100 * BindingSource.cs: Implement Sort, ApplySort overloads, and
5103 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5105 * ListBindingHelper.cs: When calling GetListItemProperties and the
5106 passed object is ITypedList, return the result of
5107 ITypedList.GetItemProperties instead.
5109 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5111 * LinkLabel.cs: Set default value of name on constructor of Link class
5112 only for 2.0 profile.
5114 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5116 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5117 Fixes remaining issues of bug #346154.
5119 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5121 * LinkLabel.cs: Set a default value for name on internal contructor of
5122 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5124 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5126 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5127 and refer all instances to owner.links. Partially fixes #346154.
5129 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5131 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
5132 length equal zero. Also called CreateLinkPieces in constructor. It fixes
5133 the LinkLabel test 'TestLinkArea'.
5135 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5137 * Form.cs: Remove menu before close form to prevent form to be not gaced.
5140 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5142 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5145 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5147 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5150 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5152 * MenuAPI.cs: Remove unused ProcessCmdKey method.
5154 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5156 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
5159 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5161 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5164 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5166 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5167 sometimes we open a conext menu on mouse down of some controls and the mouse
5168 up is dispatched to menu and dont need to. It fix remaining issues of
5169 #363711 and other problems related to menu mouse click events.
5171 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5173 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5174 some var names to better fit changes, now we have month_menu and today_menu
5175 vars. Fixes bug #363711.
5177 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5179 * MonthCalendar.cs: Handle every right mouse click to open context menu,
5180 right now the default month menu but it will be change to have "Go to today"
5183 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5185 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5187 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5189 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5191 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5193 * ThemeVisualStyles.cs: Added support for TreeView.
5195 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5197 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5198 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5200 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5202 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5204 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5206 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5207 Implement 2.0 SP1 stuffs.
5209 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5211 * FileDialog.cs: Implement 2.0 SP1 stuffs.
5213 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5215 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5216 Implement CanEnableIme property. (2.0 SP1)
5218 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5220 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5223 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5225 * Control.cs: Provide an internal way for a control to override
5226 the setting of Height.
5227 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5228 set height using new method.
5230 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5232 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5234 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5236 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5237 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5239 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5241 * ThemeVisualStyles.cs: Added support for StatusBar.
5243 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5245 * DataObject.cs: Add the other IDataObject interface.
5247 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5249 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5250 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5252 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5254 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5255 * ListView.cs: Hide non-public API.
5256 * MaskedTextBox.cs: Remove extra attribute.
5258 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5260 * DataGridViewImageCell.cs: Use formatted value instead of value
5261 to calculate preferred size.
5263 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5265 * ListBox.cs: Move some initialization around so that selected_indices
5266 is not accessed before it is created.
5268 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5270 * InputLanguageCollection.cs: Implement the collection better.
5273 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5275 * ToolStripDropDownItem.cs: Get the correct event object for
5276 DropDownItemClicked.
5277 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5280 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5282 * DataGridViewRowCollection.cs: We don't currently support shared
5283 rows. Should fix test failures caused by previous commit.
5285 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5287 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5288 datagridview gets set. Only paint cells in visible columns.
5289 * DataGridViewCell.cs: Draw border after cell content.
5290 * DataGridView.cs: Invalidate after setting some properties. Only
5291 use visible columns. Fit hit test bug with areas in the col/row header
5292 area but not in a row or col. Implement UpdateCell/Row methods.
5294 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5296 * DataGridViewElement.cs: Don't throw NIEX.
5297 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5298 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5299 * DataGridViewCheckBoxColumn.cs: Implement ToString.
5300 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5301 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5302 if the user filled in the formatting Value, use it.
5304 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5306 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5309 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5311 * BindingSource.cs: Some corrections to Filter property, as well as
5312 setting it for our list when resetting it.
5314 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
5316 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5317 than the maximum. Fixes reopened bug #384182.
5319 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5321 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5322 Fixes remaining issues of #367490.
5324 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5326 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
5327 SystemInformation.WorkingArea to get max_screen value.
5329 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5331 * BindingSource.cs: Implement Filter and RemoveFilter.
5333 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5335 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5337 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5339 * X11Dnd.cs: When trying to convert data and we know we started the
5340 dnd loop, don't try to use the cached data if the loop is not running,
5341 which means that the data has been resetted.
5344 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5346 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5349 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5351 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5352 it to drawn off screen edge. Fixes bug #367490.
5354 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5356 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5357 menu position to have only one assignment of Location var.
5359 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5361 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5362 for this patch. Fixes bug #384115.
5364 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5366 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5367 the same. If LargeChange is zero, set a minimum size for the scroll
5368 thumb grip. [Fixes bug #384182]
5370 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5372 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5375 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5377 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
5379 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5381 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5382 patch from Ernesto).
5384 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5386 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5388 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5390 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5392 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5394 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5396 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5398 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5400 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
5402 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5404 2008-04-27 Andreia Gaita <avidigal@novell.com>
5406 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5407 supposed to return a reference to an mshtml interface, which we
5409 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5410 reference to an mshtml interface, which we don't support). Code
5412 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5413 DomDocument getter (it's supposed to return a reference to an
5414 mshtml interface, which we don't support). Code formatting cleanup.
5416 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5418 * ListView.cs: Ouch, forgot to commit.
5420 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5423 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5425 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5427 * ListView.cs: When calculating box selection for virtual mode, don't
5428 look for intersection with item's text, but item bounds, since that
5429 would mean read ListViewItem's text for _every_ item, and that's
5430 something we just can't do in virtual mode (items are only requested
5433 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
5435 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5436 partial support for managed windows (based on the patch from Ernesto).
5438 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5440 * ListView.cs: When doing a key search use FindItemWithText method
5441 instead of doing the search by ourselves, this way we avoid
5442 duplicating the code and also we handle the special case for virtual
5443 mode. To achieve that make our private overload of FindItemWithText
5444 internal and also have a 'roundtrip' parameter.
5446 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5448 * ListView.cs: When doing the layout don't request the
5449 ListViewItem instance if we are in virtual mode (since we can't request it
5450 until the item is actully drawn).
5452 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5454 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
5457 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5459 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
5460 the patch from Ernesto).
5462 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5464 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5465 * ThemeVisualStyles.cs: Added.
5467 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5469 * IDeviceContext.cs: Added a missing using.
5471 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5473 * ButtonBase.cs: Made IsDefault protected internal.
5474 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5476 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5478 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5479 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5480 RadioButtonRenderer.cs: Included in the 1.1 profile.
5481 * IDeviceContext.cs: Added.
5482 * TextRenderer.cs: Included a member in the 1.1 profile.
5484 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5486 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5488 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5490 * ErrorProvider.cs: Make the error icons come after the control
5491 they refer to. It isn't the way the MS does it, but its better
5492 than what we were doing. See bug #368587.
5494 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5496 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5497 from Eric Albright that lazy loads the input language as ensures
5498 everything gets properly initialized. Fixes bug #373871.
5500 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5502 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5503 implicit mnemonics. [Fixes bug #383000]
5505 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507 * X11Dnd.cs: When canceling the operation, automatically restore the
5508 default cursor - normally the default cursor is restored when the
5509 mouse buttons are released, but we should be able to restore it even
5510 if the buttons are still pressed (for example, when pressing ESC to
5514 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5516 * X11Dnd.cs: When starting a new drad and drop operation, set control
5517 field to null, just as the other fields, to avoid calling any
5518 operation on a previous control. Also, when calling DndLeave on a
5519 control, set it to null, thus we don't fire that event multiple times
5523 2008-04-23 Geoff Norton <gnorton@novell.com>
5525 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5526 the whole_window object. Fixes #377084.
5528 2008-04-23 Andreia Gaita <avidigal@novell.com>
5530 * HtmlElement.cs: Implement RaiseEvent (event injection into the
5533 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
5535 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5537 2008-04-23 Andreia Gaita <avidigal@novell.com>
5539 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5542 2008-04-23 Andreia Gaita <avidigal@novell.com>
5544 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5547 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5549 * X11Dnd.cs: When the drop was cancelled, or could just not be
5550 performed, return DragDropEffect.None always (match .net).
5552 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5554 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5556 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5558 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5560 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5562 * DataGridView.cs: Add support for error icon tool tips.
5563 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5564 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5566 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
5568 * X11Structs.cs: Add mouse button masks enum.
5569 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
5570 WM_EXITSIZEMOVE only once at the beginning and at the end of the
5571 form resize/move operation instead of for each step of it.
5572 [Fixes bug #346529 for the x11 backend]
5574 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5576 * DataGridView*: Implement support for drawing error icons.
5578 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5580 * TreeView.cs: Make vbar and hbar internal.
5581 * TreeNode.cs: If collapsing the node removes one of the TreeView's
5582 scrollbars, invalidate the whole thing.
5585 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5587 * TreeView.cs: Calling Sort() sets Sorted = true.
5588 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5589 if the nodes need to be sorted.
5592 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
5594 * Form.cs: Fire SizeChanged for both when the form is minimized and
5596 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
5597 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5599 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5601 * ComboBox.cs: If the combobox is disabled, draw a disabled
5602 background before painting anything else.
5605 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5607 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5608 forget to send a Leave event to the target window - just as .net does
5609 when cancelling dnd operations.
5611 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5613 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5614 soon as possible - this happens when we send the drop message to the
5615 target window. This way we avoid firing any DragOver _after_ drop finished.
5618 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5620 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5621 * Form.cs: Handle form minimization as a special state, where size doesn't
5622 change, but we have to fire SizeChanged.
5623 [Fixes bug #325122 for the win32 and x11 backends]
5625 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5627 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
5628 if the handle is disabled.
5631 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5633 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
5634 for forms with FormBorderStyle.None.
5637 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5639 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
5641 [Fixes bug #346529 for the X11 backend]
5643 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5646 - Send a mouse Enter message after say dragging the mouse with a
5647 button down and then release it in another client.
5648 - Reset the cursor to prevent X11 from remembering it and setting it
5649 before the control gets WM_SETCURSOR.
5650 - Qeueue a mouse move after a mouse enter like win32.
5653 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5655 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
5656 It's sent when the form gets moved, resized, closed.
5657 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
5658 [Fixes bug #359193 for X11]
5660 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5662 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
5665 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
5667 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
5668 group. Fixes the 1.1 build.
5670 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5672 * ListView.cs: Use display indexes for selection in Details view, as
5673 well as do the proper layout based on display indexes for that view
5676 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5678 * ListView.cs: Focused item information is now stored as a display
5679 index, and display indexes are used all over the place for selection,
5680 instead of ListViewItem.Index values, which doesn't give us enough
5681 information to modify the selection in groups mode, and was broken.
5683 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
5685 * Control.cs: Do not fire MouseDown if validation of the control has
5687 * Form.cs: Validate the form before closing.
5688 [Fixes bugs #330501 and #353310]
5690 2008-04-18 Andreia Gaita <avidigal@novell.com>
5692 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
5693 CreateWebBrowserSiteBase implementations
5694 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
5695 Style and TabIndex setters
5697 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5699 * ListViewGroup.cs: When returning the actual item count, return the
5700 proper count for default group.
5703 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5706 * ListViewGroup.cs: When calculating groups layout, get the actual
5707 number of items per group, since groups added to the group BUT not
5708 added to the ListView are just ignored, and can cause some nasty
5709 exceptions because of the lack of synchronization. Also for
5710 ListViewGroup don't use lazy initialization for items, since we
5711 the common scenario is to use it always - and it helps us to refactor
5712 and clean the .ctor overloads.
5714 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5716 * ListView.cs: When adding an item to a ListViewItemCollection
5717 belonging to a group (ListViewGroup.Items), don't generate a redraw if
5718 the added item hasn't beeen previously added to the ListView instance
5719 refered by the group, since it will be ignored. This should avoid some
5720 really nasty flickering.
5722 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5724 * ListView.cs: When accessing an item in a specific display
5725 position, use the helper method GetItemAtDisplayIndex, instead of
5726 direct access to the reordered_items_indices array. When doing layout
5727 for groups set the correct Items index for the display position (since
5728 in groups mode items don't have the same position as in Items
5730 * ListViewGroup.cs: Add a field to store the starting item number,
5731 which is later used when calculating the layout.
5735 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
5737 * Application.cs: Fixed ProductVersion to fallback to the assembly
5738 version. Fixes regression for bug #325413.
5740 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5742 * ListView.cs: New helper method to retrieve an item in a _specific
5743 display_ position (the items can be displayed in a different order
5744 than one of Items collection).
5745 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
5746 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
5747 specific display position (again remember that items can be sorted
5748 different than Items).
5750 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5752 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
5753 list and update it when the collection changes. We were recreating
5754 this several times per row paint and for every pixel the mouse moved
5756 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
5759 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5761 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
5762 list to use generics.
5763 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
5764 and remove unneccessay casts.
5766 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
5768 * DataGridViewBand.cs: Add internal way to set displayed variable.
5769 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
5770 * DataGridView.cs: Make sure we always keep track of Displayed
5771 rows and columns, and only draw things that are displayed.
5773 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
5775 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
5776 whether the key events are filtered or not. Introduced
5777 PreFilter() process for this purpose. This fixes atokx3/iiimx
5780 2008-04-16 Andreia Gaita <avidigal@novell.com>
5782 * HtmlHistory.cs: Implement Length property
5784 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
5786 * DataGridView.cs: Call EndEdit when a sort is performed so we take
5787 away the edit textbox. Refactor to reuse column sort code.
5789 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
5791 * MenuAPI.cs: Remove the code that save and restore capture status of
5792 grab_control, this fixes some Menu and Context menu bugs but maybe it can
5793 cause some others, I cant figure the possible problems of this patch but
5794 right now remove the code looks to be better than keep it. This patch fixes
5795 bugs #357638, #378721 and #379570.
5797 2008-04-12 Andreia Gaita <avidigal@novell.com>
5799 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
5800 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
5801 add missing properties and event handlers.
5803 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
5805 * ListBox.cs: Make sure the LargeChange we are setting is at least
5806 zero, to prevent an IOORE. [Fixes bug #379531]
5808 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
5810 * ComboBox.cs: Support item navigation by entering text. Firstly,
5811 in DropDownList mode, for each key-press select the next item
5812 starting with that letter.
5813 For other modes, when no item selected, on arrow-up/-down and open
5814 drop-down select the first item matching the text in the textbox.
5816 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
5818 * X11Keyboard.cs : Control.FromHandle() could return null
5819 in MoveCurrentCaretPos().
5821 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5823 * ListView.cs: When changing the size in VirtualMode, also Reset the
5825 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
5826 changing selection info for VirtualMode.
5829 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5831 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
5832 view, don't use LineLimit for the first item - use NoWrap *always*
5833 instead, since ListView.LabelWrap is not used for this view.
5836 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5838 * Binding.cs: Call UpdateIsBinding when setting control - probably
5839 Binding is already usable and we don't need to wait to check the
5840 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
5841 Created, just like 2.0 does.
5842 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
5844 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5846 * Binding.cs: Just realized we don't need to have a handler for
5847 BindingContextChanged, since this info should be now consumed directly
5848 in the BindingManagerBase. And also, the manager.IsBindingSuspended
5849 state info is checked directly, instead of caching it.
5851 * CurrencyManager.cs: IsSuspended should return always false if Count
5854 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5856 * Binding.cs: When calling PushData, return if manager.Count == 0,
5857 since we just don't have data to be read. Also, when setting the
5858 Control for binding, hook up some events to refresh the IsBinding
5859 state when BindingContext change or control gets created; use
5860 Control.IsHandleCreated instead of Control.Created check to set
5861 IsBinding state - we *actually* need to modify IsBinding when control
5862 is created, but we don't have any Created event, only HandleCreated.
5863 Fixes part of #349364.
5865 2008-04-11 Geoff Norton <gnorton@novell.com>
5867 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
5868 warping a null Caret.
5870 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5872 * DataGridView.cs: Implement row/column autosizing methods. Implement
5874 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
5875 * DataGridViewRowCollection.cs: Add an internal sorting method.
5877 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5879 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
5880 value in ListView drawing code.
5882 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
5884 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
5885 is clicked. Respect the user setting Cancel in FileOk.
5887 2008-04-11 Geoff Norton <gnorton@novell.com>
5889 * ListView.cs: Avoid setting and resetting control Width/Heights and
5890 calculate the final value and set it once. Prevents a feedback loop
5893 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5895 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
5898 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
5900 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
5901 Add some on-the-spot code, but it seems we don't need it.
5903 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5905 * Form.cs: Add method for DataGridView to trigger focus cues
5906 even when it handles the tab keypress.
5908 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
5910 * DataGridView.cs: More keyboard handling, tab, esc.
5911 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
5912 when at the beginning or end of the text in the text box.
5914 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5916 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
5918 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5920 * DataGridView.cs: Some fixups for showing and adding the edit control.
5921 * DataGridViewButtonColumn.cs: Implement ToString.
5922 * DataGridViewCell.cs: Size and position the control simultaneously.
5923 * DataGridViewTextBoxCell.cs: Use base to position control.
5925 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5927 * DataGridViewCell.cs: Fix up some formatting and painting code.
5928 * DataGridViewImageCell.cs: Implement some NIEX methods.
5930 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5932 * ToolStripItemCollection.cs: What moving an item from one owner
5933 to another, remove from source owner before adding to destination.
5936 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
5938 * PictureBox.cs: Call Load when ImageLocation is set.
5941 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
5943 * X11Keyboard.cs, XplatUIX11.cs :
5944 Implement over-the-spot mode (with some odd offsets).
5945 - set preedit position when caret is set.
5946 - Wrap XMoveResizeWindow() to move preedit position.
5948 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5950 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
5953 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5955 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
5956 and ScanTableIndex public, it fix compilations errors when compiling
5957 WinForms to generate keyboard layout resources.
5959 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
5961 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
5962 different element count than scan table. It prevents some errors in non
5965 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5967 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
5969 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
5971 * DataGridView.cs: Call OnContentClick.
5972 * DataGridViewCell.cs: Do a null check on ValueType instead
5974 * DataGridViewCheckBoxCell.cs: Implement.
5976 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5978 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
5980 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5982 * X11Keyboard.cs : Check XGetIMValues() return value in
5983 case it does not return input styles in some environment.
5985 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
5987 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
5989 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5991 * BindingContext.cs: Stub UpdateBinding method.
5993 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
5995 * X11Structs.cs : added couple of structs for XIM support.
5997 Release XIM in case it failed to create XIC.
5998 Use consts for XNblah string.
5999 Add support for IM style customization and XIC creation
6000 for preedit-position and preedit-callback.
6001 Right now use MONO_WINFORMS_XIM_STYLE environment variable
6002 (list of: over-the-spot | on-the-spot | root). Only root
6005 (redoing r99172 with fix.)
6007 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6009 * TreeView.cs: Center the checkbox a little better.
6011 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6013 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6014 Apply very nice patch from Ernesto Carrea that simplifies our
6015 scrollbar drawing. [From bug #376146]
6017 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6019 * TreeView.cs: Correct the location of the root node checkbox when
6020 ShowRootLines = false. Don't draw the root lines for the root node
6021 when ShowRootLines = false. [Fixes bug #377535]
6023 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
6025 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6027 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6029 * MaskedTextBox.cs: Added missing attribute. Code formatting.
6030 * PageSetupDialog.cs: Added missing attribute. Code formatting.
6031 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6032 * ImeMode.cs: Added missing field.
6033 * HtmlWindow.cs: Code formatting. Fixed line endings.
6034 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6036 * HtmlHistory.cs: Code formatting. Fixed line endings.
6037 * HtmlDocument.cs: Code formatting. Fixed line endings.
6038 * ToolStripPanel.cs: Added missing IList implementation.
6039 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6041 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
6043 * BindingContext.cs: Changed argument names to fix corcompare errors.
6044 * DataGridView.cs: Removed extra explicit interface implementation
6045 of IDropTarget. Code formatting.
6046 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6047 * ComboBox.cs: Changed argument names to fix corcompare errors.
6048 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6050 * GridColumnStylesCollection.cs: Changed argument names to fix
6051 corcompare errors. Removed extra tabs.
6052 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6054 * Control.cs: Changed argument names to fix corcompare errors. Code
6055 formatting. Removed extra explicit IList implementation.
6056 * TextBox.cs: Changed argument names to fix corcompare errors. Code
6057 formatting. Use string.Empty instead of "".
6058 * GridItemCollection.cs: Changed argument names to fix corcompare
6059 errors. Code formatting.
6060 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6061 corcompare errors. Code formatting.
6062 * ImageList.cs: Changed argument names to fix corcompare errors.
6063 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6064 * DataGridViewRowCollection.cs: Changed argument names to fix
6065 corcompare errors. Code formatting.
6066 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6067 * DataGridViewSelectedCellCollection.cs: Changed argument names to
6068 fix corcompare errors. Code formatting.
6069 * DataGridViewComboBoxCell.cs: Changed argument names to fix
6070 corcompare errors. Code formatting.
6071 * LinkLabel.cs: Changed argument names to fix corcompare errors.
6072 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6074 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6076 * BindingSource.cs: Changed argument names to fix corcompare errors.
6077 Removed extra explicit interface implementations.
6078 * DataGridViewSelectedRowCollection.cs: Changed argument names to
6079 fix corcompare errors. Code formatting.
6080 * ToolStripItemCollection.cs: Removed extra explicit interface
6081 implementation of IList.ReadOnly.
6082 * DataGridViewColumnCollection.cs: Changed argument names to fix
6083 corcompare errors. Code formatting.
6084 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6085 * ListView.cs: Changed argument names to fix corcompare errors.
6086 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6088 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6090 * ListBindingHelper.cs: Changed argument names to fix corcompare
6092 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6093 fix corcompare errors. Code formatting.
6094 * ToolStripPanel.cs: Removed extra explicit implementation of
6095 IDropTarget interface.
6096 * ListBox.cs: Changed argument names to fix corcompare errors. Code
6097 formatting. Removed extra tabs and spaces.
6098 * DataGridViewCellCollection.cs: Changed argument names to fix
6100 * Help.cs: Changed argument names to fix corcompare errors. Code
6102 * TabControl.cs: Changed argument names to fix corcompare errors.
6103 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6105 * TableLayoutSettings.cs: Changed argument names to fix corcompare
6108 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6110 * ListBindingHelper.cs: When returning properties, only return those
6111 that are browsable. Also, don't do a linear search of the properties,
6112 but use the indexer of the PropertyDescriptorCollection class.
6114 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6116 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6117 Dictionary containing the related (child) currency managers. Also,
6118 when setting DataSource, add datasource to our List if it is not a list.
6120 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6122 * PropertyGridTextBox.cs: Fix background color of the buttons.
6123 * PropertyGridView.cs: Make the entry less jumpy.
6125 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6127 * PropertyGrid.cs: Fix unused variable warnings.
6129 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6131 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
6132 double-click. It expanded it once in the mouse down and then
6133 again in the double-click handler.
6135 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6137 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
6138 TypeConverter and UITypeEditors.
6140 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6142 * Control.cs: Visibility should be set synchronously,
6143 so we must also redraw once it is and not rely on layouting or
6144 other code to repaint.
6147 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
6149 * DataGridViewCell.cs: Respect DataGridView.GridColor.
6151 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6153 * Control.cs: Invalidate when the alpha channel is less than 255,
6154 not only when control is transparent.
6156 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6158 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6159 Implement some painting convenience methods that threw NIEX.
6161 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6163 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6164 * DataGridViewLinkCell.cs: Implement.
6166 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6168 * GridEntry.cs: Report the conversion exception error description.
6171 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6173 * PropertyGridView.cs: Do not scroll to item on resize.
6176 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6178 * BindingContext.cs: When retrieving a BindingManagerBase, if the
6179 dataSource parameter is ICurrencyManagerProvider, then return
6180 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6181 instead of creating a new one.
6183 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6185 * BindingSource.cs: Implement support for Type instances as
6188 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6190 * DataGridView.cs: Minor cleanups and call CellMouseUp.
6191 * DataGridViewCell.cs: Make some painting routines internally virtual.
6192 * DataGridViewButtonCell.cs: Implement.
6194 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6196 * Control.cs: We always need to invalidate our children with
6197 transparent backgrounds when we are invalidated.
6200 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6202 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6203 and CancelCurrentEdit on CurrencyManager respectively. Implement
6204 support for ICancelAddNew too.
6206 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6209 call EndNew/CancelNew if list is ICancelAddNew.
6211 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6213 * DataGridView.cs: Guard against an exception while painting
6214 if there are no rows.
6216 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6218 * DataGridView.cs: Implement a bunch of keyboard commands.
6220 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
6222 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
6223 isn't set, don't call OnPaint. [Fixes bug #375300]
6225 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6227 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6228 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6229 hookup the remaining events related to CurrencyManager, and fire
6230 OnListChanged also for the Clear () method.
6232 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6234 * BindingSource.cs: Use Current and Position implementations in
6235 CurrencyManager instead of using our own routines, since we need
6236 to be in synch with it. Count should NEVER return a -1 value, and
6237 also report ListChanged events for both simple IList data
6238 sources (manually) as well for IBindingList ones (by hooking up an
6239 event handler for it).
6241 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6243 * BindingSource.cs: Make one .ctor call the another, to avoid
6244 duplicate code. Add the CurrencyManager property, and also for AddNew
6245 throw the proper exceptions and show better error messages.
6247 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6249 * ComboBox.cs: Only adjust selectedindex if Handle has been
6250 created. Fixes failing test.
6252 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6254 * ComboBox.cs: Adjust selectedindex if we insert a new item
6255 above the current selectedindex in a sorted ComboBox.
6258 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6260 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6263 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6265 * DataGridViewTextBoxCell.cs: Implement stuffs.
6267 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6269 * TreeView.cs: Create the scrollbars even earlier to be
6270 double dog certain they are created before they are accessed.
6272 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6274 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6276 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6278 * ScrollBar.cs: Create an internal safe Value setter so we
6279 won't crash if we try to set a value outside the min and max.
6280 * TextBoxBase.cs: Use safe value setter to guard against a
6281 potential NRE that is being reported by Reflector.
6283 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6285 * TreeView.cs: Create the scrollbars earlier in the constructor
6286 to attempt to guard against an NRE in SetTop in Reflector.
6288 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6290 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6291 DataGridViewRowCollection.cs: Do not scroll column and row headers,
6292 show messagebox on data format error, use column display index
6293 correctly, make sure HitTest supports new layout stuff,
6294 make sure scrollbars support new layout stuff.
6296 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6298 * XplatUIX11.cs : Patch by Doug Rintoul.
6299 For some IM engines, keypress events need to delay call
6300 to XPending() and XNextEvent() in the loop so that it
6301 does not mess the orders in XIM commit callback.
6302 Some KeyRelease events such as shift keys need to be
6303 processed both in the IM engine and winforms driver
6304 itself since winforms holds its own state check.
6306 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6308 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6310 * X11Keyboard.cs, XplatUIX11.cs :
6311 add primitive support for XIM input support (preedit-
6312 nothing and status-nothing). It requires precise event
6313 capturing (XSelectInput/"filterEvents") and different
6314 call to XFilterEvent against root window.
6315 Get composed string and send dummy WM_IME_COMPOSITION.
6316 Free XIM and XIC instances in finalizer.
6318 (This first patch does not include suggested changes
6319 by Doug Rintoul. It will follow.)
6321 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6323 * DataGridView.cs: When binding to a property, if the property
6324 doesn't have a setter, set the column to readonly.
6327 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6329 * ComboBox.cs: Guard against NRE if an arrow key is hit while
6330 we aren't dropped down. Support Home/End in DropDownList mode.
6333 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6335 * TreeNodeCollection.cs: Don't increment count until we've
6336 saved our index to return.
6339 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6341 * Label.cs: Add padding to the label's AutoSize calculation.
6344 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6346 * ListBindingHelper.cs: Actually implement GetListName method.
6348 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6350 * BindingSource.cs: Throw the propert expceptions for some methods, as
6351 well as detect the list item type for Add method if DataSource is null.
6353 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6355 * DataGridViewCell.cs: I don't know why I commented this out,
6356 putting it back for now.
6358 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6360 * DataGridViewCell.cs: Remove storage for owning column, just
6362 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6363 * DataGridViewColumnHeaderCell.cs: If the header text has been
6364 explicitly set, return it.
6367 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6369 * DataGridViewRowCollection.cs: Disable row sharing when
6370 using data binding. Its a great feature, but lets work on
6371 getting DGV usable first before we worry about optimizations.
6373 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6375 * BindingSource.cs: When resetting our internal list, compute list
6376 item type information to be used for indirect list access. Also
6377 implement/tune some properties and methods related to the list access
6379 * ListBindingHelper.cs: Add a stub for GetListName method, used from
6382 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6384 * DataGridView.cs: If RowCount is increased while ColumnCount
6385 is zero, add a column. [Fixes bug #331649]
6387 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6389 * DataGridViewRowCollection.cs: When adding new rows for
6390 databinding, make sure they are place before the add row.
6393 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6395 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6396 instead of Index order.
6398 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6400 * DataGridView.cs: If columns are added by increasing ColumnCount,
6401 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6404 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6406 * DataGridView.cs: Turn off and on the "new row" when
6407 AllowUserToAddRows is toggled. When the handle is created,
6408 set current cell and selected cell/row/col.
6410 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6412 * ComboBox.cs: When navigating the drop down by keyboard, we
6413 need to scroll the list box if our selection moves out of the
6414 currently shown items. [Fixes bug #371990]
6416 2008-03-24 Luke Page <luke.a.page@gmail.com>
6418 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6419 on the control. Also now handles unicode compatibility characters and
6420 stores the unicode compatibility length on the stack. Fixes Bugs
6421 #355198 and #366436.
6423 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6425 * BindingSource..cs: Take into account DataMember when re-creating the
6426 List property, and also create a specific kind of list as needed.
6428 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6430 * ListBindingHelper.cs: Add a new case for GetList () method - when we
6431 get an empty IEnumerable, try to detect whether the datamember is
6432 valid or not for that type, if true, return null, and throw exception
6435 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
6437 * ComboBox.cs: Alt-Down should drop down the list, Esc should
6438 retract it. [Fixes bug #371989]
6440 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6442 * PropertyGrid.cs: Initialize the sorting button as pushed.
6444 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6447 - Visually select the PropertyTab.
6448 - Filter Properties by Attributes properly.
6450 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6452 * MenuItem.cs: Remove menu item from parent when disposed.
6455 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6457 * ToolBar.cs: Don't reset layout_type if Dock = None.
6459 2008-03-21 Andreia Gaita <avidigal@novell.com>
6461 * UserControl.cs: Select the first available control when we get focus.
6464 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6466 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6467 the content if we are in edit mode. [Fixes bug #343964]
6469 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6471 * DataGridViewCell.cs: Fix border painting for column headers.
6473 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6475 * BindingSource.cs: When setting or resetting data source,
6476 use ListBindingHelper.GetList () method, since it will get the list in
6477 case datasource is IListSource.
6479 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6481 * DataGridViewCell.cs: Implement lots more stuffs.
6483 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6485 * PropertyGridView.cs, GridEntry.cs: Implement support for
6486 UITypeEditor.IsDropDownResizable.
6488 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6490 * DataGridViewCell.cs: Remove unused variables, improve how
6491 several of the property getters work.
6492 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6493 get its size from the parent row/col.
6495 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6497 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
6498 user alters manually the PropertyTabs collection via the
6499 PropertyTabs property.
6501 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6503 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6504 new tests for them to be sure to be compatible with .net.
6506 2008-03-20 Andreia Gaita <avidigal@novell.com>
6508 * WebBrowserBase.cs: Fix attributes, add events
6509 * WebBrowser.cs: Fix Padding signature
6511 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6513 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6515 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
6517 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6518 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6519 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6520 passes the new suite of tests for it.
6522 2008-03-18 Andreia Gaita <avidigal@novell.com>
6524 * WebBrowser.cs: Add missing attributes, missing Padding and
6525 DefaultSize properties, remove extraneous getters
6527 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6529 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6532 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6534 * ComboBox.cs: Move resetting the selected index to keypress
6535 instead of textchanged. Changing the text programmatically
6536 should not trigger resetting the selected index. Fixes test.
6538 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6540 * ComboBox.cs: When the user types into the textbox, reset
6541 the selected index to -1. [Fixes bug #371672]
6543 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6545 * FileDialog.cs: Support Control-A for selecting everything
6546 in an OpenFileDialog. [Fixes bug #371564]
6548 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
6550 * DataGridView.cs: When row/column visible/height properties
6551 change, invalidate. Take the NIEX out of InvalidateRow/Column
6552 etc. We don't support them yet, but we can just invalidate
6553 everything until we do support them. (Added MonoTODO). Set
6554 proper control styles.
6555 * DataGridViewRow.cs: Don't call PaintHeader if row headers
6558 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6560 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6562 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6564 * DataGridViewRow.cs: Only paint the white background in
6565 cell bounds, the row bounds extends past the cells if the
6566 grid width isn't as wide as the DGV.
6568 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6570 * DataGridView*: Completely revamp the drawing to match the
6571 public API. Our grids now look better, and call all the
6572 appropriate methods and event to allow users to override
6573 the painting and do their own.
6575 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6577 * ListBindingHelper.cs: Implement 2.0 GetList methods.
6579 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6581 * DataGridView.cs: Implement BorderStyle.
6583 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6585 * FileDialog.cs: Apply patch from Andy Hume: Any time we
6586 are comparing attributes, make sure we only look at the
6587 one we are interested. These calls were failing if there
6588 were more than one attribute.
6591 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6593 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6595 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6597 * PageSetupDialog.cs: Stub EnableMetric.
6598 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6599 * PrintPreviewDialog.cs: Add ProcessDialogKey,
6602 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6604 * MonthCalendar.cs: Remove unused variable.
6606 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6608 * DataGridView*.cs: corcompare stuffs.
6610 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6612 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6613 The savings aren't worth the extra code to fix the optimization.
6616 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6618 * ToolBar.cs: Always call base.Dock in the Dock override so that
6619 Control's layout_type gets reset correctly.
6622 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
6624 * X11Dnd.cs: End DnD operation also for the middle mouse button.
6626 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6628 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6629 at the same time we do explicit ones, because we have to give all
6630 other controls on the container a chance to handle explicit ones
6631 first. If no one has an explicit mnemonic, then we can let the
6632 MenuStrip have a shot at implicit mnemonics.
6633 * MenuStrip.cs: Create an implicit mnemonic function.
6634 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6635 mnemonics for MenuStrips.
6638 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6640 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6641 DataGridColumnStyle.cs: corcompare stuffs.
6643 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6645 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
6646 Details - This is needed after we added the bits to use any available
6647 column also for List and SmallIcon view.
6649 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6651 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
6652 at the proper place, not only when changing SelectedIndex and changing
6653 the selection using keys/mouse, as .net does.
6655 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6657 * ControlBindingsCollection.cs: Implement last 2.0
6658 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
6659 in the new 2.0 Add methods.
6661 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6663 * ListBox.cs: When calling SelectedIndexCollection.Clear,
6664 return if no items are previously selected - this is done to avoid
6665 firing OnSelectedIndexChanged without need to do so. Also,
6666 when creating handle ensure that the focused item is visible (as
6669 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6671 * ListBox.cs: Rewrote/refactored most of selection code. We require
6672 the following things in selection: a) keep selection sorted (both
6673 indices and items), b) SelectedIndices automatically detect the
6674 selection mode, c) SelectedIndex should be the first selected item
6675 index, d) Need to Focus/adjust scroll bar when selecting a new item,
6676 not only for SelectedIndex, which is specially important in Multi*
6677 selection modes. To achieve this we are moving the selection core to
6678 SelectedIndexCollection and make depend all selection modifications on
6682 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6684 * ToolStrip.cs: Enable implicit mnemonics for drop down
6685 menu strips. [Fixes part of bug #367692]
6687 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6689 corcompare - fix parameter names [stragglers].
6690 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
6691 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
6694 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6696 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
6697 was a mnemonic pressed as well as Alt. Also, if nothing handles a
6698 mnemonic, let the ToolStripManager have it even if it doesn't
6699 have a matching mnemonic.
6702 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6704 corcompare - fix warning about implicit implementation
6705 * ToolStrip.cs: Add IToolStripData interface.
6706 * IToolStripData.cs: Add.
6708 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
6710 corcompare - fix warning about implicit implementation
6711 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
6714 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6716 corcompare - fix parameter names [N-Z].
6717 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
6718 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
6719 PropertyManager.cs, RichTextBox.cs,
6720 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
6721 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
6722 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
6723 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
6724 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
6725 ToolStripContentPanel.cs, ToolStripDropDown.cs,
6726 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6727 ToolStripPanel.cs, ToolStripSeparator.cs,
6728 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
6729 UICuesEventHandler.cs, UpDownBase.cs.
6731 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6733 corcompare - fix parameter names [G-M].
6734 GridColumnStylesCollection.cs, GridItemCollection.cs,
6735 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
6736 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
6737 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
6738 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
6739 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
6741 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
6743 corcompare - fix parameter names [A-F].
6744 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
6745 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
6746 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
6747 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
6748 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
6749 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
6750 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
6752 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6754 * GridEntry.cs: Do not convert not only if the types match,
6755 but also if the property type is assigneable from the value's
6759 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
6761 * PropertyGridView.cs:
6762 - Subscribe to the listbox only once and not everytime.
6763 - Update the textbox even if SetValue fails.
6764 - Close the listbox before calling TrySetValue just in case.
6767 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
6769 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
6771 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6773 * ListView.cs: Implement support for custom column width based on
6774 Columns collection (we were previously using this collection only
6778 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6780 * ListViewItem.cs: For Tile view, always set bounds for the first
6781 subitem (which is the main one), and also don't let Width be larger
6782 than ListView.TileSize.Width. Improve code readibility also.
6783 * ThemeWin32Classic.cs: When painting the ListViewItem instances
6784 in Tile view, _always_ use the NoWrap flag.
6787 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
6789 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
6791 * GridEntry.cs: For MS compitability make all child properties
6792 readonly if the parent is readonly. Ugh.
6793 [Fixes bug #365945 and #365944]
6795 2008-02-29 Andreia Gaita <avidigal@novell.com>
6797 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
6798 relative to the history
6800 2008-02-29 Andreia Gaita <avidigal@novell.com>
6802 * HtmlElement.cs: More handlers for mouse and key events
6804 2008-02-28 Andreia Gaita <avidigal@novell.com>
6806 * WebBrowserBase.cs: MouseClick sig changed.
6807 * HtmlHistory.cs: Implement history navigation
6808 * HtmlElement.cs: Add event handlers, and connect them.
6810 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
6813 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
6814 so that DisplayNameAttribute doesn't get ignored.
6815 - Check for ParenthesizeNameAttribute and parenthesize the Label.
6816 - Add support for PasswordPropertyTextAttribute
6817 * PropertyGridView.cs: Check if an entry is a password.
6818 [Fixes bugs #365589, #365586, #365588]
6820 2008-02-28 Andreia Gaita <avidigal@novell.com>
6822 * PropertyGridView.cs: Revert the message filtering change, as we
6823 need it to block after all. Remove block parameter, unnecessary.
6825 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
6827 * UserControl.cs: Better implementation of GetPreferredSize.
6828 First step to fixing bug #361441.
6830 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6832 * Binding.cs: Actually implement data binding support for
6833 classes implementing IBindableComponent.
6834 * ControlBindingsCollection.cs: Likewise.
6836 2008-02-26 Andreia Gaita <avidigal@novell.com>
6838 * PropertyGridView.cs: Use a message filter to check when to
6841 2008-02-26 Andreia Gaita <avidigal@novell.com>
6843 * Application.cs: Change the message_filters loop so a filter
6844 can be removed while looping.
6846 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
6848 * GridEntry.cs: Optimization in ToggleValue so that it caches
6850 * PropertyGridView.cs: An optimization so that the property isn't
6851 re-read twice for each StandardValue added to the drop-down menu.
6852 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
6856 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
6858 * Application.cs: Apply patch from Justin Cherniak to match
6859 MS better for ProductName, ProductVersion, and CompanyName.
6862 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864 * Binding.cs: Actually implement 2.0 NullValue property. Also
6865 when changing the formatting related properties, only update the state
6866 if formatting_enabled is true (we don't mind otherwise).
6868 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
6870 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
6873 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6875 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
6876 of GetType on the current value as it uses reflection to
6877 determine the type. This fixes the case where the new value is
6880 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
6882 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
6885 2008-02-24 Luke Page <luke.a.page@gmail.com>
6887 * Line.cs, TextControl.cs: Implement offset x and y so that a
6888 document doesn't have to begin at (0,0) on the viewpoint.
6889 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
6890 bars and switches the text alignment (and therefore is now
6891 implemented for textbox). Fixes #321383.
6893 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6895 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
6896 properties. Also when changing FormattingEnabled update the control
6897 property -as .Net does-.
6899 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
6901 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
6902 * Binding.cs: Add stubs for the overloads of the Add method in
6905 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6907 * Binding.cs: PullData () returns a false value if we got an exception.
6908 Also when validating the control and we get an error, instead of
6909 setting the value of the previous one, cancel the event (tested in 1.1
6912 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
6914 * TreeView.cs: Make selected_node and highlighted_node internal.
6915 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
6916 to null when Nodes.Clear is called.
6919 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6921 * FontDialog.cs: Ensure that when the Font is set in code,
6922 all the gui pieces are updated accordingly.
6925 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6927 * TextRenderer.cs: Respect proposed size for MeasureString.
6928 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
6929 autosize, use a proposed width to force wrapping for long text.
6932 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6934 * TreeView.cs: Factor in checkboxes = false and state images in
6935 to HitTest. [Fixes bug #363360]
6937 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6939 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
6940 when drawing the selected range.
6943 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
6945 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
6946 ResizeRedraw control styles.
6949 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6951 * TreeView.cs: StateImages are basically custom checkboxes, so
6952 factor their size the same as real checkboxes when determining
6956 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6958 * MessageBox.cs: Make the message box wider if the form caption
6959 is longer than the text in the form.
6962 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6964 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
6966 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6968 * TreeNode.cs: Guard against an NRE when the parent's
6969 StateImageList hasn't been set.
6972 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6974 * SplitContainer.cs: Add SupportsTransparentBackColor and
6975 OptimizedDoubleBuffering control styles.
6978 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6980 * Application.cs: For the app data paths and the registry key paths,
6981 ensure they are created before returning them to the user.
6984 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6986 * Application.cs: Guard against an NRE in CompanyName and
6989 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
6991 * Application.cs: For CompanyName, ProductName, and ProductVersion,
6992 make sure we handle all three cases correctly: attribute is present,
6993 attribute is present but is an empty string, and attribute is not
6996 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
6998 * PropertyGridView.cs:
6999 - Fix a NRE that caused a test failure
7000 - Another performance improvement - cache the standard values
7003 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7005 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7008 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
7010 * PropertyGridView.cs: Fix a big performance bug.
7012 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7014 * SelectionRange.cs: Apply patch from Andy Hume to make
7015 constructor behavior more accurate. [Fixes bug #362117]
7017 2008-02-19 Andreia Gaita <avidigal@novell.com>
7019 * Control.cs: Added a new flag is_disposing to track if the
7020 window is currently in the process of being disposed of.
7021 This is used so that, when firing visibility changes triggered
7022 by unparenting controls during Dispose, the control doesn't
7025 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7027 * ComboBox.cs: Set height to preferred height when the handle
7028 is created. [Fixes bug #360862]
7030 2008-02-18 Andreia Gaita <avidigal@novell.com>
7032 * XplatUIX11.cs: Create FosterParent with border width at 0.
7033 With the previous value of 4, everytime a control got reparented
7034 from parent = null, it's location would be shifted right and
7035 down by 4, since these coordinates would be offset by the
7036 FosterParent's border width.
7038 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
7040 * Control.cs: During diposing firstly remove ourselfes from
7041 the parent and *then* destroy our handle, because removing
7042 ourselfes from the parent controls collection causes
7043 VisibilityChange, etc events, which require a handle and end
7044 up recreating the control.
7046 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
7048 * GridEntry.cs: Set expanded state before notifying that the
7049 expansion has taken place.
7050 * PropertyGridView.cs:
7051 - Set the propertygridtextbox text to the selected
7052 StandardValue before proceeding to setting it.
7053 - Scrolling bugfixes.
7055 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7058 - Fix ValueText to not return null.
7059 - Fix conversion error reporting to actually happen.
7060 * PropertyGridView.cs: Set entry only if the text has changed.
7063 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7066 - Fix handling of a null current value.
7067 - Swallow editor exceptions.
7070 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7072 * PropertyGrid.cs: Clear current items first thing before
7073 repopulating subitems.
7075 - Handle null StandardValuesCollection.
7076 - Mark as not editable if there is no PropertyDescriptor and
7077 if the Converter cannot convert from string.
7078 [Part of fix for bugs #360666 and #358332]
7080 2008-02-15 Luke Page <luke.a.page@gmail.com>
7081 * MaskedTextBox.cs: Now skips non editable characters after a
7082 character has been entered and we are progressing to the next
7083 position in the MaskedTextBox.
7085 2008-02-15 Luke Page <luke.a.page@gmail.com>
7086 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7087 that it changes the selection rather than just repositioning the
7088 cursor. Fixes Bug #360873.
7090 2008-02-15 Luke Page <luke.a.page@gmail.com>
7091 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7092 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7093 correctly. See #359330
7095 2008-02-15 Andreia Gaita <avidigal@novell.com>
7097 * XplatUIX11.cs: If the handle is null when posting a message, use the
7098 current thread queue to post instead. Fixes #332409
7100 * SendKeys.cs: Slight optimization
7102 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
7104 * PropertyGrid.cs, PropertyGridView.cs:
7105 Fix multiple scrolling and sizing issues.
7108 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7110 * PropertyGridView.cs: Ensure that drop down editors are shown
7111 in the WorkingArea of the screen.
7114 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7116 * GridEntry.cs: Fail silently when UITypeEditor is missing.
7119 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7121 * Binding.cs: Implement 2.0 DataSourceNullValue property.
7123 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7125 * PropertyGridView.cs:
7126 - Clear the controls in the drop down form after it is hidden.
7127 - Fix Width sizing of the dropdown editors to match MSFT.
7129 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7131 * PropertyGridView.cs:
7132 - Fix height for drawing the grid entry
7133 text value, so that it clips multiline text properly.
7134 - Fix unfocusing to match MSFT.
7136 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7138 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7139 Fixes a bug where on repopulation after value changed items become
7142 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7144 * Binding.cs: For the 2.0 profile, look for a
7145 'PropertyChanged' event in the target control, and add checks for
7146 DataSourceUpdateMode property to change -or not- the data source
7147 from validation/control property change.
7149 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
7151 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7152 not compare struct with null in 2.0).
7154 2008-02-10 Luke Page <luke.a.page@gmail.com>
7156 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7157 updates the provider and if not using a provider, uses the internal document
7158 class implementation of password char. Also when showing text, uses display string
7159 from the provider, instead of the actual text.
7161 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7163 * Binding.cs: Ooooops, forgot to take into account the data_source
7164 and binding_member_info null case (it was breaking the Binding tests).
7166 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7168 * Binding.cs: Implement support for data source changes exposed by
7169 'PropertyNameChanged' events, and update the control property as
7172 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7174 * Binding.cs: Implement 2.0 WriteValue method.
7176 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7178 Commit patch from James Purcell for better AutoScale implementation:
7180 * ScaleControl should call GetScaledBounds with the control's total size rather
7181 than client size. GetScaledBounds should handle ignoring the borders in its
7182 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
7183 (for the most part they just call the base code now since that is fixed).
7184 * Added ScaleChildrenInternal to allow controls to disable scaling of children
7185 without having to override ScaleChildren (since none of .NET's controls do).
7186 This is required for most controls in Mono that have scrollbars to prevent the
7187 scrollbars from being moved/resized.
7188 * Nested ContainerControls can have a different scale mode than their parent.
7189 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7190 designer produce different results both of which look incorrect).
7191 * Default AutoScaleMode for ContainerControl should be Inherit.
7192 * Simplified workaround for ComboBox scaling issue.
7193 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
7194 1.0 style auto scaling should scale the whole control's size instead of
7195 ignoring the borders (except for Form) and the rounding is done differently to
7196 preserve control alignment.
7197 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7199 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7200 * CurrentAutoScaleDimensions should round the estimated character width instead
7202 * ListBox's GetScaledBounds should always use the height it was set to instead
7203 of the height that was passed in. This prevents rounding errors from
7204 accumulating quickly with IntegralHeight.
7207 2008-02-08 Andreia Gaita <avidigal@novell.com>
7209 * Form.cs: Add a null check (darn it).
7211 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7213 * MdiClient.cs: Make sure the requesting form actually owns the
7214 control menu items before removing them. Also, use
7215 Suspend/ResumeLayout when adding or removing items so we only
7219 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7221 * Control.cs: Guard against an NRE in ShowFocusCues.
7224 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7226 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7227 property, as well as stubbing DataSourceUpdateMode.
7229 2008-02-08 Andreia Gaita <avidigal@novell.com>
7231 * Form.cs: When closing forms, get focus back to the active control of the
7232 active form. [Fixes #341314, corner case]
7234 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7236 * MdiClient.cs: After we move the scrollbars, invalidate the NC
7237 area, so any old scrollbar artifacts are cleaned up.
7240 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7242 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7243 for our menus, display that control box menu instead of the 1.1
7246 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7248 * MdiControlStrip.cs: Add property to access the mdi form tied to
7250 * MdiClient.cs: Be smarter about removing and adding toolstripitems
7251 to the implicitly merged menu. Every time we clicked the form, items
7252 were getting removed and the re-added, causing the form to jump around
7253 as the menu resized.
7255 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7257 * MdiClient.cs: Make sure the NormalBounds always gets set. It
7258 was being reset by the implicit menu merge for menustrips.
7261 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7263 * Form.cs: Don't do the previous change when WindowState = Normal,
7264 or it messes up where the window is placed. Fixes test failure.
7266 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7268 * Form.cs: When becoming visible, if we are an MDI child, call
7269 SetWindowState with a dummy old_state so that changes will actually
7271 [Fixes the 2nd part of bug #325473]
7273 2008-02-07 Andreia Gaita <avidigal@novell.com>
7275 * Control.cs: Reset properties to their pre parent-change values in case
7276 the new parent == null (in which case we're basically removing the control,
7277 and don't want any events fired due to fake property changes)
7280 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
7282 * PropertyGridView.cs:
7283 - Refactor SetValue to allow setting the value
7284 when a custom editor is used, but the entry is not editable.
7285 - Remove the custom editor control on CloseDropDown.
7288 2008-02-06 Andreia Gaita <avidigal@novell.com>
7290 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7291 reflection only on 1.1, this property is public on system.drawing on 2.0.
7294 2008-02-06 Andreia Gaita <avidigal@novell.com>
7296 * WebBrowser.cs: Do a normal page refresh by default.
7298 2008-02-05 Andreia Gaita <avidigal@novell.com>
7300 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
7301 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7302 platforms. Fixes #359036
7304 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
7305 platform-specific flags.
7307 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7309 * Binding.cs: Add 2.0 BindableComponent property - just return control
7312 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
7314 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7315 Jonathan for this patch. Fixes #358442.
7317 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
7319 * Form.cs: If we change the active MDI child form, let the others
7320 know they need to repaint their title bar so it will appear inactive.
7321 [Fixes part 1 of bug #325473]
7323 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
7325 * PropertyGridView.cs: Do not trucate custom editors' width
7326 and align them to the left.
7327 [Fixes #358353 and #358349]
7329 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7331 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7332 Also fix the arguments passed to CollectionChangeEventArgs in the
7335 2008-02-04 Geoff Norton <gnorton@novell.com>
7337 * Hwnd.cs: The conversion to Quartz coordinates happens in
7338 System.Drawing. Removing this translation from here.
7340 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7342 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7343 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7344 GridItemCollection.cs:
7345 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7347 2008-02-04 Geoff Norton <gnorton@novell.com>
7349 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
7350 SYSKEYUP if any other key has been pressed in the mean time.
7353 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7355 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7356 when the item in current position is different than 0. Also, save the
7357 item index in the beginning of the operation, instead of getting the
7358 index of the item when the event is actually performed. Lastly clean
7359 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7363 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7365 * Form.cs: Alt-Minus for MDI children system menu should work
7366 with both the minus keys on the keyboard.
7369 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7371 * Control.cs: Don't invalidate on region change. The WM should
7372 take care of this automagically. Keeps us out of an infinite
7373 paint loop if someone changes the Region in the OnPaint.
7376 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7378 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7380 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7382 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7383 down the MonthCalendar only on F4, not Alt+F4.
7384 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7387 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7389 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7390 if its part of a DateTimePicker, else, use the back color.
7393 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7395 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7398 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7400 * CurrencyManager.cs: When we get a ListChanged event from our source,
7401 always fire our own ListChanged event, as .Net does.
7403 2008-02-03 Luke Page <luke.a.page@gmail.com>
7405 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7408 2008-02-03 Luke Page <luke.a.page@gmail.com>
7410 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7411 property. Removed if for richtext property that was always true.
7412 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7414 2008-02-03 Luke Page <luke.a.page@gmail.com>
7416 * TextBoxBase.cs - commited patch from James Purcell that
7417 correctly sets the FixedHeight control style when the MultiLine
7418 property is changed on a TextBox control. Fixes bug 358229.
7420 2008-02-02 Luke Page <luke.a.page@gmail.com>
7422 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7423 Fixes bug 351938 - caret is positioned correctly when drawn
7424 and when calculating textual position of caret, no longer
7425 has a NRE in certain situations.
7427 2008-02-01 Geoff Norton <gnorton@novell.com>
7429 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7430 get that region removed from the paint event.
7431 * XplatUICarbon.cs: Remove the window mapping after disposing of
7432 window. Prevents a crash with handle reuse. Optimize exposes
7433 only onto visible windows (rare; but possible).
7435 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7437 * UpDownBase.cs: Make sure the internal textbox calls the base's
7438 OnMouseDown and OnMouseUp so the textbox will function correctly.
7439 There were notes saying it doesn't chain up, but its an internal
7440 class, so our implementation may differ.
7443 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7445 * ListBox.cs: Fix a logic error and don't process MouseDown
7446 for mouse buttons other than Left.
7448 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7450 * Control.cs: Remove HeightInternal.
7451 * ListBox.cs: Commit patch from James Purcell that correctly
7452 calculates heights for ListBoxen.
7455 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7457 * Label.cs: Apply patch from James Purcell that corrects the
7458 signature of the AutoSize property.
7461 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7463 * ListBox.cs: Don't throw [Mouse]Click events for buttons
7464 other than the left mouse button.
7466 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
7468 * Control.cs: Remove my awesome optimization as it caused some
7469 regressions with control ordering. :(
7472 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
7474 * PropertyGridView.cs: Fix a NRE on double click when there is no
7477 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7479 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7481 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
7483 * ListBox.cs: Call MouseClick and MouseDoubleClick.
7486 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7488 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7489 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7490 instead of Hwnd.bmp_g.
7492 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7494 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7495 Use the Hwnd one instead.
7497 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7499 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7501 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7503 * Form.cs: corcompare for RestoreBounds.
7505 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7507 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7509 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7511 * Form.cs: Handle Alt-Minus for MDI children forms.
7512 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7513 Add mnemonics to the control menu.
7516 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518 * Binding.cs: Initial implementation bits of FormattingEnabled
7519 property and BindingComplete event (2.0).
7520 * BindingCompleteEventArgs.cs: Internal methods for setting error text
7523 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7525 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7526 table.Location. [Fixes bug #354672]
7528 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7530 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7531 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
7533 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7535 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7536 of doing all the re-bound work, just invalidate and call SetControlText
7537 to set the updated text of selected item to our textbox.
7540 2008-01-28 Andreia Gaita <avidigal@novell.com>
7542 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
7543 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7544 missing properties and methods. Add Load, Unload, Error, GotFocus,
7545 LostFocus, Resize, Scroll events (only load and unload are connected)
7547 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
7549 * AccessibleObject.cs: Modified argument names to match MS.
7550 * Button.cs: Modified argument names to match MS.
7551 * BindingContext.cs: Modified argument names to match MS.
7552 * BindingMemberInfo.cs: Modified argument names to match MS.
7553 * ButtonBase.cs: Modified argument names to match MS.
7554 * ComboBox.cs: Modified argument names to match MS.
7555 * Control.cs: Modified argument names to match MS.
7556 * CheckedListBox.cs: Modified argument names to match MS.
7557 * CommonDialog.cs: Modified argument names to match MS.
7558 * DataGrid.cs: Modified argument names to match MS.
7559 * CursorConverter.cs: Modified argument names to match MS.
7560 * ControlPaint.cs: Modified argument names to match MS.
7561 * CheckBox.cs: Modified argument names to match MS.
7562 * ControlBindingsCollection.cs: Modified argument names to match MS.
7563 * BindingSource.cs: Modified argument names to match MS.
7564 * DataFormats.cs: Modified argument names to match MS.
7565 * ContainerControl.cs: Modified argument names to match MS.
7566 * CurrencyManager.cs: Modified argument names to match MS.
7567 * Application.cs: Modified argument names to match MS.
7568 * ContextMenuStrip.cs: Modified argument names to match MS.
7569 * ContextMenu.cs: Modified argument names to match MS.
7570 * BindingManagerBase.cs: Modified argument names to match MS.
7571 * WindowsFormsSection.cs: Fixed line ending.
7573 2008-01-27 Andreia Gaita <avidigal@novell.com>
7575 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7576 detecting that the dropdown toolwindow is hidden. EndLoop outside the
7579 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
7581 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7582 MS. Code formatting.
7584 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7586 * Binding.cs: Don't avoid the Format event if the control
7587 property type is object. Also, if the value retrieved by
7588 the data source is null _and_ the control proeprty type
7589 is object, return Convert.DBNull (match .Net).
7590 Fixes part of #324286.
7592 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7594 * ListControl.cs: Since we are getting two BinginContextChanged events
7595 for the same binding context instance (when the control is added to
7596 form, and when the form is actually shown), take it into account only the
7597 first time for a given binding context instance.
7598 Fixes part of #324286.
7600 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7602 * PropertryGridView.cs: Ops.
7604 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7606 * PropertyGridView.cs: Close dropdown form if the owner form is
7610 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
7612 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
7613 RootGridEntry.cs, CategoryGridEntry.cs:
7614 PropertyGrid rewrite.
7615 - Rewrite all of the control logic in PropertyGrid.
7616 - Rewrite all of the ComponentModel logic in GridEntry.
7617 - Rewrite all UI work in PropertyGridView.
7618 - Many bugfixes, etc.
7620 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
7622 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7623 when all contained controls are autosize or dock-fill. Also take into
7624 account when the total percentage of column/row sizes is not 100%.
7627 2008-01-24 Andreia Gaita <avidigal@novell.com>
7630 - Save a reference to the IDocument in the instance and
7631 use that one instead of going to WebHost.Document; the document that the
7632 WebHost returns might not be the right one (in case of frames).
7633 - Use the hashcode returned from the IDocument interface.
7634 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
7635 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
7636 LinkColor, Url, VisitedColor, Window
7639 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
7640 set_Attribute, NextSibling, Parent, TagName, AppendChild,
7641 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7642 SetAttribute, Equals, equality operators.
7643 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
7644 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
7646 * HtmlElementCollection.cs: Change implementation to use a generic
7647 collection. Implemented Enumerator and CopyTo
7649 * HtmlHistory.cs: Add constructor, no implementation yet.
7651 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
7652 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
7653 Equals, equality operators.
7655 * HtmlWindowCollection.cs: Implemented.
7657 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
7658 has been deprecated).
7660 * WebBrowserBase.cs: Use Completed event to track document loading
7661 (Navigated has been deprecated)
7663 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
7665 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
7666 level MenuItems do not respect tabs.
7669 2008-01-23 Geoff Norton <gnorton@novell.com>
7671 * XplatUICarbon.cs: Ensure that windows are created in their initial
7672 FormWindowState. Finished fixing Fullscreen windows on Carbon
7674 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7676 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
7677 be used as grab_control. Also save status of capture before show ContextMenu
7678 and restore it after close.
7680 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7682 * Control.cs: Internal FindRootParent method added to return high control
7685 2008-01-23 Geoff Norton <gnorton@novell.com>
7687 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
7688 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
7689 it work again. Handle HITTEST events.
7691 2008-01-23 Geoff Norton <gnorton@novell.com>
7693 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
7694 a crash in certain cases. Support for fullscreen windows in certain cases.
7696 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
7698 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
7701 2008-01-23 Geoff Norton <gnorton@novell.com>
7703 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
7705 2008-01-23 Geoff Norton <gnorton@novell.com>
7707 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
7709 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7711 * SplitContainer.cs: Remove unused declarations.
7712 * Binding.cs: Remove unused declarations.
7714 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7716 * Form.cs: Remove unused declaration of 'active' in Activate method.
7717 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
7718 prevent compilation warnings.
7719 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
7720 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
7721 * Bindings.cs: Remove unused formatting_enabled declaration.
7722 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7724 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
7726 * PropertyGridView.cs: Remove usused 'ex' declaration.
7727 * DataGridView.cs: Remove unused declarations.
7729 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7731 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
7733 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
7734 to Control class, it makes possible to grab menu to controls that can't
7735 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
7736 WmMouseMove removed since it was used only to track menu events.
7739 - Moved all active_tracker stuff from Form.
7740 - ProcessActiveTracker added to prevent code duplicity, now mouse events
7741 can call this method instead of reimplement all necessary code handle for
7743 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
7747 - Remove special handle to ToolStripOverflow, now we can grab menu to
7748 controls that can't reach Form using parent tree.
7749 - Change type of grab_control from Form to Control.
7751 2008-01-22 Geoff Norton <gnorton@novell.com>
7753 * TextBoxBase.cs: Split up the sizing of controls and placing of
7754 controls. Fixes a bug where scrollbars in Reflector could be sized
7755 wrong and have non-working thumbers.
7757 2008-01-23 Geoff Norton <gnorton@novell.com>
7759 * XplatUI.cs: Refactor environment variables to default support to the
7760 Carbon driver on the Mac.
7762 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
7764 * Label.cs: Uses new LabelPainter for drawing operations.
7765 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
7766 * Theme.cs: DrawLabel and LabelDefaultSize removed.
7768 2008-01-22 Geoff Norton <gnorton@novell.com>
7770 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
7772 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7774 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
7775 through the normal flat button code and don't draw the checkbox glyph.
7776 * Theme.cs: Button->ButtonBase signature change.
7779 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7781 * LinkLabel.cs: Uses new class LinkLabelPainter.
7783 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
7785 * MessageBox.cs: Adjust right border space, we don't need to add
7786 "space_border*2" two times.
7788 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7790 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
7791 becomes a wrapper around Padding.
7792 [Fixes a part of bug #354676]
7794 2008-01-22 Geoff Norton <gnorton@novell.com>
7796 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
7797 acquired. Also ensure the buffer is large enough to grab the header
7798 we need on linux boxes.
7800 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
7802 * Control.cs: Implement a custom enumerator so people can delete
7803 from the Controls collection while in a foreach.
7806 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7808 * PropertyGridView.cs: Fix focusing behavior:
7809 - Tab should focus the grid text box.
7810 - Clicking on the labels shouldn't focus the grid text box.
7812 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7814 * PropertyGridView.cs: IsValueTypeGridItem should return true
7817 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
7819 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
7820 - Renamed GridEntry.SelectedObjects to TargetObjects to better
7821 reflect the property name role.
7822 - PropertyGrid.GetTarget is not required as the target is known
7824 - Setting values will handle value types as a special case now and
7825 populate them up in the chain.
7828 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
7830 * Hwnd.cs: Create a public property for the Graphics we keep around.
7832 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7834 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
7835 when the current object selection changes.
7836 Fixes failing test SelectedObject_Null2.B5.
7838 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
7840 * PropertyGrid.cs: Process Browsable properties with
7841 DesignerSerializationVisibilityAttribute.Content as being expandable.
7842 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
7843 will not be expandable. We should be nested components-friendly now.
7845 2008-01-21 Andreia Gaita <avidigal@novell.com>
7847 * WebBrowserBase.cs: Check if control was loaded properly,
7848 don't bind if it wasn't.
7850 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
7851 GetElementFromPoint, equality operators, OpenNew, Write.
7852 Remove extra set_Body
7854 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7856 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
7857 that makes our AutoScale* stuff more tolerant to different orders
7858 of being set. [Fixes bug #354669]
7860 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7862 * PropertyGridView.cs, PropertyGridTextBox.cs:
7863 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
7864 [Fixes #339005 and #348209]
7866 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
7868 * PropertyGridView.cs: Hide the grid text box before adjusting it
7869 for the newly selected GridItem.
7872 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
7874 * Form.cs: Give MDI children the opportunity to cancel the parent form
7875 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
7876 properly for both the parent and child.
7877 * Application.cs: Signature of internal method changed, pass the previous
7881 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7883 * PropertyGridView.cs: Set the property value only if it has changed.
7886 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7888 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
7889 If the mouse hasn't actually moved, ignore these messages so the currently
7890 highlighted menuitem isn't reset to the one under the mouse.
7893 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
7895 * PropertyGridView.cs: When the property changes Invalidate the GridItem
7896 in order for the properties with UITypeEditor.GetPaintValueSupported == true
7897 to reflect the change visually.
7900 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
7902 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
7903 to 2.0 button drawing.
7904 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
7905 the button text is tall enough for one line. LineLimit says it will
7906 always draw at least one line, but it is a lie.
7909 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
7911 * XplatUIStructs.cs, X11Keyboard.cs :
7912 added some more VK_* keys to be handled.
7914 2008-01-16 Andreia Gaita <avidigal@novell.com>
7916 * Control.cs: Check if there is a container before setting or getting
7917 the validation flag.
7919 2008-01-16 Andreia Gaita <avidigal@novell.com>
7921 * ContainerControl.cs: Add flag to track if a control cancels validation,
7922 so we don't fire click events.
7925 - (HandleClick) Check if validation was cancelled before firing the click
7926 events (doubleclicks are fired, but not clicks)
7927 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
7928 ContainerControl.set_ActiveControl, but in the case of non-selectable
7929 controls, like a Label, activecontrol is not set.
7931 * ButtonBase.cs: Only fire clicks if validation passes.
7935 2008-01-16 Geoff Norton <gnorton@novell.com>
7937 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
7940 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
7942 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
7943 SelectedPath, just display the default dialog instead of crashing.
7946 2008-01-16 Geoff Norton <gnorton@novell.com>
7948 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
7949 AddExpose instead of trusting apples compositing manager which doesn't
7950 work for our use case. Remove some dead code causing warnings and
7951 redecorate some other code to prevent warnings.
7953 2008-01-16 Geoff Norton <gnorton@novell.com>
7955 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
7956 carbon signals us to redraw. Fixes another portion of the flickering bug
7958 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7960 * Form.cs: Prevent the MdiParent property to be set when value is the same
7961 as value already set. Fixes bug #328019.
7963 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7965 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
7966 it prevents NRE when closing mdi child windows. Fixes bug #325211.
7968 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7970 * InternalWindowManager.cs: Invalidade close button after mouse up when
7971 mdi form is prevented to close.
7973 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
7975 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
7976 thanks to Andy Hume. Fixes bug #325433.
7978 2008-01-16 Andreia Gaita <avidigal@novell.com>
7980 * LinkLabel.cs: Reset focused_index when resellecting the control.
7983 2008-01-15 Geoff Norton <gnorton@novell.com>
7985 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
7988 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7990 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
7993 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
7995 * ContainerControl.cs: Setting AutoScaleMode to anything should set
7996 Form.AutoScale to false.
7997 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
7998 AutoScaleBaseSize should be changed on Font change unless it has been
8002 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
8004 * MenuAPI.cs: On instance of MenuTracker check if source control is
8005 ToolStripOverflow and use properly method to find form.
8008 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
8010 [Fixes bug #323241 Transparent toolbar support]
8012 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8015 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8016 defined in control style to mimic win32 behavior.
8018 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
8019 it will be transparent.
8021 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
8023 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8024 CreateParams for ToolBar controls.
8026 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8028 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8029 FixedToolWindow, SizeableToolWindow, or None for border styles have
8030 different minimum sizes than regular forms. Implemented to fix
8031 regression in PDN with toolbox being too wide.
8033 2008-01-14 Andreia Gaita <avidigal@novell.com>
8035 * HtmlElementCollection.cs: Implemented
8037 * HtmlElement.cs: Implemented:
8045 * HtmlDocument.cs: Implemented GetElementsByTagName.
8047 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8049 * Screen.cs: Stub BitsPerPixel to always return 32.
8051 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8053 * Form.cs: Implement RestoreBounds.
8055 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8057 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8058 Sebastien and his fabulous magical problem-finding machine:
8059 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
8060 respect the value set.
8062 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
8064 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8065 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
8067 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8069 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8070 messages (to match .Net), we need to remove the capture ourselves.
8072 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
8074 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8075 will process the message and close our window.
8078 2008-01-10 Geoff Norton <gnorton@novell.com>
8080 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
8081 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
8084 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8086 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
8089 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8091 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
8092 Linux doesn't care, having a minimum matches MS and keeps the window
8093 from becoming too small to use window decorations.
8096 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8098 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8099 ShowFocusCues. Make focus rectangles fit the text instead of the whole
8100 control. [Fixes bug #325419]
8102 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8104 * ComboBox.cs: Guard against an NRE if the user open a new form from a
8105 SelectedIndexChanged event. This closes the combobox dropdown, and we
8106 were trying to dispose it. [Fixes bug #352830]
8108 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8110 * Control.cs, Form.cs: Implement the necessary semantics for
8111 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
8112 to determine if a focus rectangle should be drawn.
8113 * PropertyGrid.cs: Fix property visibility to match override.
8114 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8116 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8118 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8121 2008-01-09 Geoff Norton <gnorton@novell.com>
8123 * XplatUICarbon.cs: Scroll windows in the correct direction.
8125 2008-01-09 Geoff Norton <gnorton@novell.com>
8127 * XplatUICarbon.cs: Track all created utility windows so we can hide them
8128 when the app is deactivated or spaces is enabled.
8130 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8132 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8133 extra separation pixel for the label rect origin if SmallImageList is
8134 null, and thus we don't need that separation between icon and label
8136 Patch by Ernesto Carrea.
8139 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
8141 * StatusStrip.cs: Invalidate after completing a layout. The base
8142 OnLayout does this, but we don't call the base.
8143 * ToolStripItem.cs: Revert the previous change to invalidate after
8145 [Fixes bug #351341 better.]
8147 2008-01-07 Geoff Norton <gnorton@novell.com>
8149 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
8150 not a notification to exit the application. Listen for WM_QUIT
8153 2008-01-07 Andreia Gaita <avidigal@novell.com>
8155 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8157 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
8159 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8160 so it can repaint at the correct location.
8163 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8165 * ListControl.cs: SelectedValue should return a null value if
8166 SelectedIndex is -1. Also, when setting it, it should throw an
8167 ArgumentNullException if the value is null, as well as taking
8168 into account the String.Empty value, instead of ignoring it (we have
8169 tests for that now).
8170 Fixes part of #324286.
8172 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
8174 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8175 SelectionStart is updated after pressing enter. Fixes bug #351918.
8177 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8179 * TextControl.cs: Revert a piece r92316 that prevented the fix
8180 from working when there were multiple tags in the text box.
8183 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8185 * TextControl.cs: Apply patch from Luke Page that prevents an
8186 NRE when determining the beginning of a paragraph.
8189 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8191 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8192 caret gets moved with clicking away from a selected block of
8193 text. Fixes bug #351885.
8195 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8197 * TextControl.cs: Apply patch from Luke Page that takes line
8198 alignment into account for mouse selection, so that center and
8199 right aligned text can be selected.
8202 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8204 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8205 issues after loading an RTF file by using the correct line feeds.
8208 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8210 * TextControl.cs: When deleting multiple line selections, we need
8211 to invalidate every line beginning at the first line of the selection.
8212 Patch from Luke Page fixes bug #351791.
8214 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8216 * ListControl.cs: When getting a CurrencyManager.PositionChanged
8217 event, don't set SelectedIndex if the number of items is 1. This is
8218 because, for the first item, PositionChanged is fired _before_
8219 ItemChanged (the place where we actually populate the items), and
8220 leave us in a temporary invalid state (since items collection is
8224 2008-01-04 Geoff Norton <gnorton@novell.com>
8226 * XplatUICarbon.cs: Create native toolwindows instead of
8227 the managed drawing ones.
8229 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8231 * LineTag.cs: If the line doesn't have any characters, return
8232 0 for GetCharIndex. Fixes an AOORE exception after certain
8233 caret movements. Fixes bug #351683. Patch by Luke Page.
8235 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8237 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8238 is hit when there is selected text, only the selected text gets
8239 deleted, not the character in front of the selection as well.
8242 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8244 * ComboBox.cs: When the values are displayed, calculate the
8245 ComboListBox scrollbar's LargeChange based on the visible area's
8246 height and the actuall ItemHeight, instead of calculating it
8247 based on MaxDropItems value, since it's not used by our _current_
8251 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8253 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8254 Patch from Luke Page that fixes issues with font colors and styles
8255 not showing up in a readonly RichTextBox. Fixes bug #324354.
8257 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8259 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8260 from Luke Page. This one fixes bug #349926.
8262 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8264 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8265 an item in the IBindingList source changes with
8266 ListChangedType.ItemAdded. Ignore for now firing the event for other
8267 changes, since we want to have tests for those cases as well.
8269 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8271 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8274 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8276 * TextBoxTextRenderer.cs: Implement a cache for measuring each
8277 character. This is effective because the typical usage of a
8278 TextBox is with a limited amount of fonts and characters, and
8279 the current implementation of TextBox measures everything one
8280 character at a time. Another second or two speedup for bug #347238.
8282 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8284 * Control.cs: Rewrite the Font getter to only query the parent's
8285 Font property once instead of twice. Since this operation is
8286 recursive, the queries were growing exponentially as the control
8287 tree got deeper. Another second or two speedup for bug #347238.
8289 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8291 * Control.cs: Avoid setting a parent (and more importantly, updating
8292 the zorder of all its children) if the parent is already correct in
8293 WmShowWindow. Decreases the startup time of the test case on bug
8294 #347238 from 35 seconds to 11 seconds.
8296 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8298 * X11Dnd.cs: When the dnd operation has started and we are
8299 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8300 This is done to match .Net, which doesn't send those messages after
8301 dnd operation was completed/cancelled.
8304 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8306 * ToolStrip.cs: Previous change should be != null, not == null.
8309 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8311 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8312 user may have moved the mouse off the current item during the event.
8314 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8316 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8317 calling GetItemAt for every MouseMove event by also taking into
8318 account whether any mouse button is pressed (probably dragging);
8319 if so, we can call GetItemAt, and if not, try to not call it
8320 (GetItemAt can be quite expensive when used with a large number of items).
8322 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8324 * ListView.cs: Implement -finally- support for dnd, by calling
8325 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8327 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8328 simple calculation of distances for all the items in the owner
8331 2007-12-21 Geoff Norton <gnorton@novell.com>
8333 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
8334 for windows that are originally created as invisible. Fixes missing
8335 main window in paint-mono.
8337 2007-12-21 Geoff Norton <gnorton@novell.com>
8339 * XplatUICarbon.cs: Register our D&D handler. Register our custom
8340 subclass handler for com.novell.mwfview subclassing HIView. Implement
8341 Pasteboard and Dnd methods.
8343 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8345 * ListBox.cs: When we got focus, give focus to first item if there
8346 wasn't any pervious focused item. Also update navigation to depend on
8347 SelectedIndex rather than FocusedItem, just as .Net does.
8350 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8352 * ListBox.cs: Both FindString and FindStringExact methods must do an
8353 case insensitive search, should allow the last valid index to be
8354 passed in the overload taking an initial index, and should also
8355 continue searching from the top back to the specified index when it
8358 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8360 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8361 redraw issue, and allows RichTextBox to draw colored text even while
8362 disabled or readonly.
8364 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8366 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8367 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8368 and doesn't grey text in a disabled RichTextBox.
8370 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8372 * RichTextBox.cs: Apply patch from Luke Page that adds better support
8373 for many RTF commands: quad alignment, separate formatting for blocks
8374 inside groups, and ParDef support. Makes the test case from bug #324589
8377 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8379 * LineTag.cs: Fix an error in the new Draw method that caused
8380 a crash when rendering the document on bug #324589.
8382 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8384 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8385 TextControl.cs: Apply patch from Luke Page that adds support
8386 for URL links in RichTextBox.
8387 [Fixes enhancement #342516]
8389 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
8391 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8392 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8394 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8396 * ListBox.cs: When a key gets pressed, try to find a string
8397 if the key is a character or a digit.
8400 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8402 * TableLayoutPanel.cs: Remove some unused variables.
8404 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8406 * DateTimePicker.cs: Commit patch from Luke Page that ensures
8407 we don't end up at an invalid date when we click the up/down
8408 spinner to change the month or year. Fixes bug #348682.
8410 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8412 * Application.cs: Calling Exit in 2.0 should chain to the
8413 Exit (CancelEventArgs) version so it can be cancelled.
8414 * Form.cs: Create a flag to allow raising the Closing
8415 events to be skipped. We raise them once in Application.Exit
8416 and don't want to raise them again when the Form is actually
8417 closed. [Fixes bug #349073]
8419 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
8421 * ToolStripDropDown.cs: Guard against an NRE when there
8422 hasn't been a mainform set in the application context.
8425 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8427 * ListBox.cs: When SetBoundsCore gets called, besides
8428 calling UpdateScrollBars, update the value of
8429 last_visible_index, since we could need to show more items
8430 than before, and we need to let the paint routines know that.
8433 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8435 * ListView.cs: Add DesignerSerializationVisibility attribute to
8436 InsertionMark property.
8437 * ListViewItem.cs: Add same attribute to Position property.
8439 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8441 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8444 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
8446 * ThemeWin32Classic.cs: Don't draw the background on a
8447 flat button if there is a background image.
8450 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8452 * ListBox.cs: If we remove the item currently selected,
8453 remove it not only from SelectedItems, but also
8454 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
8455 the items count decreased and focused_item has bigger value than that.
8457 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8459 * Control.cs: Perform our layout after we resize ourselves
8460 if we had to adjust our AutoSize. Missed commit for bug
8463 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8465 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8466 we can provide an implementation of AutoSize.
8469 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8471 * ListBox.cs: Add the internal overload Sort (bool paint),
8472 to indicate whether we actually need a paint or we will
8473 call Refresh ourselves. This way we don't request a paint
8474 _before_ having an updated and valid layout.
8477 2007-12-12 Andreia Gaita <avidigal@novell.com>
8479 * XPlatUIX11.cs: Send paint messages when updating a systray icon
8480 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8481 properly invalidated.
8484 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8486 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8487 don't simply assign it to our internal group field, but instead
8488 use our Group property, which should do all the neccessary work
8489 required to support groups. Fixes an issue reported to me (mail) by a
8490 guy using this new feature.
8492 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
8494 * Control.cs: Use Scale instead of ScaleControl to ensure the
8495 whole hierarchy gets scaled.
8498 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8500 * DateTimePicker.cs: Don't set the internal MonthCalendar's
8501 Parent property. Doing this causes the control to be hosted by
8502 the Form instead of being a popup window.
8505 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8507 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8508 at an index higher than Count, just use Add instead of Insert.
8511 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8513 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8514 DrawPictureBox, this is handled by Control.PaintBackground.
8517 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
8519 * MenuAPI.cs: When process menu keys return true by default only if menu is
8520 active. Fixes bug #342892.
8522 2007-12-09 Andreia Gaita <avidigal@novell.com>
8524 * Control.cs: check if windows are actually mapped before
8525 trying to zorder. Fixes #342509, #346955
8527 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8530 * ListViewInsertionMark.cs:
8531 * ThemeWin32Classic.cs: Implement the drawing side of the
8532 new 2.0 ListView.InsertionMark property.
8534 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
8536 * CurrencyManager.cs: Silence some debug spew.
8538 2007-12-07 Geoff Norton <gnorton@novell.com>
8540 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8541 masks for our children as well as siblings to avoid having to query
8542 Quartz for this information.
8543 * XplatUICarbon.cs: Implement a delegate based system to pass
8544 information to System.Drawing. Implement Async methods. Remove
8545 the hack for the resize thumb and imlpement a transparent Grow Box.
8546 Rework the messaging system to proplery create window's and messages,
8549 2007-12-06 Andreia Gaita <avidigal@novell.com>
8551 * X11Keyboard.cs: Use Xutf8LookupString to support international
8552 characters under alternate codepages. Patch from #340878
8554 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8556 * ListView.cs: When doing layout computations, set position in the
8557 ListView instances (we cache the position just as .Net does).
8558 * ListViewItem.cs: New internal setter method for Position. Also set
8559 position field as also available in 1.1, since we are going to use it
8560 now in the common case.
8562 2007-12-06 Andreia Gaita <avidigal@novell.com>
8564 * Control.cs: When removing controls, get the actual container
8565 to notify about active control changes. Fixes 341314.
8567 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8569 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8571 2007-12-05 Andreia Gaita <avidigal@novell.com>
8573 * Control.cs: When updating the zorder, ignore windows that are not
8574 mapped. Fixes #342509
8576 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8578 * ListViewItem.cs: Actually implement serialization on this class.
8580 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
8582 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8583 LinkCollection. Spaces to tabs, and removed extra tabs.
8585 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8587 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8588 tests to fail (hopefully).
8590 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8592 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8593 the image margin so custom renderers can correctly place it.
8595 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8597 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8598 so custom renderers can correctly place it.
8600 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8602 * Application.cs: Let WM_CHAR messages flow through to controls
8603 hosted in Strips. [Fixes bug #343972]
8605 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8607 * ToolStripManager.cs: Guard against an NRE I ran into.
8609 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8611 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
8612 a Link is manually added to the Links collection, we need to set
8613 its owner, so it can invalidate properly.
8616 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8618 * ListView.cs: When changing ListViewItem.Position (which calls
8619 ListView.ChangeItemLocation), invalidate not only the area
8620 corresponding to the main item, but also to the area occupied
8621 by the items being moved.
8623 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8625 * ListView.cs: When changing the position of a given item,
8626 don't use item bounds, but item areas (which includes the item spacing
8627 between them). Also, use first/last position if the requested
8628 position is outside bounds (as .Net does). Invalidate the previous and
8629 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8630 in a specific position, instead of directly accessing Items collection
8631 (this is done to get the right item - remember an Item can have a
8632 different position in the grid than in the Items collection).
8634 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8636 * MessageBox.cs: Calculate text area instead of just top left, this rect
8637 area will be used in DrawString. Fixes bug #343364.
8639 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8641 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8642 screen width. Partially fixes bug #343364.
8644 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8646 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
8647 code inside recalculate, it makes code more simple.
8649 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
8651 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
8652 between update or add icon. Fixes bug #324344.
8654 2007-11-21 Andreia Gaita <avidigal@novell.com>
8656 * XPlatUIX11.cs: Do not treat tool windows as if they have no
8657 window manager, since that stretches the drawing area to include
8658 the window decorations, and they get hidden. Reverts r84444 and fixes
8659 #335849 and #342790 (mdi and pdn3 regression)
8661 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8663 * ListView.cs: When setting focused item, try to give focus to the
8664 previous one _only_ if the previous one remains valid.
8667 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
8669 * Application.cs: Revert r89650, as it broke a common case to fix
8670 an obscure case. Fixes bug #342606.
8672 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8674 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
8676 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
8678 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
8679 alignment. [Fixes #324228]
8681 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8683 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
8686 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
8688 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
8689 it prevent problems when empty captions. [Fixes #342141]
8691 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
8693 * Label.cs: Use Size instead of None. Fixes bug #342077.
8695 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8697 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
8699 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8701 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
8702 but there isn't a MdiContainer.
8705 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
8707 * TextControl.cs: Don't recalculate document if the recalc_start and
8708 recalc_end hasn't changed.
8711 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
8713 * DataGridViewTextBoxCell.cs: Removed CWL.
8715 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8717 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
8719 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8721 * TextControl.cs: Missed some code for bug 341534 to trigger a
8722 recalculation when the font changes.
8724 2007-11-16 Andreia Gaita <avidigal@novell.com>
8726 * Control.cs: When updating the zorder, check if the child to update is
8727 the same control that is set to always be on top (i.e., scrollbars), and
8728 just put it on top directly. Fixes BadMatch error on pdn3
8730 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8732 * ListView.cs: Throw the needed exceptions for FindNearestItem.
8734 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
8736 * Control.cs: Don't perform a new layout when a label changes its text,
8737 cause label handles its own autosizing.
8740 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8742 * ListView.cs: Implement 2.0 FindNearestItem methods.
8744 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8746 * ToolStripPanel.cs: Make Join at least add the control to the panel,
8747 even if the rest of what Join does isn't supported. Add some more
8748 support for vertical toolbars.
8749 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
8750 [Fixes the application breaking parts of bug #341998]
8752 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8754 * ToolStripItem.cs: When determining if we have a check/image margin,
8755 we need to look at ShowCheckMargin as well as ShowImageMargin.
8757 2007-11-15 Geoff Norton <gnorton@novell.com>
8759 * XplatUIOSX.cs: Rename to...
8760 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
8761 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
8763 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
8765 * KeysConverter.cs: The default values should be an array of Keys, not
8766 strings. Also, the array has more values for 2.0.
8769 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8771 * Application.cs: Change ExecutablePath to use
8772 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
8775 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8777 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
8778 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
8779 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
8780 be ignored. Create a new GetLineEnding that can specify which types of
8781 line endings to look for. On Insert, only create new lines for \n and \r\n.
8784 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
8786 * TextBoxBase.cs: As we loop through each line changing the font, tell
8787 the document that the line needs to be recalculated. Fixes bug #341534.
8789 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
8790 [Another round of refactoring]
8791 * Line.cs: Add DeleteCharacters.
8792 * LineTag.cs: Add Delete.
8793 * TextBoxBase.cs: Update to use new methods.
8794 * TextControl.cs: Refactor the Delete* methods.
8796 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
8798 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
8799 the patch. [Fixes #324856]
8801 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8804 * ListViewItem.cs: Add an initial implementation of
8805 2.0 ListViewItem.Position getter.
8807 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8809 * ListView.cs: Add a reordered_items_indices array, to allow us
8810 to have a different sorting than that of Items (the sorting in Items
8811 could not match the actual sorting in screen). This is needed to
8812 implement a pair of 2.0 features.
8813 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
8814 actual position in the ListView grid, since it could have a position
8815 different than its Index (position in ListViewItemCollection).
8817 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8819 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
8820 not draw partial lines.
8821 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
8822 LineLimit flag from the base is preserved.
8823 Fixes the windows part of bug #338965.
8825 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
8827 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
8828 so that it can be canceled in KeyPress.
8831 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8833 * ListView.cs: In ItemControl, reset mouse-handling related
8834 fields even if we dont' have items (we still should reset them when
8835 we had items but then called Items.Clear). Partially based in a patch
8839 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
8841 * Application.cs: In ProductVersion first try AssemblyFileVersion
8842 before falling back to assembly version. Fixes bug #339787.
8844 2007-11-08 Andreia Gaita <avidigal@novell.com>
8846 * HtmlElement.cs: Implement InnerText setter.
8847 * WebBrowserBase.cs: Implement Navigated event support.
8848 Add flag to track when the browser "document" is ready to be retrieved.
8849 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
8850 Make sure browser document is ready before retrieving it.
8851 Clean up cached objects (document) when moving to a new page through
8852 any of the navigation methods.
8853 Use the new Mono.WebBrowser.INavigation interface to control navigation.
8854 Implement OnNavigated event.
8856 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
8858 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
8859 DrawLinkLabel, this is handled by OnPaintBackground.
8860 Fixes bug #339565, part II.
8862 2007-11-07 Andreia Gaita <avidigal@novell.com>
8864 * Control.cs: Revert r88915. Selecting text on a textbox depends on
8865 getting a Select call on click, so this call needs to be here for now.
8868 2007-11-07 Geoff Norton <gnorton@novell.com>
8870 * OSXStructs.cs: Add the kEventClassApplication constants.
8871 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
8872 application is deactivated otherwise Menu overlays linger on top of
8873 other application windows.
8875 2007-11-07 Geoff Norton <gnorton@novell.com>
8877 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
8878 dont support cursors yet anyways. This allows Reflector to run.
8880 2007-11-07 Geoff Norton <gnorton@novell.com>
8882 * XplatUIOSX.cs: Implement DragSize.
8884 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8886 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
8887 ItemControl, request the focus, as .Net does. This is needed after
8888 Control does not request focus anymore when it receives a
8891 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
8893 * Label.cs: Make DrawImage internal so it can be called from Theme code.
8894 Remove the DrawImage call from OnPaint.
8895 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
8896 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
8897 but before we draw the text for DrawLabel and DrawLinkLabel.
8900 2007-11-05 Andreia Gaita <avidigal@novell.com>
8902 * Control.cs: Remove select call on click. Fixes #325809
8904 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8906 * ListViewItem.cs: Add 2.0 Position property getter.
8908 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8910 * ListView.cs: Add 2.0 BackgroundImageTiled property.
8911 Also, to make it work properly, change item's BackColor and
8912 BackgroundImageLayout as needed.
8913 * ThemeWin32Classic.cs: Don't fill any background rectangle
8914 in ListView.ItemControl when drawing items; just let the Control
8915 base implementation fill it.
8917 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8919 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
8920 as well as adding a custom 'dummy' Converter, as .net does.
8922 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8924 * PropertyGridView.cs: When clicking drop-down button,
8925 select an index in the listbox only if our standard values collection
8926 has one or more items.
8928 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8930 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
8933 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8935 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
8936 the value is not changed. This ensure a pushed button remains in that
8937 state when clicked again. When switching the value of PropertySort
8938 between Categorized and CategorizedAlphabetical, do not update the
8939 grid items and do not fire a PropertyChangedEvent. When clicking the
8940 sorting buttons, do not modify the PropertySort value when switching
8941 between Categorized and CategorizedAlphabetical but only update the
8944 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8946 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
8948 * PropertyGrid.cs: Also put Categorized button in pushed state when
8949 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
8950 for help description label.
8952 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8954 * ListView.cs: When calculating the biggest item for a given column,
8955 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
8958 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
8960 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
8961 value for PropertySort on 1.0 profile. PropertySortChanged event
8962 should only be fired on 2.0 profile. Fixed NullReferenceException
8963 in UpdateSortLayout when PropertyGrid contains no items.
8965 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
8967 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
8970 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8972 * ListViewItem.cs: Implement 2.0 IndentCount property.
8974 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8976 * X11Dnd.cs: When sending status in a dnd operation, compare current
8977 effect with the 'allowed' field instead of 'drag_data.Allowed', since
8978 the later is only created when a Winforms application is both the
8979 source and the target, but not when we are the target only.
8980 Fixes part of #324251.
8982 2007-11-01 Geoff Norton <gnorton@novell.com>
8984 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
8986 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
8987 children out of the drawing view on mac.
8988 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
8989 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
8991 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
8993 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
8994 on the non-hosted-control part of it shouldn't do anything.
8995 Fixes part of bug #327498.
8997 2007-11-01 Andreia Gaita <avidigal@novell.com>
8999 * WebBrowserBase.cs: revert previous change, resize can be called anytime
9001 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
9003 * Application.cs: When a toolstrip has the keyboard input loop, let messages
9004 it does not use flow through to controls that are hosted in menus.
9005 Same with mouse clicks.
9006 * Form.cs: Don't close all menus on click if the click is on a
9007 control hosted in a menu.
9008 Fixes part of bug #327498, and part of bug #325969.
9010 2007-10-31 Andreia Gaita <avidigal@novell.com>
9012 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9014 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
9016 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9017 Addresses an issue raised in bug #336218.
9019 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
9021 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9022 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
9024 2007-10-30 Andreia Gaita <avidigal@novell.com>
9026 * ContainerControl.cs: Check if the active control is a
9027 child of a removed control and update active_control accordingly.
9030 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9032 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9033 or the MaxDate. Fixed bug #337693.
9035 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9037 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9038 after calling SetWindowLong for a form, to force an immediate NC refresh.
9039 Fixes first part of bug #325150.
9041 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9043 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9044 simple. Fixes the last part of bug #322668.
9046 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9048 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9049 needs to be TopMost as well, or else the MessageBox is under the form.
9050 Patch by George fixes bug #325300.
9052 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9054 * X11Dnd.cs: When starting a new drag operation, reset the static
9055 'dropped' field to false (previously the implementation didn't reset
9056 it and got confused after the first drag).
9059 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9061 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9062 items instead of re-creating them all. For this purpose we now cache
9063 both CategoryGridEntry items and the GridEntries for the main object's
9065 * GridItem.cs: Make SetParent method abstract.
9066 * GridEntry.cs: Override the SetParent method (already there, but now
9070 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9072 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9073 depending on its depth (as .Net does). Update the needed values in
9074 MouseDown handler. Also draw the plus/minus rect after the label,
9075 so we don't draw on top of it.
9077 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
9079 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9080 processed by forms or controls when menu is active. [Fixes #333548]
9082 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9084 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9085 parent doesn't have focus. This was causing ToolStripTextBoxes to take
9086 focus on mouse over.
9088 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9090 * TextControl.cs: Code cleaning, simplifying.
9092 2007-10-24 Geoff Norton <gnorton@novell.com>
9094 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9095 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9097 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9099 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9100 the cap is maxvalue, not actually 0. [Fixes bug #336218]
9102 2007-10-24 Andreia Gaita <avidigal@novell.com>
9104 * SendKeys.cs: apply jpobst's patch to bug #332409
9106 2007-10-23 Andreia Gaita <avidigal@novell.com>
9108 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
9109 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9112 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9114 * PropertyGridView.cs: If a property has an UIEditor available,
9115 make the drop-down/editor button available only if the property
9118 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9120 * PropertyGridView.cs: Don't make the grid item textbox
9121 editable when a drop-down control is available, but
9122 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9123 true. The same bur the color of the grid item value's label.
9125 2007-10-22 Geoff Norton <gnorton@novell.com>
9127 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9128 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9129 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
9130 driver. Padd the bottom of all real windows so the resize thumb doesn't
9131 obscure scroll/status bars.
9133 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
9135 * WindowsFormsSection.cs: Implement.
9137 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9139 * MdiClient.cs: Maximize new active mdi child when a maximized child is
9140 closed see #325434 patch.
9142 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9144 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9147 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9149 * PropertyGridView.cs: When showing the textbox for a grid item,
9150 have two local variables to store the read-only and non-editable
9151 status of a grid item (we were previously using just one variable
9152 to do this, when actually they are slightly different).
9153 Fixes part of #325023.
9155 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9157 * PropertyGridView.cs: When showing a drop-down list, try to get the
9158 values using TypeConverter.ConvertTo (to convert to a string). Fixes
9161 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9163 * PropertyGrid.cs: When updating a property and populating sub grid
9164 items, remove the previous ones, and invalidate the specific area.
9165 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9166 area behind a grid item.
9167 * GridItemCollection.cs: Add an internal Clear method, to allow us to
9168 clean the items if needed (specially for controls implementing
9169 ICustomTypeDescriptor and returning a variable number of properties).
9172 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
9174 * TextControl.cs: Clean up and document the Insert function.
9176 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9178 * TextControl.cs: Make sure we know our start point for updating the view
9179 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
9182 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9184 * ListView: Couple of corcompare fixes.
9186 2007-10-17 Geoff Norton <gnorton@novell.com>
9188 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
9189 the title caption of real window.
9191 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9193 * ErrorProvider.cs: Add the error provider's internal window to a
9194 containercontrol when the parent changes. [Fixes bug #329714]
9196 2007-10-17 Geoff Norton <gnorton@novell.com>
9198 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
9199 When we make a new window; restore the old active window - fixes dialogs.
9201 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9203 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9204 when modifying a property, and if found then invalidate as
9206 Fixes part of #324865.
9208 2007-10-17 Geoff Norton <gnorton@novell.com>
9210 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
9211 highly experimental. Fixed coordinate translation. Fixed window locations.
9212 Initial support for clipping. Implemented NC areas and menus. Support for
9213 launching from command line from Will Johansson (wjohansson@atacomm.com).
9214 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9215 wjohansson@atacomm.com)
9216 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9217 Hwnds now track the existence of all of their children for Mac clipping.
9218 * XplatUI.cs: Re-enabled the native driver on the Mac.
9220 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9222 * Line.cs: Move the InsertString function to here.
9223 * TextControl.cs: Cleanup some duplicate code, move some InsertString
9224 functionality to Line.
9226 2007-10-17 Geoff Norton <gnorton@novell.com>
9228 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
9230 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
9232 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9233 always setting value to true.
9234 * Form.cs: When changing AcceptButton, notify new and original button.
9236 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
9238 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9239 a custom control that implements IButtonControl instead of an actual
9240 button. [Fixes bug #334244]
9242 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9244 * Form.cs: Change SelectActiveControl to internal, we need to call it in
9247 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9248 active control when activate a new mdi window.
9252 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9254 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9258 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9260 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9261 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
9262 so we always recalculate the whole document instead of just the new part.
9265 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9267 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9268 when the mouse was to the left of the first character in the line.
9270 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9272 * TextBox.cs, TextBoxBase.cs: When setting the document's password
9273 character, use the property instead of the variable so that the
9274 UseSystemPasswordChar property is taken into account.
9277 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9279 * FolderBrowserDialog.cs: When a node is right clicked and the "New
9280 folder" contex menu appears, actually add the new folder to it, even
9281 if the node is not currently selected. Still use SelectedNode in case
9282 there wasn't found a node under the pointer.
9285 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9287 * ListViewItem.cs: When retrieving the focused state, the index check
9288 should be done only when ListView is in virtualmode, as it is an
9289 expensive check for normal mode.
9291 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9293 * ListViewItem.cs: Make the focus state information be stored
9294 in the ListView, not in the items. This is done to match the MS
9295 behaviour for items that are not yet part of a ListView control;
9296 besides that, since just one item can be focused at the same time,
9297 we save a little space in our items.
9298 Fixes part of #331643.
9300 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9302 * ComboBox.cs: When focus is lost, deselect the text. When setting
9303 text of control, select all text. Do not hide selection when control
9304 does not have focus. Fixes bug #333663.
9306 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9308 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9309 instead of ArgumentException when SelectionLength is set to negative
9310 value. Added same check to SelectionStart. Code formatting.
9312 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9314 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9315 or SelectionStart. Code formatting.
9317 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9319 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9320 indicating that there was not a previous drag-and-drop operation going
9322 Fixes part of #325071.
9324 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9326 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9327 AllowedEffect, don't let the drop operation happen.
9330 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9332 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9334 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9336 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9339 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9341 * Line.cs: Add a method that finds the tag that contains an x-coord.
9342 * LineTag.cs: Add a method that finds the character at an x-coord using
9343 a binary search, the old way was a linear search.
9344 * TextControl.cs: Change FindCursor to use the above new methods.
9346 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9348 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9349 value different than AllowedEffect). This should be possible to
9350 indicate that dragging is not possible in some control/area.
9352 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
9354 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
9355 descent internally when font changes instead of outside code being responsible
9357 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9358 instead of accessing internal variables.
9360 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
9362 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9363 remove special treatment for ArrangeIcons since it is already arranged.
9365 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9367 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9368 the Win32 backend uses Color.
9369 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9370 Refactor to store a Color instead of a Brush for Color.
9372 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9374 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9375 away. I didn't realize I needed this when I refactored these earlier.
9377 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9379 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9380 store a Color structure and use the ResPool for back color instead of
9381 holding onto brushes.
9383 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9385 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9388 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9390 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9391 to recalculate its size. Fixes a part of bug #331052.
9393 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9395 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9396 button. Fixes a part of bug #331052.
9398 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9400 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9402 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9406 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9408 * TextBoxTextRenderer.cs: Don't make this a static class, as static
9409 doesn't exist in 1.1. (Thanks jb!)
9411 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9413 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9414 class to allow us to use different backends on different platforms.
9415 Linux uses the current [Draw|Measure]String backend. Windows uses
9416 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9417 of GDI+. This leads to better looking text and more accurate measurements
9418 on Windows, fixing many of the reported issues.
9419 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9421 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9423 * FolderBrowserDialog.cs: When running on Windows,
9424 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9425 since we must match both "C:" and "C:\" forms. A little hackish, but
9429 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9431 * ListView.cs: When calling EndEdit (after editing an item),
9432 create a new instance of LabelEditEventArgs to keep clean the fields
9433 in case we get a new call to BeginEdit; also do Application.DoEvents
9434 to have focus in synch. This is a fix similar to TreeView's #325244.
9436 2007-10-07 Andreia Gaita <avidigal@novell.com>
9438 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9439 * WebBrowserBase.cs: Added dialog support, calling the
9440 WebBrowserDialogs classes for each specific dialog type.
9442 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9444 * ListView.cs: When the last item is focused and is removed,
9445 move the focus to the previous item (in Items order). This is what MS
9449 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9451 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9452 instead of the opposite (RemoveAt call Remove). This is a better
9453 approach since we don't need to to a pair of traversals when using
9456 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9458 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9459 check that the node actually has nodes, and if not, move to the
9460 parent node instead.
9463 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9465 * TreeView.cs: Move the previous change to the general case (to
9466 call Application.DoEvents in cases where the method was called by
9469 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9471 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9472 call Application.DoEvents. This is neccessary when we get a call to
9473 BeginEdit from an AfterLabelEdit handler, because the focus always
9474 goes to the TreeView, even if we try to give it to our
9475 LabelEditTextBox. The call do Application.DoEvents seems to
9476 synchronize the focus, basically.
9479 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9481 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9482 should be false. This also removes some nasty recursive paths. Fixes
9485 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
9487 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9488 state to normal. Also resize window when cascading. Fixes #325433.
9490 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9492 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9493 DefaultForeColor, as drawing empty colored lines isn't very useful.
9494 [Fixes the not drawn lines part of bug #324358]
9496 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9498 * TextControl.cs: Move Line and LineTag classes into separate files to
9499 make things easier to find.
9500 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9501 * RichTextBox.cs: Capitalize LineTag.Length property access.
9502 - This is purely an organizational/formatting change, no logic changed. -
9504 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9506 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9509 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9511 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9514 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9516 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9517 prevent calling of OnBackColorChanged. Fixes #325321.
9519 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9521 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9522 because control can be disabled because owner is disabled.
9524 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9526 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9527 string.Empty, test failed from previous change.
9529 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9531 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9532 is null, not String.Empty. See bug #323038.
9534 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
9536 * TextControl.cs: Change the margins to match MS a little better.
9537 Still not perfect for X11 due to some DrawString differences, but
9538 is still an improvement over the old stuff.
9539 Partially fixes #324467.
9541 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9543 * FolderBrowserDialog.cs: When using MyComputer as
9544 RootFolder, let absolute paths be considered as valid ones. Also, use
9545 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9546 for Windows compatibility.
9547 Partially fixes #325247.
9549 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9551 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9552 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9553 method, since it causes the dialog to not select folders directly
9554 under the root path (when setting SelectedPath property).
9556 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9558 * TreeNode.cs: When calling Expand/Collapse and need to call
9559 ExpandBelow/CollapseBelow respectively, take into account
9560 partially visible nodes (previously Expanding/Collapsing
9561 a partially visible node in the bottom was not updating its +- sign).
9563 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9565 * TreeView.cs: When calling Expand on a TreeNode, and we need to
9566 expand nodes below (ExpandBelow), scroll the entire Viewport
9567 area if the node is above it and not visible (instead of scrolling
9568 the area from node's Bottom, which applies only when the node is
9572 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9574 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9575 node in the bottom area (as .Net does). This is done to preserve the
9576 scroll position when ExpandAll is called before handle is created for
9577 the 1.1 profile (bottom area, as opposed to top area in 2.0).
9580 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9582 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
9583 bottom area if we are in fact not using the vertical scroll bar.
9586 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9588 * Control.cs: Comment out a double buffering optimization that doesn't
9589 take into account invalidates created in OnPaint, causing the control
9590 to never be redrawn. It would take quite a bit of work to work around
9591 this, but I left it commented with an explanation for later possible
9595 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9597 * Control.cs: Ask parent to perform a layout if control is AutoSize and
9599 * RadioButton.cs: Implement GetPreferredSizeCore.
9602 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9604 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9607 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9609 * Application.cs: Move the sync context stuff to Run instead of RunLoop
9610 so that it doesn't get uninstalled on modal forms.
9611 * Control.cs: Install a sync context when a control is created.
9612 * WindowsFormsSyncronizationContext.cs: Create a private static control
9613 to invoke on. This is easier than trying to find a created control we
9617 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
9619 * Application.cs: Install a WindowsFormsSynchronizationContext in the
9620 run loop, and uninstall it when done.
9621 * WindowsFormsSynchronizationContext.cs: Implement.
9622 [Fixes the common case in bug #327608]
9624 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
9626 * DataGridViewCellCollection.cs: Added argument checks for indexers.
9627 Use case-insensitive lookup of column name in indexer. Code
9630 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9632 * TreeNode.cs: When collapsing or expanding a node, check whether its
9633 change will affect the visible area (we were previously doing a
9634 IsVisible check, but that check is not enough since children nodes
9635 could be still visible). Fixes part of #325266.
9637 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9639 * TreeView.cs: Always select the first node when the TreeView gets
9640 focus if there is no currently selected node.
9643 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9645 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
9646 node being selected is null.
9647 [Patch from Yves Bastide fixes bug #326858]
9649 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9651 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
9652 whether all the parent nodes are expanded.
9653 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
9654 call RecalculateVisibleOrder if all previous nodes are expanded.
9655 Before that we were doing a IsVisible check, but sometimes the node
9656 is not in the visible area, but _should_already be ready, because of
9657 all previous nodes are expanded. Fixes #325259.
9659 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9661 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
9662 portion of the item is clicked.
9664 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9666 * TextControl.cs: Do not tell the system to move the cursor if the
9667 textbox isn't focused. Fixes part of bug #322668.
9669 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9671 * ComboBox.cs: When there are no items, do not show the dropdown if
9672 the down arrow is clicked. Fixes part of bug #322668.
9674 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
9676 * ToolStripComboBox.cs: Manually set the size of this control in the
9677 constructor, as it doesn't seem to be the same as DefaultSize.
9678 Fixes a failing monobuild test.
9680 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9682 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
9683 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
9685 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
9687 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
9688 Desktop. This lets it work for people who have moved their desktops
9689 from the default location on windows. For people who have not, both
9690 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
9692 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9694 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
9695 but when the base constructor sets this, the control is null. Set it
9696 again in the constructor. Fixes a failing monobuild test.
9698 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9700 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
9702 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
9705 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9707 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
9708 will handle it themselves.
9709 * ToolStripItem.cs: When deciding what the text of a tooltip should
9710 be, use the Text property instead of the text field.
9711 * ToolStripTextBox.cs: Handle tooltips.
9712 [Fixes bugs #325417 and #325973]
9714 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9716 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
9717 left click. Fixes the easy part of bug #325969.
9719 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
9721 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
9722 bug #325406, but set a minimum for StatusStrip to 22 to keep
9723 bug #325390 fixed. I think this minimum would have been figured
9724 up automatically if the grip was actually a ToolStripItem, but it
9727 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9729 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
9730 as this is apparently the actual value used by .Net. Also apply
9731 ItemPadding in Details view only, and decrease the general width padding,
9732 to have only the needed. This should fix #324340 in Windows too.
9734 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9736 * ListViewItem.cs: Don't Invalidate item if parent is inside
9737 a BeginUpdate/EndUpdate block. This prevents to have differences
9738 between the ListView and items state, as well as avoid some exceptions
9740 * ListView.cs: Make 'updating' field internal.
9742 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9744 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
9745 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
9746 size if appropriate.
9747 Fixes reopened bug #325414.
9749 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9751 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
9752 * ToolStripItem.cs: Invalidate before and after our new autosize when
9754 Fixes reopened bug #325390.
9756 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9758 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
9759 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
9762 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
9764 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
9766 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9768 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
9769 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
9772 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9774 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
9775 item to select when the ToolStrip is selected.
9776 * ToolStripControlHost: Realign the control when the bounds or visibility
9778 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
9779 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
9781 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
9782 base.OnPaint. Was causing text not to be drawn.
9784 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
9786 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
9788 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9790 * TreeView.cs: When creating the label edit text box,
9791 set is initially to Visible = false. This is done to
9792 prevent a confusion in the layout which makes it to lose
9793 focus when shown the first time. Fixes part of #82592.
9795 2007-09-13 Andreia Gaita <avidigal@novell.com>
9797 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
9799 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9801 * ToolStrip.cs: Take Margin into account when calculating preferred
9802 size. Also, allow preferred size to get smaller than the explicit
9804 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
9805 First step towards fixing bug #82747.
9807 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9809 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
9810 full row select background over the plus/minus glyph. Also, turn
9811 off the focus rectangle for full row select since MS doesn't seem
9812 to ever paint it. [Fixes bug #81839]
9814 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9816 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
9817 This was causing keyboard opened dropdowns to lose focus.
9820 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9822 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
9823 ClientRectangle instead. [Fixes bug #82838]
9825 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
9827 * SplitContainer.cs: We can't reset Visible on every layout because
9828 someone may have set Visible = false explicitly on a SplitterPanel.
9829 Make sure when we switch orientation the SplitterDistance does not
9830 change. Fixes two failing tests.
9832 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9834 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
9835 TextRenderer, since the latter is only available in 2.0.
9837 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
9839 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
9840 * SplitContainer.cs: Implement FixedPanel layouting.
9842 2007-09-12 Andreia Gaita <avidigal@novell.com>
9844 * WebBrowserBase.cs: setup shutdown routine
9846 2007-09-12 Andreia Gaita <avidigal@novell.com>
9848 * Application.cs: Let keyboard events that are targetted
9849 to non-mwf windows hosted inside mwf (as in, webbrowser),
9850 propagate properly. Fixes keyboard handling on the webbrowser.
9852 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9854 * ListView.cs: When handling MouseUp event and we are
9855 highligting a node with the mouse right button, don't trigger
9856 Before/AfterSelecting event, since we are not actually selecting
9859 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9861 * TreeView.cs: When editing a node, modify the edit text box
9862 depending on the text length (as you are typing), like MS does.
9864 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9866 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
9867 Override GetPreferredSizeCore to perform calculations. Remove custom
9868 autosize logic. [Fixes bug #82739]
9870 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
9872 * TextBoxBase.cs: Modified should default to false.
9874 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9876 * Control.cs: Update the anchoring distances even when layout is supspended.
9877 Patch provided by George fixes bug #82805.
9879 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9881 * Control.cs: Provide a setter for ExplicitHeight.
9882 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
9883 remove the hacks in here for requested_height.
9886 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9888 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
9889 Maximum to lower that its current Value caused an ArgumentException by setting
9890 the Value to the new Maximum.
9892 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9894 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
9895 handle moves to the closest tick when it is being dragged.
9898 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
9900 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
9901 can't let them count as real items when calculating where to merge in the
9902 user's items. [Fixed bug #82786]
9904 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9906 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
9907 who want to add a menu item directly onto a toolstrip.
9908 [Fixes bug #82775, part II]
9910 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9912 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
9913 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
9914 don't set it to available.
9915 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
9916 [Fixes bug #82727, part II]
9918 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9920 * StatusStrip.cs: Change item placement to None if not visible.
9921 * ToolStripItem.cs: Invalidate when InternalVisible changes.
9922 These should have been committed to fix 82723, but I missed them.
9924 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
9926 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
9927 Click, and that it is only called once.
9928 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
9929 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
9933 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9935 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
9937 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
9938 instead of 8, just like above. Partially fixes #82734.
9940 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9942 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
9945 * ListView.cs: Remove extra space between rows in Details view (match
9947 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
9950 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
9952 * Application.cs: Modified ProductVersion to return value of
9953 AssemblyInformationVersion if available, and fallback to assembly
9954 version. Fixes bug #82746. Code formatting.
9955 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
9958 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9960 * Control.cs: When updating ZOrder for a child control,
9961 take into account the implicit ones (we need it in our controls
9962 using them). Fixes #82642.
9964 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9966 * ToolStripItem.cs: Add support for animated images.
9969 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
9971 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
9972 visible. [Fixes bug #82727]
9974 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9976 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
9977 so we repaint using the new size. [Fixes bug #82723]
9979 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9981 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
9982 option. [Fixes bug #81779]
9984 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9986 * TreeView.cs: Override HandleClick because the StandardClick style is
9987 set to false. According to MSDN (and testing), the click events should
9988 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
9990 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9992 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
9993 the border will disappear. Fixes reopened #82653.
9995 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
9997 * Control.cs: If the control is autosize, and its preferred size changes
9998 when it lays out its children, tell its parent so it can be re-layed out.
9999 Fixing some of the fallout from r85433.
10001 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10003 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10004 and CheckBox share some code.
10006 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10008 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10009 the TrackBar, not every mouse move. [Fixed bug #82718]
10011 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10013 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10014 under 2.0 rendering. [Fixes bug #82657]
10016 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10018 * TreeView.cs: If we found a TreeNode to display a context menu, but
10019 it doesn't have one to show, let the TreeView display its menu
10020 instead. [Fixes bug #82680]
10022 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10024 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10025 OnPaintInternal instead. Give the internal TextBox a Border property
10026 so it can draw itself more correctly. [Fixes bug #82653]
10028 2007-09-06 Zoltan Varga <vargaz@gmail.com>
10030 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10032 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10034 * ComboBox.cs: Adjust combobox button state to reflect current state when
10035 back to enabled = true. Fixes first issue of #82654.
10037 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10039 * Control.cs: Fix last patch regression, prevent forms to update zorder when
10040 setting visible property.
10042 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10044 * Control.cs: Update zorder after control creation in SetVisibleCore, it
10045 fix zorder for controls initially created as non visible. Fixes #82667.
10047 2007-09-04 Everaldo Canuto <everaldo@simios.org>
10049 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10050 mimic win32 look. Fixes #82656.
10052 2007-09-01 Zoltan Varga <vargaz@gmail.com>
10054 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
10055 Stubs for new net 3.5 classes.
10057 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10059 * ListViewItem.cs: In ListViewItemCollection operations calculate
10060 Layout for owner as well as invalidate it. Fixes part of #82642.
10062 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
10064 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10065 when returning Enabled. [Fixes bug #82651]
10067 2007-08-30 Everaldo Canuto <everaldo@simios.org>
10069 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10071 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10073 * ListView.cs: Put item padding info in a single place
10074 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10076 * ThemeWin32Classic.cs:
10077 * Theme.cs: Likewise.
10079 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10081 * ListView.cs: When a ListViewSubItem instance is invalidated,
10082 invoke Invalidate on parent ListViewItem, not parent ListView.
10085 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10087 * ListView.cs, ListViewItem.cs: corcompare stuffs.
10089 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10091 * BindingMemberInfo.cs: Implement == and != operators.
10093 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10095 * HtmlElementEventArgs.cs: Implement properties.
10097 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10099 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10101 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10103 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10104 Add (string,string,string) to implement the imagekey. It turns out, we
10105 use the requested imagekey whereas .Net does not. So I broke ours to match
10108 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10110 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10112 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10114 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10116 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
10118 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10119 up-to-date. Fixes bug #82618.
10121 2007-08-29 Everaldo Canuto <everaldo@simios.org>
10123 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10124 reflect document changes. Fixes #82367.
10126 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10128 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10129 as well as add new ones. This should make work the BackgroundImage
10130 property for ListView again.
10132 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10134 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10135 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10136 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10138 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10140 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10143 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10145 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10146 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10148 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10150 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
10151 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10153 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10155 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10157 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10159 * GridEntry.cs: Implement GetService.
10161 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
10163 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10164 for label editting, make sure we focus back on the TreeView.
10167 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10169 * ListView.cs: Add some 2.0 overrides.
10171 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10173 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10174 because getter dont returns right value before handle creation. Thanks
10175 to George. Fixes #82569.
10177 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10179 * Theme.cs: Revert last patch, it causes error under win32.
10181 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10183 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
10184 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
10185 logical Desktop rather than the physical file system location. Fixes #82603.
10187 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
10189 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10190 for the patch. Fixes #82568.
10192 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10194 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10197 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10199 * ListViewInsertionMark.cs: New stubbed class.
10201 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10203 * FolderBrowserDialog.cs: When adding folder, immediately create the
10204 directory with temporary name and rename the directory when editing
10205 finishes. This matches MS. Ensure the node for the new folder is
10206 selected and LabelEdit is disabled, when editing is either finished
10209 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10211 * TreeView.cs: When editing label of node, ensure node is visible.
10213 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
10215 * PropertyGridView.cs: Set the value only if it has changed.
10217 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10219 * ListView.cs: Some more code refactoring to add support sorting
10220 with groups (now for Details view). Remove unused code also.
10222 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10224 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10225 Not a big fan of reacting immediately to a field in an EventArg, but that's
10226 the way it's done. (This is part of the previous commit that got left out.)
10228 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10230 * FolderBrowserDialog.cs: Removed need for separate description field.
10231 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10232 has focus when dialog box is displayed again, regardless of what
10233 button was pressed the previous time. Set RootFolder and SelectedPath
10234 each time dialog box is displayed. This ensures the treeview is
10235 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10236 when it does not have focus. Added support for more special folders.
10238 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10240 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
10241 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
10242 it resets the edit_args.
10243 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10246 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
10248 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10249 button to match MS. Provide more meaningful exception message for
10250 invalid RootFolder value. Use zero-length string when SelectedPath
10251 is set to null. Allow non-rooted paths in SelectedPath, but ignore
10252 them in FolderBrowserTreeView. Allow folders to be created in
10253 RootFolder. Fixes bug #82576.
10255 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10257 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10258 since we need to take into account the group headers and the margin
10260 * ListViewGroup.cs: Add a rows field to store the number of rows per
10263 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10265 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10266 Anyways, let's just follow the lead.
10268 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10270 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10271 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
10272 controls in GetPreferredSizeCore.
10273 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10276 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10278 * PrintDialog.cs: Need to instantiate the form variable here too.
10280 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10282 * ListView.cs: Do some reorganization to support sorting in groups,
10283 by doing the layout sequentially in ListView.Items. Also add support
10284 for the Default Group, which should be available for items with no
10286 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10287 for storing layout info also.
10288 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10289 collection, as well as providing internal members to do a traversal
10290 including the default group (needed when doing layout/drawing).
10291 * ThemeWin32Classic.cs: When drawing group headers use internal
10292 ListViewGroupCollection members to take into account the default
10295 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
10297 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
10299 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10301 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10302 been created. If handle is created, we want arror keys. If we are editing
10303 a node, we want things like enter, esc, home, end, page up, page down.
10304 Allows Esc to work for FolderBrowserDialog.
10306 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10308 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10309 they close when ESC is pressed. Thanks Andy!
10311 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10313 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10314 This way we can tell if this is a CommonDialog provided with mono, or one
10315 that is being implemented outside by a developer. If it is an external one,
10316 the developer is responsible for showing their own form. We were showing
10317 our blank form after the developer showed his.
10318 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10319 PageSetupDialog.cs: Instantiate form variable in our constructor.
10322 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10324 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10325 and always return true. [Fixes bug #81616]
10327 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10329 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10330 TextBox. [Fixes bug #82549]
10332 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
10334 * FileDialog.cs: When Save/Open is clicked and no filename is selected
10335 or entered then do not close the dialog. Fixes bug #82539. Removed
10338 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
10340 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10341 code to this method. It is calling every time filter changes. This method
10342 will help to fix the bug #80887.
10344 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10346 * CheckBox.cs: Implement AutoSize calculation.
10348 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10350 * CheckBox.cs: Use new 2.0 rendering for 2.0.
10351 * Theme.cs: Method declarations for 2.0 rendering path.
10352 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10354 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10356 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10358 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10360 * ListViewGroupCollection.cs: Implement AddRange the right way, to
10361 only call Redraw on the parent one time.
10363 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10365 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10366 GetClipboardContent.
10367 * DataGridViewCell.cs: Implemented GetClipboardContent,
10368 GetEditedFormattedValue, GetFormattedValue.
10369 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10371 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10373 * TableLayoutStyleCollection.cs: corcompare fix.
10375 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10377 * DataObject.cs: Implemented retrieval of convertible / not convertible
10380 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10382 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10383 ourselves. This ensures the entire old bounds are repainted, in case our new
10384 size is smaller. [Fixes bug #82518]
10386 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
10388 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10389 flag to make fast handle of mouse events, without this the mouse move is
10390 handled in some manner, whether it is a mouse move or not. Fixes #81588.
10392 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10394 * ListView.cs: When doing layout calculations don't use a ref
10395 param to keep the current item; instead use its Index value (this
10396 is specially important when doing the layout with Groups
10397 and Items being sparse). Also don't take into account items added to
10398 the Group but not yet added to the main ListView.Items collection.
10400 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10402 * ListViewGroupCollection.cs: Forgot to mimic an issue
10403 in the indexer (don't assign the ListView owner for new values).
10405 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10407 * ListViewGroupCollection.cs: Make the string indexer use
10408 the int based indexer to re-use code, instead of duplicate the code.
10409 Also Redraw as needed and take into account null values.
10411 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10413 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10416 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10418 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10419 when other buttons are clicked or navigated to.
10421 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10423 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10424 it's XplatUIX11 that attaches them.
10426 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10428 * DataGridView.cs: If a column has been added, recreate the editing row.
10431 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10433 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10434 of the tag to draw. Makes disappearing text show up again.
10436 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10438 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10439 Contents. Fixes #82487.
10441 2007-08-19 Andreia Gaita <avidigal@novell.com>
10443 * Added HtmlElement.cs, HtmlElementCollection.cs,
10444 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10446 2007-08-19 Andreia Gaita <avidigal@novell.com>
10448 * BindingSource.cs: Implement this, dispose and getenumerator.
10449 * DataGridViewRowCollection.cs: Move the InvalidOperationException
10450 out of AddInternal, throw it only on public Add calls. The
10451 UsingWebBrowser sample was blowing up with this when setting the
10452 DataSource after adding DataBindings, so it's likely that .net
10453 only throws this exception when Add is called directly.
10455 * ToolStripControlHost.cs: Return the hosted control's text
10456 property, and not the ToolStripItem one (it would always return
10457 the initial value).
10459 * HtmlDocument.cs: Implement GetElementById and All
10460 * WebBrowser.cs: Remove exception on set_DocumentStream.
10462 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10464 * Form.cs: Fix the max and min value for opacity (0~1).
10466 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10469 * DataGridTableStyle.cs: Default header font is now null, on getter it
10470 returns datagrid font when is null. On setter permits null.
10473 - When ResetHeaderFont set header font to null.
10474 - On EndInit set grid_style.DataGrid.
10476 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10478 * TabControl.cs: Fix regression in default padding x.
10480 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10482 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10484 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10486 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10487 not 2. Fixes #82229.
10489 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10491 * TabControl.cs: Fix tab size when image height is less than text height.
10492 Partially fixes #81837.
10494 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10496 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
10497 "alt + tab". It works only for Win32, for X11 theres no way to remove window
10498 from taskbar and keep it on "alt_tab". Fixes #81722.
10500 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10502 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10503 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
10504 Fixes #80877 and #79418.
10506 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10508 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
10509 between position and one of the screen borders. Fixes #82349.
10511 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10513 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10514 the MessageBox in the taskbar. Fixes #82457.
10516 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10518 * MessageBox.cs: Fix form size when icon is set and text height is bigger
10519 than icon. Fixes #82468.
10521 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10523 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10524 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10525 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10526 Refactored HandleNCCalcSize somewhat to avoid code duplication.
10527 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10528 FormBorderStyle to decide if we're calculating a new size from the
10529 client size or not. CreateParams: Don't fake tool windows, only the X11
10530 backend manages toolwindows manually.
10532 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10534 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10535 ObjectDisposedException.
10537 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10539 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
10540 in OnLoad should not have any effect. [Fixes bug #82470]
10542 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10544 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10545 paint for controls that create their own ToolTipWindow instead of
10546 going through ToolTip.
10548 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10550 * ToolTip.cs: Make Hide internal instead of public to match MS API.
10552 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10554 * ListViewGroupCollection.cs: Use generic List instead of an
10555 ArrayList, since this collection is 2.0 only.
10557 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
10559 * ToolTip.cs (Hide): Made public to make the build work (should
10560 this not be public?).
10562 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10564 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10566 * ToolTip.cs: Add an internal Visible property to facilitate transition.
10568 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10570 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10571 PopupEventHandler.cs: Make these internal for 1.1.
10572 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10573 use ToolTipWindow internals.
10574 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
10575 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10577 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10579 * X11Dnd.cs: Add a null check.
10581 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10583 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10584 nothing else succeeds. Fixes #82453.
10586 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10588 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10589 rectangle if we're painting to another window than the one the paint
10590 message was generated on. Simplify the code somewhat, which makes
10591 PaintEventEnd also simpler.
10593 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10595 * Control.cs: When changing parent of a form, let the form decide whether
10596 XplatUI.SetParent should be called or not.
10597 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10598 recreating the handle. If the new parent's handle isn't created, don't
10599 recreate our handle, just destroy it. CreateParams: Check if the
10600 parent's handle is created before fetching it.
10602 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10604 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10605 Update calls to PaintEventStart/End to take a Message argument.
10606 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10607 take a Message argument.
10608 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10609 Message argument, and handle the case where we don't paint to the window
10610 for which the paint message was generated.
10612 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10614 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10615 Marshal.GetLastWin32Error. Plug nasty memory leak in
10616 PaintEventStart/End, we were creating a DC we weren't releasing.
10618 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10620 * ListView.cs: Add Groups support in Details view. Also have a small
10621 method to do the layout of the group header. Don't use a separate
10622 method to do the groups calculation in Icons view, since our methods
10623 are now a little simpler.
10624 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10626 * ThemeWin32Classic.cs: Likewise.
10628 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10630 * Application.cs: Add FilterMessage method and rework our message loop
10633 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10635 * Application.cs: Add some methods and stub a few methods that are
10636 pretty much never used.
10638 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
10640 * TreeNode.cs: Add some serialization methods.
10642 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10644 * ListView.cs: In ListViewItemCollection have a
10645 'is_main_collection' field to not modify ListViewItem.ListView
10646 when using it as ListViewGroup.Items (and not ListView.Items)
10647 and also don't modify selection state (.Net behaviour).
10648 Instead, set group for items contained in a ListViewGroup.Items collection.
10649 * ListViewItem.cs: Simplify some code in Group setter.
10650 * ListViewGroup.cs: use the new .ctor to pass the current instance
10651 to the ItemsCollection.
10652 * ListViewGroup.cs: Set the ListView property for ListViewGroup
10653 instances when adding/removing. Also make Remove use RemoveAt, which
10654 should perform better.
10656 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10658 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
10659 that crept into the 1.1 profile.
10661 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10663 * ToolBarButton.cs: Implement ImageKey.
10665 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
10667 * ToolBar.cs: Implement ScaleControl/ScaleCore.
10669 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10671 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
10672 created, it might have gotten destroyed since we last checked. Fixes
10675 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
10677 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
10678 tooltip will hide when mouse is moved off the control.
10681 2007-08-11 Andreia Gaita <avidigal@novell.com>
10683 * WebBrowserBase.cs, WebBrowser.cs: add implementation
10684 using Mono.Mozilla for loading and navigating webcontrol
10686 The initial implementation was done on
10687 /trunk/mozembed/tests/browser , and copied here.
10689 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
10691 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
10692 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
10694 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10696 * DataGridView.cs: Add support for an editing row. Fixes #82226.
10697 RowTemplateFull: throw an exception if a column doesn't have a template.
10698 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
10699 add the row just before it.
10700 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
10702 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
10703 DataGridView field to be able to reach the grid's editing row.
10705 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10707 * ToolTip.cs: If the control's handle hasn't been created when it has a
10708 tooltip set on it, don't check to see if we need to show the tooltip. This
10709 check was causing the control's handle to be created.
10712 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10714 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
10716 Handle Not Created -1 0
10720 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
10722 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
10725 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10727 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
10728 * ToolTip.cs: Implement some properties and owner draw.
10730 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10732 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
10733 show them again, since setting visibility causes a paint, causing an
10734 endless loop (instead use a temporary and set it all when it's known if
10735 they should be shown or not). Fixes #79265.
10737 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10739 * DataGridView.cs: Only do a full column/row selection if a header was
10740 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
10741 isn't pressed, deselect everything before selecting something.
10743 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10745 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
10746 behaviour according to bug #81075 - they are returned in the order they
10747 are selected. Fix HitTest to check if the point is within any of the
10748 headers. Allow for row/column selection when in ColumnHeader or
10749 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
10750 the row and column to call when their selected state changes, and
10751 updated selected_[rows|columns] whenever SetSelected* is called.
10752 * DataGridViewBand.cs: Initialize isRow correctly. Call
10753 SetSelected[Row|Column]CoreInternal when the selected state changes, and
10754 add a SelectedInternal to avoid StackOverflows.
10755 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
10756 ReadOnly no matter what.
10757 * DataGridViewSelectedColumnCollection.cs,
10758 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
10759 the items in reverse order (just as MS does...)
10761 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
10763 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
10764 itself, not part of a mnemonic. [Fixes bug #82378]
10766 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10768 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
10769 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
10770 the DGV, the column, the row, or the cell itself is readonly.
10772 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10774 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
10775 OSVersion.Platform.
10776 * FileDialog.cs: Same.
10777 * TextRendered.cs: Same.
10778 * FolderBrowserDialog.cs: Same.
10779 * TextBoxBase.cs: Same.
10780 * Application.cs: Same.
10781 * Cursors.cs: Same.
10782 * ThemeClearLooks.cs: Same.
10784 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
10786 * XplatUI.cs: Added RunningOnUnix property to be used by controls
10787 instead of duplicating these checks everywhere.
10788 * FileDialog.cs: Use case-insensitive comparison for populating the
10789 DirComboBox when not running on unix. Fixes bug #82385.
10790 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
10793 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10795 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
10796 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
10797 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
10798 cell and column selection with ctrl and shift pressed. Call the correct
10799 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
10800 the corresponding virtual method (PaintBackground to paint background,
10802 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
10803 either the column, row or the cell itself is selected.
10804 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
10806 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
10807 here. When the row is selected, don't select all cells. Each cell now
10808 queries the row to see if the row is selected.
10810 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10812 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
10815 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10817 * ListView.cs: In ListViewItemsCollection check that owner is
10818 not null before trying to access it (this happens quite often
10819 using Groups). Also don't duplicate calls by calling CollectionChanged
10822 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10824 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
10825 when we are dismissed to clear keyboard mnemonics.
10826 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
10827 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
10828 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
10829 was activated by keyboard or the OS tells us to always draw them.
10830 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
10831 [Fixes bugs #82376, #82377]
10833 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10835 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
10836 shot at having it because Alt was pressed.
10837 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
10838 the first real menu item.
10839 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
10840 a mnemonic if Text is null.
10843 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10845 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
10846 search do check whether the item is already contained in the
10847 collection or not; instead check if the owner of the item is the same
10848 as ours. Also, remove a redundant check in the same method.
10850 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
10852 * Control.cs: Allow the clip region to be set back to null.
10853 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
10854 [Fixes button still showing up in bug #82370 when Show Through is turned off]
10856 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10858 * GridEntry.cs: Add a null check.
10859 * PropertyGrid.cs: When checking for existing grid entries, ignore category
10860 entries. Fixes #82297.
10862 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10864 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
10867 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
10869 * ListBox.cs: Implement ScaleControl.
10871 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10873 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
10875 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
10876 parent has a menu strip. Fixes #81689.
10878 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10880 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
10881 moments, so apply some fuzzy logic to determine if the mouse is still
10882 inside a control or not. Fixes #82288 (for the third time).
10884 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10886 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
10887 Don't create the child if it has been disposed already (may happen if
10888 the user closes the form the Load event).
10890 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10892 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
10895 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10897 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
10898 might call us after we've been destroyed, in which case our own private
10899 parent field is null. Fixes #82326.
10901 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10903 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
10904 check for setting the dropdown's owner.
10906 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
10908 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
10909 before removing system menu items.
10911 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
10913 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
10915 * MdiControlStrip.cs: Added. These are the menu items used in mdi
10917 * ToolStrip.cs: Add a null check to mnemonics.
10918 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
10920 [Fixes most of bug #81689]
10922 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10924 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
10926 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10928 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
10930 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10932 * DataGridViewCell.cs: EditType: returns
10933 DataGridViewTextBoxEditingControl always.
10935 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
10937 * TextRenderer.cs: Remove the LineLimit string format flag from the
10938 DrawString fallback method so that things like buttons that aren't
10939 tall enough to draw a full line will still draw part of the text.
10940 [Fixes part of bug #82272]
10942 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
10944 * DataGridView.cs: Implemented AutoResizeColumn(s).
10945 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
10946 according to the Alignment.
10947 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
10948 Implement alignment and padding when painting.
10949 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
10951 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
10953 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
10956 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10958 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
10961 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10963 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
10964 hide GetPreferredSize from public API.
10965 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
10966 * ToolStripItem.cs: Stub out drag and drop methods and events.
10967 * ToolStripManager.cs: Stub out Save/LoadSettings.
10968 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
10969 * ToolStripPanel.cs: Fix corcompare error.
10970 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
10971 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
10972 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
10974 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
10976 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
10977 bounds height instead of PreferredHeight. Puts things back the way
10978 they were for height while still fixing the width. Fixes broken unit
10981 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10983 * Binding.cs: Implement 2.0 constructors and add a null check.
10985 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10987 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
10988 and fix row index (off by one).
10990 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10992 * PropertyGridView.cs: Remove debug output.
10994 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
10996 * Control.cs: We need to reset the is_created flags when the handle is
10997 destroyed. Fixes #82187.
10998 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
10999 client coordinates if the window doesn't have a parent.
11000 Win32GetParent returns the parent or the owner, and for top-level
11001 windows with no parent (but with an owner) we were calculating the
11002 location from the location of the owner.
11003 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11004 form has been disposed.
11005 * MdiClient.cs: Add a null-check.
11007 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
11009 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11010 actually do auto-sizing. Override the internal GetPreferredSizeCore
11011 so we can provide an implementation that returns the current width
11012 and preferred height. Allows anchor = right to work with TextBox 2.0.
11015 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11017 * ListView.cs: Add support for navigating items in Groups mode, by
11018 creating a big matrix containing all rows and cols of all groups. When
11019 are in other mode than Details, pressing Up should have a similar
11020 behaviour as that one of Down (moving to the next available column if
11021 current one doesn't have an item in the requested row). Also, don't
11022 proceed to use groups if ShowGroups is false.
11023 * ListViewGroup.cs: Add an internal int field to store the starting
11024 row of the group (used by the big matrix used for navigating the
11026 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11029 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
11031 * ToolStripDropDown.cs: When we do Show, start with the
11032 DefaultDropDownDirection, but if our popup menu is going to off-screen,
11033 modify the direction to keep it on screen. [Fixes bug #82210]
11035 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
11037 * FileDialog.cs: Accept any FilterIndex value, and store it
11038 unmodified. When FilterIndex is less than 1, or greater than number
11039 of filters, then default to first filter. Only add filter extension to
11040 file if user did not specifiy an extension. When type of dialog is
11041 OpenFileDialog and DefaultExt is set, then only use filter extension
11042 if: CheckFileExists is true and no file wih the default extension
11043 exists, or CheckFileExists is false, and user specified file does not
11044 exist. When CheckFileExists is true, then add first extension of
11045 selected filter that matches existing file. Perform checks for
11046 existing file, overwrite and create after extension has been added to
11047 file name. When CheckFileExists is true and type is SaveFileDialog,
11048 then only consider first filter extension if DefaultExt is set.
11049 When CheckFileExists is true, then ignore DefaultExt if file with that
11050 extension does not exist. Also perform check for existing file when
11051 type is SaveFileDialog. Changed some field to constants.
11053 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11055 * ListView.cs: Take into account the region used by header
11056 control when doing the vertical scroll (this way we invalidate
11057 the precise area, and don't get any dirty one).
11059 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
11061 * FileDialog.cs: Check for valid filterIndex on button open/save.
11064 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11066 * ListView.cs: Update some layout calculations in details view
11067 and clean the code in a pair of assignations.
11069 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11071 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11072 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11073 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11074 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11076 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11078 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11079 performance of thread-safe Graphic methods. (Thanks rolf!)
11081 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11083 * ListView.cs: When doing the layout calculations, don't calculate
11084 scroll bars before handle is created. This is unnecessary and also
11085 calculating them before handle creation item causes a number of random
11086 bugs (which begin to appear after Chris' big patch for handle creation
11089 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11091 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11092 for things that don't have a Graphics object. Currently, things just use
11093 the static Hwnd.bmp_g which is not thread safe.
11095 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11097 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11098 dialog. Fixes #82187.
11100 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11102 * DataGridViewElement.cs: Initialize state.
11103 * DataGridView.cs: Forward a few Mouse events to cells. Add
11104 GetRowInternal and GetCellInternal that doesn't unshare rows.
11105 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11106 don't use the index, but look it up. Add
11107 DataGridViewControlCollection.RemoveInternal to remove controls
11108 that Remove won't remove (scrollbars, edit control).
11109 * DataGridViewColumn.cs: Initialize State correctly.
11110 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11111 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11113 * DataGridViewRowCollection.cs: Implemented shared rows.
11114 * DataGridViewRow.cs: Throw exceptions as MS do.
11115 * DataGridViewCell.cs: A few properties are implemented by a
11116 Get<Property> method, so move implementation there and remove the
11117 NIEX in the method. Add a bunch of OnXInternal that DataGridView
11118 calls when necessary.
11119 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11120 complicates matters.
11121 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11124 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11126 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11127 the children controls. Instead, we will just set up the proper docking for the
11128 children controls so we don't have to worry about it. [Fixes bug #82188]
11130 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11132 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11133 canceling and correct Before/AfterLabelEdit properties as layed out in bug
11134 81847. [Fixes bug #81847]
11136 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11138 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11139 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
11140 an explicit size based on the design-time size of the text. Since our fonts
11141 may not match this explicit size, we tend to cut off the ends of people's labels.
11143 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
11145 * Menu.cs: Add some missing methods to MenuItemCollection.
11147 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11149 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11150 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11151 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11152 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11153 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11154 * DataGridViewElement.cs: State defaults to Visible.
11155 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11156 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11158 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11160 * Control.cs: Minor 1.1 corcompare fix.
11162 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11164 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11165 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11167 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11169 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11170 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11171 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11172 DataGridViewSelectedColumnCollection.cs,
11173 DataGridViewSelectedRowCollection.cs: Corcompare work.
11175 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11177 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
11178 it is autoset by VS2005 designer and the effect is barely noticeable.
11180 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11182 * TreeView.cs: Implement HitTest.
11184 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11186 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11187 manually adding and removing the control from the Controls
11189 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11190 EditingControlInternal property that tracks the editing control.
11191 Always keeping the scrollbars in the Controls collection, as MS
11192 testing confirms is the right behaviour.
11194 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11196 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11197 according to MSDN and new test.
11199 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11201 * TreeNode.cs: Implement ToolTipText.
11202 * TreeView.cs: Implement tooltips, NodeMouse* events.
11204 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11206 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11208 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11210 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11211 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11213 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
11215 * Control.cs, Form.cs, ContainerControl.cs,
11216 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
11217 for misc properties.
11219 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11221 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11222 * TreeView.cs: Implement StateImageList.
11224 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11226 * Form.cs: Don't check if the current form is the active form before
11227 activating it. Fixes #81904.
11229 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11231 * Form.cs: Don't check if the current form is the active form before
11232 activating it. Fixes #81904.
11234 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11236 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11238 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11240 * Form.cs: Don't try to position the form after loading if the form was
11241 disposed. Fixes #81969.
11243 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11245 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11246 properties. Had to change ToolBar into ToolStrip, which required a
11249 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11251 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11252 resized, fixes part of #79829 (vertical lines in toolbar).
11253 PropertyGrid: Refactored Populate* to something that's easier to
11254 follow at least for me, as well as splitting it up into several new
11255 methods, required to update only subitems when something has
11256 changed by a popup editor or listbox. Don't use events to check
11257 when any values are changed, since the events are unreliable (we're
11258 changing the objects the events are registered with, and if the
11259 event handling requires the objects to be immutable (objects stored
11260 in hashtables for instance), the events will never be raised).
11261 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11262 everytime we change a value, since events are unreliable.
11263 DropDownButtonClicked: For the same reason don't compare objects to
11264 check if it has changed or not, it would require all objects to
11265 derive Equals. Fix dialog location on windows, MS is doing weird
11266 things when creating parented forms.
11267 * GridEntry.cs: Add a SelectedObject setter.
11269 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11271 * TreeNode.cs: Add some corcompare attributes.
11272 * TreeNodeCollection.cs: Implement 2.0 stuffs.
11273 * TreeView.cs: Implement some 2.0 stuffs.
11275 2007-07-18 Andreia Gaita <avidigal@novell.com>
11277 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11280 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11282 * ListBox.cs: Implement custom tab offsets.
11284 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11286 * ToolStripContentPanel.cs: Support System renderer.
11287 * ToolStripControlHost.cs: Set RightToLeft to default to No.
11289 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11291 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11293 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11295 * CheckBox.cs: Chain TextAlign to base implementation instead of
11296 maintaining another one.
11298 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11300 * ButtonBase.cs: Fix an incorrect string constant.
11302 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11304 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11305 of creating one for measuring strings.
11307 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11309 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
11310 Implement MaxItemSize.
11312 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11314 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11315 for DeviceContext. Instead, use the static one available in Hwnd.
11316 Informal tests show this saves about 500k on formtest.exe.
11318 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11320 * ContainerControl.cs: Implement 2.0 AutoScaling.
11322 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11324 * ComboBox.cs: Work around bug #82120 (bug in mcs).
11326 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11328 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11329 Darken the focus color.
11331 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11333 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11335 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11336 X, Y instead of a rect for drawing text.
11337 - For ControlPaint.DrawCheckBox, center the check a little better when the
11338 checkbox is odd width. When drawing a flat checkbox, use a white background
11339 when state != inactive.
11340 [Fixes bugs #82097, 82100]
11342 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
11344 * ListControl.cs: When changing CurrencyManager, disconnect event
11345 handlers from previous one. Fixes bug #81771. Code formatting.
11347 2007-07-15 Andreia Gaita <avidigal@novell.com>
11349 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11350 full preview invalidation from layout invalidation, and only invalidate
11351 the layout when setting zoom or other properties. Invalidation should
11352 always be done even when resetting properties with the same values as
11353 what is there. Fixes #81744 and #79830.
11355 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11357 * ListView.cs: Implement initial support for Groups. Split some of the
11358 LayoutIcons code to render a partial list of the items (needed by
11359 items contained in ListViewGroup instances). Let the
11360 ListViewItemsCollection.ListView property be modifiable (needed when
11361 using Groups, too).
11362 * ListViewGroup.cs: Use a Bounds property rather than a Location
11363 one. Also invalidate the bounds when they get changed.
11364 * ThemeWin32Classic.cs: When drawing items, also draw the group header
11365 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11368 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11370 * ListView.cs: When space gets pressed and CheckBoxes is true,
11371 don't invoke the Begin and EndUpdate methods. We are generating
11372 a redraw of the entire control without need to do so.
11374 2007-07-13 William Holmes <billholmes54@gmail.com>
11376 * Control.cs: Changing logic in FindFlatForward and
11377 FindFlatBackward to handle multiple Controls with
11379 This fixes bug 81687.
11381 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
11383 * OSFeature.cs: Enable IsPresent.
11385 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11387 * Control.cs: Don't do anything in WmShowWindow if the control has been
11388 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11389 control is created, put on a form, the control is disposed (the
11390 form is never shown), and then we get a MapNotify, triggering a
11392 * Form.cs: Exclude the current form when sending Deactivate to all
11394 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11395 there was a race condition because assigning the handle raises
11396 events, we can get more messages, therefore trying to assign the
11397 handle again, which would fail if any of those event handlers
11398 closed/disposed the control.
11400 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11402 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11404 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11406 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11407 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11409 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11411 * DateTimePicker.cs: If there's no part format specifier, return an
11414 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11416 * FlatButtonAppearance.cs: Throw NotSupportedException for a
11417 Transparent BorderColor.
11419 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11421 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11422 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11423 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11424 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11425 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11426 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11427 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11429 * X11Structs.cs: Remove warnings, add ToString implementations.
11431 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11433 * XplatUIX11.cs: Translate min/max size according to the actual min/max
11434 size, and not the current size. Fixes #81798.
11436 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11438 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11439 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11440 to the control yet).
11442 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11444 * PropertyGridTextBox.cs: Add a method that sends any forwarded
11445 mousedowns to the contained textbox.
11446 * X11Structs.cs: More ToString implementation.
11447 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11450 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11452 * PropertyGridView.cs: Add a null-check, fixes a few tests.
11454 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11456 * TableLayoutPanelCellPosition.cs: TypeConverter.
11458 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11462 * PropertyGridTextBox.cs: Propagate any color changes to all contained
11464 * PropertyGridView.cs: A few color fixes.
11466 2007-07-10 Jackson Harper <jackson@ximian.com>
11468 * TextControl.cs: Remove some old unused text formatting stuff.
11470 2007-07-10 Jackson Harper <jackson@ximian.com>
11472 * TreeView.cs: Update full row select invalidation to match the
11473 newer DrawSelection... method.
11474 - Make sure to invalidate the entire width when selecting a new
11475 node, if we have full row selection enabled.
11477 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11479 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11480 display of properties again.
11482 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11484 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11485 to existing collections.
11487 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11489 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11490 that changed between 1.1 and 2.0.
11492 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11494 * PowerStatus.cs: Added. This is just a data class, it is filled
11495 in by SystemInformation.
11497 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11499 * Message.cs: Add op_Equality and op_Inequality.
11501 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11503 * MenuStrip.cs: Finish corcompare work.
11505 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11507 * LinkArea.cs: Add op_Equality and op_Inequality.
11509 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11511 * Application.cs: Add MessageLoopCallback delegate.
11513 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11515 * ListBox.cs: First set of 2.0 stuffs.
11517 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11519 * Control.cs: Make an internal Height property we can override
11520 without messing up the public API.
11521 * ListBox.cs: Override HeightInternal to always return the size
11522 the user set. [Fixes bug #80466]
11524 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
11526 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11527 paint cell borders if we haven't calculated where they go yet.
11528 [Fixes bugs #82040 and #82041]
11530 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11532 * ListView.cs: In Details view, set the location of item_control
11533 in the (0,0) position (and the header_control is thus on the
11534 item_control). This way the Bounds of the Items are relative to the
11535 ListView control (before this, they had a Bounds value without the
11536 header_control offset, which wasn't matching .Net). Fixes #82004.
11538 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11540 * ListControl.cs: When DataSource is set to null, pass an empty
11541 array of object to SetItemsCore. This is done to clean the items
11542 in the ListContol children. Fixes #81788.
11544 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11546 * ListControl.cs: Add 2.0 stuffs.
11548 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11550 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
11551 Refresh is overkill for just about every repaint request.
11553 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11555 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11556 so remove my custom Get method and fix the property getter.
11558 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11560 * Label.cs: DefaultMargin for 2.0.
11562 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11564 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
11565 reported issue where other controls with mnemonics would steal strokes
11566 from a selected ComboBox.
11568 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11570 * ScrollOrientation.cs: Make internal for 1.1.
11571 * ScrollEventArgs.cs: Add 2.0 stuffs.
11573 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
11575 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11576 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11577 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11579 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11581 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11583 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11585 * ListView.cs: Implement the so-incredibly broken 2.0
11586 VirtualItemsSelectionRangeChanged event.
11588 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11590 * ListView.cs: When enter is pressed and selection is non empty,
11591 an OnItemActivate event must be fired.
11593 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11595 * ListView.cs: Store the FocusedItem information as an
11596 int instead of a ListViewItem (needed by VirtualMode).
11597 Update the calls to SetFocusedItem to pass an index instead of
11599 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11600 the Focused state from the owner ListView.
11602 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11604 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11605 property. Also, invalidate previous focused item in the mentioned
11606 property (match .Net).
11608 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11610 * ListView.cs: Implement 2.0 FocusedItem property setter.
11612 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11614 * ListView.cs: Implement 2.0 TopItem property setter.
11616 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
11618 * StatusStrip.cs: The default renderer is System.
11619 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
11620 if the user specifies it.
11621 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11622 if we are ManagerRenderMode.
11623 * ToolStripMenuItem.cs: Calculate our text color better.
11624 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11625 from Professional to the base class based off working with the System renderer.
11626 * ToolStripSystemRenderer.cs: Added.
11628 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11630 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11632 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
11634 * ToolTip.cs: Implement 2.0 Tag property.
11636 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11638 * ListView.cs: Implement 2.0 HitTest methods.
11640 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11642 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11643 item is under the pointer or not (sugar). Also remove the TODO
11644 regarding to the cursor changes in OneClick activation.
11645 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
11646 the subitems use the parent's HotFont if UseItemStyleForSubItems is
11647 true; otherwise don't show the underline style.
11649 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11651 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
11652 the code to retrieve the item at position only one time. Also
11653 change cursor when Activation is ItemActivation.OneClick as well
11654 as invalidate the item if HotTracking is true (to show/hide the
11655 underline style). Add an internal HotItemIndex property to retrieve
11656 the current hot item's index.
11657 * ListViewItem.cs: Add an internal HotFont property to cache the
11658 font used when HotTracking is true and the pointer moves within the
11660 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
11661 HotFont depending on the hot state of the item.
11663 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11665 * ListView.cs: Implement 2.0 HotTracking property.
11667 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11669 * ToolStripControlHost.cs: If our hosted control never got created,
11670 don't try to dispose it. [Fixes bug #81909]
11672 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11674 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
11676 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
11678 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
11680 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11682 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
11684 * DrawListViewColumnHeaderEventArgs.cs:
11685 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
11686 using the DrawText () methods.
11688 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
11690 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
11691 background which got erased in my changes yesterday.
11693 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11695 * ListViewItem.cs: Actually set bounds for subitems in Details view
11697 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
11698 can invoke from the owner draw routines if we need it. Also, add
11699 support for Owner draw in Details view.
11701 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11703 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
11704 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
11705 ShowImageMargin setting, properly align text in a ToolStripLabel
11706 hosted on a ToolStripDropDown.
11708 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11710 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
11711 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
11713 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11715 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
11717 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
11719 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
11720 location to match ToolStripMenuItems.
11722 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11724 * DrawListViewColumnHeaderEventArgs.cs:
11725 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
11726 column headers in ListView.
11728 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11730 * UserControl.cs: Implement AutoSize.
11732 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11734 * DrawListViewItemEventArgs.cs:
11736 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
11739 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
11741 * ToolStripDropDownItemAccessibleObject.cs: Added.
11742 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
11743 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11744 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
11745 ToolStripTextBox.cs: corcompare work.
11747 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11749 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
11750 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
11751 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
11754 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
11756 * OSFeature.cs: Add IsPresent.
11757 * PrintPreviewControl.cs: Add RightToLeft.
11758 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
11759 * SplitterPanel.cs: Add AutoSizeMode.
11761 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11763 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
11764 * MdiClient.cs: Add 2.0 ScaleControl.
11765 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
11766 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
11768 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11770 * Form.cs: Implement some scaling methods, stub some RTL methods,
11773 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11775 * Control.cs: corcompare work.
11776 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
11778 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
11780 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
11781 ControlPaint 2.0 stuffs.
11783 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11785 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
11787 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11789 * UpDownBase.cs: Add 2.0 stuffs.
11791 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11793 * NumericUpDown.cs: Add 2.0 stuffs.
11795 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11797 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
11799 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11801 * ErrorProvider.cs: Implement 2.0 stuffs.
11803 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11805 * DomainUpDown.cs: Implement 2.0 stuffs.
11807 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11809 * CheckedListBox.cs: Fix RefreshItems signature.
11811 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
11813 * PictureBox.cs: Implement 2.0 stuffs.
11815 2007-06-12 Andreia Gaita <avidigal@novell.com>
11817 * TabControl.cs: Check if there are tabpages before checking
11818 the selected index - fix #81802 (font changes raise a ResizeTabs
11819 call on controls.add, which blew up nicely with no tabpages)
11821 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11824 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
11826 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11829 * ListViewItem.cs: In VirtualMode the selection information
11830 resides in the ListView, rather than in the Items. Also, throw
11831 InvalidOperationExceptions when VirtualMode is being used and
11832 CheckedItemCollection is accessed.
11834 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11836 * ComboBox.cs: Add ScaleControl.
11838 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11840 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
11842 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11844 * GroupBox.cs: Add 2.0 stuffs.
11846 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
11848 * Panel.cs: Add autosize properties/event.
11850 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11853 - When we remove a control, remove it from the collection before performing the layout.
11854 - Setup an internal property for explicit_bounds.
11855 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
11856 - Perform a layout when we set a new AutoSizeMode.
11858 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
11860 * ScrollableControl.cs: Add 2.0 stuffs.
11862 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11864 * ScrollBar.cs: Add 2.0 stuffs.
11866 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11868 * Splitter.cs: Add 2.0 stuffs.
11870 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11872 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
11873 to have BindingContext simply use base implementation.
11875 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11877 * ColumnHeader.cs: corcompare fix.
11879 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11881 * Button.cs: corcompare fixes.
11882 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
11884 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
11886 * Button.cs: Override GetPreferredSizeCore.
11887 * ButtonBase.cs: PerformLayout after changing properties that can affect
11888 AutoSize. Simplify some mouse/keyboard code.
11889 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
11890 * MouseEventArgs.cs: Make Location internal for 1.1.
11891 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
11892 * Theme.cs: Add CalculateButtonAutoSize.
11893 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
11895 2007-06-05 Miguel de Icaza <miguel@novell.com>
11897 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
11899 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11901 * ListViewItem.cs: We can't cache Bounds in VirtualMode
11902 since we can get different item instances every time we retrieve it.
11904 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11906 * ListView.cs: Work around for #81602, since an unkown an pretty
11907 infrequent condition appears only in some systems (old linux boxes, it
11910 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11912 * Button.cs: Completely reformat and a little refactor to bring
11913 this closer to Mono circa 2007.
11915 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11917 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
11918 to be ButtonBase.Invalidate.
11920 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11922 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
11924 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
11926 * ButtonBase.cs: Completely reformat and a little refactor to bring
11927 this closer to Mono circa 2007.
11929 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
11931 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
11932 values for autosize. Fixes #80137.
11934 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11936 * Control.cs: Don't perform layout when AutoSize changes.
11937 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
11938 directly when autosizing, use SetBounds with BoundsSpecified.None.
11939 Fixes unit tests my last commit broke.
11941 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11943 * Control.cs: Perform layout when AutoSize changes.
11944 * Form.cs: Implement AutoSizing.
11946 2007-06-01 Chris Toshok <toshok@ximian.com>
11948 * DataGrid.cs: remove the XXX'ed check at the top of
11949 ProcessGridKey. fixes #80464.
11951 2007-06-01 Chris Toshok <toshok@ximian.com>
11953 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
11954 adding idempotent (add/remove in Edit()), and also make sure we
11955 don't add it until after we set the text, so it's not tripped in
11956 Edit(). Fixes unit test regression.
11958 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
11960 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
11961 change is user explicit, not when the layout engine moves stuff. Fixes
11962 anchoring to bottom and right. [Fixes bug #81790]
11964 2007-06-01 Andreia Gaita <avidigal@novell.com>
11966 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
11968 2007-06-01 Andreia Gaita <avidigal@novell.com>
11970 * ContainerControl.cs:
11971 Fire enter event for common ancestor if it is not a ContainerControl.
11972 Send focus to the active_control and not the 'value', the active
11973 control might have been changed in one of the events fired.
11974 Definitely fixes #80159.
11976 2007-06-01 Andreia Gaita <avidigal@novell.com>
11978 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
11980 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11982 * PropertyGrid.cs: Anchor the help description to the bottom of the
11983 help panel and refactor SelectGridItem into a
11984 SelectGridItemInternal that can be set to null (and update it to
11985 clear the help texts when it is set to null). Set root item to null
11986 when there's no SelectedObject. Fixes #80438.
11987 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
11988 when we're recalculating after a resize (only).
11990 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11992 * ListView.cs: Implement 2.0 RedrawItems method.
11994 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11996 * ListControl.cs: Disconnect PositionChanged and ItemChanged
11997 handlers from previous data manager when DataSource is set to
11998 null. Fixes #81771.
12000 2007-05-31 Jackson Harper <jackson@ximian.com>
12002 * TextBoxBase.cs: These seem to be the correct values.
12004 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
12006 * FileDialog.cs: When close dialog with ok set filterindex using combobox
12007 value. Fixes #81784.
12009 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
12011 * Control.cs: Implement 2.0 scaling methods.
12013 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12015 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12016 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12019 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12021 * ProgressBar.cs: Implemented missing 2.0 members.
12023 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12025 * Control.cs: Corcompare issues.
12026 * MessageBox.cs: Implemented missing 2.0 functions.
12028 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12030 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12031 Implemented more 2.0 members.
12033 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12035 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12036 null (strange, but it seems to happen when running unit tests).
12038 2007-05-30 Andreia Gaita <avidigal@novell.com>
12040 * ContainerControl.cs: Set active_control even earlier, before
12041 firing any events, and undo it if validation returns false.
12043 2007-05-30 Andreia Gaita <avidigal@novell.com>
12045 * ContainerControl.cs: Raise Validation and Enter/Leave events
12046 even if there is no Form and set active_control earlier, just
12047 before firing Enter events (toshok's patches). Fixes #80647.
12049 2007-05-30 Jackson Harper <jackson@ximian.com>
12051 * TextControl.cs: Redid the pageup/pagedown a little to simplify
12052 things and fix bug #81311.
12054 2007-05-30 Jackson Harper <jackson@ximian.com>
12056 * X11Dnd.cs: Now that we have our own event loop, we need to
12057 cancel when we get a mouseup but it won't be accepted.
12059 2007-05-30 Chris Toshok <toshok@ximian.com>
12061 * DataGrid.cs (set_CurrentCell): guard against negative
12064 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12065 array index syntax instead of looping over the property names.
12067 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12068 and set IsInEditOrNavigateMode to false there.
12070 2007-05-30 Jackson Harper <jackson@ximian.com>
12072 * TreeView.cs: Make sure we don't get a bad visible order when
12073 setting to the top node. Fixes some misc crashing in
12076 2007-05-30 Andreia Gaita <avidigal@novell.com>
12078 * UserControl.cs: Add 2.0 AutoSizeMode
12080 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12082 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12084 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12086 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12087 lines. Fixes #80285.
12089 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12091 * DataGridColumnStyle.cs: Add char trimming column header text format.
12093 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12095 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
12098 2007-05-29 Jackson Harper <jackson@ximian.com>
12100 * TreeNode.cs: Fix off by one on calculating whether or not a node
12103 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
12105 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12106 * ScrollableControl.cs: Force an UpdateDistances when we move the
12110 2007-05-29 Andreia Gaita <avidigal@novell.com>
12112 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12113 update the page setup screen.
12115 2007-05-29 Andreia Gaita <avidigal@novell.com>
12117 * PageSetupDialog.cs: Fix landscape mode.
12119 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12121 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12122 IconSizeHorizontalSpacing.
12124 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12126 * ListView.cs: The declaration of prev_tooltip_item should be inside
12127 a NET_2_0 conditional (avoid a warning).
12129 2007-05-28 Andreia Gaita <avidigal@novell.com>
12131 * PageSetupDialog.cs: Implement PrintPreview control to display
12132 the preview thumbnail. Change unit conversion to use
12133 PrinterUnitConvert methods.
12135 Note: there is a huge bug in ms.net where the default margins are
12136 interpreted as centimeters (?), when in fact they are set in inches. When
12137 loading the page setup dialog initially (ms.net), the default margins
12138 are set to 1 inch, and the dialog shows them with value 10, when in fact
12139 it should be 25 (properly converted). Our dialog doesn't have this bug.
12141 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
12143 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12145 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12148 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12151 2007-05-28 Andreia Gaita <avidigal@novell.com>
12153 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12154 an IntPtr on csc (it builds fine on mcs, could it be a compiler
12155 bug?), convert the ptr to Int32 first.
12157 2007-05-28 Jackson Harper <jackson@ximian.com>
12159 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12160 recieved, we will exit the dnd tracking loop.
12162 2007-05-28 Jackson Harper <jackson@ximian.com>
12164 * X11Dnd.cs: Keep tracking until the xdnd finished event is
12165 recieved. TODO: I should probably stick a timer on the dropped
12166 event, and finish the drag if the XDND Finished event never shows
12167 (because some apps don't seem to send it).
12169 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
12171 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12174 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12176 * MonthCalendar.cs: Only mark the keypresses we actually handle as
12179 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12181 * MonthCalendar.cs: Set the size after initializing all the relevant
12182 variables. Fixes #81742.
12184 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12186 * KeyEventArgs.cs: Fix typo.
12188 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
12190 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12191 to match MS. Fixed MinDate to only accept value less than or equal
12192 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12193 Removed TODO's that are now verified by unit tests.
12195 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
12197 * TreeNodeCollection.cs: Minor corrections to exceptions to match
12200 2007-05-25 Jackson Harper <jackson@ximian.com>
12202 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12203 it's own message loop.
12204 * XplatUIX11.cs: Remove some of the dnd hooks
12206 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
12208 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12209 instead of MinimizedWindowSize.
12211 2007-05-25 Jackson Harper <jackson@ximian.com>
12213 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12215 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12217 * KeyEventArgs.cs: Added SuppressKeyPress.
12218 * Control.cs: Added support for SuppressKeyPress.
12220 2007-05-24 Andreia Gaita <avidigal@novell.com>
12222 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12223 problems with PieChart. suppress_validation should not be a counter,
12224 if there are several BeginInit calls, the first EndInit will
12225 activate validation. Fix exceptions thrown by set_Value.
12226 * UpDownBase.cs: ValidateText only if it's the user editing it.
12228 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12230 * ListControl.cs: FilterItemOnProperty should return the filtered
12231 item proeprty even if DataSource is null. The same applies for
12232 GetItemText. Fixes #80427.
12234 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12236 * Control.cs: If a control doesn't have a parent when it's Dock is
12237 set, but it has children, it needs to do a layout. Fixes some nested
12238 controls issues. [Fixes bug #81199]
12240 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12242 * ComboBox.cs: If there are few items in the drop down list, make it
12243 the exact size the items need, no bigger. Fixes #81612.
12245 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12247 * Application.cs: When we have captured the keyboard for a menu,
12248 check for mouse down events in case we need to close the menu.
12249 * Control.cs, Form.cs: Remove mouse down checks for menus.
12251 2007-05-24 Jackson Harper <jackson@ximian.com>
12253 * TextControl.cs: Handle tabs in non multiline mode a little
12256 2007-05-24 Jackson Harper <jackson@ximian.com>
12258 * TextControl.cs: We need to manually break apart tabbed text and
12259 move the tabs, since the system.drawing tabbing mechanism relies
12261 * TextBoxBase.cs: Move the caret properly when the user enters a
12264 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12266 * ContainerControl.cs: Don't check CanSelect before calling
12268 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
12269 release a KeyboardActive on click if it's not ours.
12271 2007-05-23 Andreia Gaita <avidigal@novell.com>
12273 * ColumnHeader.cs: Add TypeConverter
12275 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12277 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12279 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12281 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12283 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12285 * LinkLabel.cs: Implement public Padding property.
12287 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12289 * LinkLabel.cs: Implement public FlatStyle.
12291 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
12293 * Control.cs: Apply patch from George to call parent.PerformLayout
12294 when Visible is changed. [Fixes bugs #81118, 81718]
12296 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12298 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12300 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12302 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12304 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12306 * ContextMenu.cs: Implement Collapse.
12308 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12310 * ToolBarButton.cs: Implement Name.
12312 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12314 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12315 use current_item, it prevents some NRE. Fixes #81675.
12317 2007-05-22 Andreia Gaita <avidigal@novell.com>
12319 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12320 without updating the text.
12322 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12324 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12325 without calling DeleteObject. [Should fix bug #81709]
12327 2007-05-22 Jackson Harper <jackson@ximian.com>
12329 * RichTextBox.cs: Set the line endings correctly, when flushing
12332 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
12334 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12335 {Width=0,Height=0}.
12337 2007-05-22 Jackson Harper <jackson@ximian.com>
12339 * TreeView.cs: Setting top with a null node should set to the very
12342 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12344 * Form.cs: ShowDialog: destroy the handle when message loop is
12345 finished, matches MS behaviour. Refactor parts of WmClose into
12346 RaiseCloseEvents, that only raises events if they haven't already
12347 been raised. Fixes #81688 and #81521.
12348 * Application.cs: Don't call close on the form when exiting a modal
12349 loop, it will raise all the (Form)Closed/Closing events again if
12350 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12351 which doesn'r raise any events it they have been raised before.
12353 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12355 * Control.cs: Add OnPrint.
12356 * ToolStrip.cs: Add GetChildAtPoint.
12357 * ToolStripContainer.cs: Add OnRightToLeftChanged.
12358 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12360 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12362 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
12364 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12366 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12367 isn't visible anymore. Fixes #81651.
12369 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12371 * Control.cs: WmShowWindow: Update children's z-order after setting
12372 their parent. SetParent may show the window, thereby corrupting
12373 z-order, since the window will be shown on top.
12374 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12375 multiple (and redundant) WM_SHOWWINDOW messages.
12376 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12377 event has already been raised.
12378 * Form.cs: Change is_changing_visible_state to a counter, since
12379 SetVisibleCore can be called recursively. CreateHandle: when
12380 creating mdi children, send (De)Activated events.
12381 * MdiClient.cs: Update use of is_changing_visible_state.
12382 * Application.cs: OnThreadException: Surround exception handling with
12383 try/finally to ensure we always reset the error-handling state
12386 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12388 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12391 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12393 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12394 SmallIcon views, now that we have a standarized horizontal spacing.
12396 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12397 4, just like the other views (Match .Net).
12399 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
12401 * Control.cs: Delay calculating anchor distances until we actually layout.
12402 Always query the WM for the actual size and location it put us at instead of
12403 only when we send negative values.
12404 [Fixes bugs #81694, 81695]
12406 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12408 * Application.cs: Avoid a possible stack overflow when trying to exit
12411 2007-05-19 Marek Safar <marek.safar@gmail.com>
12413 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12416 2007-05-19 Andreia Gaita <avidigal@novell.com>
12418 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12419 * NumericUpDownAcceleration.cs,
12420 NumericUpDownAccelerationCollection.cs: Added 2.0
12423 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
12425 * RichTextBox.cs: Recalculate the document after the ScrollBars
12426 property is changed. Fixes bug #81681.
12428 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12430 * DataObject.cs: Implement 2.0 methods.
12432 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12434 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12435 in the center of the checkbox, not in the left-top corner.
12438 2007-05-18 Jackson Harper <jackson@ximian.com>
12440 * RichTextBox.cs: Recalculate the document after the scrollbars
12441 property is changed.
12442 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12445 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12447 * CreateParams.cs: Make HasWindowManager marginally faster.
12448 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12449 into Hwnd so that other drivers can use it as well.
12450 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12451 the default location from Hwnd. Fixes MDI client windows always
12452 showing up at (0,0) in Windows (Win32 won't set the default
12453 location since the window styles aren't correct).
12455 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
12457 * TreeView.cs: Modified DoubleBuffered to just use the base
12460 2007-05-18 Jackson Harper <jackson@ximian.com>
12462 * TreeView.cs: Set the top node to the last child node when
12464 - When we get focus, if there is no selected node, use the top
12467 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12469 * KeysConverter.cs: Add CanConvertTo.
12470 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12471 * LinkConverter.cs: Added.
12473 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12475 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12476 it prevents error when file dont have write access. Fixes #81669 and #81667.
12478 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12480 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
12481 button text. Fixes #79640.
12483 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12485 * Control.cs: According to MSDN controls created in the designer theres
12486 keyboard accelerators visible by default. So included check for design
12487 in ShowKeyboardCuesInternal.
12489 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12491 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
12492 text. Fixes #81621.
12494 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12496 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12497 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
12499 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12501 * Control.cs: Finish implementation of UI State using WmChangeUIState
12502 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12503 in some controls to check for show_keyboard_cues to draw accell keys "_".
12505 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12507 * ListBox.cs: When calculating the horizontal scrollbar
12508 in single column mode, don't use values less than 0 for
12509 Maximum. Fixes #81474.
12511 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12513 * ListBox.cs: Throw the some missing exceptions in
12514 ListBox.ObjectCollection methods.
12516 2007-05-17 Jackson Harper <jackson@ximian.com>
12518 * TextBoxBase.cs: Recalculate the document when the word wrap
12519 value has changed. This fixes 81488.
12521 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12523 * Clipboard.cs: Implement missing GetText overload.
12525 2007-05-17 Chris Toshok <toshok@ximian.com>
12527 * Control.cs (CheckDataBindings): remove the binding_context arg
12530 * CurrencyManager.cs (OnItemChanged): fix this now that
12531 BindingManagerBase is fixed. also remove the comment telling where
12532 the fix should go. We set transfering_data to true/false around
12533 the call to PushData to keep UpdateIsBinding from being called.
12534 (ListChangedHandler): remove the extra OnMetaDataChanged call for
12535 PropertyDescriptorAdded in the 1.1 case. The extra call is
12536 actually generated by System.Data generating 2 metadata changed
12537 events of its own per column add. The fix should go there. Add a
12538 comment to that affect in our test's Assert.Ignore.
12540 * BindingManagerBase.cs: Rework PullData and PushData slightly.
12541 we keep a boolean flag (transfering_data) that keeps us from
12542 calling UpdateIsBinding multiple times if we re-enter either of
12545 * ControlBindingsCollection.cs (AddCore): remove the
12546 binding_context arg to binding.Check.
12548 * Binding.cs (IsBinding): don't check if we're binding here, just
12549 return our cached value. we update it in UpdateIsBinding.
12550 (Check): don't take the binding_context arg, we'll just use our
12551 control's. Also, for some reason MS doesn't use the data member
12552 field when getting the bindingmanager for this binding. it just
12553 uses the datasource. Make this method callable multiple times,
12554 and only do the is_null_desc stuff if manager.Position != -1 (so
12555 we don't get an exception accessing manager.Current).
12556 (UpdateIsBinding): move the code from IsBinding here.
12557 (PositionChangedHandler): call Check here to we can initialize
12558 things that require a non- -1 position.
12560 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12562 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12565 2007-05-17 Andreia Gaita <avidigal@novell.com>
12567 * TabControl.cs: Add 2.0 methods and events, including
12568 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12569 * TabPage.cs: Add 2.0 methods
12571 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12573 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12574 keyboard_cues is properly handled by message method.
12576 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12578 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12580 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12582 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12584 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
12587 - WmUpdateUIState added to handle state changes, it make call to
12588 OnChangeUICues event.
12589 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12592 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
12594 * ImageKeyConverter.cs: Added.
12595 * TreeViewImageKeyConverter.cs: Added.
12597 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12599 * ToolTips.cs: Update Text if SetToolTip is called for a control
12600 already showing the tooltip, as well as restarting its timer; show
12601 tooltip if we are inside the control bounds by the time of calling
12602 SetToolTip. Inside ShowTooltip remove the check to not show the
12603 tooltip again for the active control (it is allowed by .Net to
12604 show the tooltip on the same control multiple times).
12606 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12608 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12610 2007-05-16 Andreia Gaita <avidigal@novell.com>
12612 * ContainerControl.cs: only process tab key if there are no
12613 modifier keys present, otherwise the control does the
12614 tab processing, if it needs to. Fixes #81622
12615 * TabControl.cs: Fixes calculation for which tab to select on
12618 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12620 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12622 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
12624 * Control.cs: Make IsInputCharInternal to allow controls to
12625 override it and still match MS API.
12626 * TextBoxBase.cs: Override IsInputCharInternal and always
12630 2007-05-15 Jackson Harper <jackson@ximian.com>
12632 * TextBox.cs: Disable some of the menu options when using a
12635 2007-05-15 Jackson Harper <jackson@ximian.com>
12639 * RichTextBox.cs: Some new 2.0 methods
12641 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
12643 * FileDialog.cs: On 1.0 profile, do not support multidotted
12646 2007-05-14 Jackson Harper <jackson@ximian.com>
12648 * TextBoxBase.cs: Implement some of the new 2.0 methods.
12649 * RichTextBox.cs: We need to override these methods on 2.0.
12650 * MaskedTextBox.cs: These are implemented now
12651 * TextControl.cs: This was off by one.
12653 2007-05-14 Jackson Harper <jackson@ximian.com>
12655 * TextControl.cs: Because the line endings are including in the
12656 text, we don't need to add them in anymore.
12658 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12660 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
12661 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
12663 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12665 * ToolBar.cs: Adjust size to default size when button theres no text and
12666 image, it fixes remaining issues from #81524.
12668 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12671 - When not flat call redraw to recalculate sizes on creare handle to match
12673 - Revert 77220 because it causes some regressions in toobar
12676 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12678 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
12679 now actually enters a usable state.
12681 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12683 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
12684 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
12687 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12689 * ToolBar.cs: Save default_size on create handle to use later for buttons
12690 without text, needed to mimic win32 behavior.
12692 2007-05-11 Everaldo Canuto <everaldo@simios.org>
12694 * ToolBar.cs: Fix button layour to best fit width or height according to
12695 vertical or not. Fixes #81524.
12697 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12699 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
12700 toolbar size info because different styles theres different sizes.
12703 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12705 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
12706 if we are using checkboxes, checked is true, and we have less
12707 than two images in StateImageList; for the 1.1 in the same scenario
12708 draw the first image if we have at least one image in StateImageList.
12709 Fixes part of #81191.
12711 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12713 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
12714 the owner's Items collection on merge.
12716 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12718 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
12719 * ToolStripItemCollection.cs: Lots of fixes to when events get called
12720 and parent/owner gets changed based on gert's unit tests.
12722 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12724 * MaskedTextBox.cs: Started implementing parts of it.
12726 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12728 * ListView.cs: When clicking the checkbox on the items
12729 take into account the double clicks even if we have only
12730 one image in StateImageList (only for 1.0/1.1). Also
12731 generate an extra change of checked state when we receive
12732 the second click on checkbox (match .Net behaviour).
12733 Fixes part of #81191.
12735 2007-05-10 Everaldo Canuto <everaldo@simios.org>
12737 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
12739 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
12741 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
12742 even if OnLoad is overriden and base.OnLoad is not called.
12745 2007-05-10 Andreia Gaita <avidigal@novell.com>
12747 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
12748 shame. (I blame my ever-persisting and annoying cold)
12750 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12752 * ListView.cs: Don't eat navigation keys. Let them flow through to
12753 KeyDown/KeyPress routines. [Fixes bug #81569]
12755 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12757 * ListView.cs: When handling keys for selecting the item based off
12758 keyboard input, do not consider keys pressed with Alt or Control. Also,
12759 correctly handle keys when the Shift key is down. [Fixes bug #81578]
12761 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12763 * Control.cs: When using UseWaitCursor, we have to store the requested
12764 Cursor to use when UseWaitCursor is turned off.
12766 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
12768 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
12770 * Application.cs: Use PreProcessControlMessage instead of
12772 * PreProcessControlMessage.cs: Make internal for 1.1.
12774 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12776 * Control.cs: Add InternalContains focus property, which hast the same
12777 functionality of ContainsFocus, but also including implicit controls.
12778 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
12779 since we need to know if the focus is contained in our implicit
12780 ItemControl when calculating Layout. Fixes part of #80888.
12782 2007-05-08 Everaldo Canuto <everaldo@simios.org>
12784 * ToolTip.cs: Remove center form string alignment as it must be align to
12787 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
12789 * ToolStripItemCollection.cs: Set the new item's parent and owner
12790 in Insert like we do in Add. [Fixes bug #81568]
12792 2007-05-08 Jackson Harper <jackson@ximian.com>
12794 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
12795 - Off by one error in SetTop
12796 - Disable DoubeBuffering
12798 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12800 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
12801 control as much as necessary in order to make it entirely visible,
12802 instead of centering the control in the container (matches MS
12803 behaviour). CalculateCanvasSize: we need to take the current scroll
12804 position into account when calculating the maximum canvas,
12805 otherwise the following scenario will fail: resize so that the
12806 scrollbars appear, use the scrollbars to scroll, resize again
12807 smaller, and now the canvas size is too small. Recalculate: when
12808 showing scrollbars make sure they start off at 0, and try to scroll
12809 the active control into view. Fixes #79540. HandleScrollBar: don't
12810 scroll anywhere if the scrollbar isn't visible.
12812 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12814 * ListView.cs: When focus changed, call Layout/Invalidate
12815 in the focused item to update the selected state (should show
12816 entire label when ListView is focused, and a part of it if is not).
12817 * ListViewItem.cs: When doing layout for LargeIcon, take into account
12818 for displaying the entire label not only the Focused state of the
12819 item, but also the Focused state of the ListView (match .Net
12822 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12824 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
12825 Implement UseWaitCursor.
12827 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12828 Applying contributed patch from Sergey Volk.
12830 * Clipboard.cs: Implement SetDataObject retry logic and new overload
12832 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
12834 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12836 * Control.cs: Implement DrawToBitmap.
12838 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12839 Applying contributed patch from Stefan Noack.
12841 * Control.cs: Add [Get|Set]AutoSizeMode.
12843 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12845 * MdiClient.cs: Unmerge menus when the last child is closed.
12847 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
12849 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
12850 * ToolStripManager.cs: Call Merge on DropDowns.
12853 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12855 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
12857 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
12858 visibility. We can't create forms visible, since we have to set the
12859 owner before making the form visible (otherwise Win32 will do
12860 strange things with task bar icons). The problem is that we set the
12861 internal is_visible to true before creating the control, so
12862 is_changing_visible_state is the only way of determining if we're
12863 in the process of creating the form due to setting Visible=true -
12864 this works because SetVisibleCore explicitly makes the form
12865 visibile afterwards anyways. Fixes #80775.
12867 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12869 * ThemeWin32Classic.cs: When drawing ListViewItems,
12870 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
12871 or LargeIcon _and_ item is not focused (match .Net behaviour).
12873 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12875 * Control.cs, Form.cs: Fix some obsolete method warnings.
12877 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
12879 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
12880 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
12882 2007-05-04 Andreia Gaita <avidigal@novell.com>
12884 * ContainerControl.cs: Fix active_control attribution when going
12885 up the parent chain so that the first parent container gets the control
12886 and the rest of the parent containers get the child containers (skips
12887 non-containers). Fixes #80729
12889 2007-05-04 Randolph Chung <tausq@debian.org>
12891 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
12894 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12896 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
12897 takes a size parameter, since the CreateParam's size isn't true for
12898 minimized forms. Fixes #81518,
12900 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12902 * Form.cs: Add OnDeactivateInternal.
12903 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
12905 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
12907 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
12908 accessing the parent. Fixes #81508.
12910 2007-05-03 Chris Toshok <toshok@ximian.com>
12912 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
12913 2.0 block, pass listposition + 1 to ChangeRecordState when a row
12914 was added before the current listposition. Fixes the
12915 TestInsertRowBeforeCurrent unit test.
12917 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
12919 * Application.cs: Add RaiseIdle.
12920 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12921 XplatUIX11.cs: Implement RaiseIdle.
12923 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
12924 corcompare work: N - Z
12928 * ScrollableControl.cs
12929 * SplitContainer.cs
12932 * SystemInformation.cs
12934 * TableLayoutControlCollection.cs
12935 * TableLayoutPanel.cs
12940 * ToolStripComboBox.cs
12941 * ToolStripContainer.cs
12942 * ToolStripContentPanel.cs
12943 * ToolStripDropDown.cs
12944 * ToolStripDropDownItem.cs
12945 * ToolStripDropDownMenu.cs
12947 * ToolStripItemCollection.cs
12948 * ToolStripMenuItem.cs
12949 * ToolStripPanel.cs
12950 * ToolStripSplitButton.cs
12953 * TreeNodeCollection.cs
12954 * TreeNodeMouseHoverEventArgs.cs
12957 2007-05-01 Everaldo Canuto <everaldo@simios.org>
12959 * ContextMenu.cs: Add public method Show with alignment property to 2.0
12960 stuff. Thanks aatdark for the patch.
12962 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12964 * GridItem.cs: Implement 2.0 Tag property.
12966 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
12968 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
12969 count instead of Nodes.Length. [Fixes bug #81448]
12971 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12973 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
12976 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12977 corcompare work: A - M
12978 * BindingNavigator.cs
12983 * FlowLayoutPanel.cs
12989 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
12991 * Application.cs: Give toolstrips a chance to process mnemonics.
12992 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
12993 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
12994 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
12996 2007-05-01 Jackson Harper <jackson@ximian.com>
12998 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13000 - Don't set the BoundsSpecified
13002 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13004 * Application.cs: When using the toolstrip shortcut mechanism, allow the
13005 message to pass through to a regular control if it hosted by a toolstrip.
13006 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13007 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13009 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13011 * TextRenderer.cs: Use the flags argument when using the MeasureString
13012 fallback algorithm.
13014 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13016 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13017 the MDI menu item. [Fixes bug #81483]
13019 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
13021 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13022 string. When setting Name to null, use zero-length string instead.
13024 2007-04-29 Andreia Gaita <avidigal@novell.com>
13026 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
13027 DeselectTab). Implement missing 2.0 TabPageCollection methods
13028 (Add, ContainsKey, RemoveByKey, IndexOfKey)
13030 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
13032 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13034 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
13036 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13037 Fixes bug #81479. Include details of exception when LoadFile fails.
13039 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
13041 * DrawListViewSubItemEventArgs.cs: Added missing setter
13043 2007-04-27 Andreia Gaita <avidigal@novell.com>
13045 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
13046 Hide methods (not complete). Implement missing 2.0 OnPopup event.
13048 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13050 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13051 removed in ly last commit (it was breaking the Label edit feature).
13053 * ThemeWin32Classic.cs: When drawing a ListViewItem use
13054 StringAlignment.Near for LineAlignment (match .Net).
13056 2007-04-27 Andreia Gaita <avidigal@novell.com>
13058 * TabControl.cs: Change SetTab so it adds the tabpage to the list
13059 of controls if it isn't already there - was blowing up when doing
13060 tabcontrol.TabPages[i]=new TabPage().
13061 SetTab now does a replace by removing the page at the index.
13062 Add a new InsertTab method that inserts a page in a given index
13063 instead of replacing.
13064 Implements TabPageCollection.Insert(int, TabPage).
13066 2007-04-27 Chris Toshok <toshok@ximian.com>
13068 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13069 internal handler that can be invoked from our subclasses.) Also,
13070 add a comment to PushData about how we need to fix it.
13072 * CurrencyManager.cs: tons of changes here. trying to get things
13073 matching the behavior of .net wrt event orders (ItemChanged,
13074 CurrentChanged, PositionChanged.) I've implemented a private .net
13075 symbol (ChangeRecordState) that appears in stack traces because
13076 it's actually easier to do this than to effective inline all its
13077 various behaviors at every call site.
13079 * RelatedPropertyManager.cs: guard against an exception here by
13080 not using parent.Current if the position is set to -1 (if the
13081 parent datasource is cleared, for instance).
13083 * Binding.cs: don't parse data in PushData (this might be wrong,
13084 but it jives with MS's behavior.) Also, don't call PushData when
13085 we get a CurrentChanged event.
13087 2007-04-27 Andreia Gaita <avidigal@novell.com>
13091 WebBrowserSiteBase.cs,
13092 HtmlDocument.cs: Added stubbed out classes, no real implementations
13095 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13097 * MainMenu.cs: In draw method without parameters call draw method with
13098 PaintEvent, another one (just rect) adjust rectangle and we dont need it
13099 as Rect property is already adjusted. Fixes #80694.
13101 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
13103 * Application.cs: Need to handle keyboard menu deselection here.
13104 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13105 navigation, allowing keyboard to work on X11.
13106 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13108 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13110 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13111 menu bar. It fixes some drawing issues in menu bar.
13113 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13115 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
13116 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13117 when <alt> key is pressed.
13119 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13121 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
13122 example just set visible to false and make this prevent from other problems.
13123 In SystrayAdd always remove pending expose. Fixes #81072.
13125 2007-04-26 Marek Safar <marek.safar@gmail.com>
13127 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13130 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13132 * ListView.cs: Added three missing 2.0 events and corresponding
13133 EventHandlers. Added the OwnerDraw property.
13134 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13136 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13138 * DrawListViewItemEventArgs.cs
13139 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13141 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13143 * TextControl.cs: Fixed typo in constructor
13145 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
13147 * Application.cs: Create a shortcut path so that currently selected
13148 MenuStrips can intercept keyboard events without having focus.
13149 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13150 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13151 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13152 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
13153 generate WM_SYSCOMMAND message in X11 for other platforms.
13154 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13155 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13156 * ToolStripSplitButton.cs: Add DefaultItem property.
13158 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13160 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13161 fixes some menu draw problem on Windows with border diferent from default
13162 it also fixes #81403.
13164 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13166 * Form.cs: Refactor WndProc into separate methods, just like Control is
13169 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13171 * Control.cs: set_Text: move the call to the driver into a seperate
13172 virtual method so that Form can override it.
13173 * MaskedTextBox.cs: Corcompare fixes.
13174 * Form.cs: Override UpdateWindowText and only update the styles if the
13175 form has been shown (fixes #81405).
13177 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13179 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13180 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13181 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
13182 the form lost focus or another control was clicked.
13184 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
13186 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13189 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13191 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13192 DrawListViewItemEventHandler.cs,
13193 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13195 * X11Structs.cs: More ToString implementation.
13197 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13199 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13200 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13202 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13204 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13206 * FormCollection.cs: Don't add a form if it's already in the
13208 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13209 according to behaviour and MSDN. The ownerWin32 is the active
13210 window at the moment when we call ShowDialog, not the context's
13211 main form (the context's main form may open another form that opens
13212 a form with ShowDialog, the win32 owner is the second form). Add
13213 and remove forms to the Application.OpenForms in other places to
13214 better match MS behaviour. Add an IsActive property that raises
13215 On(de)Activated only if the active state has changed (we were
13216 raising OnDeactivated before OnActivated while creating forms).
13217 * Application.cs: Refactor Enabling/Disabling of windows for modal
13218 dialog loops out to separate methods, and restore the thread
13219 context when we quit the method. Fixes #81407.
13221 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13223 * ListView.cs: In ItemControl.HandleClicks, also fire
13224 2.0 MouseClick or MouseDoubleClick events on the parent,
13225 not only the Click/DoubleClick events.
13227 2007-04-24 Andreia Gaita <avidigal@novell.com>
13229 * TableLayoutSettings.cs:
13230 - Added a GetControls method and a support structure to help the
13231 TypeConverter to enumerate the controls for serialization.
13232 - Added a new serialization constructor.
13233 - Added a isSerialized flag initialized to true on the
13234 serialization constructor so that the TableLayoutPanel.LayoutSettings
13235 setter does not throw the designed NotSupportedOperation exception
13236 when the object is built through deserialization.
13237 - Implemented GetObjectData
13239 * TableLayoutPanel.cs: Added check on LayoutSettings.
13241 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13243 * ListView.cs: Report Click and DoubleClick events to the parent
13244 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13245 from breaking the click count state when using dialog forms (Control
13246 reports the clicks in a similar fashion). In the previous behaviour
13247 the last WM_LBUTTONUP message in a double click was sent to the
13248 ListView's form, instead of the ListView, which was breaking the click
13249 count for it. Fixes #80387.
13251 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13253 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13255 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13257 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
13258 us from created dropdowns for menu items that do not have subitems.
13259 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13260 Check HasDropDownItems before calling DropDown so a dropdown will not be
13261 created if it isn't needed.
13263 2007-04-24 Jackson Harper <jackson@ximian.com>
13265 * TreeView.cs: Set the first node to the selected node when we get
13266 focus if there is no selected node.
13268 2007-04-24 Andreia Gaita <avidigal@novell.com>
13270 * MimeIcon.cs: remove using blocks so that image streams are
13271 not disposed of. Fixes #80151
13273 2007-04-24 Jackson Harper <jackson@ximian.com>
13275 * TextBoxBase.cs: Fixup the height of textboxes when the control
13278 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13280 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
13281 for each ToolStripItem when the parent's RightToLeftChanged is called.
13283 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13285 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13287 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13288 property, so that the setter can be overriden too.
13289 * TextBox.cs: Change GetContextMenuInternal() to use
13290 ContextMenuInternal.
13292 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13294 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13297 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13299 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13302 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13304 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13305 avoid duplicate work. Mostily skeleton code, it's not working at
13308 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
13310 * NotifyIcon.cs : stub for MouseClick event
13311 * Application.cs: stub for SetUnhandledExceptionMode
13313 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13315 * BindingNavigator.cs : Initial (partial) implementation
13317 2007-04-23 Jackson Harper <jackson@ximian.com>
13319 * TreeView.cs: Do not create the treeview's handle when setting
13320 the scroll position.
13321 - ExpandAll needs to compute the scrollbars so it knows which
13322 position to set the bar too.
13324 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13326 2007-04-23 Jackson Harper <jackson@ximian.com>
13328 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13331 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
13333 * ToolStripItem.cs: Make GetImageSize internal.
13334 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13335 need to draw an item. Fixes a reported issue where images on menus
13336 that were not 16x16 were drawing incorrectly.
13338 2007-04-21 Miguel de Icaza <miguel@novell.com>
13340 * Padding.cs: Use the converter, fixes the resgen2 issue with
13343 2007-04-21 Jackson Harper <jackson@ximian.com>
13345 * TreeView.cs: Dont try to unhighlight the selected node if there
13346 isn't a selected node.
13348 2007-04-21 Jackson Harper <jackson@ximian.com>
13354 * TreeView.cs: Use the InternalBorderStyle property to set the
13355 initial border style, this forces the client rectangle to be sized
13358 2007-04-20 Jackson Harper <jackson@ximian.com>
13360 * TreeView.cs: Simplify scrolling to the last node after expanding
13362 - Fix some off by ones with setting the bottom.
13364 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13366 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13367 that. We were incorrectly doing it the other way around. Also,
13368 update ClientSize if we change the BorderStyle before the control
13371 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13373 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13374 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13375 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13376 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13377 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13378 Caption to CaptionHeight.
13379 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13380 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13381 and FixedFrameBorderSize to return value from current XplatUI driver.
13382 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13383 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13384 and FixedFrameBorderSize using win32 API. Renamed Caption to
13386 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13387 * SystemInformation.cs: Fixed typo in BorderSize.
13389 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13391 * XplatUI.cs: Added MenuAccessKeysUnderlined.
13392 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13393 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13395 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13396 value from XplatUI driver.
13397 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13398 SystemParametersInfo.
13399 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13401 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13404 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13406 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13408 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13410 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13412 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13414 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13415 MenuStrips that contain ToolStripSeparators.
13417 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13419 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13420 DefineStdCursorBitmap.
13421 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13422 has been created off a standard cursor. This is used to get a
13423 bitmap of the standard cursor when Draw or DrawStretched is called
13424 in order to draw the cursor.
13425 * X11Structs.cs: Added XcursorImage and XcursorImages.
13426 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13427 DefineStdCursorBitmap.
13428 * Cursors.cs: Update all relevant creations of Cursor to use the new
13429 internal constructor.
13431 2007-04-19 Jackson Harper <jackson@ximian.com>
13433 * TextBox.cs: Move the has_been_focused into the base control, so
13434 some of the text adding methods can manipulate it (probably time
13435 for a better name for this flag too).
13436 - Call a new version of selectall that doesn't scroll
13437 * TextBoxBase.cs: When we append text, if the document is empty,
13438 don't scroll. If the document has text already, we scroll to the
13439 end of the appended text.
13440 - When the text is changed, we reset the has_been_focused, so the
13441 next time the control gets focused, all the text is selected.
13443 2007-04-19 Jackson Harper <jackson@ximian.com>
13445 * TextControl.cs: Move the margins to the document, add a method
13446 so the margin sizes can be updated.
13447 * TextBoxBase.cs: When the border style is changed, update the
13450 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
13452 * Control.cs: Respect DefaultPadding.
13453 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13454 padding into account.
13455 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
13457 2007-04-19 Jackson Harper <jackson@ximian.com>
13459 * TextControl.cs: Oops, we need to use the ClientRect not the
13462 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13464 * ListView.cs: In ItemControl.ItemsMouseDown, take into
13465 account the double clicks when CheckBoxes are used and
13466 the pointer is inside the checkbox. Fixes part of #81191.
13468 2007-04-18 Jackson Harper <jackson@ximian.com>
13470 * TextControl.cs: Pressing the end key shouldn't move the caret
13471 past the line ending.
13472 * TextBoxBase.cs: We can still delete if we are in the line
13473 ending and the combine will just kill the existing line ending.
13475 2007-04-18 Jackson Harper <jackson@ximian.com>
13477 * TextControl.cs: We can't move lines, then invalidate their
13478 bounds, we need to get the old bounds and combine that with the
13480 * TextBoxBase.cs: Before combining two lines for a delete, we need
13481 to invalidate the area of the old line, since that will be moved
13482 in the combine operation.
13484 2007-04-18 Everaldo Canuto <everaldo@simios.org>
13486 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13487 with transparent background. Fixes #80482.
13489 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
13491 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13492 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13495 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13497 * CreateParams.cs: Add a couple of helper methods and do a less string
13498 concatenation in ToString.
13499 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13500 overload that takes a Control parameter, since this method may be
13501 called before a control is assigned to the hwnd (from
13502 CreateWindow), and update CreateWindow to use the new overload. In
13503 GetMenuOrigin subtract the title bar from the y position if the
13504 form has a window manager (since we're painting it and not X).
13505 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13506 CreateParams to calculate the origin (since border sizes may vary).
13507 In ScreenToMenu only subtract the title height if we actually have
13509 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13510 mdi children never have menus of themselves.
13511 * InternalWindowManager.cs: Implement menu handling like form does.
13512 Added GetMenuOrigin to calculate the menu origin, can't use the
13513 CreateParams from the form like normally since it's lying.
13514 * Hwnd.cs: Implement GetBorderSize better (in the sense more
13515 windows-like) and add Inflate and comparison operators to the
13516 Borders type. When calculating MenuOrigin and it's a form with a
13517 window manager, use the window manager to calculate it.
13519 2007-04-17 Chris Toshok <toshok@ximian.com>
13521 * Control.cs (CreateControl): turns out in 2.0 we don't need this
13522 OnBindingContextChanged thing here. It's only generated from
13523 ContainerControl.OnCreateControl. Fixes a newly written unit test
13524 - BindingTest.BindingContextChangedTest4.
13526 2007-04-17 Jackson Harper <jackson@ximian.com>
13528 * ScrollBar.cs: When setting values, make sure the current
13529 position stays within the new values range.
13531 2007-04-17 Chris Toshok <toshok@ximian.com>
13533 * Control.cs (CreateControl): talk about a bizarre corner case.
13534 Don't emit OnBindingContextChanged here if we're a parentless
13535 control (i.e. if we're a form.). Fixes
13536 BindingTest.BindingContextChangedTest2.
13538 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13540 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
13541 from win32. Fixes #81255.
13543 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13545 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13546 already present in CalculateButtonTextAndImageLayout.
13548 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
13550 * XplatUIX11.cs: When setting min/max size for a window we need to
13551 translate the coordinates to x coordinates. Create an overload of
13552 SetWindowMinMax that takes a CreateParams handling this, and change
13553 SetWMStyles to call this function (can't use Control.FromHandle in
13554 the SetWindowMinMax to get the control/CreateParams from the handle
13555 because the handle might not have been assigned to the control
13556 yet). Fixes #81371.
13558 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13560 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13561 if StateImageList is non-null and it has less than two items (match MS
13562 behaviour). Also, in HandleNavKeys handle the Space key, calling
13563 the new ToggleItemsCheckState method, which tries to change the
13564 checked state of the selected items. Fixes part of #81191.
13566 2007-04-16 Jackson Harper <jackson@ximian.com>
13568 * RichTextBox.cs: namespace cleanup.
13570 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13572 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13574 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13577 * Control.cs: Call invalidate in set_Region.
13579 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13580 it dont works here.
13582 2007-04-16 Jackson Harper <jackson@ximian.com>
13584 * TextBoxBase.cs: When enter is pressed, we need to update all
13585 lines below the current.
13587 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
13589 * MdiClient.cs: Implement implicit menu merging for MDI
13590 children. When a child form is active, if it has a menustrip
13591 and the parent form has a MainMenuStrip, automatically merge
13594 2007-04-15 Andreia Gaita <avidigal@novell.com>
13596 * TabControl.cs: Refactored sizing methods to not repeat
13597 code all over the place. Tab bounds are now calculated
13598 as if alignment is top and single line, and only when
13599 setting the bounds are the positions adjusted according
13600 to alignment. Replaced hardcoded positions, spacings and
13601 paddings by getting the values the ThemeEngine.
13604 * Theme.cs: Change TabControl properties and methods so
13605 that all start with TabControl*. Added more properties
13606 to help remove hardcoded values on tabcontrol.
13607 Add CPDrawBorder3D declaration so the Theming classes
13610 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13612 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13613 on the Theming namespace, and call the appropriate methods here.
13614 Change CPDrawBorder3D to public.
13616 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13618 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13619 the control after firing the OnMouseUp event, instead of sending
13620 the message before the mentioned event. This is so we can match the
13621 MS behaviour. Fixes part of #80385.
13623 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13625 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13626 RightToLeft property.
13628 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13630 * ToolStrip.cs: Add properties and internal methods to support merging.
13631 * ToolStripItem.cs: Add MergeAction and MergeIndex.
13632 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13633 not trigger reparenting or layouts.
13634 * ToolStripManager.cs: Add Merge and RevertMerge methods.
13635 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13636 is hosting the overflow menu.
13638 2007-04-13 Jackson Harper <jackson@ximian.com>
13640 * TextControl.cs: Set the line ending correctly for the first
13643 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
13645 * Theme.cs: Update GetMethod to get the new definition for
13646 KnownColors.Update (and fix theme color updates).
13648 2007-04-12 Everaldo Canuto <everaldo@simios.org>
13650 * MessageBox.cs: Fix some test and button position.
13652 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13654 * Form.cs: Consider the implicit controls in
13655 GetRealChildAtPoint. We need it since this method
13656 is called on Form when handling the some messages in
13657 WndProc, and need to consider those implicit ones too.
13660 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
13662 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
13663 if there are no ShortcutKeys set.
13664 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
13665 set, use it when painting.
13667 2007-04-12 Jackson Harper <jackson@ximian.com>
13669 * TextControl.cs: Fix some off-by-one issues in line duplication
13670 and insertion in the undo manager. Also, overwrite the first tag
13671 of a line on insert, if it is just a zero lengthed tag. This
13672 prevents us from getting an extra stranded tag at the beginning of
13675 2007-04-11 Everaldo Canuto <everaldo@simios.org>
13677 * Label.cs: Remove check for handle created in CalcAutoSize, we need
13678 to calculated proper size including when handle was not created yet.
13680 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13682 * MdiWindowManager.cs: When moving a form, allow the form to be moved
13683 when the mouse is outside of it's parent's client rectangle. Fixes
13684 #79982 (take 3, part 2).
13686 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13688 * X11Structs.cs: Add a few ToString() overrides.
13689 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
13690 the window location in a window-manager independent way. Reworked
13691 FrameExtents, it now actually works. Reworked AddConfigureNotify
13692 and ReparentNotify handling to use GetTopLevelWindowLocation
13693 instead of the earlier, more hacky solution. Reworked SetWMStyles,
13694 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
13695 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
13696 for all other windows (fixes #81281 part 1), a toolwindow is hidden
13697 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
13698 and generally refactored to do as few calculations as possible
13701 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
13703 * Theme.cs: Change "reflective-contract" between MWF and SD to
13704 minimize # of calls, avoid Color serialization and avoid updating
13705 every "known colors" each time a single one is updated.
13707 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13709 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
13710 when not readonly and the text is explicitly set. Code style updates.
13711 * DataGridTableStyle.cs: Removed extra line.
13712 * DataGrid.cs: Code style updates. Removed extra whitespace.
13713 * DataGridColumnStyle.cs: Code style updates. Removed extra
13716 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
13718 * XplatUIX11.cs: Added comment that "fixes" #80021.
13720 2007-04-09 Jackson Harper <jackson@ximian.com>
13722 * TextControl.cs: We don't need this -1 on the line count anymore.
13724 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
13726 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
13727 entered value to underlying type, and convert it back to a string to
13728 apply formatting. Modified GetFormattedValue to use TypeConverter
13731 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
13733 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
13734 Use SubItems property when we want to ensure there's at least one
13735 subitem. Modified SubItems property to ensure there's always at least
13736 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
13737 the NRE's reported by MS.
13739 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
13741 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
13742 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
13743 Spaces to tabs. Removed extra tabs.
13745 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
13747 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
13748 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
13750 2007-04-06 Jackson Harper <jackson@ximian.com>
13752 * TextBoxBase.cs: When a delete removes a line, recalculate all
13753 lines below that line (they need to get offsets setup correctly)
13756 2007-04-05 Jackson Harper <jackson@ximian.com>
13758 * TextControl.cs: We need to invalidate across the width of the
13759 document when we are invalidating multiple lines.
13760 * TextBoxBase.cs: Don't delete into the line ending.
13762 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13764 * ListView.cs: Restore the check for the MouseHover event
13765 in ListView. It looks like the ListView fires more than one MouseHover
13766 event when HoverSelection is true _only_ in weird-corner scenarios, but
13767 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
13770 2007-04-05 Mike Kestner <mkestner@novell.com>
13772 * ListView.cs : raise MouseDown before updating selection.
13773 [Fixes #80373 tab 1&3]
13775 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13777 * ToolStripRenderer.cs: Add static method to mirror image.
13778 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
13779 and RightToLeftAutoMirrorImage.
13780 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
13782 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
13784 * ToolStripSplitStackLayout.cs: Support Alignment property.
13785 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
13787 2007-04-05 Jackson Harper <jackson@ximian.com>
13789 * TextControl.cs: Move around the line endings when crossing line
13791 - When combining lines, strip the ending text off the first line.
13793 2007-04-05 Jackson Harper <jackson@ximian.com>
13796 * TextBoxBase.cs: Try to never move the cursor into the line
13799 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13801 * ToolStripItem.cs: Make sure we aren't firing mouse events when
13802 the item is disabled. Also add a few missing methods.
13804 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13806 * ListView.cs: We don't need the MouseEnter/MouseLeave check
13807 to fire just one MouseHover event when HoverSelection is true, since
13808 .Net does fire more than one MouseHover event in that scenario. Also,
13809 fix the selection in HoverSelection, by invoking UpdateMultiSelect
13810 if MultiSelect is true, instead of only setting ListViewItem.Selected.
13811 Finally, we need to reset the Hover logic in MouseMove, even when we
13812 don't have a selected item.
13814 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13816 * ToolStrip.cs: Add several missing methods, properties, and events.
13818 2007-04-04 Chris Toshok <toshok@ximian.com>
13820 * DataGridTextBoxColumn.cs: set the bounds of the text box to
13821 (0,0,0,0) in Commit, as MS does.
13823 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
13824 make sure we set CurrentRow on a row header click *before* calling
13825 Select. This moves the current cell (and the textbox) to the new
13826 row. The call to Select then hides the textbox, giving us the
13827 correct behavior. Fixes #80362.
13829 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
13830 (ListChangedHandler): reorder the position/current changed events,
13831 and call UpdateIsBinding in the ItemAdded case.
13833 * GridColumnStylesCollection.cs: add some columns events, one of
13834 which raises the CollectionChanged event.
13836 2007-04-04 Jackson Harper <jackson@ximian.com>
13838 * TextControl.cs: When we delete multiple selection lines
13839 invalidate the selection area, don't need to do that for single
13840 lines because the final update view will handle it.
13842 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
13844 * Control.cs: When we CreateControl, we need to also create all of the
13845 control's children. The child's OnLoad must also fire before the parent's
13846 OnLoad. Fixes the toolbox size in PDN.
13848 2007-04-04 Jackson Harper <jackson@ximian.com>
13850 * TextBoxBase.cs: When the user presses enter, insert a line
13851 ending into the text. (Maybe this would be a good spot for
13852 Environment.NewLine).
13853 * TextControl.cs: Remove undo manager hack, line endings get
13854 inserted properly now.
13856 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13859 - Remove unneeded parameters in UpdateCursor.
13860 - Fix UpdateCursor to check if menu is active.
13861 - Call UpdateCursor when menu deactivate my click.
13862 [Fixes remaining issues from #80410]
13864 2007-04-04 Everaldo Canuto <everaldo@simios.org>
13866 * Control.cs: GetRealChildAtPoint method added, it make an
13867 recursive child control search for the point.
13869 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
13872 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
13874 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13876 * Form.cs: Fix mouse position when send back mouse event after closes
13879 2007-04-03 Everaldo Canuto <everaldo@simios.org>
13881 * Form.cs: Simplify the BUTTONDOWN for active tracker.
13883 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13885 * Control.cs: Fix an issue where if a user resized a control inside
13886 a sizing method like OnResize, we would overwrite their explicit
13887 value. Also, only call DefaultSize once in the constructor instead
13888 of 4 times. Also, do not call SetBoundsCore from SetBounds if
13889 nothing actually changed.
13891 2007-04-03 Jackson Harper <jackson@ximian.com>
13893 * TextControl.cs: Don't attempt to copy text for lines with no
13894 text in them (technically this shouldn't happen, but we aren't
13895 always inserting line endings when we should be).
13897 2007-04-03 Jackson Harper <jackson@ximian.com>
13899 * TextBoxBase.cs: Calculate the scrollbars before calculating the
13900 document, because this sets some of the document size properties
13903 2007-04-03 Jackson Harper <jackson@ximian.com>
13905 * TextBoxBase.cs: We need to calculate maximums even if this is
13906 not a multiline control, because the maxs are used for scrolling.
13907 - Display the caret after doing a page up/down, we need to
13908 manually display it because a proper CaretMoved event isn't
13909 triggered (this is because of the way the math is done to
13910 determine how far to scroll).
13912 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
13914 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
13915 (ToolBar was relying on SetBoundsCore to default the values sent
13916 base off of BoundsSpecified.)
13918 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13920 * DateTimePicker.cs: Change Text so that when a null value or empty
13921 string is assigned to the test we always raise ValueChanged and
13922 TextChanged (earlier implementation would only raise ValueChanged
13923 if the current date value was different from DateTime.Now).
13925 2007-04-03 Andreia Gaita <avidigal@novell.com>
13927 * ButtonBase: Call update after invalidation, fixes #80194
13929 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13931 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
13934 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13936 * XplatUIX11.cs: SetWMStyles: If the control is a form with
13937 FormBorderStyle = None, don't give the window any decorations.
13940 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13942 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
13943 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
13944 to check for is a mix of several styles (such as WS_CAPTION for
13946 * Control.cs: Don't paint an area bigger than the client area when
13947 painting the background colour. Add an internal GetCreateParams.
13948 Update calls to XplatUI.CalculateWindowRect due to API change.
13949 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
13950 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
13951 the size if it hasn't been handled by any windows. When creating
13952 and moving windows, X wants the location of the entire window, but
13953 the size of the client window, so add
13954 TranslateClientRectangleToXClientRectangle,
13955 TranslateWindowSizeToXWindowSIze and
13956 TranslatedXWindowSizeToWindowSize to cope with this, and call them
13957 before every window creation and move. Update CalculateWIndowRect
13958 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
13959 In AddConfigureNotify don't do anything if the hwnd is a zombie
13960 (fixes the BadWindow we were getting while running the tests),
13961 always calculate the offsets when it's a parentless window, not
13962 only when reparented, and translate the window size, since we're
13963 getting the client size of the whole window, excluding entire
13965 * Theme.cs: Added BorderSizableSize.
13966 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
13967 anymore. Update calls to XplatUI.CalculateWindowRect due to API
13969 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
13970 change. Fake the window styles here instead of in XplatUIWin32 so
13971 that all back-ends get the same window styles (and it's Form that's
13972 deciding when to use wm, not the Win32 backend anyways)
13973 * Hwnd.cs: Completely reworked GetWindowRectangle and
13974 GetClientRectangle - they are now passed a CreateParams and they
13975 only use Style and ExStyle to determine the rectangles (they should
13976 now work just like Win32AdjustWindowRectEx - though quite a few
13977 special cases are probably missing). They should also be 100%
13978 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
13979 == rect), and all numbers (borders, menu sizes) are taken from the
13980 current theme. Added a GetBorders helper function that will return
13981 the borders for any given CreateParams (including captions and
13982 menus), and GetBorderSize that returns the given border size only.
13983 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
13984 Hwnd.GetClientRectangle.
13986 2007-04-02 Chris Toshok <toshok@ximian.com>
13988 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
13989 logic between the values we present to the user and the values
13990 which are stored in the column's property. Also, don't call
13991 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
13993 2007-04-02 Jackson Harper <jackson@ximian.com>
13995 * TextBoxBase.cs: Scroll faster!
13997 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
13999 * StatusStrip.cs: Layout fixes for PDN.
14000 * ToolStrip.cs: Set item's available to true, and placement to main when
14002 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14003 changing in setter before doing any work, add InternalVisible.
14004 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14005 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14008 2007-04-02 Jackson Harper <jackson@ximian.com>
14010 * TextBox.cs: LBUTTON does not make the textbox select all of it's
14013 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14015 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14016 Makes ToolStripComboBoxes show up again.
14018 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14020 * ListView.cs: Add a hover_pending field in ListView
14021 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14022 cycle (we are resetting the MouseHover logic in XplatUI
14023 to handle HoverSelection). Fixes #80429.
14025 2007-04-02 Jackson Harper <jackson@ximian.com>
14027 * TextControl.cs: Make sure the attributes get set on the last
14029 - Still have to do the end tag if we have stepped all the ways to
14032 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
14034 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14035 on an internal libgdiplus call when the information is already
14036 available via the public API.
14038 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14040 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14041 control is removed from a control collecftion.
14042 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14043 Fixes FormPropertyTest (failed on rare occasions).
14044 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14045 of Win32SetParent (when changing from no parent to a parent it
14046 might add the new parent's location in screen coordinates to this
14047 window's location).
14048 * Form.cs: Rework ChangingParent once again, now the handle is
14049 recreated whenever a FormWindowManager is added or removed (that is
14050 whenever a normal form is parented or abandoned). Also change
14051 CreateParams so that all non-toplevel windows always get the
14052 specified sice (StartupPosition is never considered for
14053 non-TopLevel forms).
14054 * ContainerControl.cs: Add ChildControlRemoved, the container control
14055 needs to be notified when a control is removed from it's
14056 collection, in the case the removed control is the active control.
14058 2007-04-02 Jackson Harper <jackson@ximian.com>
14060 * RichTextBox.cs: Use the new methods for setting the font and
14061 color, these methods set the specified attribute without
14062 overriding the other attributes.
14064 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
14066 * ToolStripPanel.cs: Fixes for better layouts in PDN.
14068 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
14070 * TextBox.cs: Added internal ChangeBackColor method to special-case
14071 Color.Empty. Added check for invalid ScrollBars value.
14072 * TextBoxBase.cs: Added internal ChangeBackColor method.
14073 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14074 internal ChangeBackColor method to special-case Color.Empty. Added
14075 check for invalid ScrollBars value.
14077 2007-03-30 Everaldo Canuto <everaldo@simios.org>
14079 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14081 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14083 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14084 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14085 [Based on submitted patch from Olivier Duff.]
14087 2007-03-30 Jackson Harper <jackson@ximian.com>
14089 * TextBox.cs: Only select all on initial focus if the user has not
14090 specified a selection area.
14092 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14094 * UserControl.cs: Override CreateParams.
14096 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14100 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14101 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14102 check for is a mix of several styles (such as WS_CAPTION for instance).
14103 * Control.cs: Don't paint an area bigger than the client area when painting
14104 the background colour. Add an internal GetCreateParams. Update calls to
14105 XplatUI.CalculateWindowRect due to API change.
14106 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14107 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14108 hasn't been handled by any windows. When creating and moving windows, X
14109 wants the location of the entire window, but the size of the client
14110 window, so add TranslateClientRectangleToXClientRectangle,
14111 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14112 to cope with this, and call them before every window creation and move.
14113 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14114 removing DeriveStyles). In AddConfigureNotify don't do anything if the
14115 hwnd is a zombie (fixes the BadWindow we were getting while running the
14116 tests), always calculate the offsets when it's a parentless window, not
14117 only when reparented, and translate the window size, since we're getting
14118 the client size of the whole window, excluding entire window.
14119 * Theme.cs: Added BorderSizableSize.
14120 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14121 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14122 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14123 Fake the window styles here instead of in XplatUIWin32 so that all
14124 back-ends get the same window styles (and it's Form that's deciding when
14125 to use wm, not the Win32 backend anyways)
14126 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14127 they are now passed a CreateParams and they only use Style and ExStyle
14128 to determine the rectangles (they should now work just like
14129 Win32AdjustWindowRectEx - though quite a few special cases are probably
14130 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14131 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14132 sizes) are taken from the current theme. Added a GetBorders helper
14133 function that will return the borders for any given CreateParams
14134 (including captions and menus), and GetBorderSize that returns the given
14136 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14137 Hwnd.GetClientRectangle.
14139 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14141 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14142 layout of the mdi children is handled by CreateParams. Fixes
14145 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14147 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14150 * Form.cs: When active tracker mouse down is not processed, send event
14151 back to control inside mouse position. [Fixes #81227]
14153 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14155 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14156 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14157 stealing focus from the active form on Windows. (Control will be made
14158 visible in ShowWindow.)
14160 2007-03-29 Mike Kestner <mkestner@novell.com>
14162 * ImageList.cs : add internal Changed event.
14163 * ListView.cs : hook up to StateImageList.Changed to perform
14164 invalidations when the the state icon list changes. [Fixes #81191]
14166 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14168 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14169 to prevent tooltips from stealing focus from the active form on Windows.
14171 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14173 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
14175 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14177 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14179 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14182 2007-03-29 Jackson Harper <jackson@ximian.com>
14184 * TextControl.cs: When deleting text from non multiline textboxes,
14185 we need to update the entire document, because line offsets will
14188 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14190 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14191 added to theme, now we can create themes that uses diferent notify engines
14192 like notification-daemon from galago project or growl for Mac OS.
14194 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14196 * NotifyIcon.cs: Prevent Balloon to show in task bar.
14198 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14200 * XplatUIX11.cs: Prevent system to open more than one balloon.
14202 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14203 some compiler warning messages.
14205 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14209 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14211 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
14212 implemented, this methods is used by NotifyIcon.BalloonWindow class.
14214 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
14217 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14219 * ListViewItem.cs: Forgot to make Invalidate internal.
14221 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14223 * ListView.cs: Add a InvalidateSelection method to
14224 invalidate methods which are currently selected, and call
14225 it when setting FullRowSelect and HideSelection, instead of
14228 2007-03-28 Chris Toshok <toshok@ximian.com>
14230 * XplatUIX11.cs (UnmapWindow): reindent this block.
14232 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14233 the selection_start if we're moving the selection (that is, not
14234 extending it). Fixes bug #80461.
14236 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14238 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14239 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14240 create private ControlCollection.
14242 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14244 * Control.cs: We need to call OnVisibleChanged for our implicit
14245 children as well as our normal children. Fixes scrollbars in
14246 comboboxes not showing up.
14248 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14250 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14251 the check for IsHandleCreated first. The check in CreateHandle is not
14252 good enough because CreateHandle can be overriden, and the override
14253 should not be called if the handle is already created.
14255 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14257 * ToolStrip.cs: Remove MonoTODO for tooltips.
14258 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14259 * ToolStripContainer.cs: Add custom ControlCollection class.
14260 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14261 * ToolStripDropDown.cs: Add some missing properties/methods.
14262 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14263 * ToolStripItem.cs: Remove MonoTODO for tooltips.
14264 * ToolStripManager.cs: Add IsShortcutDefined.
14265 * ToolStripOverflow.cs: Override LayoutEngine.
14266 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14267 * ToolStripSeparator.cs: Add ImageKey.
14269 2007-03-28 Jackson Harper <jackson@ximian.com>
14271 * TextControl.cs: If a char delete removes a line ending, we need
14272 to update the ending style.
14273 - Make sure the line ending calcs get called.
14275 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14277 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14278 it was making the new code not work. Fixed a typo in the new code
14279 as well. Fixes #79826.
14281 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14284 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14285 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14286 - SystrayBalloon method implemented.
14287 [Add support for notifyicon balloon on win32, #79149]
14289 2007-03-27 Mike Kestner <mkestner@novell.com>
14291 * ThemeWin32Classic.cs : update StateImageList selection to mirror
14292 the ms behavior when only one image is added to the list.
14295 2007-03-27 Jackson Harper <jackson@ximian.com>
14297 * TextControl.cs: Improvements to non multiline line ending
14300 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14302 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
14304 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14307 - Balloon message handling added.
14308 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
14310 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14311 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
14312 to SystrayBalloon to me like other Systray method, also a
14313 handle parameter added.
14315 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14317 * ListView.cs: Show scrollbars even when items.Count == 0
14318 but the columns Width is bigger than the ListView.Width.
14319 Also, when columns.Count == 0 set layout_wd and layout_ht
14320 to the ClientRectangle values, so we don't show any scrollbar
14323 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14325 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14327 2007-03-27 Jackson Harper <jackson@ximian.com>
14329 * RichTextBox.cs: The RTF library decodes the text properly for us
14332 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14334 * ListView.cs: Display HeaderControl even when columns.Count == 0.
14335 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14336 ListView header (HeaderControl), instead of Control.BackColor.
14338 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14340 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14341 Fixes tab control issues where controls would not show up because they
14342 never received their OnVisibleChanged call.
14344 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14346 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14349 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14351 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14352 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14353 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14354 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
14355 the handle. Fix WindowState by using the internal variable until we are
14356 sure that we've been shown.
14357 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14361 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14363 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14364 (at least borders). Fixes #79386 on Linux (with a small difference
14365 in behaviour: when trying to resize a caption-less window metacity
14366 shows the sysmenu. Resizing is still possible though).
14367 * XplatUIWin32.cs: When setting window styles send request an extra
14368 WM_NCCALCSIZE when it's a form without title (due to no text and no
14369 caption), since Win32 seems to calculate it wrong the first time we
14370 get the message, though the second time things work as they should.
14371 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14372 newly reparented window might show up unparented. Update
14373 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14374 there's no title text. Fixes #79386.
14376 2007-03-27 Mike Kestner <mkestner@novell.com>
14378 * ListBox.cs : don't perform invalidations if the handle hasn't been
14379 created. [Fixes #80753]
14381 2007-03-27 Mike Kestner <mkestner@novell.com>
14383 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14386 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14388 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
14389 needed to implement Balloon.
14391 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14393 * ListViewItem.cs: In the constructors that take
14394 an array of strings, don't use ListViewSubItemCollection.AddRange
14395 method to add items, since we need to have a different behaviour (in
14396 the constructors we add an item for each null string, opposed to
14397 the behaviour of AddRange, which adds nothing).
14399 2007-03-26 Andreia Gaita <avidigal@novell.com>
14401 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14403 2007-03-26 Jackson Harper <jackson@ximian.com>
14405 * TextControl.cs: Draw and measure line endings when in non
14407 - When searching the text, count the end of the last line as a
14410 2007-03-26 Jackson Harper <jackson@ximian.com>
14412 * RichTextBox.cs: The selection_start and selection_end don't
14413 really track the correct tags for the selection. So we'll manually
14414 compute the correct tag here.
14416 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14418 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14419 and Continuous styles. Fixes #79469.
14421 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14423 * ToolStrip.cs: Implement Tooltips.
14424 * ToolStripItem.cs: Create internal method for determining tooltip.
14426 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14428 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14430 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14432 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14433 it prevents a problem thak keeps icon visible after application
14436 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14438 * NotifyIcon.cs: Balloon properties and methods created.
14440 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14441 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14443 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
14445 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14447 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14449 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
14450 parameter indicates which aspects were explicit/user-set.
14451 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14453 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14455 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14456 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14457 SmallChange, and Value (2.0).
14458 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14460 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14462 * ListView.cs: Always set item_control.Width in LayoutDetails
14463 if View is Details. Setting it later in CalculateScrollBars
14464 in a not-so-corner scenario (the sum of columns width is
14465 not bigger than the ListView width when handle is created, and then
14466 that sum gets bigger by increasing the width of the columns)
14467 causes a very weird recursion path (which shouldn't be happening,
14468 since header_control sets it in CalculateScrollBars too). This bug
14469 appeared after Chris' fixes for handle created issues, so probably
14470 it's related to some handle-creation time.
14472 2007-03-23 Chris Toshok <toshok@ximian.com>
14474 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14475 case where there's an add row, just so we don't end up in a case
14476 where it's not displayed (this happens when the row is partially
14477 obscured). Fixes bug #79574.
14479 2007-03-23 Jackson Harper <jackson@ximian.com>
14483 * RichTextBox.cs: Preserve line endings in the lines text buffer,
14484 also added an enum that represents the line ending type.
14486 2007-03-23 Andreia Gaita <avidigal@novell.com>
14488 * NumericUpDown.cs: Fix logic so Text and Value properties are not
14489 messed with in every method call, but only from DownButton,
14490 UpButton, UpdateEditText() and ValidateText. Fixes #80346
14492 2007-03-23 Chris Toshok <toshok@ximian.com>
14494 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14495 format objects if the format spec is "". Fixes bug #80889.
14497 2007-03-22 Miguel de Icaza <miguel@novell.com>
14499 * ToolStripPanel.cs (Join): added stubs to build PDN3
14501 * Control.cs (AutoScrollOffset): Add.
14503 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14504 property, its only implemented for Win32, on X11 it defaults to
14505 some hardcoded value.
14507 * ToolStripItem.cs (AllowDrop): Add property
14509 2007-03-22 Mike Kestner <mkestner@novell.com>
14511 * ListView.cs : in FullRowSelect Details mode, only enable box
14512 selection if the user clicks over the "item" column outside of the
14513 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
14515 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14517 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14518 handle is not created yet.
14519 * Form.cs: Select: Don't call CreateHandle if the handle is already
14520 created, avoids a stack overflow on Windows when we are recreating
14522 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14523 they are made visible, and override AfterTopMostControl to keep
14524 them on top when other controls are brought to front.
14525 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14526 or force_*scroll_visible is true (old implementation always shows
14527 scrollbars when needed, no matter what auto_scroll was set to).
14528 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14529 IsHandleCreated check.
14531 2007-03-22 Andreia Gaita <avidigal@novell.com>
14533 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14534 row or col separator.
14535 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14537 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14539 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14541 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14543 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14544 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
14545 every time. Fixes #80410.
14547 2007-03-22 Chris Toshok <toshok@ximian.com>
14549 * BindingSource.cs (AddNew): partially implement.
14551 remove a couple of NotImplementedException's
14552 to get bug #81148 closed.
14554 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14559 - UpdateCursor method added to update the screen cursor.
14560 - GetAvailableCursor method added to return cursor for enabled tree,
14561 it searches for cursor on control and it's parent's for enabled control.
14562 - Call UpdateCursor method on setter of Cursor property.
14563 - On setter of Enabled call UpdateCursor when it is false, we need to
14564 change cursor to normal (or to this parent cursor) because cursor
14565 setting theres no effect to disabled controls.
14566 - Some minor source changes to follow the coding style guidelines.
14568 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
14571 2007-03-22 Chris Toshok <toshok@ximian.com>
14573 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14576 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14578 * XplatUIX11.cs: Implement default locations for forms.
14579 * Form.cs: Completely rework startup location for forms. Fixes #79964.
14580 * Hwnd.cs: Add previous_child_startup_location (to track the current
14581 startup location for any child forms of the current form) and
14582 previous_main_startup_location (to track the startup location for
14583 the current toplevel form).
14585 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14587 * Control.cs: Don't trigger a layout if an implicit control is added
14588 that isn't visible. Also, don't notify the owner when an implicit control
14589 is added. (Owners shouldn't even know about their implicit controls.)
14591 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14593 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14594 to save some re-layouts.
14596 2007-03-21 Everaldo Canuto <everaldo@simios.org>
14598 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14601 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14603 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14604 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14606 2007-03-21 Mike Kestner <mkestner@novell.com>
14608 * ListView.cs : disable selection update for non-left button clicks
14609 with mods and over selected items. [Fixes #80524]
14611 2007-03-20 Jackson Harper <jackson@ximian.com>
14614 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14617 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14619 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14620 very probably a more complicated calculation there. Update the
14621 textbox' ForeColor and BackColor when the ComboBox' colors are
14622 changed. Change the border change in LayoutComboBox to only affect
14623 the textbox, not all the calculations there. Seems to fix most of
14626 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14628 * ComboBox.cs: Handle Home and End keys as well as all combinations of
14629 modifiers + navigation keys as input keys, enables advanced text
14630 selection in the combobox (like Shift+Left Arrow for instance).
14631 ComboTextBox now overrides Focused and returns whatever
14632 ComboBox.Focused returns, since it really should be focused
14633 whenever the ComboBox is. Fixes #80795. Also make the border around
14634 the text box one pixel bigger, as mentioned in #79436.
14636 2007-03-20 Jackson Harper <jackson@ximian.com>
14638 * TreeView.cs: Don't offset the images, this was causing some
14639 artifacts when expanding/collapsing with images that were the
14640 exact height of the treenode.
14642 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14644 * TrackBar.cs: Query the theme for the correct value when the mouse
14645 moves and the thumb is pressed.
14646 * Theme.cs: Added TrackBarValueFromMousePosition
14647 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
14648 implementation was updating the trackbar value when drawing, now
14649 the drawing methods only draw. Fixes #80900. Refactored the
14650 calculations out to TrackBarValueFromMousePosition and
14651 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
14652 according to the mouse position whenever it wants to. Changed the
14653 light coloured pen when drawing the thumb from ControlLight to
14654 ControlLightLight, because the ControlLight is the same colour as
14655 the background so the 3D effect is lost.
14657 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14659 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
14660 defined. Fixes #80784.
14662 2007-03-20 Marek Habersack <mhabersack@novell.com>
14664 * ContextMenuStrip.cs: align with the change introduced in
14667 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14669 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
14670 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
14673 2007-03-19 Chris Toshok <toshok@ximian.com>
14675 * Control.cs (WmPaint): don't make use of the Handle property
14676 after an event is emitted, as the user could have closed the
14677 form/destroyed the control. Store the Handle in a local variable
14678 and make use of that. Fixes bug #80768.
14680 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14682 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
14683 behavior in X11 environments.
14685 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14687 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
14688 because on setter of topmost we dont call SetTopmost when handle is not
14691 2007-03-20 Jackson Harper <jackson@ximian.com>
14693 * TextControl.cs: Need to use SelectionLength () not
14694 selection_length, since that var is reset to -1.
14695 - Draw the caret when we don't have focus.
14696 * TextBox.cs: The selectall actually doesn't occur until the first
14698 * TextBoxBase.cs: Need to update the caret position after a
14701 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14703 * ListView.cs: Enable scrolling when using Tile view.
14705 2007-03-20 Everaldo Canuto <everaldo@simios.org>
14709 * XplatUIDriver.cs: Abstract SetOwner method created.
14711 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
14712 must be implemented and was masked as todo.
14714 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
14717 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
14718 cheking for null owner to remove transient. The SetTopmost will be change
14721 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
14722 SetTopmost. Now owned forms will work properly in win32 and X11.
14724 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14726 * MdiWindowManager.cs: Update function name.
14727 * Form.cs: After closing a form MdiParent is always null.
14728 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
14729 better what it should do: necessary book-keeping when the form is
14730 closed, it should not close the form itself.
14732 2007-03-19 Andreia Gaita <avidigal@novell.com>
14734 * ListViewItem.cs: Fix back and fore color. The subitems only
14735 use their own colors if they are set, otherwise use the listview's
14736 colors. Don't set default colors on constructor for subitem.
14739 2007-03-19 Mike Kestner <mkestner@novell.com>
14741 * ListView.cs : make box selection for Details views with
14742 FullRowSelect conform to MS behavior when clicking in the "item"
14743 column and clicking outside the defined columns.
14744 [Fixes case 5-6 of #80374]
14746 2007-03-19 Chris Toshok <toshok@ximian.com>
14748 * ScrollableControl.cs: create the controls from within the ctor,
14749 but don't actually add them until our handle is created. this
14750 fixes a NRE possibility jpobst found (if you override OnLayout in
14751 a subclass, it's called before your ctor). Also, add a
14752 IsHandleCreated guard to UpdateSizeGripVisibility as well.
14754 2007-03-19 Jackson Harper <jackson@ximian.com>
14756 * TextBox.cs: Reduce the amount of invalidation we do.
14757 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
14758 some of them are true by default on MS.
14759 - Add some functions to reduce the amount of invalidates we do.
14760 * TextControl.cs: Less invalidation.
14762 2007-03-19 Chris Toshok <toshok@ximian.com>
14764 [ Fixes #81773, and *seems* to fix #81553 as well ]
14766 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
14767 AccumulateDestroyedHandles. We need to do it *after* we send
14768 WM_DESTROY, as the user's code can access Control.Handle in
14769 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
14770 move the WM_DESTROY/zombie handling to before the call to
14771 XDestroyWindow. For some reason without this ordering
14772 FormTest.RecreateHandle hangs. This ordering is semantically
14773 equivalent, however, as XDestroyWindow is async anyway.
14775 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
14777 * RichTextBox.cs: Reset backcolor_set after setting default.
14779 2007-03-19 Chris Toshok <toshok@ximian.com>
14781 * ScrollableControl.cs: the scroll position should not effect the
14782 canvas size. commit patch from georgegiolfan@yahoo.com, which
14783 fixes some really bizarre behavior on resizing. Fixes bug #80778.
14785 2007-03-19 Chris Toshok <toshok@ximian.com>
14787 * ScrollableControl.cs: clean this up a bit. create the
14788 scrollbars in the ctor and just show/hide them as needed. Also,
14789 make hscroll_visible/vscroll_visible internal to Recalculate, and
14790 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
14791 everywhere else. This seems to fix the scrollbars appearing
14792 beneath the content for me (i have *no* idea why that is,
14795 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14797 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
14798 some redundacy for stuff in Anchor and Dock that base will take care of.
14801 2007-03-19 Mike Kestner <mkestner@novell.com>
14803 * ListView.cs : make box selection for Details views without
14804 FullRowSelect dependent on the text bounds, not item bounds.
14805 * ListViewItem.cs : add an internal property to obtain the TextBounds
14806 in Details view. [Fixes case 1-4 of #80374]
14808 2007-03-19 Andreia Gaita <avidigal@novell.com>
14810 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
14811 we're < 2.0. #78448 && #80316
14813 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
14815 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
14816 have the same style available as the previously selected one. Also,
14817 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
14819 2007-03-19 Jackson Harper <jackson@ximian.com>
14821 * TextControl.cs: Add an alignment property that all new lines
14823 - Make sure to use the align shift when calculating the line's X
14825 * TextBox.cs: Set the alignment on the document as well as on all
14826 the document lines.
14828 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14830 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
14831 throw if setting the parent of an mdichild that already has an
14832 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
14833 AssemblyProductAttribute in the assembly, use the type's namespace (as
14834 MS seems to do). CreateControl: don't create the handle if the control
14835 is not visible (according to MS behaviour and spec). SetTopLevel: Only
14836 create handle if the control is not a form. Change FocusInternal to
14837 virtual so that it can be overriden by Form.
14838 * TextBox.cs: Update call to FocusInternal.
14839 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
14840 form is not a toplevel form when it's a mdi child, so update is_toplevel
14841 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
14842 hasn't been created. Show (IWin32Window): Don't allow this overload for
14843 toplevel windows. CenterToParent/CenterToScreen/Select: create the
14844 handle as MS does. SetVisibleCore: if called on a MdiChild and the
14845 parent isn't visible yet, save the visibility and restore it when the
14846 parent is made visible.
14847 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
14848 methods, since the visibility of the scrollbars can be changed from
14849 several places, not only from AutoScroll.
14852 2007-03-19 Jackson Harper <jackson@ximian.com>
14854 * RichTextBox.cs: Enable shortcuts by default.
14855 * TextBoxBase.cs: Add conditional shortcuts.
14857 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14859 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
14861 2007-03-19 Chris Toshok <toshok@ximian.com>
14863 [ Fixes bug #80604]
14865 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
14866 swallow the message we're waiting on, instead of delivering it, as
14867 this is only used for the WM_SHOWWINDOW raised from
14868 MapWindow/UnmapWindow, and the message needs to be generated
14869 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
14870 before doing the Map/Unmap. Also make sure that the Hwnd is still
14871 alive after the message has been handled.
14873 *before* the window is shown.
14875 * Control.cs (CreateControl): guard a few more things inside the
14876 if (!is_created) block, as we might end up being called again -
14878 (WmShowWindow): call CreateControl if we're showing the control.
14880 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14882 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
14883 controls without a handle if they have any parent with a handle. In
14884 Dispose add a check whether the handle is created or not before
14885 calling BeginInvoke, this removes the need of the extra disposing
14886 parameter (which was bogus anyway since it didn't prevent the
14887 invoke from happening, it only skipped the check for an existing
14888 handle, meaning that the invoke would call on an inexistent
14891 2007-03-19 Everaldo Canuto <everaldo@simios.org>
14893 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
14894 appears in taskbar.
14896 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14899 - Fixed a problem that dont show help button for messages with 3 buttons.
14900 - Refactory button size and position calculations, now dont use fixed
14901 values, also fixed button sizes (#80043) and form's border space.
14902 - AddButton method created, now all other AddButton methods call this one.
14903 - Some other source code cosmetic changes.
14905 2007-03-18 Jackson Harper <jackson@ximian.com>
14907 * RichTextBox.cs: Don't do this all fonts must match check if
14908 there is only one char selected.
14910 2007-03-18 Jackson Harper <jackson@ximian.com>
14912 * TreeView.cs: ScrollWindow works properly now, so we don't need
14913 to screw around with the scroll area. This fixes some artifacts
14914 when expanding and collapsing.
14916 2007-03-18 Jackson Harper <jackson@ximian.com>
14918 * TextBoxBase.cs: Allow updating the selection position when the
14919 cursor is outside the textarea, but we have a capture.
14920 * TextControl.cs: A special case for when the cursor is outside
14921 the bounds of the TB.
14923 2007-03-18 Jackson Harper <jackson@ximian.com>
14925 * TextBoxBase.cs: Remove image pasting code for now. There is no
14926 way to get an image on the clipboard right now anyways.
14928 * RichTextBox.cs: Use the new RTF Picture class for pictures.
14930 2007-03-18 Everaldo Canuto <everaldo@simios.org>
14933 - Set window properties in constructor intead of on CreateParams.
14934 - Remove topmost from Window ExStyle.
14935 - Set ShowInTaskbar to false.
14936 - Set form border to FixedDialog.
14937 - Some cosmetic changes and remove unneeded comments.
14938 - It fixes itens 2,3 and 4 of bug #80043.
14940 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
14942 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
14943 none was explicitly set. Fixes part of bug #79949.
14945 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14947 * ToolStripComboBox.cs: Add AutoComplete*.
14949 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
14951 * ToolStripComboBox.cs: Add FlatStyle.
14953 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14955 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
14956 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
14958 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14960 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
14961 CheckBox.cs, RadioButton.cs, BindingSource.cs,
14962 DataGridColumnStyle.cs: Remove warnings.
14964 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14966 * Menu.cs: MergeMenu: Check menu argument for null before looping over
14968 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
14969 visibility of mdi child forms. FormSizeChangedHandler: update the
14970 maximized size if size has changed while maximized.
14971 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
14972 creating the handle.
14973 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
14974 avoid creating the handle if not created.
14975 * XplatUI.cs: Update debug output.
14976 * XplatUIStructs.cs: Added ToString's for a couple of structs.
14978 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
14980 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
14982 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
14983 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
14984 Implement keyboard shortcuts.
14986 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14988 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
14989 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
14990 ColorDialog and all derived classes.
14992 2007-03-15 Everaldo Canuto <everaldo@simios.org>
14994 [ Fixes bug #79828 ]
14997 - Rename ToolBarButtonInfor to ToolBarItem.
14998 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
14999 - Maintain an array of ToolBarItem, used instead of ToolBarButton
15000 collection to be able add same button more than one time on a toolbar.
15001 - Refactory all properties and methods to use ToolBarItem.
15003 * ToolBarButton.cs:
15004 - Remove all propeties and methods that is now in ToolBarItem.
15005 - Rectangle propery now gets the rectangle from first ToolBarItem to
15006 mimic win32 behavior.
15007 - Size calculation and layout methods also removed.
15009 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15010 ToolBarItem instead of ToolBarButton to right drawing buttons when
15011 same button/separator was added more than one time to ToolBar.
15013 * ThemeNice.cs: Same as above.
15015 2007-03-15 Andreia Gaita <avidigal@novell.com>
15017 * XplatUIX11.cs: Fire extra MouseMove events right after
15018 MouseDown and MouseUp, emulating win32's <censored> behaviour
15019 for apps that rely on it.
15021 2007-03-15 Jackson Harper <jackson@ximian.com>
15024 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15025 it is drawn on the controls client window and there is no NC
15027 - Set the background color to gray on 2.0 when we are readonly.
15029 2007-03-15 Chris Toshok <toshok@ximian.com>
15031 [ Fixes bug #81144 ]
15033 * XplatUIX11.cs: implement VirtualScreen independently of
15034 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15037 2007-03-15 Chris Toshok <toshok@ximian.com>
15039 * Hwnd.cs: add an internal field for the cached_window_state.
15041 * XplatUIX11.cs: cache the window state, invalidating the cache
15042 (and thus re-querying the X server) only when we see an update to
15043 the _NET_WM_STATE property.
15045 2007-03-15 Chris Toshok <toshok@ximian.com>
15047 * BindingSource.cs: get a lot of the unit tests working.
15049 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
15051 * Control.cs: Modify UpdateStyles to store distances when bounds >=
15052 0 instead of just bounds > 0. [Fixes bug #80912]
15054 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
15056 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15059 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
15061 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15062 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15063 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15064 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15066 2007-03-15 Chris Toshok <toshok@ximian.com>
15070 * Control.cs: add Ivan's fix for 81101, with a slight modification
15071 - you can set control.Target to null.
15073 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
15075 * ToolStripItem.cs: If our OwnerItem is null, we can't use
15076 HideDropDown, use Hide instead to prevent an NRE.
15079 2007-03-14 Jackson Harper <jackson@ximian.com>
15081 * TextBoxBase.cs: Mess with the creation stuff a little. We need
15082 to calculate the document before the handle is created, in some
15083 cases. (Actually just one case).
15085 2007-03-14 Jackson Harper <jackson@ximian.com>
15087 * TextBoxBase.cs: Need to display the caret after letting the base
15088 wndproc handle the focus methods, because the caret display
15089 methods check the focus state.
15090 - Try to display the caret after updating it's position with SelectWord.
15091 - Don't need to do an immediate update on this recalc, since there
15092 will be an invalidate anyways.
15094 2007-03-14 Jackson Harper <jackson@ximian.com>
15096 * TreeView.cs: Some workarounds so that we can match event order a
15099 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
15101 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15102 #80803. Avoid NullReferenceException when Control does not have
15103 parent. Fixed different blinkstyle issues. Only subscribe to Tick
15104 event a single time. Only draw error icon when control is created and
15105 visible. Fixes failing unit tests.
15107 2007-03-14 Andreia Gaita <avidigal@novell.com>
15109 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15110 Selecting events. Fire Leave and Enter events when changing tabs.
15112 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
15114 * TreeView.cs: Add TreeViewNodeSorter.
15115 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15117 2007-03-14 Chris Toshok <toshok@ximian.com>
15119 * Form.cs: go ahead and remove the RecreateHandles that jpobst
15120 removed earlier and I had him add back it. It turns out metacity
15121 *does* in fact handle the MOTIF_WM_HINTS property changing, it
15122 just doesn't redraw the window titlebar until you resize the
15123 window. This also means we aren't recreating the entire window
15124 hierarchy on X when you change this property. And it looks better
15127 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15130 * ListView.cs: Collecting selection information
15131 is now done in SelectedIndexCollection rather than in
15132 SelectedListViewItemCollection. This is done so we can
15133 have the selection information code in one single place
15134 (virtual mode selection information entirely depends on
15135 SelectedIndexCollection).
15137 2007-03-13 Miguel de Icaza <miguel@novell.com>
15139 * ErrorProvider.cs: Add stubs for ISupportInitialize
15141 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15143 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15144 in the right order with the right values, from the Checked property,
15145 just as MS does (instead of triggering them from ListView).
15147 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15149 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15151 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
15152 the correct handler in OnItemCheck method (ItemCheckEventHandler
15153 instead of EventHandler). This used to throw an InvalidCastException.
15155 2007-03-13 Jackson Harper <jackson@ximian.com>
15157 * TextBoxBase.cs: Calculate the document before the handle is
15158 created, so there isn't an extra invalidate called.
15160 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
15162 * Form.cs: Don't set owner in ShowDialog until we are sure
15163 that we aren't going to throw an exception. [Fixes bug #80773]
15165 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
15167 * TreeView.cs: Make it compile.
15169 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15171 * Control.cs: Another place we don't call SizeFromClientSize.
15172 * Form.cs: Another place we don't call SizeFromClientSize.
15175 2007-03-12 Jackson Harper <jackson@ximian.com>
15177 * TreeView.cs: Basically emulating some strangness here with
15178 exanding nodes and setting node positions when windows aren't
15180 - Also attempting to walk the node tree less than previously, and
15181 just use visible order calculations for determining offsets.
15182 - oops made scrolling backwards.
15183 * TreeNode.cs: We need to start nodes with a zero visible order,
15184 because the order calcs are based on the first nodes order.
15186 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15188 * Form.cs: Don't exit the program if RecreateHandle is called on
15191 2007-03-12 Chris Toshok <toshok@ximian.com>
15193 * XEventQueue.cs: remove the use of PostQuitState.
15195 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
15196 WM_QUIT message in GetMessage, return false (and if we're in the
15197 nested WaitForHwndMessage, repost the WM_QUIT message).
15199 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15201 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15202 or the MaximizeBox properties. [Part of bug #80640]
15204 2007-03-12 Everaldo Canuto <everaldo@simios.org>
15206 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15209 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15211 * ToolStripItem.cs: Fix some tests I broke by checking Visible
15212 instead of visible.
15214 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
15216 * FileDialog.cs: Use text of File name combobox to determine what
15217 files the user selected. Added tokenizer to parse the file names.
15220 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15222 * Control.cs: We can't call SizeFromClientSize in the constructor,
15223 but we still need to do the same work, so make an internal version.
15226 2007-03-12 Jackson Harper <jackson@ximian.com>
15230 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15233 2007-03-12 Jackson Harper <jackson@ximian.com>
15235 * TextBoxBase.cs: Now that the handles are being created a little
15236 later, we need to make sure that the document is recalculated when
15237 the handle is created.
15239 2007-03-11 Everaldo Canuto <everaldo@simios.org>
15241 * Theme.cs: GetLinkFont abstract method added.
15244 - Remove CalcTrimRectangle, no longer needed.
15245 - Factor also remove, position issues must be fixed in libgdiplus.
15246 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15247 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
15248 care about font used to draw links.
15249 - Set TabStop to true when control is "Selectable", control is selectable
15250 when have one or more links. Fixes #80501 (test case is also added).
15251 - Set the LinkArea values after links change, LinkArea values must be
15252 based in first link position and size, a test case was created.
15253 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
15254 the attribute must be true LinkArea.Length > 0. The same was applied to
15257 * ThemeWin32Classic.cs:
15258 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
15260 - Use CPDrawStringDisabled to draw disabled text instead of hard code
15262 - Draw focus rectangle for every parts focused, including parts that
15263 is on another line, its because regions returns various rectangles
15264 and not only one. Needed to mimic W32 look.
15265 - Uses Graphics.Clip to delimite region painted, it mean that now
15266 complete text is passed to DrawString, with this we solve layout
15267 issues without create another text renderer.
15268 - Uses Region.Intersect to fix some flickers problems, now only needed
15269 parts will redrawed.
15270 - This changes fixes #79614 and some other unreported issues, on Linux
15271 some layout problems still remain, the problem is under
15272 MeasureCharacterRanges but it is an libgdiplus bug.
15274 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
15276 * TextBox.cs: Set for foreground color.
15277 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15278 this is already done in Control.
15280 2007-03-10 Jackson Harper <jackson@ximian.com>
15282 * TextBox.cs: Set the background color, but reset the
15283 backcolor_set flag which is just for the user setting the
15286 2007-03-09 Chris Toshok <toshok@ximian.com>
15288 * Control.cs: really remove the call to XplatUI.SetVisible from
15289 CreateHandle(), like I said I did when I merged the branch.
15291 * BindingSource.cs: implement some more of this stuff.
15293 2007-03-09 Jackson Harper <jackson@ximian.com>
15295 * TextBox.cs: Don't explicitly set our background colors.
15297 * TextBoxBase.cs: Draw readonly text.
15298 - Need to invalidate when backcolor or readonly are changed.
15300 2007-03-09 Jackson Harper <jackson@ximian.com>
15302 * TextBoxBase.cs: Don't set the forecolor until the handle is
15304 - Do not raise OnPaint, and removed some old debug code.
15306 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
15308 * ScrollableControl.cs: Fix mouse wheel scrolling.
15310 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15312 * Control.cs: Wire up MouseDoubleClick event.
15314 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15316 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15318 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15319 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15320 item is added. This logic was moved to ToolStrip.OnItemAdded.
15323 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15325 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15327 2007-03-08 Jackson Harper <jackson@ximian.com>
15329 * TreeView.cs: Show the correct image for selected node (this used
15330 to work, not sure how the code got deleted). Also implemented 2.0 feature
15333 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15336 * ListViewItem.cs: Cache index in items when retrieving them
15339 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15341 * ToolStripItem.cs: Don't return the explicit_size if we are using
15342 AutoSize. Fixes invalidation issue when user has explicitly set a
15343 size and has AutoSize = true.
15345 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15347 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15349 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15351 * DataGridView.cs: Remove event handler from DataView when a
15352 DataTable is used as DataSource.
15354 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15356 * Control.cs: Create internal setter for client_size to allow it to be
15357 set without triggering resizing code.
15358 * Form.cs: Calculate client_size in constructor, only change client_size
15359 in FormBorderStyle property if Handle has been created.
15360 [Fixes #80574, #80791]
15362 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
15364 * SystemInformation.cs: Add TerminalServerSession.
15366 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15368 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15371 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15373 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15374 Handle before we were supposed to. Now checks ActivateOnShow property
15376 * Control.cs: Add internal ActivateOnShow property.
15377 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15378 for ActivateOnShow.
15379 * Hwnd.cs Remove no longer needed no_activate field.
15381 2007-03-07 Jackson Harper <jackson@ximian.com>
15383 * TreeView.cs: Implement owner draw tree nodes. And a couple more
15385 * DrawTreeNodeEventHandler.cs: Add
15386 * DrawTreeNodeEventArgs.cs: Correct default value.
15388 2007-03-07 Chris Toshok <toshok@ximian.com>
15390 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15391 to be called before NativeWindow.WndProc. Put the HwndCreating
15392 magic there to hook up our Hwnd's to handles.
15394 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
15396 * DataGridView.cs: Comment out debug code.
15398 2007-03-07 Chris Toshok <toshok@ximian.com>
15400 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15401 to make the rest of the world happy]
15403 * Control.cs (CreateHandle): there's no need to call
15404 XplatUI.SetVisible here, it's effectively done by
15405 XplatUI.CreateWindow on X now, and always was on windows.
15407 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15408 shortcircuit out of the loop if we have a message loop running on
15411 [Changelog from merge]
15413 2007-03-05 Chris Toshok <toshok@ximian.com>
15415 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15416 causes handle creation.
15418 2007-02-28 Chris Toshok <toshok@ximian.com>
15420 * ApplicationContext.cs: Add a flag to make sure we only raise the
15421 ThreadExit event once (ExitThreadCore can be indirectly called
15422 from a few places.) I don't like the additional flag, but it
15423 makes the event ordering/count correct.
15425 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15426 without locking the collection. An enumerator doesn't give us any
15427 protection from modification anyway. Lock the thread hash and
15428 replace the complicated enumerator loop with a foreach.
15429 (Application.CloseForms): make internal so it can be called from
15430 ApplicationContext. This should probably be moved to MWFThread.
15431 (Application.ExitThread): don't call MWFThread.Current.Exit()
15432 here. just call XplatUI.PostQuitMessage. We'll exit the thread
15433 when the runloop exits (in response to WM_QUIT.)
15434 (Application.RunLoop): add a comment (and check) for
15435 context.MainForm being null after setting context.MainForm.Visible
15436 = true. This is because you're perfectly free to dispose of a
15437 form in VisibilityChanged. Chalk this up to another case where we
15438 need to synchronously generate WM_ACTIVATE from Control.Show.
15439 Also, add handling for WM_QUIT here so we'll exit the loop.
15441 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
15442 fact that we don't wait if we're only unmapping the whole_window
15443 makes me a bit nervous, but it doesn't seem to cause any problems
15446 also, add a comment about the stupid, broken and wrong resetting
15447 of PostQuitState to false in GetMessage().
15449 In PostQuitMessage, we need to add a WM_QUIT message to the
15450 thread's queue. We use the FosterParent to get the right
15453 Lastly, in SetVisible, we need to unmap both windows, since the
15454 waiting only happens when we're unmapping the client window. So
15455 now, the *only* time we unmap just the whole_window is in the hack
15456 for resizing a control to 0,0.
15458 2007-02-21 Chris Toshok <toshok@ximian.com>
15460 * Application.cs (CloseForms): rewrite this so that we don't
15461 modify the list while we're traversing it.
15463 2007-02-20 Chris Toshok <toshok@ximian.com>
15465 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15466 of OnHandleCreated.
15467 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15468 handle is created. otherwise we'll create it here.
15469 (VerticalScrollEvent): same here.
15471 * Application.cs (CloseForms): call Form.Dispose, don't post
15474 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15475 here. Application should Dispose() of the Form's.
15477 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15478 WM_DESTROY as well.
15479 (MapWindow,UnmapWindow): only actually do the waiting for
15480 SHOWWINDOW if the control we're dealing with is a Form.
15481 (CreateWindow): if the control isn't a form, SendMessage
15482 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15484 * Control.cs (SetVisibleCore): always use is_visible here, not
15485 value. If we use value, we can end up re-setting something
15486 visible if, for instance, you do Control.Hide() in a delegate
15487 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15489 2007-02-20 Chris Toshok <toshok@ximian.com>
15491 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15492 the message we need. PeekMessage returning false should not be a
15493 condition under which we exit the loop.
15495 2007-02-15 Chris Toshok <toshok@ximian.com>
15497 * Control.cs (Refresh): only refresh if we've got a handle and are
15499 (CreateAccessibilityInstance): CreateControl() here.
15500 (UpdateChildrenZOrder): complicate the code loop even more by
15501 taking into account controls that haven't had their handle
15502 created, and those that aren't visible. But on the flip side,
15503 simplify the code by splitting it into two loops. one which
15504 builds up the list of child controls we're interested in, and the
15505 other that sets the z order of those children.
15507 2007-02-14 Chris Toshok <toshok@ximian.com>
15509 * Control.cs: Control.AccessibilityObject causes the control to be
15510 created, not just the handle.
15512 2007-02-14 Chris Toshok <toshok@ximian.com>
15514 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15515 problem on X where a window might have its handle created (and be
15516 visible) while the window is unmapped. calling XConfigureWindow
15517 on an unmapped window is bad, and generates X errors.
15519 2007-02-13 Chris Toshok <toshok@ximian.com>
15521 * Control.cs (CreateHandle): don't loop over our children setting
15522 their parent here. do it when in WndProc when we're shown.
15523 (UpdateChildrenZOrder): make this internal so we can call it from
15525 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15526 creating its handle. Also, remove the calls to PerformLayout from
15527 here. they're done in ScrollableControl.OnVisibleChanged. Also,
15528 OnVisibleChanged only seems to be called directly here for the
15529 toplevel control. It's propagated down the window hierarchy by
15530 calls to child.OnParentVisibleChanged.
15531 (OnVisibleChanged): don't do layout here - it's done (oddly
15532 enough, according to a glance at stack traces on ms.net..) in
15535 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15536 z order of our children before calling PerformLayout.
15538 2007-02-12 Chris Toshok <toshok@ximian.com>
15540 [big change, fixes #80020]
15542 * AccessibleObject.cs: we need to make owner internal again to fix
15543 some of ControlAccessibleObject.
15545 * Control.cs: lots of changes here. add support for WM_CREATE,
15546 for which we generate OnHandleCreated. Remove the OnHandleCreated
15547 call from CreateHandle. Also add support for WM_SHOWWINDOW where
15548 we create child controls. leave the MonoTODO's for the
15549 accessibility calls, but fix the exceptions so the tests pass.
15551 Add the InvalidOperationExceptions to Invoke methods, and remove a
15552 couple of InvokeInternal methods we aren't using.
15554 Also, add a couple of CreateHandle calls in places where we know
15555 the handles are being created but our code doesn't reference
15558 Make SetVisibleCore call OnVisibleChange if the handle isn't
15559 created. If the handle is created, we rely on XplatUI.SetVisible
15560 generating the event synchronously.
15562 Lastly, make sure we don't use this.Handle inside CreateHandle,
15563 because we can call back into client (and that code can dispose of
15566 * XplatUIStructs.cs: misc/cleanup.
15568 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15569 although we don't populate the wParam properly.
15570 (CreateWindow): generate WM_CREATE.
15571 (MapWindow,UnmapWindow): make these calls synchronous, at great
15572 performance expense (particularly in the unmap case), to match
15575 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15577 (set_MdiParent): don't recreate the handle unless it's been
15580 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15583 * NativeWindow.cs: this is probably the weirdest part of the
15584 patch. We need a way to link up the window being created to the
15585 WM_CREATE message. Since we can only be creating one window at a
15586 time on a given thread, we keep track of a per-thread reference so
15587 we can dispatch it properly. We also need to keep track of the
15588 Hwnd currently being created so that the win32 backend doesn't
15591 * XplatUIWin32.cs: a similar change to the one we made in
15594 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15596 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15597 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15598 to draw the menu shortcut string.
15600 2007-03-07 Jackson Harper <jackson@ximian.com>
15602 * TreeNode.cs: Add the 2.0 collapse method.
15604 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15606 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15608 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15610 * DataGridView.cs: Change DataSource will clear column and row
15611 lists. Call Invalidate() to reflect DataSource change.
15613 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15615 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15616 and a new row is added to it.
15618 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
15620 * DataGridView.cs: Add columns when DataSource is en empty list but
15621 is a System.Data.DataView (from a System.Data.DataTable).
15623 2007-03-06 Andreia Gaita <avidigal@novell.com>
15625 * Label.cs: Implement AutoEllipsis (2.0)
15627 2007-03-06 Jackson Harper <jackson@ximian.com>
15629 * TreeView.cs: Implement 2.0 TopNode setter property.
15630 - Use a local var instead of the skipped_nodes field for computing
15631 how many nodes to skip. Otherwise we won't scroll because the
15632 valuechanged handler checks if skipped_nodes is equal to the new
15634 - Implement 2.0 Sort method.
15635 - Add useless 2.0 DoubleBuffer property
15636 - Implement 2.0 LineColors property. Lets you change the color of
15637 the lines in the tree. Terribly useful for creating non cohesive
15639 - Implement 2.0 image key feature.
15641 2007-03-06 Jackson Harper <jackson@ximian.com>
15643 * TreeView.cs: We can't get the bounds of the nodes before raising
15644 the AfterSelect event, because that event could change the node's
15645 bounds (scrolling, font change, etc).
15647 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15649 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
15650 * Form.cs: Don't recreate handle when creating FormWindowManager, just
15651 update window styles. In CreateParams us VisibleInternal instead of
15652 VIsible to get the actual visible flag set for this form.
15653 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
15654 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
15655 handle the case when the form is already maximized, in which case
15656 it should be restored. Fixes #81043.
15658 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
15660 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
15662 2007-03-05 Jackson Harper <jackson@ximian.com>
15664 * TreeViewHitTestInfo.cs: implement.
15666 2007-03-05 Jackson Harper <jackson@ximian.com>
15668 * InternalWindowManager.cs: class status fix.
15670 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15672 * InternalWindowManager.cs: All windows that have a parent
15673 are confined to their parent when they're being moved.
15676 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
15678 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
15679 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
15681 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15683 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
15684 buttons invisible before deciding which ones should be visible
15685 (fixes minimize/maximize buttons showing up in toolwindows). Remove
15686 an unused variable.
15687 * InternalWindowManager.cs: Remove warning.
15689 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15691 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
15692 to throw an InvalidOperationException is virtual mode is being used.
15694 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15696 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
15697 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
15698 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
15699 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
15700 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
15701 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
15703 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15705 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
15706 driver.KeyboardDelay from XplatUI.KeyboardDelay
15707 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
15708 (patch by Sergey Volk)
15710 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15712 * ToolWindowManager.cs: Added, contains logic for
15714 * CreateParams.cs: Add a few helper methods and an
15715 internal variable to know which control the CreateParams belongs
15717 * Control.cs: Call Form.ChangingParent when the
15718 parent is about to be changed.
15719 * XplatUIX11.cs: DeriveStyles (): Set
15720 caption_height for all windows that have captions and are children.
15721 Update to use ToolWindowManager instead of InternalWindowManager
15723 * XplatUIWin32.cs: Set fake window styles for all
15724 windows that have window managers.
15725 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
15726 now duplicated for mdi windows when they are
15727 maximized, first for the buttons the window itself has, then for
15728 the buttons that appear in the menu bar. Makes things a little
15729 easier). Updated UpdateWindowDecorations, SetWindowState and the
15730 mouse eventhandlers accordingly.
15731 * Form.cs: Add ChangingParent (), contains the
15732 logic of what should happen when the parent changes. In MdiParent
15733 don't set things that ChangingParent () is doing. When handling
15734 WM_CLOSE, we can close the form if there are any other modal forms
15735 and the current form is a descendent of the modal form.
15736 * InternalWindowManager.cs: A lot of refactoring,
15737 the title buttons are now extracted to a separate container class
15738 that takes care of all button code (clicks, tooltips, etc). Moved
15739 Iconic|Maximized|Normal Bounds properties to this class from
15740 MdiWindowManager, so that the window state logic can succeed for
15741 other than mdi wm's. Implemented general window state change logic.
15742 Moved CreateButtons to ThemeWin32Classic, since the theme might
15743 override which buttons are available when as well as the exact
15745 * FormWindowManager.cs: Added, contains logic for
15747 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
15748 which buttons go where (and if they are at all visible).
15749 Removed special handling of maximized windows, since they aren't special.
15750 In DrawManagedWindowDecorations don't try to draw the text if it is
15752 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
15753 use whatever the wm gives us.
15755 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
15757 * ButtonBase.cs: Add 2.0 properties.
15758 * Button.cs: Override Draw for 2.0.
15759 * Control.cs: Add Entered and Selected properties.
15760 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
15761 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
15762 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
15764 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
15766 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15768 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
15770 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
15772 * XplatUIWin32.cs: Register a new class with Windows each time we get
15773 a new ClassStyle. [Fixes bugs #79432, #80817]
15774 * Controls.cs: Set the correct ClassStyle in CreateParams.
15775 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
15777 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
15779 * ListView.cs: Add fireEvent argument to ReorderColumn since the
15780 ColumnReordered event must not be signaled when modifying DisplayIndex
15781 of a ColumnHeader. Added internal ReorderColumns method which takes
15782 care of drawing, and updating the internal DisplayIndex of the
15783 ColumnHeader. Added AddColumn method which is invoked from
15784 ColumnHeaderCollection when adding or inserting columns, and which
15785 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
15786 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
15787 Recalculated dispay indices after removing a ColumnHeader.
15788 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
15789 match MS. Allows last display index to be returned after ListView
15790 is disposed. Update actual location of ColumnHeader when DisplayIndex
15793 2007-03-01 Everaldo Canuto <everaldo@simios.org>
15795 * LinkLabel.cs: Improve CalcTrimRectangle.
15797 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
15799 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15801 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
15802 get rectangle as a result value.
15804 2007-02-28 Everaldo Canuto <everaldo@simios.org>
15806 * LinkLabel.cs: Theres some diferences between rectangle return from
15807 MeasureCharacterRanges and the area used for DrawString to fix this
15808 CalcMeasurementFactor method was created, it calcules the diferences
15809 to be use later to adjust rectangle in draw operations. Fixes #80473.
15811 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
15812 to adjust draw rectangle.
15814 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15816 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
15817 text and some other changes to reduce and optimize source code.
15819 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15821 * RadioButton.cs: Implement 2.0 event.
15822 * RelatedImageListAttribute.cs: Implement new class.
15824 2007-02-27 Everaldo Canuto <everaldo@simios.org>
15826 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
15828 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
15830 * CheckBox.cs: Implement 2.0 functionality.
15832 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15834 * ListView.cs: Refactor Add and AddRange methods of
15835 ListViewItemCollection, to not update the ListView
15836 everytime an item is added in AddRange. Also move the update
15837 code to a new CollectionChanged method, and call it
15838 from other methods that need it as well (this should also fix some
15839 bugs when Sorting is used).
15841 2007-02-27 Jackson Harper <jackson@ximian.com>
15843 * TextControl.cs: Try to never let the caret stay in a non-text
15845 * TextBoxBase.cs: Update the caret.
15847 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
15849 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
15850 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
15851 delete POINT structure, duplicate of one in XplatUIStructs.
15852 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
15854 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
15856 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
15857 edit box since otherwise the Label would immediately be set (even if
15858 the user did not modify the label). In OnKeyDown set Handled to true
15859 if Return or Escape was pressed. In ColumnHeaderCollection unlink
15860 columns that are to be removed. In ListViewItemCollection unlink items
15861 that are to be removed.
15863 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
15865 * TextRenderer.cs: If we set a GDI clip region, we need to clear
15866 it when we are done. [Fixes bug #80949]
15868 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15870 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
15872 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15874 * ListView.cs: I forgot to commit the changes for ListView
15875 in my previous patch.
15877 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15879 * Clipboard.cs: Partially implement an overload of SetDataObject.
15880 * Form.cs: Implement ShowWithoutActivation.
15881 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
15883 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15885 This is a first set of changes to make the Virtual mode works,
15886 by avoiding the retrieval of ListViewItem instances until
15889 * ListView.cs: Store item position in the ListView instead of the
15890 ListViewItem, this way we don't request the Bounds property of
15891 ListViewItem inside the ListView calculations, as well as cache the item
15892 size in item_size field. Store indexes instead of ListViewItem
15893 instances in the matrix used by icon view. Add a ItemMatrixLocation
15894 struct to hold the row and col info of the matrix info.
15896 * ListViewItem.cs: Don't store the location anymore, and only cache
15897 the rectangles for GetBounds. Use the ListView.GetItemLocation
15898 method to retrieve the actual location.
15900 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15902 * TextRenderer.cs: Add clipping support, thanks to George.
15905 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15907 * ListViewItem.cs: Cancel label edit when item is removed from
15909 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
15910 event before the edit textbox is displayed. Added CancelEdit method
15911 which is used end to editing while ignoring the value set by the
15912 user. In EndEdit, set focus to ListView to avoid losing focus to
15913 other controls. In ListViewItemCollection.Clear, cancel editing of
15914 any of the items. In Remove, cancel editing of item being removed.
15915 Avoid udplicate code by modifing RemoveAt to invoke Remove.
15917 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15919 * FileDialog.cs: Update FSEntry when move is successful. Fixes
15922 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15924 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
15925 compatible with non X11 systems. Fixes #80901.
15927 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
15929 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
15930 whether the item should be unselected and reselect. We do no want this
15931 when we're starting to edit the label. Do not fire the
15932 SelectedIndexChanged event from ListView when its already been fired
15933 by modifying ListViewItem.Selected. Fixes bug #80943.
15935 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15937 * TextRenderer.cs: Previos commit logic was backwards.
15939 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
15941 * TextRenderer.cs: Don't add padding on MeasureText if we were
15942 sent the NoPadding flag.
15944 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15946 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
15947 after DrawButton. To prevent image overlaps button borders SetClip and
15948 ResetClip added before and after draw image. Fixes #79129.
15950 2007-02-23 Everaldo Canuto <everaldo@simios.org>
15952 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
15953 window size, it fix problem when you run under win32 that theres
15954 Size diferent than ClientSize. Also fix controls size and positions
15955 to mimic Win32. Fixes #80837.
15957 2007-02-22 Everaldo Canuto <everaldo@simios.org>
15959 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
15960 menu area to fix some problems for non X11 systems. Fixes #80613.
15962 2007-02-22 Jackson Harper <jackson@ximian.com>
15964 * TreeNode.cs: When a node is expanded, set its is_expanded flag
15965 even if it doesn't have any children.
15967 2007-02-22 Jackson Harper <jackson@ximian.com>
15969 * TreeView.cs: Calculate the top node 'on the fly', this
15970 eliminates issues where you need to click on the tree before
15971 scrolling it to get the top node computed correctly.
15972 * TreeNodeCollection.cs: We don't need to mess with the top node
15975 2007-02-22 Jackson Harper <jackson@ximian.com>
15977 * DataGridViewRow.cs: Fix typo so height can actually be set.
15978 Patch by Peter Grimm.
15980 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15982 * FileDialog.cs: Fixed support for renaming files and directories.
15983 * ListView.cs: Do not lose focus when edit is canceled. Process
15984 Escape as regular key (to prevent closing of dialogs).
15986 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15988 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
15989 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
15991 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
15993 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
15994 did not modify label.
15995 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
15996 modified the text. Reset Label when user presses Escape in edit mode.
15997 Move focus to ListView after having cancelled or finished editing the
16000 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
16002 * ComboBox.cs: Removed unnecessary initializations. Marked items field
16003 private. Clear textbox when Text is set to null and SelectedIndex is
16005 * FileDialog.cs: Removed unnecessary initializations. Removed
16006 workarounds for ComboBox bugs that are now fixed. Modified
16007 DefaultExt, InitialDirectory and Title property to change null to
16008 zero-length string in getters. Avoid directly accessing fields.
16010 2007-02-20 Jackson Harper <jackson@ximian.com>
16012 * TextControl.cs: Remove RecalAlignments call, that was some
16013 debugging leftovers.
16014 - Don't use the line indent when we shouldn't.
16015 * RichTextBox.cs: Add support for paragraph left indents.
16017 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16019 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16020 Seems like the class status pages doesn't catch params differences.
16022 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
16024 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16026 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
16028 * ComboBox.cs: Setting Text should have no effect if item text of
16029 selected item exactly matches value. First lookup text using
16030 case-sensitive comparison, and fallback to case-insensitive comparison.
16031 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
16032 allow startIndex to be last index. Changed ArgumentOutOfRangeException
16033 paramname to match MS. Restart from first item if string is not found
16034 after startIndex. Fixed paramname of ArgumentNullException that is
16035 thrown for null value in ObjectCollection.Contains.
16037 2007-02-19 Everaldo Canuto <everaldo@simios.org>
16039 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16041 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16043 * ListControl.cs: In SelectedValue use value.Equals to compare for
16044 equality instead of ==, otherwise it will fail for strings.
16047 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16049 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16050 since the caret won't show up unless ShowSelection is true.
16053 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16055 * Application.cs: When disabling all forms but the main form, do not
16056 disable any descendants of the main form (such as mdi children or
16057 other parented forms). Fixes #80822 on Windows.
16058 * Form.cs: If we have a parent, set the WS_CHILD style.
16059 * Control.cs: Update the window styles if the control whose parent has
16060 changed is a form (the WS_CHILD style has to be switched).
16062 2007-02-19 Everaldo Canuto <everaldo@simios.org>
16064 * XplatUIStructs.cs: MsgUIState structure added.
16066 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16068 * FileDialog.cs: Removed need for separate fileName field. On 2.0
16069 profile, do not check filename(s) for illegal character if filename(s)
16070 were set non-interactively but always check on 1.0 profile. Fixed NRE
16071 in DefaultExt and only strip off first leading dot. Improve exception
16072 message when invalid Filter is set. Do not ignore InitialDirectory if
16073 it does no exist. Store specified Title, and if empty use default
16074 title (depending on type of dialog). Added an internal DialogTitle
16075 property for retrieving dialog title. Fixed logic of displayed dir to
16076 more closely match MS. Avoid setting ComboBox.Text to a zero-length
16077 string as its buggy.
16078 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16079 FileName is a zero-length string (it can never be null). Override
16080 DialogTitle property to set default title of dialog box.
16081 * SaveFileDialog.cs: Override DialogTitle property to set default
16082 title of dialog box.
16084 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16086 * FileDialog.cs: Modify default text of filename and filetype labels
16087 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16088 after we've updated the SelectedIndex. Fixes part of bug #80887.
16089 * SaveFileDialog.cs: Set text of filetype label.
16091 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16093 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16094 label field. Needed by latest Jackson's fixes for ListView.
16096 2007-02-16 Andreia Gaita <avidigal@novell.com>
16098 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
16099 print preview images.
16101 2007-02-16 Jackson Harper <jackson@ximian.com>
16103 * ListView.cs: Make AfterLabelEdit work correctly.
16104 * FileDialog.cs: After changing the name of the folder, we have to
16105 make sure that it is created, or that we pop up an error because
16108 2007-02-16 Jackson Harper <jackson@ximian.com>
16110 * X11Dnd.cs: Implement aliases on mime handlers, so things like
16111 System.String are mapped to text.
16112 - Handle dataobjects, getting all the possible formats out of them
16113 - We dont need the drag event args before we give feedback. This
16114 allows feedback cursors to be immediate before selections have
16117 2007-02-16 Jackson Harper <jackson@ximian.com>
16119 * TextBoxBase.cs: Modified the method for inserting images to
16120 taking a line and position instead of tag and position.
16121 * RichTextBox.cs: Handle PngBlip data by inserting the png image
16123 * TextControl.cs: Allow images to be inserted as the first tag of
16125 - Fix some off by one issues when we assume the first tag is a
16126 text tag, not an image tag.
16128 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16130 * ListView.cs: Set focus to ListView when ItemControl gets a
16131 WM_RBUTTONDOWN message, to mimic .Net behaviour.
16132 Fixes part of #80467.
16134 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16136 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16137 validate Text input (if null or empty string reset Value to default
16138 value). Fixes #80830.
16140 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16142 * ListView.cs: Set owner as null for columns and items when
16143 Dispose is invoked. Fixes #80607.
16145 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
16147 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16148 showing DropDowns, don't show a Grip when doing Flow layout.
16149 [This fixes the toolbox in PDN 2.72.]
16150 * ToolStripItem.cs: Add Anchor property and some internal properties to
16151 reduces needed changes to FlowLayout.
16152 * ToolStripOverflow.cs: Remove unused variable.
16153 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16154 use it in the layout calculations.
16156 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16158 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16159 reported in #79640.
16161 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16164 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16166 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
16167 MeasureString format, it can make button very large in some cases, it is
16168 strange but is what win32 do.
16170 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16172 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
16175 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16176 rendering, the value is based on MenuAccessKeysUnderlined.
16178 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16180 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16183 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16185 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16186 and use MenuAccessKeysUnderlined instead.
16188 2007-02-13 Andreia Gaita <avidigal@novell.com>
16190 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16191 A selected control would not get a Focus call if:
16192 - the default active control of the container is the same as
16193 the one that was selected
16194 - we are switching from one container to another
16195 Under these conditions, the container being selected already has
16196 an active_control, which is the same as the one being activated,
16197 so set_ActiveControl would always return and not send the Focus
16198 call. Fix to check if the currently active control of the container
16199 is actually focused.
16201 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
16203 * StatusStrip.cs: Implement the spring layout.
16204 * ToolStripControlHost.cs: Make sure the hosted control's visibility
16205 always matches the host.
16206 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16207 and TextAfterImage.
16209 2007-02-13 Andreia Gaita <avidigal@novell.com>
16211 * Control.cs: Code reorganization only.
16212 - Reorganize the WndProc cases so that each case has it's own handling method,
16213 to help with the no-line-numbering stack traces.
16214 - Formatting changes (it's vstudio's fault, really :p)
16216 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16218 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16219 Thread.CurrentUICulture to match DateTimePicker's (and MS)
16222 2007-02-12 Jackson Harper <jackson@ximian.com>
16225 * TextBox.cs: By default we have a non multiline document
16226 - use the multiline property instead of the internal variable
16227 * TextBoxBase.cs: Treat multiline and non multiline the same in
16229 - Use the documents multiline flag instead of tracking it ourself
16230 * TextControl.cs: Attempt at getting multiline to match MS
16231 behavior. Lines now track an offset, which is either their X or Y
16232 offset depending on whether or not we are in multiline mode.
16233 - Update all the methods to understand that lines have an X value.
16234 - Fix crash in Undo::Duplicate when empty lines are deleted.
16236 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16238 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
16239 code moved to properties PreferredHeight and PreferredWidth. It solve the
16240 all problems when preferred sizes must be recalculated. Fixes #80801.
16242 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16244 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16245 font height when compatible_text_rendering is false. Partially fix #80801.
16247 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16249 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16251 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16253 * Form.cs: Improved exception messages in ShowDialog.
16255 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16257 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16258 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16259 if not set. Fixes bug #80764. Avoid accessing current_settings field
16262 2007-02-08 Everaldo Canuto <everaldo@simios.org>
16264 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16267 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16268 public in 2.0 and for easy maintenance and dont break compatibility it is
16271 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16273 * ToolStripItem.cs: Implement using images from ImageList.
16275 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16277 * DateTimePicker.cs: Change default date-formatting culture from
16278 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16279 seems to be the way MS does it.
16281 2007-02-08 Andreia Gaita <avidigal@novell.com>
16283 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
16284 (the 6 was cut off on the right side)
16286 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16288 * Form.cs: Tell MenuStrips to close when the form is clicked.
16289 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
16290 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16291 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16292 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
16293 support for Overflow, where items that do not fit are automatically
16294 reparented to a drop down menu.
16295 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16296 Also: fixes bug #80747.
16298 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16300 * ComboBox.cs: Remove warning (unused code).
16301 * ScrollableControl.cs: Remove warning for 1.1 profile.
16303 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16305 * Form.cs: Remove a warning.
16307 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16309 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16310 'g' specifier, not documented anywhere, but seems to always show up
16311 as a single space (might have something to do with the DateTime 'g'
16312 specifier, which is the era format, but since DateTimePicker can't
16313 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16314 won't crash if the format has an unmatched quote. Now shows
16315 single-character formats correctly. Fixes #80744.
16317 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16319 * StatusStrip.cs: Stretch property needs to call base.Stretch,
16320 not this.Stretch to fix stack overflow. [Fixes bug #80760]
16322 2007-02-07 Chris Toshok <toshok@ximian.com>
16324 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16325 background color. it overwrites the background image we've
16326 already painted. Fixes #80599.
16328 2007-02-07 Chris Toshok <toshok@ximian.com>
16330 * DataGrid.cs: return immediately from Edit() when there are no
16331 columns. Fixes #80662.
16333 2007-02-07 Chris Toshok <toshok@ximian.com>
16335 * MessageBox.cs: fix #80625. don't always show the Help button in
16336 2.0. use the displayHelpButton parameter to determine if we
16337 should show it. Also, make the internal show_help field private.
16339 2007-02-07 Chris Toshok <toshok@ximian.com>
16341 * Control.cs (SetVisibleCore): check in the proposed patch for
16342 80604, and set is_visible before calling CreateControl.
16344 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
16346 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
16347 MonoInternalNote. This is added automagically by VS2005, so let's not crash
16350 2007-02-06 Everaldo Canuto <everaldo@simios.org>
16352 * MenuAPI.cs: hotkey_active internal field added, it is required because
16353 we need to know when hotkeys must be draw, before this change a keystate
16354 Navigating was used but we can have menu in navigating state without
16355 hotkeys. Fixes #80694.
16357 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16359 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16361 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16362 corresponding events and methods to be internal for 1.1 profile and
16363 public for 2.0 profile (required by SizeGrip).
16364 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16365 implicit control list). Don't set the size nor the location of the
16366 SizeGrip anymore as it's not needed.
16367 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16368 draw directly on the captured control (fixes #80656). Removed
16369 ShowGrip (it wasn't used anywhere), redraw (always true), added
16370 GetDefaultSize and GetDefaultRectangle to calculate defaults.
16371 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16372 be called from SizeGrip.
16374 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16376 * Timer.cs: Throw ArgumentException if Interval <= 0.
16378 2007-02-05 Jackson Harper <jackson@ximian.com>
16380 * TreeView.cs: We need to check scrollbar visibility when window
16381 visibility is updated, because non visible trees don't ever add
16383 * Cursor.cs: We want the override cursor to be reset to NULL when
16384 we set current cursor to the default cursor.
16386 2007-02-05 Jackson Harper <jackson@ximian.com>
16388 * TextControl.cs: Don't have crlfs when we are non multiline.
16389 - Consolidate the line position.
16391 2007-02-05 Jackson Harper <jackson@ximian.com>
16393 * X11Keyboard.cs: BACK+CTRL gets a special char code.
16395 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16397 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16398 handling LeaveNotify->NotifyUngrab in order to send
16399 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16400 after calling XUngrabPointer, so we call WindowUngrabbed directly
16401 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16402 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16403 MouseCaptureChanged correctly. Also create handles if changing
16404 Capture (matches MS behaviour).
16406 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16408 * SizeGrip.cs: Make the last change 2.0 only.
16410 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16412 * SizeGrip.cs: If resizing and the capture is lost, revert any size
16413 changes to initial size (fixes #80597).
16415 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16417 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16419 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16421 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16422 background) and only allow dragging if enabled. This way the
16423 sizegrip can be used to fill the open square that otherwise would
16424 have been shown in the bottom right corner of ScrollableControl
16425 when ScrollableControl is not suppose to support sizing.
16426 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16427 sizegrip is shown and enabled, and hook up with necessary events.
16429 2007-02-01 Chris Toshok <toshok@ximian.com>
16431 * DataGridTextBoxColumn.cs: clean up the
16432 GetFormattedString/GetColumnValueAtRow combination of functions.
16433 Also fix UpdateUI, and the initial state of
16434 IsInEditOrNavigateMode.
16436 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16437 aren't supposed to scroll the textbox here, we're supposed to
16438 scroll the datagrid.
16440 2007-02-01 Chris Toshok <toshok@ximian.com>
16442 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16443 setting the position.
16445 2007-02-01 Chris Toshok <toshok@ximian.com>
16447 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16448 here, since the most recent focus fixes keep us from generating
16449 the Leave event when our textbox gets focus.
16450 (Edit): we should be passing null for the column style's
16451 instantText parameter.
16453 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
16455 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
16456 raised. Fixes menu text/icons not showing up in PDN.
16458 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16460 * Control.cs: Remove code in constructor that makes every
16461 control with WS_CHILD set have initial location -1, -1.
16463 2007-01-31 Jackson Harper <jackson@ximian.com>
16465 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16467 * XplatUIX11.cs: Give teh keyboard to teh dnd.
16469 2007-01-31 Jackson Harper <jackson@ximian.com>
16471 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16472 - Remove some debug code.
16474 2007-01-31 Jackson Harper <jackson@ximian.com>
16476 * XplatUIX11.cs: If you set the override cursor during a grab, it
16477 should actually override the grab cursor. This comes into play
16478 when you are setting custom cursors in a DND feedback method.
16480 2007-01-31 Jackson Harper <jackson@ximian.com>
16482 * X11Dnd.cs: Add support for handling the QueryContinue and
16483 GiveFeedback events.
16484 - Cancel drag and drop actions when the escape key is clicked.
16485 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16486 can handle the ESCAPE key.
16487 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
16488 done when dnd events are continued after the button is released.
16489 - Add a new helper method so that dnd can translate key events.
16491 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
16493 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16494 make it more obvious what is happening.
16496 2007-01-30 Jackson Harper <jackson@ximian.com>
16498 * XplatUIX11.cs: Don't break when handling button release in drag
16499 and drop operations. We need that BUTTONUP message to get through
16500 so capture is released.
16501 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16502 this is handled automatically when the mouse is down.
16504 2007-01-30 Jackson Harper <jackson@ximian.com>
16506 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16507 is closed, so we need to make sure that we aren't changing the
16508 dialog result when the OK (Open or Save) button has been clicked
16509 and we are closing the window ourselves. Note we don't need to
16510 worry about the cache being written in this case, because it was
16511 already done in the previous FilOk call.
16513 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16515 * DateTimePicker.cs: Remove a warning.
16516 * ComboBox.cs: Remove a couple of warnings.
16518 2007-01-29 Chris Toshok <toshok@ximian.com>
16520 * XplatUIX11.cs: don't crash, and remove the icon if the user has
16521 set one, if SetIcon is passed a null icon.
16523 2007-01-29 Andreia Gaita <avidigal@novell.com>
16525 * TextBox.cs: Redraw when the password characters changes
16526 * TextControl.cs: Check if textbox has a password char and draw
16527 a line of password chars instead of the text in the line. LineTag gets
16528 an extra Draw() method which allows document.Draw to override the text
16529 that will be drawn. Removes 1024 char limitation on length of passworded
16532 2007-01-29 Jackson Harper <jackson@ximian.com>
16534 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
16535 single chars is not.
16537 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
16539 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16540 one pixel. Fix a StackOverflowException caused by an overload wrongly
16543 2007-01-26 Everaldo Canuto <everaldo@simios.org>
16545 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16546 also remove ProcessArrowKey and put the code inside ProcessKeys.
16548 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
16550 * PaddingConverter.cs: Added.
16552 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16554 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16555 ShowPanels is false (fixes #80600). Only draw up to 127 characters
16556 of text (fixes #80601). For panels clip the text to draw to the
16557 panel (fixes #80603).
16559 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16561 * ComboBox.cs: Fixed implementation of ResetText.
16563 2007-01-25 Jackson Harper <jackson@ximian.com>
16565 * TextControl.cs: For the last char of a line we need to use the
16566 line size, not that chars width, since it won't actually be
16567 computed since the right side of a char is based on the start of
16568 the left side of the next char, and the next char does not exist.
16570 2007-01-25 Chris Toshok <toshok@ximian.com>
16572 * Splitter.cs: fix the new unit tests, and reindent some switch
16575 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16577 * ComboBox.cs: Implemented 2.0 methods and events.
16578 * TextBoxBase.cs: Added OnTextUpdate, so that
16579 ComboBox.ComboTextBox can inform ComboBox of it.
16581 2007-01-25 Jackson Harper <jackson@ximian.com>
16583 * TextControl.cs: Respect ShowSelection when deciding whether or
16584 not to display the caret, this allows comboboxes to have carets
16585 when the combotextbox does not have focus.
16587 2007-01-25 Jackson Harper <jackson@ximian.com>
16589 * TextControl.cs: Add a Suspend/Resume for updating, basically the
16590 same as the Suspend/Resume for recalc, except this will do actual
16592 - New Undo manager, works much like the MS version.
16594 * TextBoxBase.cs: The Cut operation is undoable.
16596 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16598 * TextBoxBase.cs: Don't antialias text. Makes it look way better
16599 on Windows (no difference on Linux).
16601 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16603 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16604 we don't want to activate any windows. Fixes #79433.
16606 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
16608 - ButtonBase.cs: Fix capitalization of parameter: disposing.
16611 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
16614 - Move to using System.ComponentModel.EventHandlerList
16615 - Replace Refresh with Invalidate
16616 - Clear the mime filecache on closing
16617 - Some other memory reducing work. After beeing closed FD now uses
16618 only about 300 KB for the fdo mime stuff plus the memory of the
16620 * Mime.cs: Changed coding style and removed unnecessary commented
16621 code. Some more memory memory reducing work.
16623 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16625 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16626 a few other missing 2.0 properties.
16627 * Theme.cs: Added DrawFlatStyleComboBox.
16628 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16630 2007-01-24 Chris Toshok <toshok@ximian.com>
16632 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16633 wake_waiting flag, not just when there's data to be read. if we
16634 don't, then future wakeup's won't reach us and we'll be doomed to
16635 wait for the entire 1 second timeout forever (unless there are X
16638 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16640 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16641 until you pass Items.Count, not Items.Count - 1 like 1.1.
16643 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
16645 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
16647 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16649 * ToolStripContainer.cs: The recent Dock fix exposed that I was
16650 adding the panels in the wrong order.
16652 2007-01-24 Jackson Harper <jackson@ximian.com>
16654 * TextBoxBase.cs: When we move the caret we also need to move the
16655 selection, this fixes some random crashing after doing select
16656 text, unselect, delete a char, paste.
16658 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
16660 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
16662 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16664 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
16665 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
16666 * ToolBar.cs: Force redraw in BackgroundImageChanged.
16668 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16671 - Implement support for vertical toolbars. Fixes #80539;
16672 - Call LayoutToolBar when resize, it fix some other problems in layout.
16673 - Rename requested_height to requested_size, as we can have width on it
16674 when toolbar is vertical.
16675 - Create a private property "Vertical" that uses Dock to verify when
16676 toolbar is vertical or not.
16677 - Set ControlStyles when change Dock property.
16678 - Refactory in LayoutToolBar to have better variables names and to support
16680 - Fixes default value for ButtonSize when button count is equal zero, size
16681 must be (39, 36) test case writed.
16683 2007-01-23 Chris Toshok <toshok@ximian.com>
16685 * Control.cs: fix the checks so that they work correctly for mdi
16688 2007-01-23 Chris Toshok <toshok@ximian.com>
16690 * Control.cs: ControlCollection seems to have super-secret
16691 abstraction breaking knowledge of Mdi containers. allow MdiClient
16692 to add toplevel controls.
16694 2007-01-23 Chris Toshok <toshok@ximian.com>
16696 * Control.cs: throw an ArgumentException if a toplevel control is
16697 added to our control collection from ControlCollection.Add, as
16698 well as from ControlCollection.IList.Add. This fixes the
16699 ControlSetTopLevelTest.TestTopLevelAdd unit test.
16701 Also, in ControlCollection.IList.Add, don't through an
16702 ArgumentNullException, throw an ArgumentException, when value ==
16703 null. This matches MS.
16705 2007-01-23 Chris Toshok <toshok@ximian.com>
16707 * BindingSource.cs: initial, incomplete, implementation of
16710 2007-01-23 Jackson Harper <jackson@ximian.com>
16713 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
16714 that I can fix a broken unit test (TextBoxTest::ClearUndo)
16716 2007-01-23 Everaldo Canuto <everaldo@simios.org>
16718 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
16720 2007-01-23 Andreia Gaita <avidigal@novell.com>
16722 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
16723 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
16724 IndexOfKey() for 2.0
16726 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16728 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
16729 to prevent it from changing z-order.
16730 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
16731 leave UI updates in MdiWindowManager.
16732 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
16733 1 sized (NC handling goes weird on Linux otherwise).
16734 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
16735 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
16736 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
16737 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
16738 and SetWindowState(s) to allow for changing the size of an activated child
16739 before activating it (reduces a lot of flicker).
16741 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16743 * Form.cs: Changing FormBorderStyle has different semantics based
16744 on whether the Form is visible or not. If not visible, don't change
16745 the Size. But InvalidateNC needs to be called to force the window
16746 to pick up the changes and redraw itself. [Fixes bug #80574]
16748 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
16751 * ContainerControl.cs: ProcessCmdKey.
16752 * ErrorProvider.cs: new constructor.
16753 * Form.cs: fix AutoValidateEvent compiler warning.
16754 * Label.cs: fix OnAutoSizeChanged compiler warning.
16755 * MenuStrip.cs: fix CanOverflow compiler warning.
16756 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
16757 * TextBox.cs: Dispose.
16758 * ToolStrip.cs: CanOverflow, re-enable double buffering.
16759 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
16760 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
16761 * ToolStripItem.cs: Overflow, RightToLeft properties.
16763 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16765 * Form.cs: Move the layout of the main form to MdiWindowManager.
16766 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
16767 do a layout of the main window to update MdiClient's client area to
16768 the right area. Fixes #80533. Remove the calculation of nc size,
16769 it was just wrong and the correct one is the same as for
16770 InternalWindowManager.
16772 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
16774 * Control.cs: Setting Anchor or Dock needs to reset the other
16775 to its default. [Fixes bug #80556]
16777 2007-01-20 Chris Toshok <toshok@ximian.com>
16779 * CheckedListBox.cs: class status changes.
16781 * ScrollableControl.cs: same.
16783 * RichTextBox.cs: same.
16785 * ContainerControl.cs: same.
16787 * ListView.cs: same.
16789 * NotifyIcon.cs: same.
16791 * MenuStrip.cs: same.
16793 * RadioButton.cs: same.
16795 * CheckBox.cs: same.
16797 * PrintPreviewDialog.cs: same.
16801 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
16803 * TreeNode.cs: Apply Alan's patch for Name property.
16805 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16807 * Form.cs: Implemented SizeGripStyle.
16808 * SizeGrip.cs: Check for minimum and maximum size for the
16809 control being resized and only resize if size has actually
16812 2007-01-19 Chris Toshok <toshok@ximian.com>
16814 * DataGridColumnStyle.cs: stop setting _readonly in the
16815 PropertyDescriptor setter. fixes a unit test failure.
16817 also, rename ParentReadOnly to TableStyleReadOnly, and have it
16818 just consult our table style (if we have one). We don't need to
16819 consult the datagrid readonly attribute because that's passed in
16820 as the _ro arg to Edit. this simplifies things a little.
16822 * DataGrid.cs: use CurrentColumn instead of
16823 current_cell.ColumnNumber just to simplify some of the code.
16825 switch the order of some things in the CurrentCell setter to keep
16826 the previous cell from getting a textbox again -
16827 EnsureCellVisibility causes scrolling to happen, which calls Edit.
16828 So we need to set the new cell before calling it.
16830 call Edit in OnEnter, as does Microsoft.
16832 also, make sure the current table style isn't the one we create
16833 initially when checking to see if it's different than the one
16834 we're setting it to in BindColumns (this fixes #80421).
16836 * GridTableStylesCollection.cs: table styles can have "" for a
16837 mapping name. part of the fix for #80421.
16839 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
16840 Edit significantly.
16842 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16844 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
16845 and less GDI object leaky-er.
16847 2007-01-18 Andreia Gaita <avidigal@novell.com>
16849 * LinkLabel.cs: Add opaque control style
16851 2007-01-18 Jackson Harper <jackson@ximian.com>
16853 * TextControl.cs: Calculate width properly.
16854 - Don't store the tag's X offset, this can be figured out very
16856 - When getting the caret tag make sure to get the last empty tag.
16858 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16860 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
16863 * Control.cs: Color.Empty shouldn't count for previous transparent
16866 2007-01-18 Jackson Harper <jackson@ximian.com>
16870 * TextControl.cs: Starting to merge in some pieces of my older
16871 undo work. Basically just some slight cleanup of the undo API.
16873 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16875 * TrackBar.cs: Fix signature of RightToLeftLayout.
16876 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
16877 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
16878 * Application.cs: Implemented UseWaitCursor.
16880 2007-01-18 Jackson Harper <jackson@ximian.com>
16882 * TextControl.cs: We can't skip tags if any part of the tag is
16885 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16887 * ContainerControl.cs: Override OnLayout.
16889 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16891 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
16893 * ContextMenuStrip.cs: Make sure context menu is shown on top of
16896 2007-01-18 Chris Toshok <toshok@ximian.com>
16898 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
16899 (leftover from the container_selected days, I'd wager). fixes bug
16902 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16904 * Control.cs: Apply patch from George to fix the new testcase on
16905 bug #80451. We can't just check for Color.Transparent, we need
16906 to check if the back color's alpha channel is < 255.
16908 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
16910 * Form.cs: Move setting show_icon = true to before the constructor
16911 so that the base constructor has that information when it calculates
16912 the form's size. Was causing forms to be (6, 6) bigger than they
16913 were supposed to be. Thanks for catching this Rolf!
16915 2007-01-18 Jackson Harper <jackson@ximian.com>
16917 * TextControl.cs: When replacing a selection we need to invalidate
16918 from the initial selection start, because selection start is moved
16919 to the end of the replacement.
16921 2007-01-18 Andreia Gaita <avidigal@novell.com>
16923 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
16925 2007-01-18 Chris Toshok <toshok@ximian.com>
16927 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
16930 2007-01-17 Everaldo Canuto <everaldo@simios.org>
16932 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
16933 layout methods and properties from ToolBarButton must be available
16934 into ToolBarButtonInfo.
16936 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16938 * Control.cs: If the control has a transparent background, we
16939 need to refresh it when it moves and when it's parent's background
16940 image changes. [Fixes bug #80451]
16942 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16944 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
16946 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
16948 * XplatUIWin32.cs: Implement proper double buffering for Windows.
16949 [Fixes bug #80447, and probably speeds up things as well]
16951 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16953 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
16954 * XplatUIWin32.cs: We need to recalculate NC size after changing
16955 window style to toolwindow (otherwise the client rectangle will be
16956 3 pixels to small for some reason).
16957 * MdiWindowManager.cs: Revert NC size calculations to match how
16958 they are calculated only based on window styles (to match
16959 Win32AdjustWindowRectEx, since otherwise when setting size or
16960 location, Control will call Win32AdjustWindowRectEx to update client
16961 size, which would provoke a paint, then we'd get a NCCALCSIZE and
16962 calculate a different value of client size causing another paint
16964 * InternalWindowManager.cs: When moving or resizing a window only
16965 update size or location if they actually changed.
16966 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
16967 (seems to match Windows behaviour better). Cleaned up
16968 ManagedWindowDecorations to draw what's needed and nothing else
16969 (was drawing borders and lines where they shouldn't be)
16970 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
16971 (style = 0xFFFF) and takes into account caption height when
16972 calculating window rectangle.
16974 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16976 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
16977 can be added to toolbar multiple times, we need to maintain a list of
16978 button information for each positions.
16980 2007-01-16 Everaldo Canuto <everaldo@simios.org>
16982 * ToolBar.cs: Some small stetic changes.
16984 2007-01-16 Jackson Harper <jackson@ximian.com>
16986 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
16987 that allow us to have nested recalc = false blocks.
16988 - Add paste support for images in the RichTextBox
16989 * RichTextBox.cs: flush the text after the color is changed, so
16990 the change takes effect.
16991 - Use SuspendRecalc
16992 - Some extra debugging info
16993 * TextControl.cs: Tags no longer track their length, it is just
16994 computed from the next tags length, this makes things a little
16995 simpler and reduces places that we have to track length changes.
16996 - Refactored the linetag class a little so we could make it
16997 a base class for different kinds of tags
16998 - Created a image tag, a tag that can have a single image inserted
17000 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17001 that we can call suspend multiple times.
17002 - Add some debugging methods
17004 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17006 * MdiClient.cs: Add ActivatePreviousChild for
17007 mdi child window navigation.
17008 * Form.cs: Use MdiClient.ActivateNextChild/
17009 ActivatePreviousChild instead of Form.SelectNextControl
17010 to select the next/previous child since
17011 SelectNextControl doesn't do it in the same order
17012 as mdi children should do it.
17014 2007-01-16 Chris Toshok <toshok@ximian.com>
17016 * Control.cs: remove container_selected field.
17018 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17020 * MdiClient.cs: Update main form's ActiveChild when
17021 updating keyboard focus for the mdi child.
17023 2007-01-16 Jonathan Pobst <jpobst@novell.com>
17025 * Control.cs: PreferredSize fix.
17027 * Form.cs: Add several 2.0 events, properties, and methods.
17029 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
17031 * Form.cs: Provide meaningful message when MdiParent is assigned a
17032 Form that is not an MdiContainer.
17034 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17036 * MdiClient.cs: Update main form's ActiveChild when
17037 activating a mdi child.
17039 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17041 * MdiWindowManager.cs: Fix NRE when merging menus and main form
17042 doesn't have a menu.
17044 * Form.cs: Request NCRecalc after creating a mdi child window.
17045 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
17046 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17048 * MdiClient.cs: Add new method SendFocusToActiveChild that either
17049 sends keyboard focus to the active child, or to the MdiClient
17050 if there are no child forms.
17052 2007-01-15 Chris Toshok <toshok@ximian.com>
17054 * ListView.cs: drop the *Internal overrides, just do our work in
17055 ItemControl's WndProc instead.
17057 * UpDownBase.cs: a few large changes. Fix up the Selectable state
17058 of the various controls, and forward the events properly (in the
17059 same manner as MS) from the textbox to the UpDown. Also the
17060 ActiveControl of the UpDownBase gets set properly now. Finally,
17061 we don't call UpdateEditText from the ctor. Fixes bug #79957.
17063 * NumericUpDown.cs: set Text in the ctor.
17065 * DomainUpDown.cs: call UpdateEditText in the ctor.
17067 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17068 so even a Selectable = false textbox can be focused if you click
17071 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
17072 just add their handling in their respective WndProc's. Also add
17073 an explicit FocusInternal method that doesn't consult CanFocus
17074 before calling Select(this).
17076 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17077 do our work in WndProc instead.
17079 * TabControl.cs: same.
17081 * ComboBox.cs: same.
17083 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17085 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17088 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17091 * ThemeWin32Classic.cs: Don't draw the item text outside
17092 item bounds in Details view, as well as use trimming.
17095 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17097 * Form.cs: Implement Form.ShowIcon.
17099 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17100 null, which when combined with the DlgModalFrame window style removes
17101 the icon from the title bar.
17103 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17105 * Control.cs: Call OnMouseClick after OnClick. (2.0)
17107 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17109 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17110 menu when mdi child windows theres a menu, uses insert to get icon
17111 at first position. Partially fix #80006.
17113 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17115 * Clipboard.cs: Implement 2.0 methods.
17117 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17119 * Menu.cs: Implement Insert method of MenuItemCollection class
17122 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17124 * ListView.cs: Implement 2.0 FindItemWithText method.
17126 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17128 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17129 to calculate menu bar size. Fixes #80290.
17131 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17133 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17135 2007-01-11 Chris Toshok <toshok@ximian.com>
17137 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17140 2007-01-11 Chris Toshok <toshok@ximian.com>
17142 * LinkLabel.cs: make sure to call base.Select in our Select method
17143 if it turns out we're going to be selected (i.e. if we have a link
17144 that is going to receive focus). That way our container's
17145 ActiveControl is updated properly.
17147 2007-01-11 Chris Toshok <toshok@ximian.com>
17149 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17150 they have 1 or more links. this fixes the crash gert reported.
17152 2007-01-11 Andreia Gaita <avidigal@novell.com>
17154 * ContainerControl.cs: Remove ContainerSelected flag, not needed
17157 * Control.cs (Controls.Add): Check if control to be added to the collection
17158 is a top level control, and throw an ArgumentException if it is.
17159 Remove ContainerSelectedFlag, not needed anymore.
17161 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17162 top most control doesn't activate the form. This fixes a problem in the
17163 MessageBox, where the default button wouldn't get focus because the form
17164 was activated before being Loaded - when the Owner is set, SetTopMost is
17165 called, and it would activate it.
17167 2007-01-11 Jonathan Pobst <jpobst@novell.com>
17169 * Button.cs: When clicked and setting the parent form's DialogResult,
17170 use FindForm instead of Parent, since parent could be a container
17171 control and not the Form. Fixes bug #80495.
17173 2007-01-10 Chris Toshok <toshok@ximian.com>
17175 * Form.cs: move the call to SendControlFocus into the same
17178 2007-01-10 Chris Toshok <toshok@ximian.com>
17180 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17181 It breaks in the face of the new ActiveControl stuff, and should
17184 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17185 activecontrol's focus if it's not already set, after we set
17186 ActiveControl, but before we call OnActivated. Re-fixes #79667
17187 after the previous focus/active control fixes regressed it.
17189 * Control.cs: reindent some code.
17191 2007-01-10 Chris Toshok <toshok@ximian.com>
17193 * Splitter.cs: clearing some outstanding changes from my tree.
17194 Replace all accesses (not writes) to the internal dock_style field
17195 with the Dock property.
17197 2007-01-10 Chris Toshok <toshok@ximian.com>
17199 * Control.cs: make FireEnter, FireLeave, FireValidating, and
17200 FireValidated virtual.
17202 * Form.cs: override and don't chain up calls to FireEnter and
17205 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17207 * ListView.cs: Add more text padding space when using
17208 auto resize for columns (the previous value didn't work fine).
17210 * ThemeWin32Classic.cs: Update text position inside columns,
17211 to match the appeareance of .Net.
17213 * ColumnHeader.cs: When using auto resize, only the Width should
17214 depend on the sub items, not the Height. Also, set width after
17215 auto resizing (the value of Width should never remain as -1 or -2).
17217 2007-01-10 Chris Toshok <toshok@ximian.com>
17219 * Application.cs: fix compilation errors when debug is enabled.
17221 2007-01-10 Chris Toshok <toshok@ximian.com>
17223 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17224 add some nice ascii art pictures and explanation of the process).
17225 (GetMostDeeplyNestedActiveControl): new utility function we need
17226 because our ActiveControl can refer to a child container with its
17229 * Form.cs (OnActivated): remove the call to SelectActiveControl
17230 from here, since you can override this method and not chain up,
17231 and winforms still sets the active control.
17232 (OnCreateControl): also remove the unnecessary SelectActiveControl
17234 (WndProc): it's actually called from the WM_ACTIVATE block, just
17235 before calling OnActivated.
17237 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17238 inside the else. the ActiveControl setter will end up setting
17239 focus on @control. This keeps us from setting it again (and
17240 generating an extra LostFocus/GotFocus pair).
17241 (Select (bool, bool)): reindent.
17243 2007-01-10 Jonathan Pobst <jpobst@novell.com>
17245 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17246 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17247 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17248 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17249 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17250 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17251 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17252 ToolStripTextBox.cs: Another wave of corcompare work.
17254 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17256 * ColumnHeader.cs: Implement 2.0 AutoResize method using
17257 the Width property.
17259 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17260 methods by callling Column.AutoResize method on columns.
17262 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17264 * Control.cs: Provide proper implementations of PreferredSize
17265 and GetPreferredSize (2.0).
17267 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17269 * Form.cs: Remove one character (!) to make my previous OnClosing
17270 stuff work for modal windows like MessageBox.
17272 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17275 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17276 ListView.Columns to get the last displayed column. Fixes #80452.
17278 2007-01-09 Everaldo Canuto <everaldo@simios.org>
17280 * Label.cs, LinkLabel.cs: Source code identation fixes.
17282 2007-01-08 Everaldo Canuto <everaldo@simios.org>
17284 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17285 we dont need to invalidate only borders because when we invalidate four
17286 border lines the invalidate's generates a complete redraw of button,
17287 because it now invalidate a complete rect some other redraws operations
17288 are fixed. Fixes #80196.
17290 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17291 Remove ToolBarInvalidateEntireButton as it is not used.
17293 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17295 * Form.cs: Make sure that both OnClosing and OnFormClosing are
17296 called for 2.0 profile.
17297 * CloseReason.cs: Make class internal for 1.1.
17299 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17301 * ToolStripManager.cs: Implement FindToolStrip functionality.
17302 * ToolStrip.cs: Register and unregister with ToolStripManager.
17304 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17306 * Control.cs: This was messy. 2.0 moves much of ControlCollection
17307 to ArrangedElementCollection. Implemented this with as few #if's as
17308 possible (which is still too many).
17310 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17312 * Control.cs: Implement SizeFromClientSize() [2.0].
17314 2007-01-07 Everaldo Canuto <everaldo@simios.org>
17316 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17317 use Theme.BorderSize to calculate area instead of static value 1,
17318 by the way use new BorderStaticSize instead Border3DSize when
17319 border_static is true. Fixes #79537.
17321 * XplatUIOSX.cs: Fix call to GetClientRectangle.
17323 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17326 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17328 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17330 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17332 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17333 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17336 - border_static field added, it will used to define when a control
17337 theres 3D border but it must be static (thin).
17338 - In GetWindowRectangle use Theme.BorderSize to calculate area
17339 instead of static value 1, by the way use new BorderStaticSize instead
17340 Border3DSize when border_static is true.
17342 * XplatUIX11.cs, XplatUIOSX.cs:
17343 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17345 * Theme.cs: BorderStaticSize field added.
17347 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17349 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17351 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17353 * Control.cs: Under InternalBorderStyle call RecreateHangle to
17354 mimic same behavior than win32 that set border only in CreateParams,
17355 it fix problems under CreateParams overrides. Fix #79442 and partial
17358 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17359 of thi control you must call recreate handle.
17361 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17362 need to do anything as RecreateHangle will take care about borders.
17364 2007-01-05 Mike Kestner <mkestner@novell.com>
17366 * ListView.cs: hack to eliminate Lost/Got focus notifications on
17367 cycles between the ItemControl and parent. Fixes #80388.
17369 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
17371 * Control.cs: Lazy init layout engine. Do not directly use
17372 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17374 2007-01-05 Chris Toshok <toshok@ximian.com>
17376 * DataGrid.cs: don't forceably rebind columns in SetDataSource
17377 unless our list manager has changed (i.e. unless we have reason to
17378 believe our columns have changed). Fixes #80422.
17380 also, disable the call do BindColumns in
17381 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
17382 1.1 the event isn't raised in response to a column addition on a
17385 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17387 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17388 that inheritors can not call it if they choose. Fixes bug #80456.
17390 2007-01-05 Andreia Gaita <avidigal@novell.com>
17392 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
17393 doesn't blow up with a null exception on marshalling.
17395 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17397 * Control.cs: Implement several 2.0 protected properties and methods.
17398 Ensure that all necessary events are being called when properties
17401 2007-01-05 Mike Kestner <mkestner@novell.com>
17403 * ListView.cs: implement PgUp/PgDn for Details view. Also
17404 fixes First/LastVisibleIndex to use the item_control.ClientRect
17405 instead of the parent control. Fixes #80378.
17407 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
17409 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17410 determine whether to use yard-pound or not (bug #78399).
17412 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17414 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17415 problems. So it is time to bring back the old popupbutton colors.
17417 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17420 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17421 property by using the internal information of the
17422 columns order in ListView.
17424 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
17426 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17427 Add 2.0 Tag properties.
17429 * LinkArea.cs: Add 2.0 ToString method.
17431 2007-01-03 Chris Toshok <toshok@ximian.com>
17433 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17434 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
17435 when we're editing, which fixes #80047.
17437 2007-01-03 Chris Toshok <toshok@ximian.com>
17439 * Form.cs: apply patch contributed by Dominik Seichter. fixes
17442 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
17444 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17445 property and implementation.
17447 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17448 for MdiWindowListItem property.
17450 * ToolStripDropDown.cs: Don't consider hidden menu items while
17451 laying out the menu.
17453 2007-01-03 Andreia Gaita <avidigal@novell.com>
17455 * SendKeys.cs: window handle is not needed in win32, so just
17456 get the active window for X after parsing keys and don't use
17457 it when building the message; it is passed by parameter to the
17458 Xplat method and used there to build the message instead. Also,
17459 wait for events to be processed on SendWait, as opposed to Send,
17460 which doesn't wait :) Playing with threads and Send() completely
17461 hangs on ms.net, only SendWait() works.
17464 X11Display.cs: Check for valid window handle.
17466 2007-01-03 Jackson Harper <jackson@ximian.com>
17468 * TextControl.cs: Need to prevent wrap calculations when replacing
17469 text (this was there before i removed it accidently).
17470 - Don't update the cursor during the positioning, just set it to
17471 selection_start at the end of the operaion.
17473 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17476 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17478 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17480 * MonthCalendar.cs: Added Click and DoubleClick events again,
17481 but this time they only hide Control's Click and DoubleClick.
17483 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
17485 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17486 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17488 2007-01-02 Jackson Harper <jackson@ximian.com>
17490 * TextBoxBase.cs: We move the caret with the split now, so we
17491 don't need to explicitly move the caret after splitting. This
17492 fixes the caret bumping down an extra line on Enter.
17494 2007-01-02 Miguel de Icaza <miguel@novell.com>
17496 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17499 * ScrollableControl.cs: Add Scroll event.
17501 2007-01-02 Mike Kestner <mkestner@novell.com>
17503 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
17504 to fix all hdr height padding codepaths. Fixes #80207.
17506 2007-01-02 Chris Toshok <toshok@ximian.com>
17508 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17509 setting it to the Control defaults anyway, and it being after the
17510 Dock set was screwing up layout.
17511 (set_Dock): don't short circuit out of setting base.Dock. Also,
17512 no need to call UpdateStatusBar here, as it'll be re-layed out if
17515 2007-01-02 Mike Kestner <mkestner@novell.com>
17517 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17518 to header height for width == -1. Fixes the rest of #80207.
17520 2007-01-02 Mike Kestner <mkestner@novell.com>
17522 * ListView.cs: rework the mouse event forwarding everaldo added
17523 to translate the coordinates to the parent control not
17524 raise the parent events until after we've done our work. Hover
17525 needs more work, in the case where HoverSelection is on, because
17526 the item control receives more than one MouseHover per Enter
17527 event, so we need to ensure only the "first" hover gets forwarded.
17528 Opening a minor bug for that.
17530 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
17532 * CheckedListBox.cs: Fixed SelectionMode to match MS.
17533 * ListControl.cs: Implemented AllowSelection property. Removed extra
17535 * ListBox.cs: Implemented AllowSelection property.
17537 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17539 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17540 SelectedItem, it prevent for errors when you must disable item
17541 before perform click. Fixes #80409.
17543 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17545 * MenuAPI.cs: Prevent second level and beyond submenus to close
17546 until first level when move out side of popup.
17548 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17551 - Down submenu positin in three pixels.
17552 - Closes sub menu when mouse leaves from menu. Fixes #80402.
17554 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17556 * ThemeWin32Classic.cs:
17557 - Fix popup menu size adding one pixel on the top.
17558 - Down menu item border from two to one to mimic Win32.
17559 - Some source identation fixes.
17561 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17563 * ThemeWin32Classic.cs: Use float numbers to calculate size and
17564 position of menu arrows, it fix wrong arrow size.
17566 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17568 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17569 instead of line, it simplify draw operation and fix it using 3D
17570 borders to mimic Win32.
17572 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
17574 * StatusStrip.cs: Add implementation of the sizing grip.
17576 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17577 StatusStrip rendering.
17579 2006-12-31 Chris Toshok <toshok@ximian.com>
17581 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
17582 override the layout style (anchor/dock) of the control. assign to
17583 Dock instead. Fixes bug #80416.
17585 * ToolStrip.cs: same.
17587 2006-12-31 Andreia Gaita <avidigal@novell.com>
17589 * ContainerControl.cs: Use ContainerSelected flag to check if
17590 a Container is directly selected, or if Select is called on a
17591 non-container. If a container is directly selected, focus events
17592 should not be raised.
17593 Apply #80411 patch to throw exception on set_ActiveControl if
17594 control is the same as the current one.
17596 * Control.cs: Use ContainerSelected flag (see above).
17597 Add invalidation check to raise event but not invalidate if
17599 Apply #80411 patch.
17602 2006-12-31 Everaldo Canuto <everaldo@simios.org>
17604 * MenuAPI.cs: After click, dont close popup menu when menu is
17605 ContextMenu. Fixes #80399.
17607 2006-12-30 Chris Toshok <toshok@ximian.com>
17609 * ContainerControl.cs: make sure we throw the exception if the
17610 container control doesn't contain the control we're setting
17613 2006-12-30 Chris Toshok <toshok@ximian.com>
17615 * Control.cs (SetTopLevel): fix the exception raised by
17616 SetTopLevel for child controls.
17617 (set_Anchor): call UpdateDistances when setting the anchor type.
17618 This fixes bug #80336.
17620 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17622 * Theme.cs: For now, revert back to 8pt font.
17624 2006-12-29 Everaldo Canuto <everaldo@simios.org>
17626 * MenuAPI.cs: Set popup as active when open a ContextMenu.
17629 2006-12-29 Chris Toshok <toshok@ximian.com>
17631 * Control.cs: reorder the code in OnResize to give the same event
17634 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
17636 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17637 TileHorizontally and TileVertically.
17639 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
17641 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17642 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17643 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17644 Corrected copyright and email adress.
17646 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17648 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
17649 of Exception in FullPath property if no TreeView is associated with
17652 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17654 * Theme.cs: Marked default_font as private, and initialize it in ctor
17655 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
17657 * ThemeGtk.cs: Removed default_font intialization.
17658 * ThemeWin32Classic.cs: Removed default_font initialization.
17660 2006-12-28 Chris Toshok <toshok@ximian.com>
17662 * Control.cs: fix a couple of place where we were creating handles
17663 more aggressively than we should be. Fixes ControlRefresh unit
17666 2006-12-28 Chris Toshok <toshok@ximian.com>
17668 * Control.cs: contrary to what the comment said, Control.Dock does
17669 not supercede Control.Anchor - the last one you assign to decides
17670 the layout behavior. so we need to keep track of which was the
17671 last set. Also, fix some of the affected property arguments in
17672 PerformLayout calls, and remove an redundant parent.PerformLayout
17675 Add a VisibleInternal property, which returns is_visible. We
17676 can/should get rid of all the usage of this field elsewhere.
17678 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17680 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
17681 control style, not DoubleBuffer. Added UseDoubleBuffering property
17682 that indicates whether doublebuffering is enabled and supported.
17683 (comment from and code based on Gert Driesen's patch in #80324).
17686 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17688 * Control.cs: Fixed a NRE.
17690 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17692 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
17695 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17697 * Control.cs: Rewrote double buffering, now a seperate
17698 class handles all the buffering, no Graphics is disposed of
17699 until the painting is finished (earlier implementation
17700 would crash if the control was resized in the OnPaint,
17701 since it would cause the double buffer to be recreated
17702 and the old one disposed), a separate Graphics is
17703 created for every paint (MS behaviour and anyways the state
17704 of the Graphics would have to be saved and restored otherwise)
17706 * XplatUIDriver.cs:
17708 * XplatUI.cs: Added and implemented GetOffscreenGraphics
17709 so that we can get the graphics for the back buffer without
17710 having to create a new one and remove the offscreen_dc parameter
17711 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
17713 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17715 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
17716 Also make virtual all the key-related methods.
17718 * ListViewItem.cs: Make virtual the key related methods for
17719 ListViewSubItemCollection.
17721 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17725 * ThemeWin32Classic.cs:
17726 * Theme.cs: Initial support for Tile view in ListView,
17727 as well as the implementation of the required bits for it (Item
17730 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17732 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
17733 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
17734 Provide useful exception messages.
17736 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17738 * TrackBar.cs: Remove a warning.
17739 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
17740 when used by DateTimePicker, fixes #80287. This also requires that
17741 MonthCalendar implements it's own drawing for the yearly updown control,
17742 otherwise the Capture tracking would be too complicated. Removed the Click
17743 and DoubleClick events (according to comments they were hiding the base class
17744 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
17745 raise these events, not that they cannot be raised. It is possible to raise
17746 them by calling OnClick and OnDoubleClick). Added two internal fields in
17747 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
17748 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
17749 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
17750 event, no longer needed.
17752 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17754 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
17755 true if new value differs from current value.
17757 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17759 * Control.cs: ControlCollection.Count must be public. Fixed build of
17762 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17764 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
17766 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
17768 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
17770 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17772 * Control.cs: Invalidates control including when Width and Height is
17773 equal zero or is not visible, only Paint event must be care about
17774 this. Fixes #79913.
17776 2006-12-26 Chris Toshok <toshok@ximian.com>
17778 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
17779 more corcompare work.
17781 * DataGridView.cs: fix compiler warning.
17783 * ColumnHeader.cs: some corcompare work, and also take the
17784 opportunity to make the internal fields private.
17786 * ListView.cs: fix the fallout from the above field change.
17788 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17790 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
17791 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
17792 ToolStripTextBox.cs: Fixes to events and corcompare.
17794 2006-12-26 Everaldo Canuto <everaldo@simios.org>
17796 * ListView.cs: Call owner.OnMousexx event to propagate events from
17797 item to ListView. Fixes #80367.
17799 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17801 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
17802 if value is less than one. ItemHeight should not be set to a value
17803 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
17804 Removed extra tabs.
17806 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
17808 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
17809 * ToolStripStatusLabel.cs: Add Spring for Moma.
17811 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17813 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
17814 Fixed code formatting. Removed debug code.
17815 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
17817 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
17819 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
17820 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
17821 ArgumentOutOfRangeException if ColumnCount is negative. In
17822 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
17823 less than 4 or higher than 32768.
17824 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
17825 Fixed FormatProvider to return CurrentCulture unless explicitly set.
17826 Fixed IsFormatProviderDefault to return true if FormatProvider has
17827 not been explicitly set.
17829 2006-12-25 Chris Toshok <toshok@ximian.com>
17831 * Application.cs: add a couple of 2.0 events.
17833 2006-12-25 Chris Toshok <toshok@ximian.com>
17835 * Control.cs: fix compiler warning.
17837 * AxHost.cs: corcompare fixes.
17839 * ApplicationContext.cs: corcompare fixes.
17841 2006-12-25 Chris Toshok <toshok@ximian.com>
17843 * Control.cs: only update dist_right/dist_bottom if the
17844 width/height is > 0. this fixes anchored controls being resized
17845 smaller until they disappear and then resized larger again.
17847 2006-12-25 Chris Toshok <toshok@ximian.com>
17849 * Control.cs: a couple of changes. Remove dist_left and dist_top,
17850 since they're nothing more than X/Left and Y/Top, respectively.
17852 Also, move back to a per-control Bitmap/Graphics for
17853 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
17854 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
17857 2006-12-25 Miguel de Icaza <miguel@novell.com>
17859 * MessageBox.cs: Implemented overload that takes a new "bool
17860 displayHelpButton" by adding a new internal field "show_help".
17861 When clicked this will raise the HelpRequested on the owner or the
17864 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
17865 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
17867 * ListView.cs: Add support ColumnWidthChanged and
17868 ColumnWidthChanging.
17870 Add support for ColumnReordered event.
17871 (ReorderColumn): Add NET_2_0 specific support for cancelling the
17874 Very nice codebase!
17876 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
17878 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
17880 2006-12-24 Chris Toshok <toshok@ximian.com>
17882 * GridTablesFactory.cs: 2.0 corcompare work.
17884 * ToolStripContainer.cs: add "override" to
17885 ContextMenuStripChanged, and remove the local event object.
17887 * ToolStripDropDown.cs: same with a couple properties.
17889 * ToolStripPanel.cs: same with AutoSizeChanged event.
17891 * TextBoxBase.cs: add "override" to AutoSizeChanged.
17893 * Form.cs: add the remaining 2.0 events, and do some corcompare
17896 * DateTimePicker.cs: add "new" to padding.
17898 * ButtonBase.cs: use Control's use_compatible_text_rendering.
17900 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
17902 * DataGridView.cs: PaddingChanged is overridden.
17904 2006-12-24 Chris Toshok <toshok@ximian.com>
17906 * Control.cs: corecompare work here too.
17908 * DataGridViewElement.cs, DataGridView.cs,
17909 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
17910 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
17911 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
17912 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
17915 2006-12-24 Miguel de Icaza <miguel@novell.com>
17917 * Control.cs: Switched the error message on the console for a
17918 todo. A review of the code will have to cope with this anyways
17919 (since its a large feature, it is in our radar) and it was
17920 producing too much output when running PDN.
17922 * ToolStripComboBox.cs: Set the text when the SelectedIndex
17923 changes. Applications depend on this (PDN 2.72)
17925 2006-12-23 Chris Toshok <toshok@ximian.com>
17927 * TableLayoutSettings.cs: finish up the corcompare work for this
17930 2006-12-23 Chris Toshok <toshok@ximian.com>
17932 * Control.cs: make SetImplicitBounds internal, do some futzing
17933 with LayoutEngine so that it's available in 1.1, and remove the
17934 entire duplicated code mess from PerformLayout. Use
17935 System.Windows.Forms.Layout.DefaultLayout instead.
17937 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
17939 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17941 * Form.cs: Add MainMenuStrip property.
17943 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
17945 * Control.cs: Add ContextMenuStrip property and implementation.
17946 Fix ContextMenu implementation to show menu centered on control when
17947 activated using the keyboard instead of showing at screen (0,0).
17949 * ToolStripDropDown.cs: Fix needed overload of Show ().
17951 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17953 * Menu.cs: Name property added for 2.0 profile.
17955 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17957 * Menu.cs: Update information about FindMenuItem, method to be
17960 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17962 * MenuAPI.cs: When deselect items deselect also selected subitems.
17964 2006-12-23 Everaldo Canuto <everaldo@simios.org>
17966 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
17967 FindSubItemByCoord to found itens that is not active, also an
17968 cheking added to FindSubItemByCoord to search for items only
17969 in visible popup windows. Fixes #80274.
17971 2006-12-22 Everaldo Canuto <everaldo@simios.org>
17973 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
17974 internal property, it be care about change ExStyle.
17976 2006-12-22 Andreia Gaita <avidigal@novell.com>
17978 * ContainerControl.cs: set activeControl for parent forms up the
17979 tree when the new activecontrol is a container.
17980 When validating the active control, if it is a container, also
17981 raise up the validation for it's active control. Fixes #80280
17983 * Control.cs: Add internal property flag and check to prevent
17984 Focus events from getting raised when Select() is called for
17985 a ContainerControl. There are still too many focus events being
17986 raised at the moment though.
17987 Cleaned up the code a bit.
17989 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17991 * Control.cs: Added all missing 2.0 events.and
17992 fixed a couple of corcompare issues.
17993 * TrackBar.cs: Implemented missing 2.0 bits.
17994 * MonthCalendar.cs,
17995 * DateTimePicker.cs,
17996 * MdiClient.cs: Fixed some corcompare issues.
17998 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18000 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18001 SplitterPanel.cs: corecompare work.
18003 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18005 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18006 Clean up warnings for BackgroundImageChanged and PaddingChanged
18007 events now that they are implemented in Control.cs.
18009 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18011 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18013 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18014 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18015 of TableLayoutPanel and supporting cast.
18017 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
18020 - GrabWindow now confines the mouse pointer to the confine window.
18021 - Added Win32ClipCursor and Win32GetClipCursor.
18024 - Added CaptureWithConfine to be able to capture and confine
18027 * InternalWindowManager.cs:
18028 - Call CaptureWithConfine instead of Capture if we're an
18029 MdiChild (fixes #79982).
18031 2006-12-21 Chris Toshok <toshok@ximian.com>
18033 * DataGrid.cs: guard against the initial state of selection, where
18034 selection_start == -1. make sure we only select from index >= 0.
18037 2006-12-21 Chris Toshok <toshok@ximian.com>
18039 * Control.cs: we don't need to be so draconian with
18040 UpdateDistances, and we thusly don't need to call it before
18041 calling PerformLayout in ResumeLayout. Fixes bug #80289.
18043 2006-12-21 Daniel Nauck <dna@mono-project.de>
18046 TextBox.cs: Implemented AutoComplete properties.
18048 2006-12-20 Chris Toshok <toshok@ximian.com>
18050 * DataGridView*.cs: some corecompare work.
18052 2006-12-20 Jackson Harper <jackson@ximian.com>
18054 * XplatUIX11.cs: We need to hide the caret when deleting it,
18055 otherwise you get carets left lying around everywhere.
18056 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
18057 prevents getting some weird half drawn caret tracers when
18059 * TextControl.cs: Attempt to reduce the number of times we need to
18060 recreate the caret.
18062 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
18064 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18066 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18068 * DateTimePicker.cs:
18069 - Implemented missing 2.0 bits.
18070 - Changed some default values to match MS.
18072 2006-12-20 Jackson Harper <jackson@ximian.com>
18074 * TextBoxBase.cs: When changing the font across the document we
18075 can't recalculate after changing each line, since that will cahnge
18077 - PreferredHeight is a little different than i thought.
18078 - When backspacing, move the caret before we do the actual char
18079 delete, because when that delete crosses a wrap boundary the
18080 positional information will change.
18082 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18084 * Control.cs: Added some missing 2.0 bits:
18085 BackgroundImageLayout, BackgroundImageLayoutChanged,
18086 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
18087 add IBindableComponent and IDropTarget implementation.
18089 * MonthCalendar.cs:
18090 - Added all missing 2.0 features:
18091 BackgroundImageLayout, RightToLeftLayout,
18092 OnHandleDestroyed, RightToLeftLayoutChanged,
18093 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18095 - Rewrote all the BoldDate code, it was completely broken.
18096 - Fixed all the tests (the tests can now be re-enabled, the
18097 problems were not with the tests, but with the control, it was
18100 * DateTimePicker.cs: Changed the location where the
18101 MonthCalendar is shown.
18103 2006-12-19 Chris Toshok <toshok@ximian.com>
18105 * DataGridView.cs: add IDropTarget implementation.
18107 * ToolStripPanel.cs: add IDropTarget implementation.
18109 2006-12-19 Jackson Harper <jackson@ximian.com>
18111 * TextControl.cs: soft now means something different than what it
18112 used to mean, we want to move the caret regardless of whether or
18113 not this break was soft (would we really have wanted the caret
18114 to not move with the break in the old context?)
18115 * TreeView.cs: Make sure we factor in the vert scrollbar when
18116 calculating the horizontal scrollbar's maximum.
18118 2006-12-19 Andreia Gaita <avidigal@novell.org>
18120 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18121 check for keywords in alternate casing, close bug #80049.
18123 2006-12-19 Chris Toshok <toshok@ximian.com>
18125 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18126 methods (which all do nothing).
18128 * IDropTarget.cs: add the 4 missing methods.
18130 2006-12-19 Chris Toshok <toshok@ximian.com>
18132 * TableLayoutRowStyleCollection.cs: corcompare work.
18134 * TableLayoutSettings.cs: same.
18136 * TableLayoutStyle.cs: same.
18138 * TableLayoutColumnStyleCollection.cs: same.
18140 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
18142 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18143 TableLayoutPanel I've had in my local tree for way too long.
18145 2006-12-19 Miguel de Icaza <miguel@novell.com>
18147 * TableLayoutSettings.cs: Finish the public API (still needs all
18148 the logic to update on changes).
18150 * TableLayoutPanelCellPosition.cs: new file.
18152 * TableLayoutRowStyleCollection.cs,
18153 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18154 TableLayoutSettings.cs: Track the final 2.0 table api.
18156 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18158 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18159 and Image List 2.0 members for ColummnHeader.
18160 * ListView.cs: Add key-related 2.0 methods for
18161 ColumnHeaderCollection.
18163 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18165 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18166 ArgumentNullException if items argument is null. Ignore null item in
18167 arrays. Removed extra tabs.
18169 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18171 * MonthCalendar.cs: Fixed InvalidCastException.
18173 2006-12-19 Jackson Harper <jackson@ximian.com>
18175 * TextControl.cs: Don't increment the position here.
18176 - When calculating char positions only add in the line break size
18177 for hard line breaks.
18179 2006-12-19 Andreia Gaita <avidigal@novell.org>
18181 * SendKeys.cs: Changed some things to match ms.net behaviour
18182 when parsing shifted capital letters.
18184 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
18185 Add window handle as parameter to SendInput. X11 needs the
18186 window handle, and the handle being passed to it in the keys
18187 queue is the active control handle (which windows needs), not
18190 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
18191 to support SendKeys on X.
18193 * X11Keyboard: Implement helper method to lookup a linux keycode
18194 given the virtual keycode. Added table of keycode-2-virtualkey
18195 values to support this.
18197 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18199 * ListView.cs: Add support for SelectedIndexCollection
18200 and SelectedItemCollection 2.0 methods. Implement support
18202 * ListViewItem.cs: Add support for ListViewSubItemCollection
18203 2.0 methods. Also, fix an incorrect behavior of AddRange method
18204 (it shouldn't call Clear).
18205 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18207 2006-12-19 Jackson Harper <jackson@ximian.com>
18210 * TextBoxBase.cs: New args for FormatText
18211 * TextControl.cs: Rewrote the main drawing method, this version
18212 feels a little easier to understand and debug to me. Hopefully it
18213 does to others also
18214 - Fix FormatText to OR in the new formating values. Added
18215 FormatSpecified param, basically this works in the same way as
18216 BoundsSpecified in Control.
18217 - Set the caret properties when the caret is positioned.
18218 - When wrapping text make sure that we calculate the width of the
18220 - when calculating alignments we might have wrapped down to the
18221 next line, so don't search for an individual tag, search for the
18223 - We need to invalidate the selection area when we replace the
18226 2006-12-19 Daniel Nauck <dna@mono-project.de>
18228 * Application.cs: add Restart () 2.0 support
18230 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18232 * MenuItem.cs: Invalidate menu item rectangle after change Enable
18233 property. Fixes #80268.
18235 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18237 * MenuAPI.cs: Dont trigger select event when closes top menu
18238 item. Fixes #80270.
18240 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18242 * MenuAPI.cs: When you click on menuitem only trigger onselect
18243 event for top menu itens. Fixes #80271.
18245 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18247 * MdiWindowManager.cs: Make IconicBounds depend on
18248 the bottom of MdiClient, not the top (fixes #80267)
18250 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18252 * MdiClient.cs: Added missing 2.0 attribute
18254 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18256 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18257 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18259 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18261 * MenuAPI.cs: Fix click when menuitem is not popup,
18262 this regression was caused by last commit (#80272).
18264 2006-12-17 Everaldo Canuto <everaldo@simios.org>
18266 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18267 fire click event or close menu. Fixes #80272.
18269 2006-12-17 Daniel Nauck <dna@mono-project.de>
18271 * ListViewHitTestInfo.cs: add
18273 2006-12-17 Daniel Nauck <dna@mono-project.de>
18275 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18276 * FlatButtonAppearance.cs: add
18277 * DockingAttribute.cs: add
18279 2006-12-17 Chris Toshok <toshok@ximian.com>
18281 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18282 and rebind our columns when it does - this way, if you make
18283 changes to the DataTable (or set the Table attribute on a DataView
18284 after setting it as the DataGrid's DataSource, the changes are
18285 made visible.) Fixes bug #80107.
18287 2006-12-17 Daniel Nauck <dna@mono-project.de>
18289 * ListViewGroup.cs: add internal Location property for layouting.
18290 * Theme.cs: add abstract ListViewGroupHeight function.
18291 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18293 2006-12-16 Andreia Gaita <avidigal@novell.com>
18295 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18296 Added reset of selected index to 0 when adding first tab page.
18299 * NumericUpDown.cs: Fix NET_2_0 check
18301 2006-12-16 Daniel Nauck <dna@mono-project.de>
18303 * ListViewGroup.cs: fixed DefaultValueAttribute value
18305 2006-12-16 Daniel Nauck <dna@mono-project.de>
18307 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18309 2006-12-15 Miguel de Icaza <miguel@novell.com>
18311 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18312 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18313 ScrollableControl.cs: Add a handful of methods that are
18316 2006-12-15 Chris Toshok <toshok@ximian.com>
18318 * XplatUIWin32.cs: initial implementation of the Reversible
18319 drawing functions. there are some problems. DrawReversibleFrame
18320 doesn't seem to work at all for Dashed FrameStyle, and in the
18321 Thick case there are drawing errors at the corners (we probably
18322 need to bind Rectangle instead of doing moveto/lineto's.)
18324 2006-12-16 Andreia Gaita <avidigal@novell.com>
18326 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
18327 to send blocks of key messages. Send accumulates keys to send with Flush,
18328 while SendWait sends all keys immediately.
18330 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18331 XplatUIX11.cs, XplatUIX11-new.cs:
18332 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18333 to Win32 SendInput.
18334 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18336 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
18337 testing for ms.net on this class is very tricky, as the tests run too fast
18338 to allow the hook to release, essentially freezing the keyboard and the
18339 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
18342 2006-12-16 Daniel Nauck <dna@mono-project.de>
18344 * Padding.cs: fixed serialization compability to MS ("_var" field names),
18345 added missing attributes.
18347 2006-12-15 Daniel Nauck <dna@mono-project.de>
18349 * ListViewGroup.cs: Added missing attributes.
18350 * ListViewGroupCollection.cs: Added missing attributes.
18352 2006-12-15 Daniel Nauck <dna@mono-project.de>
18354 * ListViewItem.cs: fixed ListViewSubItem text property.
18356 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18358 * Control.cs: Added missing 2.0 attributes
18360 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18362 * MdiClient.cs: Added missing 2.0 attribute.
18363 * MonthCalendar.cs: Added some missing 2.0 attributes
18366 2006-12-15 Daniel Nauck <dna@mono-project.de>
18368 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18370 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
18372 * MainMenu.cs: Add the new 2.0 constructor to help out people
18373 using the MainMenu in VS2005.
18375 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18377 * MdiChildContext.cs: Removed it, no longer used.
18378 * MdiClient.cs: Added missing 2.0 attributes.
18380 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18382 * InternalWindowManager.cs: Fix a NullRef with previous
18383 changes for toolwindows.
18385 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18388 - Added AfterTopMostControl to allow for certain controls
18389 to always stay on top when normal controls are brought to
18393 - (DrawInversibleRectangle): Get window rectangle from Win32
18394 in stead of from control, since Win32 doesn't calculate
18395 screen coords correctly from control's Location if it
18396 have docked siblings.
18398 * MdiWindowManager.cs:
18399 - Correct the control menu popup location when clicked on
18400 the maximized form icon. (fixes #80223.1)
18401 - Don't show moving rectangle if mouse hasn't moved from
18402 the original clicked point.
18403 - Removed FormGotFocus handler (not used).
18404 - Calculate the control buttons location from the main
18405 window's size and not client size (fixes #79770).
18406 - Form is now closed when the form icon is double-clicked
18408 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18410 * InternalWindowManager.cs:
18411 - Moved some MDI-only methods to MdiWindowManager.
18412 - Removed unused properties and methods.
18413 - Unified method naming for methods handling wm messages.
18414 - Moved all message handling to seperate methods for
18417 * ThemeWin32Classic.cs:
18418 - DrawManagedWindowDecorations now draws the title bar
18419 with a gradient brush.
18420 - Add a CPDrawButtonInternal that allows us to specify
18421 light, normal and dark colors for the buttons (control
18422 buttons for MDI children were drawn with the same light
18423 color as the background, therefore loosing the 3D effect).
18426 - Add a CapturedControl property that is used to
18427 determine the control to resize (defaults to parent).
18428 Needed for MdiClient, since its SizeGrip's parent is
18429 MdiClient, but the control to resize is the main form.
18432 - Set SizeGrip's CapturedControl to the main form in order
18433 to resize the main form and not the MdiClient.
18434 - Override AfterTopMostControl to leave the scrollbars
18437 2006-12-15 Daniel Nauck <dna@mono-project.de>
18439 * ListView.cs: fixed ListViewItemCollection AddRange and
18440 implemented ListViewItemCollection AddRange 2.0 support.
18442 2006-12-15 Daniel Nauck <dna@mono-project.de>
18444 * ListViewGroup.cs: Add.
18445 * ListViewGroupCollection.cs: Add
18446 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18447 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18448 stub for ImageKey 2.0 support.
18450 2006-12-14 Mike Kestner <mkestner@novell.com>
18452 * ListView.cs: add text padding to the autocalculation for columns
18453 of width -2. Fixes #80207.
18455 2006-12-14 Mike Kestner <mkestner@novell.com>
18457 * ListView.cs: add some index guarding for partial row navigation
18458 logic. Fixes #80250.
18460 2006-12-14 Mike Kestner <mkestner@novell.com>
18462 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18463 are added or inserted to the collection. Fixes #81099.
18465 2006-12-13 Everaldo Canuto <everaldo@simios.org>
18467 * MenuAPI.cs: Closes menu when right click out side of popup
18468 it fix problem in ContextMenu and MainMenu. Fixes #80252.
18470 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18472 * ListViewItem.cs: Fix dumb error.
18474 * ListView.cs: Add Find and ContainsKey methods in
18475 ListViewItemCollection, and also return true for IsReadOnly
18476 and IsFixedSize (changes for 2.0).
18478 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
18480 * Control.cs: Allow Region to be set to null.
18482 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18484 * MdiWindowManager.cs: Remove unused (commented out) code.
18485 * Form.cs: When the MdiChild is maximized, the form needs
18486 WM_NCMOUSELEAVE, so request it.
18487 * InternalWindowManager.cs:
18488 - Added tooltips to control buttons.
18489 - Removed duplicated control button handling code.
18490 - Removed unused (commented out) code.
18492 2006-12-12 Everaldo Canuto <everaldo@simios.org>
18494 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
18495 was used because we must set cursor without trigger ChangeCursor event
18496 and without change Cursor control property. Fixes #79963.
18498 2006-12-12 Andreia Gaita <avidigal@novell.com>
18500 * Control.cs: Check if Region setter value is null, and ignore
18502 2006-12-12 Jackson Harper <jackson@ximian.com>
18504 * TextControl.cs: We were almost always drawing one more line then
18505 needed, since the GetLineByPixel will return the last line found
18506 at that pixel. In most cases though, we were invalidating up to
18507 the junction between two lines.
18508 - Improve debug code.
18510 2006-12-12 Chris Toshok <toshok@ximian.com>
18512 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18513 and FillReversibleRectangle.
18515 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18516 and FillReversibleRectangle.
18518 * XplatUIWin32.cs: add stubs which do nothing for
18519 DrawReversibleFrame, DrawReversibleLine, and
18520 FillReversibleRectangle.
18522 * XplatUIOSX.cs: add stubs which raise NIE for
18523 DrawReversibleFrame, DrawReversibleLine, and
18524 FillReversibleRectangle.
18526 * XplatUIX11.cs: add working implementation for
18527 DrawReversibleFrame, DrawReversibleLine, and
18528 FillReversibleRectangle.
18530 * ControlPaint.cs: implement DrawReversibleFrame,
18531 DrawReversibleLine, and FillReversibleRectangle, by calling into
18532 the appropriate XplatUI method.
18534 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18536 * Form.cs: Make MdiClient have the focus even if it's
18537 not selectable, since it should receive WM_KEY* and WM_MOUSE
18538 messages. Fixes #79907.
18540 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18542 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18543 queried after the window is created.
18545 * XplatUIX11.cs: Added SendParentNotify to implement
18546 WM_PARENTNOTIFY logic. Fixes #79965.
18548 * Control.cs: Added MakeParam.
18550 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18552 * MdiClient.cs: Resume Layout before setting window
18553 states (fixes #80201).
18555 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18557 * MenuAPI.cs: Deselect a menu item after performing
18558 the click (fixes #80197).
18560 2006-12-11 Jackson Harper <jackson@ximian.com>
18562 * TextBoxBase.cs: We need to cap this value, since Maximum -
18563 ViewPortHeight can be less than zero.
18564 - Only do selection with the left mouse button.
18565 * TextBox.cs: Don't tell the world that we have a context menu.
18566 * Control.cs: New method so that we can control whether or not the
18567 context menu is visible outside MWF.
18569 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18571 * ToolBarButton.cs: Fix text positon.
18573 2006-12-11 Miguel de Icaza <miguel@novell.com>
18575 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18577 * Control.cs (DoubleBuffered): Add implementation.
18579 * Application.cs (OpenForms): Add.
18581 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18583 * Form.cs: Use opacity instead of Opactiy to determine if we need
18584 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
18586 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18588 * Control.cs: Fix NRE if Control.Site was set to null.
18590 2006-12-11 Chris Toshok <toshok@ximian.com>
18592 * Control.cs: ControlCollection.Remove should return if the arg is
18593 null, and ControlCollection.SetChildIndex should raise a ANE.
18595 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
18597 * Control.cs: Verify value set for Dock property. Code formatting
18600 2006-12-11 Jackson Harper <jackson@ximian.com>
18602 * TextControl.cs: Draw the caret and the selection when a flag is
18604 * TextBoxBase.cs: We want to draw the caret and the selection for
18605 TextBox but not for TextBoxBase.
18606 - If the window is resized and scrolling is no longer needed (the
18607 whole doc is visible) set the scroll position to zero.
18608 - The default SelectWord (the one TextBox uses) should move the
18609 caret to the end of the word.
18610 - SelectAll moves the caret to the end of the selection.
18611 * TextBox.cs: We don't selectall on focus, we just do it when the
18612 control is created.
18614 2006-12-11 Mike Kestner <mkestner@novell.com>
18616 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18618 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18620 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
18622 * ListViewItem.cs: Add Name 2.0 property.
18624 2006-12-11 Andreia Gaita <avidigal@novell.com>
18626 * TabControl.cs: Set visibility on selected or default tab
18627 when tabcontrol handle is created, so that it's contents
18628 actually show up (duh). Fixes #80193
18629 Don't redraw the control if there is no handle created, as
18630 the selected index might be completely invalid. Added some tests
18633 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18635 * ToolBar.cs: Uses maximun width and height of all buttons as
18636 button rectangle when ButtonSize specified, it looks strange but
18637 is what happens in Win32. Fixes #80189.
18639 2006-12-11 Jackson Harper <jackson@ximian.com>
18641 * TextControl.cs: Need to track undo levels ourself, since
18642 compound actions will mess them up.
18644 2006-12-10 Andreia Gaita <avidigal@novell.com>
18646 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
18647 SelectedIndex value is changed (even if it's not valid).
18648 Reset SelectedIndex to 0 when the handle is created and if
18649 the current index is invalid.
18650 Fixes SelectdeIndex unit tests and #80128
18652 2006-12-08 Chris Toshok <toshok@ximian.com>
18654 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
18655 calls EndEdit, it needs to be called before we set current_cell to
18656 its new value. Otherwise, we end up committing the value in the
18657 textbox to the new cell as well. Fixes bug #80160.
18659 2006-12-08 Chris Toshok <toshok@ximian.com>
18661 * Form.cs (set_CancelButton): if the button's DialogResult is
18662 None, set it to Cancel. Fixes bug 80180.
18664 2006-12-08 Jackson Harper <jackson@ximian.com>
18666 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
18667 to watch ourselves when setting the canvas size and setting the
18670 2006-12-08 Chris Toshok <toshok@ximian.com>
18672 * DataGrid.cs: comment out the two MakeTransparent calls for the
18673 time being so people using trunk (and not 1.2.2) on windows can
18674 actually use the datagrid. This deals with bug #80151.
18676 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18678 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
18679 Graphics.DrawImage (image, int, int, int, int) overload instead
18680 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
18681 the dpi difference and was blurring images it drew.
18684 2006-12-08 Chris Toshok <toshok@ximian.com>
18686 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
18687 rowcnt is 0 (such as with an empty datasource), and make sure we
18688 initialize not_usedarea.Y to cells.Y, so we don't draw over the
18689 other areas (caption, parent row, etc, etc). Fixes bug #80095.
18691 2006-12-08 Chris Toshok <toshok@ximian.com>
18693 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
18696 2006-12-08 Chris Toshok <toshok@ximian.com>
18698 [ Fixes bug #80167 ]
18700 * ThemeWin32Classic.cs: don't draw the image if the button's flat
18701 style is FlatStyle.System.
18703 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
18704 ButtonBase.flat_style private, and switch uses of it to the public
18707 2006-12-08 Chris Toshok <toshok@ximian.com>
18709 [ Fixes bug #80121 ]
18711 * ThemeWin32Classic.cs: center the caption text in the datagrid
18714 * DataGrid.cs: lessen the amount we add to the caption height from
18715 6 to 2. 6 was making it huge.
18717 2006-12-08 Andreia Gaita <avidigal@novell.com>
18719 * UpDownBase: Handle MouseWheel call directly instead of capturing
18720 the inner textbox's OnMouseWheel. Fixes #80166
18722 2006-12-08 Jackson Harper <jackson@ximian.com>
18724 * TextControl.cs: We need to invalidate the textbox when we empty
18725 it (how had this not been discovered before?)
18727 2006-12-08 Jackson Harper <jackson@ximian.com>
18729 * TextBoxBase.cs: Reworked the mouse down code so I could get it
18730 to behave like MS, we now ignore the eventargs.Click and just
18731 track state ourself, which we were already doing anyways.
18732 - Constrain the double click handler to the double click size.
18734 2006-12-08 Chris Toshok <toshok@ximian.com>
18736 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
18737 direction if that scrollbar isn't shown. fixes bug #80158.
18739 2006-12-08 Andreia Gaita <avidigal@novell.com>
18741 * NumericUpDown.cs: Update value on getter. Fixes #79950
18743 2006-12-08 Chris Toshok <toshok@ximian.com>
18745 * MenuItem.cs: add back in the event cloning code. I didn't know
18746 how to do it in the face of the EventHandlerList work i'd done
18747 last week. Fixes bug #80183.
18749 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
18751 * Control.cs: Add an invalidate to the BackgroundImage setter.
18754 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18756 * ToolStrip*: Add some small properties reported by MoMA, fix event
18757 firing and default properties based off of unit tests, and add some
18758 attributes based off of the class status page.
18760 2006-12-07 Jackson Harper <jackson@ximian.com>
18762 * TextBoxBase.cs: Take HideSelection into account when determining
18763 whether or not to show the selection.
18764 * RichTextBox.cs: After inserting the RTF into the document move
18765 the cursor to the beginning of the document.
18767 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
18769 * Control.cs: Remove static ArrayList "controls" which maintained
18770 a reference to every control created.
18771 * Application.cs: Create a static FormCollection to maintain a reference
18772 to every form created. Use it in places that formerly enumerated through
18773 the controls one looking for forms.
18774 * Form.cs: Add and remove self from above FormCollection.
18776 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
18778 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
18779 not libgdk (though it makes me wonder why I didn't have any
18782 2006-12-07 Chris Toshok <toshok@ximian.com>
18784 [ you had to know this was coming after that last commit...]
18786 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
18787 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
18788 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
18791 2006-12-07 Chris Toshok <toshok@ximian.com>
18793 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
18794 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
18795 all the behavior we need for double buffering.
18797 * XplatUIDriver.cs: implement the 3 double buffer methods using a
18798 client side Bitmap, just like the old Control-based double buffer
18799 code did. The methods are virtual, so each XplatUI driver
18800 subclass can replace the implementation to use a faster, platform
18803 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
18804 double buffer code, and clean things up a bit in the process.
18806 2006-12-06 Chris Toshok <toshok@ximian.com>
18808 * Control.cs: reindent WndProc.
18810 2006-12-06 Chris Toshok <toshok@ximian.com>
18812 [ I wanna be like BenM when I grow up ]
18814 * Hwnd.cs: create a single static Graphics object on the static
18815 Bitmap we create. use this for our text measurements.
18817 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
18818 This was causing us to allocate a backbuffer for every control,
18819 even when it wasn't flagged as double buffered. Instead use the
18820 single graphics instance. This might have implications for
18821 multithreaded applications. If we run into problems we can switch
18822 to creating 1 Graphics per control, on the static Hwnd bitmap.
18824 this change nets us a 7M savings in private dirty mappings when
18825 running FormsTest.exe.
18827 2006-12-06 Chris Toshok <toshok@ximian.com>
18829 * ListView.cs: the BackgroundImage override is just to set
18830 attributes. chain up to base.BackgroundImage.
18832 * RichTextBox.cs: same.
18834 * ToolBar.cs: same, but we need to also redraw the toolbar when it
18835 changes, so instead a handler for BackgroundImageChanged.
18837 * Control.cs: make background_image private.
18839 2006-12-06 Chris Toshok <toshok@ximian.com>
18841 * ScrollBar.cs: change the assignment of cursor to Cursor. not
18842 sure we even need this assignment, but roll with it for now.
18844 * Control.cs: make the cursor field private.
18846 2006-12-06 Chris Toshok <toshok@ximian.com>
18848 * Form.cs: we don't need to explicitly set ImeMode to
18849 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
18850 behavior in the face of ImeMode.Inherit.
18852 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
18853 change the ctor's assignment to use ImeMode instead of ime_mode.
18855 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
18856 ImeModeInherit. Only check for the parent's imemode (and return
18857 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
18858 This fixes the button unit test, which sets both ImeMode and
18859 DefaultImeMode to ImeMode.Disable.
18861 also make the ime_mode field private.
18863 2006-12-06 Chris Toshok <toshok@ximian.com>
18865 * Control.cs: make control_style private.
18867 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
18868 setting the styles to true, then setting them to false instead of
18869 reverting to their previous values.
18871 also, call SetStyle on the scrollbars instead of using
18872 control_style directly.
18874 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
18876 * FormCollection.cs: Implement. [2.0]
18878 2006-12-06 Chris Toshok <toshok@ximian.com>
18880 * Control.cs: make tab_stop private.
18882 * Label.cs: set TabStop, not tab_stop. reformat some event
18883 add/remove methods to make them more compact.
18885 2006-12-06 Chris Toshok <toshok@ximian.com>
18887 * RadioButton.cs: fix TabStop handling.
18889 2006-12-06 Chris Toshok <toshok@ximian.com>
18891 * TextBox.cs: remove the explicit assignments to has_focus.
18894 * ButtonBase.cs: remove the assignment to has_focus. Control will
18897 2006-12-06 Chris Toshok <toshok@ximian.com>
18899 * ButtonBase.cs: remove all uses of is_enabled from this code.
18900 it's always true when any of the code containing the checks is
18903 2006-12-06 Chris Toshok <toshok@ximian.com>
18905 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
18906 with different semantics (some are present in both 1.1 and 2.0
18907 profiles) so that we match MS's behavior in our unit tests.
18909 2006-12-06 Jackson Harper <jackson@ximian.com>
18911 * TextControl.cs: Make this operation undoable.
18912 * TextBoxBase.cs: Factor the border width into the preferred
18914 - implement Modified as per the spec.
18916 2006-12-06 Chris Toshok <toshok@ximian.com>
18918 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
18920 2006-12-06 Chris Toshok <toshok@ximian.com>
18922 * Control.cs: make right_to_left and context_menu fields private.
18924 2006-12-06 Chris Toshok <toshok@ximian.com>
18926 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
18927 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
18928 Control.child_controls private. switch all uses over to
18931 2006-12-06 Chris Toshok <toshok@ximian.com>
18933 * System.Windows.Forms/GroupBox.cs,
18934 System.Windows.Forms/AccessibleObject.cs,
18935 System.Windows.Forms/ErrorProvider.cs,
18936 System.Windows.Forms/Control.cs,
18937 System.Windows.Forms/UpDownBase.cs,
18938 System.Windows.Forms/ScrollBar.cs,
18939 System.Windows.Forms/DateTimePicker.cs,
18940 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18941 System.Windows.Forms/ToolTip.cs,
18942 System.Windows.Forms/RadioButton.cs,
18943 System.Windows.Forms/LinkLabel.cs,
18944 System.Windows.Forms/Splitter.cs,
18945 System.Windows.Forms/TextBoxBase.cs,
18946 System.Windows.Forms/ToolStripTextBox.cs,
18947 System.Windows.Forms/ContainerControl.cs,
18948 System.Windows.Forms/ThemeWin32Classic.cs,
18949 System.Windows.Forms/SizeGrip.cs,
18950 System.Windows.Forms/ToolStripDropDown.cs,
18951 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
18952 private. switch all uses over to Control.Parent.
18954 2006-12-06 Chris Toshok <toshok@ximian.com>
18956 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
18957 Control does this before calling emitting these events.
18959 * TabControl.cs: same.
18961 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
18962 Control.client_rect.
18964 * ButtonBase.cs: use the ClientSize property instead of the
18967 * ScrollableControl.cs: same.
18969 * Control.cs: another pass at making properties private. also,
18970 move the initialization of tab_stop to the ctor.
18972 2006-12-05 Andreia Gaita <avidigal@novell.com>
18974 * TabControl.cs: Let the selected index be set freely if the
18975 control handle is not yet created.
18977 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
18979 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
18980 internal until I can rewrite DefaultLayout.
18981 * ToolStrip.cs: Fix build error and some general cleaning.
18982 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
18983 Fix build errors caused by making some of Control's fields private.
18985 2006-12-05 Jackson Harper <jackson@ximian.com>
18987 * TextControl.cs: Redo Insert a little so that it use IndexOf
18988 instead of Split, this prevents it from messing up on things like
18989 \n\n\n. Also more effecient since the split array doesn't need to
18991 * TextBoxBase.cs: AppendText doesnt handle multiline and non
18992 multiline text differently, this is the first of many fixes that
18993 will make multiline/non-multiline the same thing as far as the
18994 TextBoxBase is concerned.
18995 - Don't split the text and insert lines, this can lose some line
18996 endings (like is the last line a soft or hard break). Instead use
18998 - Fix an off by one when combining all the lines in the Text
19000 - Remove separate multiline handling from the Text getter/setter.
19002 2006-12-05 Chris Toshok <toshok@ximian.com>
19004 * ButtonBase.cs: a few changes:
19006 - don't reinitialize internal Control fields in the ctor when they
19007 have the same values as Control sets them.
19009 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
19010 this before calling those methods.
19012 - we don't need to call Refresh for anything. use Invalidate
19015 - OnEnabledChanged doesn't need to redraw at all - Control.cs
19016 calls Refresh in its OnEnabledChanged.
19018 - several of the events we were registered for in the ctor to
19019 redraw ourselves already include calls to Invalidate in the
19020 property setters that raise the events. remove the extra
19023 - reformat a switch statement that was 83274658 columns wide.
19025 2006-12-05 Mike Kestner <mkestner@novell.com>
19027 * ComboBox.cs: fix a unit test regression from a TextBox
19028 SelectionLength return of -1 when there's no selection.
19030 2006-12-05 Chris Toshok <toshok@ximian.com>
19032 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19033 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19034 cleaning up some of the internal Control fields being used by
19037 2006-12-05 Mike Kestner <mkestner@novell.com>
19039 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
19040 listbox after AddImplicit calls since it defaults to hidden. Add a
19041 hack to preserve requested heights across DropDownStyle changes.
19043 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
19045 * PropertyGrid.cs: Hide FindFirstItem method from public API.
19047 2006-12-05 Chris Toshok <toshok@ximian.com>
19049 * DataGridView.cs: fix compiler warnings.
19051 * PrintControllerWithStatusDialog.cs: same.
19053 * ToolBar.cs: same.
19055 * FolderBrowserDialog.cs: same.
19057 * Splitter.cs: same.
19059 * DataGridViewComboBoxCell.cs: same.
19061 * XplatUIWin32.cs: same.
19063 * PictureBox.cs: same.
19065 * Win32DnD.cs: same.
19067 * PageSetupDialog.cs: same.
19069 * FileDialog.cs: same.
19071 * PrintDialog.cs: same.
19073 * DataGridTextBoxColumn.cs: same.
19075 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19077 2006-12-05 Chris Toshok <toshok@ximian.com>
19079 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19080 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19081 System.ComponentModel.EventHandlerList work.
19083 2006-12-05 Jonathan Chambers <joncham@gmail.com>
19085 * DrawTreeNodeEventArgs.cs: Added.
19087 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19089 * InternalWindowManager.cs: Remove an unused field.
19091 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19093 * InternalWindowManager.cs:
19094 - Save the point where the title bar is clicked.
19096 * MdiWindowManager.cs:
19097 - Only allow moving of the window as long as the
19098 clicked point on the title bar does not get out of
19099 MdiClient's rectangle. Fixes #79982.
19102 - Added Horizontal/VerticalScrollbarVisible.
19103 - Simplified the scrollbar sizing algorithm.
19104 - Cache the difference in scrolled value in
19105 H/VBarValueChanged and move the calculation out
19108 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19110 * Control.cs: Make the Console.WriteLine in WndProc
19113 2006-12-05 Chris Toshok <toshok@ximian.com>
19115 * ToolStripManager.cs, ToolStripButton.cs,
19116 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19117 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19118 ToolStripSplitButton.cs, ToolStripSeparator.cs,
19119 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19120 ToolStripProgressBar.cs, ToolStripContainer.cs,
19121 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19122 to using System.ComponentModel.EventHandlerList.
19124 2006-12-04 Chris Toshok <toshok@ximian.com>
19126 * LinkLabel.cs: fix up compiler warnings.
19128 * TableLayoutSettings.cs: same.
19130 * TreeView.cs: same.
19132 * ToolBar.cs: same.
19134 * TabControl.cs: same.
19136 * RichTextBox.cs: same.
19138 * ListViewItem.cs: same.
19140 * PropertyGrid.cs: same.
19142 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19146 * TextRenderer.cs: fix up compiler warnings.
19150 * Form.cs: corcompare fixes.
19152 * PictureBox.cs: fix up compiler warnings.
19154 * ImageListStreamer.cs: same.
19156 * TrackBar.cs: corcompare fix.
19158 * Control.cs: fix up compiler warnings.
19160 * SplitterPanel.cs: same.
19162 * NumericTextBox.cs: same.
19164 * ImageList.cs: same.
19166 * StatusStrip.cs: same.
19168 * ProgressBar.cs: corcompare fix.
19170 * ToolStripButton.cs: fix up compiler warnings.
19172 * ToolStripStatusLabel.cs: same.
19174 * ToolStripSplitButton.cs: same.
19176 * ToolStripSeparator.cs: same.
19178 * ToolStripProgressBar.cs: same.
19180 * ToolStripDropDownMenu.cs: same
19182 * ToolStripDropDown.cs: same.
19184 * ToolStripDropDownButton.cs: same.
19186 * ToolStrip.cs: same.
19188 * ToolStripControlHost.cs: same.
19190 * ToolStripContentPanel.cs: same.
19192 * ToolStripDropDown.cs: same.
19194 * ToolStripContainer.cs: same.
19196 * ToolStripPanel.cs: same, and add "new" where we need it to work
19197 with the new ArrangedElementCollection.
19199 * ToolStripItemCollection.cs: add "new" where we need it to work
19200 with the new ArrangedElementCollection.
19202 2006-12-04 Andreia Gaita <avidigal@novell.com>
19204 * TabControl.cs: Fix default tab selection to after TabControl
19205 gets focus and not before. Fixes #80128
19207 2006-12-04 Chris Toshok <toshok@ximian.com>
19209 * DataGridTableStyle.cs: remove the gross calling of
19210 datagrid.Refresh from here. It's a broken idea and it doesn't
19213 * DataGrid.cs: instead, just register/unregister from the
19214 DataGridTableStyle events in CurrentTableStyle. we play it
19215 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19216 even though some would most likely not require it. Fixes bug
19217 #80115 (and one portion of #80117 as a side effect).
19219 2006-12-04 Chris Toshok <toshok@ximian.com>
19221 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19222 so the textbox (if any) goes away. Fixes bug #80117.
19224 2006-12-04 Chris Toshok <toshok@ximian.com>
19226 * DataGridColumnStyle.cs: set the column's readonly property
19227 initially based on the property descriptor's IsReadOnly. Fixes
19230 2006-12-04 Chris Toshok <toshok@ximian.com>
19232 * ComboBox.cs: wrap the dropdown style changing work in
19233 SuspendLayout/ResumeLayout. Fixes bug #79968.
19235 2006-12-04 Jackson Harper <jackson@ximian.com>
19237 * TextBoxBase.cs: Fix off by one, since these are one-based.
19238 * TextBox.cs: Select all the text when we get focus. The TextBox
19239 does this but the RTB does not.
19241 2006-12-04 Chris Toshok <toshok@ximian.com>
19243 * DataGridTextBoxColumn.cs: remove some spew.
19245 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19246 but some part of me is saying "it shouldn't be here.." At any
19247 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
19250 2006-12-04 Chris Toshok <toshok@ximian.com>
19252 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19253 to reassign the propertydescriptor.
19255 2006-12-04 Jackson Harper <jackson@ximian.com>
19258 * TextControl.cs: Remove some unused variables. Maybe this will
19259 patch things up between mike and I.
19260 - don't split lines less then one char wide, if the viewport is
19261 that small text won't be visible anyways.
19263 2006-12-04 Jackson Harper <jackson@ximian.com>
19265 * TextBoxBase.cs: Default selection length is -1, need to do some
19266 more testing on windows to see when this is used for the property.
19267 - Redid the Lines [] property to that we properly remove soft line
19269 - added support for preserving carriage returns
19270 - CanUndo is not a variable like 'is undo enabled' it just returns
19271 true if there is undo operations available.
19272 - AppendText doesn't need to grab the last tag itself anymore,
19273 this happens automatically when we move the cursor.
19274 * TextControl.cs: Add CompoundActions to the undo class. This
19275 allows combining the other operations into one big option. ie a
19276 paste will combine { delete old, insert new, move cursor }
19277 - Add InsertString undo operation
19278 - New method for deleting multiline text
19279 - Add carriage returns to lines. So we can preserve carriage
19280 returns when text is 'roundtripped'
19282 2006-12-04 Chris Toshok <toshok@ximian.com>
19284 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19285 minimum 0. Fixes the scrollbar exception in bug #80136.
19287 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19290 * MdiWindowManager: Removed unused fields and methods.
19292 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19294 * StatusBar.cs: Update all panels when a AutoSize=Contents
19295 panel needs updating.
19297 * StatusBarPanel.cs: Remove twidth and only use initialize.
19300 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19302 * Form.cs: When a form's MdiParent is set add it directly
19303 on top of the z-order in stead of relying on MdiClient's
19304 ActivateChild to do it. Fixes #80135.
19307 - Remove original_order, mdi_child_list is already doing
19309 - Create mdi_child_list on construction in
19310 stead of first use (avoids a few null checks).
19312 * MenuItem.cs: Use an already existing list of mdi children
19313 to get the correct order of children and remove the other
19316 2006-12-04 Chris Toshok <toshok@ximian.com>
19318 * PropertyGridView.cs: cached_splitter_location is only used in
19319 !DOUBLEBUFFER code.
19321 * PropertyGrid.cs: implement the ComComponentNameChanged event
19322 using Events, hoping that would fix the warning. Looks like a
19323 compiler bug instead (#80144).
19325 * PropertyManager.cs: remove unused method.
19327 2006-11-04 Everaldo Canuto <everaldo@simios.org>
19329 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
19330 include parentesis to fix expression evaluation. Fixes #79634.
19332 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19335 - Changes to fix behavior in Menu control, some reported in #80097
19336 and other detected during behavior refactory like a select event
19338 - Remove unneded "if's" conditions.
19339 - Created an internal to flag when popup is active in control, we need
19340 it because in .NET you can have menu active but without popup active
19341 when you active menu using popup without visible items.
19342 - Mimic win32 behavior for Select and Popup events.
19343 - Dont open popup menu when you dont have visible subitems.
19344 - Do nothing when click on disabled menu item.
19345 - Some small changes to follow the coding style guidelines.
19346 - Unselect menu only when another control gives focus. Fixes #80097.
19347 - Remove unused code.
19349 * MenuItem.cs: internal VisibleItems method to check if menu
19350 theres visible subitems, it will be usefull to fix some
19351 behavior in Menu control.
19353 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19355 * Timer.cs: Tag property for 2.0 profile.
19357 2006-12-01 Chris Toshok <toshok@ximian.com>
19359 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19361 * Win32DnD.cs: comment out some unused fields.
19363 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19364 some unused properties/methods.
19366 * XplatUIX11.cs: fix MousePosition so we override the base class's
19367 property instead of conflicting with it.
19369 * PictureBox.cs: comment out some unused fields
19371 * OSXStructs.cs: make some struct fields public.
19373 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19374 MousePosition so we override the base class's property instead of
19375 conflicting with it.
19377 * X11Dnd.cs: comment out some unused fields
19379 * X11DesktopColors.cs: fix some struct field visibility to quiet
19382 * X11Dnd.cs: remove some debug code.
19384 * ThemeClearlooks.cs: comment out unused field.
19386 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19388 * ThemeGtk.cs: comment out some unused pinvokes.
19390 * Timer.cs: remove some unused fields.
19392 * ThemeClearlooks.cs: comment out unused field.
19394 * UpDownBase.cs: comment out unused field.
19396 * DataObject.cs: comment out unused field.
19398 * DataGridBoolColumn.cs: reomve unused field.
19400 * DataGrid.cs: remove unused field.
19402 * Cursor.cs: remove old ToBitmap code.
19404 * ControlPaint.cs: remove unused method.
19406 * ScrollBar.cs: remove unused fields.
19408 * ComboBox.cs: remove unused field, and chain up to
19409 AccessibleObject ctor.
19411 * ListBox.cs: remove unused field.
19413 * ButtonBase.cs: wrap a couple fields in NET_2_0.
19415 * GridEntry.cs: remove unused fields.
19417 * Binding.cs: remove unused fields.
19419 * AxHost.cs: remove unused method.
19421 * ContainerControl.cs: remove unused field.
19423 * ScrollableControl.cs: remove unused fields.
19425 2006-12-01 Chris Toshok <toshok@ximian.com>
19427 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19428 the Where/WhereString stuff. it's easy enough to CWL
19429 Environment.StackTrace.
19431 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19432 unused private fields.
19434 2006-12-01 Jackson Harper <jackson@ximian.com>
19436 * TextControl.cs: Do not update the view while inserting multiline
19437 text. If we update the view we might wrap lines, before entering
19438 the new lines, which causes the new line insertion calculations to
19439 be totally fubared.
19440 - Remove an old TODO
19441 - Make debug output a little nicer
19443 2006-12-01 Chris Toshok <toshok@ximian.com>
19445 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19447 2006-12-01 Chris Toshok <toshok@ximian.com>
19449 [ fix the majority of the CS0108 warnings we've been suppressing ]
19451 * TreeView.cs: mark BackgroundImageChanged as 'new'.
19453 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
19454 to "LayoutToolBar" to quiet mcs.
19456 * TabControl.cs: mark our ControlCollection class as 'new'.
19458 * TextBoxBase.cs: mark some events as 'new'.
19460 * Splitter.cs: TabStop is 'new'.
19462 * ControlBindingsCollection.cs: mark a few methods as new since
19463 they change the visibility from protected to public.
19465 * RadioButton.cs: DoubleClick -> base class, and remove unused
19468 * MonthCalendar.cs: ImeMode property -> base class, and mark many
19471 * NumericUpDown.cs: TextChanged -> base class.
19473 * CheckedListBox.cs: mark our ObjectCollection class as new to
19476 * FolderBrowserDialog.cs: make HelpRequest event new and have it
19477 muck with the base class.
19479 * StatusBar.cs: fix some mcs warnings about Update being the same
19480 name as a base class method.
19482 * RichTextBox.cs: mark some events as new, and make them do things
19483 to the base class impl.
19485 * UserControl.cs: mark TextChanged as new, and have it manipulate
19488 * UpDownBase.cs: mark some things new.
19490 * CheckBox.cs: mark DoubleClick "new", and add some text about
19491 what we need to look at.
19493 * Panel.cs: make the events "new", and manipulate the base
19494 version. these are just here for attributes.
19496 * AccessibleObject.cs: make owner private.
19498 * Control.cs: deal with AccessibleObject.owner being private.
19499 cache our own copy if we need it.
19501 * Button.cs: add "new" to the DoubleClickEvent.
19503 * ListBox.cs: no need to track our own has_focus here. let
19504 Control.has_focus do it for us. Also some other work to clear up
19505 warnings about not overriding base class methods of the same name.
19507 * ComboBox.cs: clear up some warnings about not override base
19508 class methods of the same name.
19510 2006-12-01 Chris Toshok <toshok@ximian.com>
19512 * Form.cs: flag a few things as "new" to quiet some of the mcs
19517 * PrintPreviewDialog.cs: same.
19519 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
19520 now DGV isn't so horrible on the class status page. also, move
19521 all events to using System.ComponentModel.EventHandlerList. my
19524 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
19526 * MdiWindowManager.cs:
19527 - Set form to active mdi child if shown,
19528 and update the active mdi child to the next
19529 remaining child in the z-order if the form is hidden.
19532 - Track if the form has been visible and if its
19533 visibility is beeing changed, so that the MdiClient
19534 can properly decide the ActiveMdiChild. The MdiClient
19535 cannot track this since the form can change visibility
19536 before MdiClient is created.
19539 - Don't activate anything of the parent form is changing
19541 - Rework ActiveMdiChild to only return visible mdi
19542 children and take into account several other corner
19545 2006-12-01 Chris Toshok <toshok@ximian.com>
19547 * IBindableComponent.cs: new 2.0 interface.
19549 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
19551 * DataGrid.cs: Font for caption area is bold by default.
19553 2006-12-01 Everaldo Canuto <everaldo@simios.org>
19555 * Menu.cs: Tag property for 2.0.
19557 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19559 * ThemeWin32Classic.cs: Adjust menu separator drawing.
19561 2006-12-01 Chris Toshok <toshok@ximian.com>
19563 * TreeView.cs: doh, the Begin* events should be
19564 TreeViewCancelEventHandler.
19566 2006-12-01 Chris Toshok <toshok@ximian.com>
19568 * Form.cs: Form.ControlCollection already stores off the
19569 form_owner field. don't access the base class's internal "owner"
19572 * Control.cs: make all the fields in Control.ControlCollection
19573 private. there's no need for any internal fields here.
19575 2006-12-01 Chris Toshok <toshok@ximian.com>
19577 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19578 OnHandleCreated. Fixes bug #80109.
19580 2006-12-01 Chris Toshok <toshok@ximian.com>
19582 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19583 SplitContainer.cs, Control.cs, StatusStrip.cs,
19584 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19585 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19586 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19587 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19588 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19589 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19590 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19591 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19592 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19593 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19595 do most of the work to convert our code over to use
19596 System.ComponentModel.Component.Events for
19597 adding/removing/dispatching events.
19600 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19602 * DataGridView.cs: Fix an ArgumentNullException reported
19603 twice today in IRC.
19605 2006-11-30 Mike Kestner <mkestner@novell.com>
19607 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
19608 grabbed listbox. Fixes #80036 and #80101.
19610 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19612 * Message.cs: Changed ToString() to match MS.
19614 2006-11-30 Jackson Harper <jackson@ximian.com>
19616 * TextBoxBase.cs: You can still change the selected text on a read
19618 * TextControl.cs: Lower magic number for wrap calculations. This
19619 lets text get closer to the right (far) edge.
19621 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19623 * Control.cs: Tweak 2.0 layout properties.
19624 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19625 * TextRenderer.cs: Add a new overload.
19626 * ToolStrip*: Huge amount of changes and new features.
19628 2006-11-30 Mike Kestner <mkestner@novell.com>
19630 * ComboBox.cs: fixes for LargeChange and Maximum to get the
19631 scroll range correct. Fixes #79994.
19633 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19635 * MdiWindowManager.cs: Update main form's text when
19636 a form is closed. (fixes #80038)
19638 2006-11-30 Everaldo Canuto <everaldo@simios.org>
19641 - Fix an regression in ButtonSize.
19642 - Get ImeMode default value change to "Disable".
19643 - Get ShowTooltips default value change to true, default value is
19644 "false" but after make a test in .NET we get "true" result as default.
19646 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
19648 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
19650 2006-11-29 Chris Toshok <toshok@ximian.com>
19652 * XplatUIWin32.cs (GetWindowTransparency): check return value of
19653 GetLayeredWindowAttributes. if it's 0, return 1.0, as
19654 SetWindowTransparency hasn't been called.
19656 2006-11-29 Chris Toshok <toshok@ximian.com>
19658 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
19660 (set_AllowTransparency): reorder things a little so that the
19661 WS_EX_LAYERED style is removed properly.
19663 2006-11-29 Chris Toshok <toshok@ximian.com>
19665 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
19667 * Form.cs: only call the XplatUI transparency method (get/set) if
19668 SupportsTransparency says it's supported. Otherwise fallback to
19669 doing nothing (in the set case) or returning the instance field we
19670 cache (in the get case).
19672 * XplatUIStructs.cs: add TransparencySupport flag enum.
19674 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
19675 change to SupportsTransparency.
19677 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
19678 TransparencySupport.None from SupportsTransparency.
19680 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
19681 TransparencySupport.Set from SupportsTransparency.
19683 * XplatUIWin32.cs: implement GetWindowTransparency calling
19684 GetLayeredWindowAttributes, and implement SupportsTransparency by
19685 checking whether or not both
19686 GetWindowTransparency/SetWindowTransparency are available
19687 entrypoints. We need to do this since SetWindowTransparency is
19688 available as of win2k, but GetWindowTransparency requires winxp.
19691 * XplatUI.cs: Add GetWindowTransparency, and change
19692 SupportsTransparency to allow for either/both Get/Set.
19694 2006-11-29 Chris Toshok <toshok@ximian.com>
19696 * DataGrid.cs: keep from going into an infinite loop redrawing a
19697 datagrid that has no datasource. Fixes bug #80033.
19699 2006-11-29 Chris Toshok <toshok@ximian.com>
19701 * MenuItem.cs: fix the NRE when we assign text (and therefore call
19702 Invalidate) before the mainmenu has been assigned to a control.
19704 2006-11-29 Chris Toshok <toshok@ximian.com>
19706 * DataGrid.cs: detect when we should be double the double click
19707 row/column autosize stuff, although that codepath has yet to be
19708 written. part of the work for bug #79891.
19710 2006-11-29 Chris Toshok <toshok@ximian.com>
19712 * Binding.cs (SetControl): fix unit test.
19714 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19716 * PageSetupDialog.cs: Validate the margins and set them in
19718 * NumericTextBox.cs: New class to mimic the behavior of the
19719 textboxes used in the printing dialogs.
19721 2006-11-29 Andreia Gaita <avidigal@novell.com>
19723 * Form.cs: Revert previous change (remove call UpdateBounds
19724 from form constructor), because it messes with the handle creation
19725 order, and that one needs lots and lots of love.
19726 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
19727 for valid printer and throw InvalidPrinterException if document
19728 is set but printer not valid), adding a MonoTODO. Once
19729 handle creation is done properly, we can put this back in.
19731 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19733 * MenuItem.cs: Create a invalidate method for menu item, to be
19734 calling from set text, it make text changes to imadiate update
19735 on screen. Fixes #80013.
19737 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19739 * ToolBar.cs: Fixes and simplify toolbar button layout, it
19740 fixes bug #80070 and some other problem on toolbar buttons
19743 2006-11-28 Everaldo Canuto <everaldo@simios.org>
19745 * ThemeWin32Classic.cs: Paint toolbar toggle button background
19746 with dotted brush. Fixes #79564
19748 2006-11-28 Andreia Gaita <avidigal@novell.com>
19750 * Form.cs: Removed call to UpdateBounds on Form
19751 constructor, it was causing a call to CreateHandle
19752 before it was supposed to.
19753 * PrintControllerWithStatusDialog: Applied patch
19754 by Chris Toshok to hide controller when there are
19755 no printers available.
19756 PrintDialog.cs: initialize printer settings to
19757 null - correct DefaultValues test #5
19758 * PrintPreviewControl.cs: Move PrintController
19759 initialization to GeneratePreview
19760 * PrintPreviewDialog.cs:
19761 - Remove Preview generation from Document_set(). It is
19763 - Throw InvalidPrinterException on CreateHandle if
19764 a Document is set but there are no printers or
19765 printer is not valid.
19766 * ThemeWin32Classic: don't paint PrintPreviewControl
19767 if there is nothing to paint
19769 2006-11-28 Miguel de Icaza <miguel@novell.com>
19771 * Form.cs: Add another popular method.
19773 * TabPage.cs: ditto.
19775 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19777 * MenuItem.cs: Fixed a warning.
19778 * InternalWindowManager: Fixed a warning.
19780 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19783 - When cloning a menu also clone MdiList and clone the
19784 window menu items properly (as the forms and menuitems
19785 are kept in an internal hashtable, these need updating
19787 - Rewrote the window menu code, menu items are added in the
19788 order the forms were added to their parent, and they are
19789 updated every time the window menu is shown (before the
19790 list was only generated once, in the current order of the
19791 forms, and would never be updated). A checkmark is shown
19792 next to the item corresponding to the active mdi child.
19794 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19796 * XplatUIStructs.cs:
19797 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
19800 - Added TME_NONCLIENT to TMEFlags.
19801 - Handles WM_NCMOUSEMOVE in GetMessage to
19802 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
19804 * MdiWindowManager:
19805 - Now merges mdi child menu to parent menu when maximized.
19806 - Recalculate NC areas of both mdi child and mdi parent.
19808 on window state and size changes.Fixes #79844 (3).
19809 - Handle WM_NCCALCSIZE to properly calculate borders.
19812 - Add/remove to the mdi containers list of mdi children
19813 in the order they are added.
19814 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
19815 to the maximized mdi child.
19817 * InternalWindowManager.cs:
19818 - Only execute a click on the control buttons on the mouse up,
19819 not on the mouse down. Show the state of the button
19820 (was only showing Normal state, never Pressed state). The
19821 pressed button now follows the mouse (if you click the Close
19822 button and move the mouse over the Maximize button, the
19823 Maximize button will be shown as pressed). Since Win32 does
19824 not generate WM_NCLBUTTONUP if you release the button outside
19825 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
19828 * ThemeWin32Classic.cs:
19829 - Draw a missing border around mdi child forms. Fixes #79844 (2).
19832 - Added a list of forms which contains the order the forms are
19833 added to the mdi parent.
19834 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
19835 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
19836 - If the active form changes set the scrollbars to the top
19837 of the Z order, otherwise the form could hide them.
19838 - Scrollbars are now sized according to ClientSize, not
19839 to Size, and they take into account the other scrollbar
19840 to determine maximum.
19842 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19845 * XplatUIDriver.cs:
19849 - Added RequestAdditionalWM_NCMessages for windows to
19850 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
19851 Currently only implemented in XplatUIWin32.
19853 2006-11-27 Chris Toshok <toshok@ximian.com>
19855 * Hwnd.cs: only add the hwnd to the windows hash in
19856 set_WholeWindow and set_ClientWindow if whole_window/client_window
19857 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
19859 2006-11-27 Mike Kestner <mkestner@novell.com>
19861 * ComboBox.cs: remove redundant OnDropDown call. It is called
19862 from the ComboListBox.ShowWindow code. Fixes #79969.
19864 2006-11-27 Chris Toshok <toshok@ximian.com>
19866 * Hwnd.cs: remove the setters for ExposePending and
19867 NCExposePending - noone uses them.
19869 2006-11-27 Jackson Harper <jackson@ximian.com>
19871 * TextControl.cs: new param for ReplaceSelection which determines
19872 whether we select the new selection, or set the cursor to the end
19873 of the new selection.
19874 * TextBoxBase.cs: Use new param for ReplaceSelection. When
19875 pasting, select the new text.
19876 * RichTextBox.cs: Use new param for ReplaceSelection.
19878 2006-11-27 Jackson Harper <jackson@ximian.com>
19880 * TextBoxBase.cs: Set the selection to the caret after the caret
19881 is moved, otherwise they get out of sync.
19883 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19885 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
19888 2006-11-26 Everaldo Canuto <everaldo@simios.org>
19890 * ThemeWin32Classic.cs:
19891 - Fix toolbar drop down arrow position.
19892 - Fix drop down appearance when ToolBar.Appearance is normal,
19895 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
19897 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
19898 * Control.cs: Same.
19899 * UpDownBase.cs: Same.
19900 * ButtonBase.cs: Same.
19901 * ScrollBar.cs: Same.
19902 * TrackBar.cs: Same.
19903 * PictureBox.cs: Same.
19904 * UserControl.cs: Same.
19906 * ListControl.cs: Same.
19907 * TextBoxBase.cs: Same.
19908 * ListView.cs: Same.
19909 * RichTextBox.cs: Same.
19910 * TreeView.cs: Same.
19912 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
19915 - Text label for where
19916 - Text label comment was not shown
19918 2006-11-23 Everaldo Canuto <everaldo@simios.org>
19920 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
19922 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19924 * InternalWindowManager.cs:
19925 - Handle WM_PARENTNOTIFY to activate the form
19926 if any child control is clicked.
19927 - The form is only sizable if not minimized.
19929 * MdiWindowManager.cs:
19930 - Save the IconicBounds if the form is moved.
19931 - Rework SetWindowState, now the window bounds
19932 are stored only if the old window state is Normal.
19935 - In SetWindowStates store the old window state if
19936 the window is maximized and restore window state if
19937 the window looses focus.
19938 - Don't handle any scrollbar value changes if
19939 initializing the scroll bars. Fixes #79771.
19940 - Reworked ArrangeIconicWindows. Current algorithm
19941 tests bounds agains all other minimized windows, if
19942 any intersections create new bounds (going left to
19943 right, bottom to top) and then test again. When
19944 successful the bounds are saved and never computed
19945 again. Fixes #79774.
19947 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19949 * InternalWindowManager.cs: Added HandleTitleBarUp.
19951 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19953 * NumericUpDown.cs: In .NET 1.1, user entered text is still
19954 hexadecimal in ParseUserEdit.
19957 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
19959 * MdiWindowManager.cs:
19960 - Handle a click on the form's icon to show the
19961 system menu (when maximized). Fixes #79775.
19962 - Change the existing click handler for the form's
19963 icon when not maximized to show on MouseUp.
19966 * Form.cs: In OnResize only layout the mdi child's
19967 parent if it actually has a parent. Might not if
19968 the window is closing.
19971 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19973 * MdiClient.cs: Ignore active MDI client for text of parent, if
19974 child has no text set.
19976 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
19978 * ToolBar.cs: Fixed ToString to match MS.
19980 2006-11-22 Andreia Gaita <avidigal@novell.com>
19983 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
19984 update inner values on set. Fixes #79966.
19985 - Override OnLostFocus to update value on NET 2. Fixes #79950.
19986 - Fix hexadecimal parsing.
19988 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
19989 parent. Fixes #79957
19991 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19993 * Control.cs: After calling SetWindowsPos in SetBoundsCore
19994 the actual size has to be queried, since if height /
19995 width is negative Win32 changes it to 0.
19996 Fixes #79999 on Windows.
19998 * XplatUIX11.cs: Set height / width to 0 if negative
19999 in SetWindowPos. Fixes #79999 on Linux.
20001 2006-11-22 Everaldo Canuto <everaldo@simios.org>
20003 * ThemeWin32Classic.cs: Fix text redenring when button is
20006 2006-11-22 Everaldo Canuto <everaldo@simios.org>
20008 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20009 and later navigate by mouse. Fixes #79528.
20011 2006-11-21 Everaldo Canuto <everaldo@simios.org>
20013 * ToolBar.cs: Set default value for TabStop to false in
20014 constructor, it fixes remaining behavior of bug #79863.
20016 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
20018 * MdiWindowManager.cs:
20019 * InternalWindowManager.cs:
20020 - Moved a few methods specific to Mdi from
20021 InternalWindowManager to MdiWindowManager.
20024 2006-11-21 Chris Toshok <toshok@ximian.com>
20026 * XplatUIOSX.cs: stub out InvalidateNC.
20028 * XplatUIWin32.cs: implement InvalidateNC using the call I found
20029 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20031 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20033 * XplatUIDriver.cs: add InvalidateNC abstract method.
20035 * XplatUI.cs: add InvalidateNC.
20037 2006-11-21 Everaldo Canuto <everaldo@simios.org>
20039 * ToolBar.cs: Invalidate complete button area when pressed status
20041 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20042 * ThemeWin32Classic.cs: Increase vertical and horizontal position
20043 by 1 when button is pressed.
20045 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20047 * ToolButton.cs: Invalidate middle of DropDown button when
20048 ToolBar theres DropDownArrows.
20049 * ThemeWin32Classic.cs: Change position of DropDown arrow and
20050 fix DropDown drawing operations.
20052 2006-11-20 Chris Toshok <toshok@ximian.com>
20054 * NativeWindow.cs: fix the formatting of functions ('{' on the
20055 following line), and enable the thread exception dialog.
20057 * Application.cs: remove the duplicate exception catching from
20060 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20062 * Toolbar.cs: Triggers button click event when click on icon
20063 of dropdown ToolBarButton. Fixes #79912.
20065 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20068 * ThemeWin32Classic.cs:
20069 - Added a property WindowBorderFont to enable themeing
20070 of mdi child windows' Text.
20072 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20074 * InternalWindowManager.cs:
20077 * MdiWindowManager.cs:
20078 - If mdi child is maximized, set mdi parent's
20079 text to "Parent - [Child]". Fixes #79770.
20080 - If there is any maximized mdi child windows, only the active
20081 window (and any new windows) is maximized, the rest are normal.
20082 - On a WindowState change only save mdi child's window bounds
20083 if the old window state was normal. Fixes #79774.
20084 - The scroll bars are now calculated on hopefully all
20085 necessary events. Fixed #79771 / #79844->6 / #79906.
20086 - MdiClient.SizeScrollBars() now takes into account docked
20087 controls in the parent when calculating available space.
20088 - InternalWindowManager now always repaints the entire title
20089 area. Fixes #79844->1/4/5.
20090 - Added RequestNCRecalc on mdi child windowstate changes.
20093 2006-11-20 Mike Kestner <mkestner@novell.com>
20095 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20096 in the MouseUp handler of the listbox and move the return handling
20097 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
20099 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20101 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
20103 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20105 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20106 working in 1.2.x anymore. So, updated.
20108 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
20110 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20111 NumberGroupSeparator of current culture instead of assuming en-US.
20114 2006-11-17 Mike Kestner <mkestner@novell.com>
20116 * Control.cs: Add the concept of implicit bounds setting so that
20117 dock/undock round trips preserve explicitly set size/locations.
20120 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20122 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20123 can't handle those filters. (Fixes bug #79961)
20125 2006-11-17 Chris Toshok <toshok@ximian.com>
20127 [ fixes the exit/crashes associated with #79835. it's clearly
20128 suboptimal though, we need to figure out a better way to solve
20131 * PrintPreviewControl.cs: deal with the new invalid printer
20134 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20135 and return false (so CommonDialog.ShowDialog doesn't actually show
20138 * PrintDialog.cs: enable/disable the Ok button depending on
20139 whether or not the printer is valid.
20141 * CommonDialog.cs (ShowDialog): only actually show the form if
20142 RunDialog returns true.
20144 2006-11-17 Jackson Harper <jackson@ximian.com>
20146 * TextControl.cs: When soft splitting a line, mark it as a soft
20147 split line. Also carry over the current line break to the next
20150 2006-11-17 Chris Toshok <toshok@ximian.com>
20152 * XplatUIX11.cs: when scrolling a window with an invalid area, we
20153 only want to shift the part of the invalid area that overlaps the
20154 area we're scrolling. we also don't want to clear the invalid
20155 area unless the invalid area was entirely contained within the
20158 2006-11-16 Chris Toshok <toshok@ximian.com>
20160 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20161 also make sure to free the memory returned by XGetWindowProperty
20164 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20166 2006-11-16 Chris Toshok <toshok@ximian.com>
20168 * XplatUI.cs: add a new super secret way to get at the totally
20169 unsupported X11 backend.
20171 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
20173 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20175 2006-11-16 Jackson Harper <jackson@ximian.com>
20177 * TreeView.cs: Allow more explicit setting of top node position
20178 for scrollbars. Slower algo, but more accurate.
20179 - CollapseAll should maintain the current top node.
20180 * TextBoxBase.cs: When positioning the caret, use the line, pos
20181 method, since the x, y method does not grab the correct tag, and
20182 the caret height never gets set correctly. (Maybe I should just do
20183 away with the caret having its own height, and always use the
20184 carets current tag for height).
20186 2006-11-16 Jonathan Pobst <monkey@jpobst.com
20188 [Fixes 79778, 79923]
20190 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20191 Parent to the FosterParent instead.
20193 2006-11-16 Jackson Harper <jackson@ximian.com>
20195 * TreeView.cs: Need to recalc the topnode when we expand or
20196 collapse. The scrolling methods can't handle this on their own,
20197 since they use differences between the last scroll position, and
20198 those difference get completely messed up since we are expanding
20199 nodes. This problem should probably be fixed in the scrolling
20200 methods, so they can figure out exactly where they are, but this
20201 will slow things down a little.
20202 * ThemeWin32Classic.cs: Special case for groupboxes with empty
20203 strings, makes nunit-gui look a lot nicer.
20205 2006-11-16 Chris Toshok <toshok@ximian.com>
20207 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20208 the broken multithreaded event handling we have in here. File
20209 this entry under "Why we should move to the new X11 backend".
20211 Any thread can make it into UpdateMessageQueue, which gets events
20212 from the X socket - some of which could belong to hwnds being
20213 managed by a different thread. We can also have multiple threads
20214 in UpdateMessageQueue at the same time, with each one reading from
20215 the X socket. This leads to many problems, with the following
20218 We can't use hwnd.Queue.Enqueue anywhere in here and must use
20221 The MotionNotify compression we do can't work across threads
20222 (without locking the entire queue, perhaps) since we call
20223 hwnd.Queue.Peek, so we just punt and don't compress motion events
20224 unless the owning thread is the one which got the X event.
20226 ConfigureNotify is another fun one, since it modifies the hwnd's
20227 bounds and then enqueues the event. We add a lock to Hwnd which
20228 is held when setting configure_pending to true (and enqueuing the
20231 There is a race wrt the wake socket. we need to make sure that
20232 only 1 thread is waiting on that socket, or else a thread could
20233 sleep waiting for data that never comes. It's difficult (but not
20234 impossible) to make happen, because it seems to require something
20235 like the following:
20237 1. Thread 1 polls on wake_receive
20239 2. poll returns saying there's data to be read on
20242 3. Thread 2 polls on wake_receive and immediately returns
20243 saying there's data to be read.
20245 4. Thread 2 reads the wakeup byte from wake_receive
20247 5. Thread 1 attempts to read the wakeup byte from
20250 6. Thread 2 exits (due to a form closing, perhaps).
20252 7. Thread 1 blocks forever.
20256 Fixing the Expose handling isn't done yet, and the races inherent
20257 in that piece of code are responsible for the drawing mistakes you
20258 see when generating expose events in a MT app (like NPlot). This
20259 one is the likely to be the hardest to bandaid, and it doesn't
20260 appear to cause anything but drawing problems. The other issues
20261 caused apps to exit or hang.
20263 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20264 called from a different thread than the one that should be calling
20267 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20269 2006-11-15 Chris Toshok <toshok@ximian.com>
20271 * Application.cs: null out the context's MainForm when we exit
20272 RunLoop. Fixes a newly checked in unit test as well as the last
20273 ODE from bug #79933.
20275 2006-11-15 Chris Toshok <toshok@ximian.com>
20277 * Form.cs (set_Owner): allow a null value so we can clear the
20279 (Dispose): set all our owned_form's Owner properties to null, and
20280 clear the owned_forms collection.
20281 (WM_CLOSE): clean up this a little bit.. still not right though.
20283 * ApplicationContext.cs: OnMainFormClosed should only call
20284 ExitThreadCore if the main form isn't recreating. Fixes unit
20287 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20291 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20293 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20297 * Hwnd.cs: Add a flag to show a window, but not activate it, to
20298 keep popup window types from stealing focus from the main form
20301 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20303 * MenuAPI.cs: Set above flag to true.
20305 2006-11-15 Chris Toshok <toshok@ximian.com>
20307 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20308 the button being released is not in wParam.
20310 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20312 * Form.cs: Add the released button to MouseEventArgs.Button
20313 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
20316 2006-11-15 Chris Toshok <toshok@ximian.com>
20318 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20319 GetText(). untested because it's unused in our implementation.
20320 Control.Text always caches the text, even if
20321 ControlStyles.CacheText is not set.
20325 2006-11-15 Chris Toshok <toshok@ximian.com>
20329 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20330 message. no hiding, no disposing.
20332 in the WM_CLOSE handler, hide the form if it's modal.
20334 2006-11-15 Chris Toshok <toshok@ximian.com>
20336 * XplatUIX11.cs: use AddExpose instead of sending a message.
20337 fixes textbox border drawing.
20339 2006-11-15 Chris Toshok <toshok@ximian.com>
20341 * PropertyGridView.cs: keep from crashing on mouse move/down when
20342 the property grid is empty.
20344 2006-11-14 Jackson Harper <jackson@ximian.com>
20346 * TextControl.cs: Make PageUp and PageDown more like the MS
20348 * TextBoxBase.cs: When we set the text property position the
20349 cursor at the beginning of the document.
20351 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20353 * Form.cs: if a mdi child's WindowState has changed
20354 before it's creation, it would display wrong control
20357 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
20359 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20362 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20364 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
20365 the window gets to paint its borders even if the window is
20368 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
20369 otherwise the old control buttons would still be painted
20370 if the window gets bigger.
20372 * PaintEventArgs.cs: add an internal method so that the clip
20373 rectangle can be changed.
20375 2006-11-13 Chris Toshok <toshok@ximian.com>
20377 [ fixes bug #79745 ]
20379 * NotifyIcon.cs: lots of cleanup.
20381 * X11Structs.cs: add an enum for XEMBED messages.
20383 * XplatUIX11.cs: reindent one of the giant switch statements, it
20384 was taking up an additional tab stop, and this file is already way
20385 too wide for my laptop's screen.
20387 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
20388 we get it, resize the hwnd to the WMNormalHints max_width/height.
20390 2006-11-13 Jackson Harper <jackson@ximian.com>
20392 * TextBoxBase.cs: Compute the value changes for the mouse wheel
20395 2006-11-13 Chris Toshok <toshok@ximian.com>
20397 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20398 #79898. force a reference to the Region to stick around so the
20399 unmanaged object isn't collected (rendering our handle in the MSG
20402 2006-11-13 Chris Toshok <toshok@ximian.com>
20404 * XplatUIX11.cs: fix #79917 for window managers which support
20406 using XStoreName on the raw utf8, and we need to convert to
20407 COMPOUND_TEXT if it's non-latin1.
20409 2006-11-13 Chris Toshok <toshok@ximian.com>
20411 * Form.cs (set_DialogResult): we need to set closing to false if
20412 we're setting our result to None. fixes bug #79908.
20414 2006-11-13 Jackson Harper <jackson@ximian.com>
20416 * TextControl.cs: When formatting text, compute the adjusted tag
20417 lengths correctly, using FindTag for the end tag instead of trying
20418 to figure it out outselves.
20419 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20420 the item, ItemHeight doesn't work, because trees with large
20421 imagelists use those for their height
20422 * TreeView.cs: ActualItemHeight factors in the image height
20423 - compute left edge of checkboxes correctly
20424 - when expanding/collapsing move the bottom down one pixel, so we
20425 aren't moving part of the node
20427 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
20429 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20430 stack in PaintEventStart so that it won't get disposed by the gc
20431 before reaching PaintEventEnd.
20433 2006-11-13 Jackson Harper <jackson@ximian.com>
20435 * TextBoxBase.cs: Don't select the word if we are on a line with
20437 - We don't need to position the caret on mouse up, since the mouse
20438 move handler should be doing this
20439 - When double clicking a blank line, the caret is advanced to the
20442 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
20444 * TreeNodeCollection.cs: Avoid duplicating indexer code.
20446 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
20448 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20449 Fixes part of bug #79910.
20451 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
20453 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20454 (bug #79903). Some minor string updates to match ms.
20456 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20458 * FileDialog.cs: Don't add an extension if the filename
20459 already ends with that extension.
20461 2006-11-10 Jackson Harper <jackson@ximian.com>
20463 * TreeView.cs: Use the currently highlighted node for the
20464 BeforeSelect event.
20465 * TextBoxBase.cs: There is no need to expand selection on
20467 - CanUndo means 'is there any undo operations', not 'is undo
20468 allowed on this textcontrol. Fixed ClearUndo unit test.
20470 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
20472 * Button.cs: only perform click when button is Selectable (so as
20473 not to activate default buttons when they're disabled)
20475 * Control.cs: Rewrite of the SelectNextControl and related
20476 methods. HandleClick now selects next control if the current one
20479 * Form.cs: OnActivated selects next active control only if Load
20480 has already occurred. If Load hasn't run, there's no point in
20481 selecting here, Load might change the state of controls.
20483 * FocusTest.cs: Tests marked as working again for these fixes
20485 2006-11-10 Chris Toshok <toshok@ximian.com>
20487 * XplatUIX11.cs: a couple of fixes.
20489 - use XInternAtoms with almost all the atoms we need to register,
20490 instead of many, many calls to XInternAtom. should help a bit on
20491 startup time, at the expense of making the code look a little
20494 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20495 isn't reparented (which seems to be a clue that we're running fon
20496 compiz) and they have an Owner form. This fixes the tool windows
20497 in paint.net when running under compiz.
20499 - when setting the opacity of a window, support both the case
20500 where the window has been reparented and also when it hasn't been.
20501 Since compiz/beryl doesn't seem to reparent windows, and these are
20502 the only window managers which support translucency, I'm not sure
20503 why we need the hwnd.reparented case at all.. but leave it in.
20504 now we get translucent windows in paint.net under compiz/beryl.
20506 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20508 * FileDialog.cs: Always return the value for FilterIndex that
20509 was set. Internally convert it to values that make sense.
20511 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20513 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20515 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20517 * Toolbar.cs: Change default value of DropDownArrows to true, the
20518 signature still using false to make it compatible with MS but the
20519 initial value is true. Fixes #79855.
20521 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20523 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20524 only available on Linux.
20526 2006-11-09 Everaldo Canuto <everaldo@simios.org>
20528 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20529 reduce number of calls to redraw method during toolbar creation.
20531 2006-11-09 Mike Kestner <mkestner@novell.com>
20533 * ListView.cs : raise SelectedIndexChanged when an item is selected
20534 programmatically via the Item.Selected property. Gert's nice
20535 ListViewSelectedIndexChanged test fixture now runs clean.
20537 2006-11-09 Mike Kestner <mkestner@novell.com>
20539 * ListView.cs : raise SelectedIndexChanged when a selected item is
20540 removed from the item collection using Remove or RemoveAt.
20542 2006-11-09 Mike Kestner <mkestner@novell.com>
20544 * ListView.cs : raise SelectedIndexChanged once per selected item
20545 for compat with MS. Fixes #79849+.
20547 2006-11-09 Chris Toshok <toshok@ximian.com>
20549 * TabControl.cs: initialize row_count to 0, and set it to 1 when
20550 we need to (if we have any tab pages). Fixes unit test.
20552 2006-11-09 Chris Toshok <toshok@ximian.com>
20554 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20555 width is 0, not 3. Fixes a unit test.
20557 2006-11-09 Mike Kestner <mkestner@novell.com>
20559 * ListView.cs : use Implicit scrollbars so that focus isn't
20560 stolen from the listview when they are clicked. Fixes #79850.
20562 2006-11-09 Chris Toshok <toshok@ximian.com>
20564 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20565 have a root item. Fixes #79879.
20567 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
20571 - An ArgumentException is now thrown if a wrong filter
20572 is applied (matches ms). The previous filter doesn't change
20573 anymore if an exception is thrown.
20574 - Changing the FileName property also affects FileNames
20575 * ColorDialog.cs: The length of the CustomColors array is always
20576 16. It doesn't matter if we use a smaller array or null to update
20577 or change the custom colors property.
20578 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20579 for RootFolder if we get a undefined value.
20581 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20583 * StatusBarPanel.cs:
20584 - Width is set to MinWidth if Width is smaller than
20585 MinWidth. Fixes #79842.
20586 - MinWidth now always overrides Width (MSDN says MinWidth
20587 is set to Width when AutoSize = None, but they do not
20589 - Style has now the the correct default value.
20591 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20594 - The control is completely invalidated on
20595 Got/LostFocus to draw the focus rectangle correctly.
20596 - When AutoSize then height is always 45 (width for
20597 vertical controls).
20599 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20600 on the mouse when moved and it doesn't move when grabbed
20601 until the mouse moves as well. Also fixed some wrong
20602 calculations when clicking on the thumb (control thought
20603 click was outside of thumb and didn't grab it).
20604 Fixes some of the issues in #79718.
20606 2006-11-08 Everaldo Canuto <everaldo@simios.org>
20608 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20610 2006-11-08 Chris Toshok <toshok@ximian.com>
20612 * PropertyGridView.cs: only call ToggleValue if the item is not
20615 2006-11-08 Jackson Harper <jackson@ximian.com>
20617 * TextBoxBase.cs: The RichTextBox and textbox have very different
20618 word selection methods. Implement the textbox's simple word
20619 selection here, and let the RichTextBox override and provide it's
20621 - Don't do extra selection on mouseup
20622 * RichTextBox.cs: Use the documents word selection algorithm, I
20623 think ideally, this function will be pulled into the
20624 RichTextBox.cs code someday.
20626 2006-11-08 Chris Toshok <toshok@ximian.com>
20628 * RootGridEntry.cs: new class to represent GridItemType.Root.
20630 * CategoryGridEntry.cs: reformat, and add boilerplate.
20632 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20633 returns the UI parent anyway, and we need special handling to
20634 implement the GetTarget method in the face of it. Also, implement
20637 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
20638 a root grid item, and use that instead of PropertyGrid.grid_items.
20639 Also, make use of TypeConverters (and add limitted support for
20640 ICustomTypeDescriptors) when initially populating the grid.
20641 Arrays now show up more or less properly.
20643 2006-11-08 Chris Toshok <toshok@ximian.com>
20645 * Application.cs: set the modal dialog to non modal after we close
20646 it. Fixes bug #79866.
20648 2006-11-08 Jackson Harper <jackson@ximian.com>
20650 * TextControl.cs: When combining lines carry over the line end
20651 style from the end line.
20652 - Invalidate the selected area when setting it, if it is visible.
20653 * TextBoxBase.cs: Only rich text box can do full line selects.
20654 - Make sure to set the cursor position when there is a click,
20655 otherwise two clicks in separate areas could cause a large chunk
20658 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20660 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
20663 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20665 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
20666 time. Remove tooltips when ToolButton click events. Fixes #79856.
20668 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20670 * MenuAPI.cs: Ignore right click for menu actions and fixes
20671 menu border when clicked. Fixes #79846.
20673 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20675 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
20676 MouseState after create wParam for message, this fixes mouse button
20677 equal none in mouse up events.
20679 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
20681 * Control.cs : Focus() now calls Select to set the Container's
20682 Active Control and to give it focus. To avoid infinite recursion
20683 (because ActiveControl also calls Focus at one point), a check
20684 is made in Focus with the help of a new internal variable
20687 2006-11-07 Mike Kestner <mkestner@novell.com>
20689 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
20690 if there's a selection. Fixes #79849.
20692 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
20694 * PropertyGrid.cs: Avoid fixed height of help description label.
20695 Fixes part of bug #79829.
20697 2006-11-07 Chris Toshok <toshok@ximian.com>
20699 * XplatUIX11.cs: fix #79790 again, by using the
20700 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
20702 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20704 * ToolBar.cs: Fix left click checking.
20706 2006-11-07 Chris Toshok <toshok@ximian.com>
20708 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
20710 2006-11-07 Chris Toshok <toshok@ximian.com>
20712 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
20713 PropertyManager unit tests.
20715 * PropertyManager.cs: make property_name internal.
20717 2006-11-07 Chris Toshok <toshok@ximian.com>
20719 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
20720 pass a unit test. Also, don't set image_index to anything in
20721 response to setting the ImageList property.
20723 2006-11-07 Everaldo Canuto <everaldo@simios.org>
20725 * ToolBar.cs: Ignore click events when mouse button is not a
20726 left button, only accepts other button for dropdown menus.
20729 2006-11-07 Chris Toshok <toshok@ximian.com>
20731 * DataGrid.cs: make the back and parent row buttons a little less
20734 2006-11-07 Jackson Harper <jackson@ximian.com>
20736 * TextBoxBase.cs: When converting to Text don't put line breaks in
20737 for soft line breaks.
20738 * TextControl.cs: There is an initial "fake" line in the document,
20739 this is now a soft break line, so that an extra line feed doesn't
20740 get added to the end of documents.
20742 2006-11-07 Chris Toshok <toshok@ximian.com>
20746 * CurrencyManager.cs: if the list is readonly, don't bother
20747 checking if IBindingList.AllowNew is true.
20749 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
20750 for non-DataRowView datasources.. or rather, make it not crash.
20751 (DataGridPaintRelationRow): make sure we limit the row painting to
20752 the area not covered by the row header, and make our cell width at
20753 least large enough to cover the relation area. This allows grids
20754 that have relations but no rows to render correctly.
20755 (DataGridPaintRowContents): same type of changes here.
20756 (SetDataSource): move back to always calling
20757 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
20758 navigating back through relations.
20759 (HitTest): handle the case where we have no cells but have
20760 relations. Right now we generate a hit in cell 0 of whatever the
20761 row is, not sure if this is strictly correct, but it works for our
20764 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
20765 bother doing anything.
20767 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
20769 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
20770 early version of StatusStrip. Not responsible for eaten
20771 application or firstborn children.
20773 2006-11-06 Chris Toshok <toshok@ximian.com>
20775 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
20776 call GetTabRect with a -1 index. Fixes #79847.
20778 2006-11-06 Jackson Harper <jackson@ximian.com>
20780 * TreeNodeCollection.cs: Update scrollbars after clearing.
20782 2006-11-06 Chris Toshok <toshok@ximian.com>
20784 * NumericUpDown.cs: fix the ToString method for some unit test
20787 2006-11-06 Chris Toshok <toshok@ximian.com>
20790 - set the initial SelectedGridItem if we can.
20792 - Exclude non-mergable properties only if we're merging > 1
20793 object. Merging 1 object isn't really merging, obviously.
20795 - Handle PropertySort.NoSort just like Alphabetical, which is
20796 wrong of course, but at least gets things on the screen.
20798 * PropertyGridView.cs:
20799 - Add method "FindFirstItem" which finds the first property grid
20800 item, so we can select it by default.
20802 - make use of GridEntry.CanResetValue.
20804 - Don't call RedrawBelowItemOnExpansion here anymore, the
20805 individual GridEntry's will do that.
20807 - Remove the ITypeDescriptorContextImpl internal class.
20810 - this class needs to implement ITypeDescriptorContext, as it's
20811 what MS's PropertyDescriptorGridEntry does, which means we can
20812 remove the ITypeDescriptorContextImpl internal class from
20813 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
20815 - keep a reference to our PropertyGridView, and move the call to
20816 RedrawBelowItemOnExpansion here from PGV. This means
20817 programmaticly setting Expanded actually does something visible.
20819 - add a CanResetValue() function which takes into account our
20820 possibly multiple "selected_objects" in the merged case. Shifting
20821 PropertyGridView to use this method fixes another unreported
20822 crasher found running the test for #79829.
20824 - when Top or Bounds is updated, make sure the PropertyGridTextBox
20825 is updated to reflect this.
20827 * CategoryGridEntry.cs: the ctor takes the PGV now.
20829 2006-11-06 Jackson Harper <jackson@ximian.com>
20831 * TextControl.cs: These are 1 based.
20832 * TextBoxBase.cs: When setting the selected text, don't change the
20833 selected text tags, this is done by ReplaceText, just position the
20834 cursor at the end of the new text.
20836 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20838 * ListView.cs: Allow label edit only when, when LabelEdit is
20841 2006-11-06 Jackson Harper <jackson@ximian.com>
20843 * TextControl.cs: If a suitable wrapping position isn't found,
20844 just wrap right in the middle of a word.
20846 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
20848 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
20851 2006-11-06 Jackson Harper <jackson@ximian.com>
20853 * TreeView.cs: Can't use the VisibleCount property when setting
20854 scrollbar heights, because this doesn't take into account whether
20855 or not the horz scrollbar just came visible.
20857 2006-11-05 Everaldo Canuto <everaldo@simios.org>
20859 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
20860 activated. Fixes #79369, #79832.
20862 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
20864 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
20865 had to remove support for links that point to a directory. FileInfo
20866 returns no usefull information (means, the directory they point to)
20867 for such links. Replaced some empty string ("") with String.Empty.
20869 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20871 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
20872 NullReferenceException when attempting to remove node that is not in
20873 collection. Throw NullReferenceException when null is passed to
20874 Remove. Allow first element of the collection to be removed. Fixes
20875 bug #79831. In GetEnumerator ().Current return null if positioned
20876 before the first element of the collection. In GetEnumerator ().Reset,
20877 position before first element of the collection.
20879 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
20881 * PropertyGrid.cs: To match MS, remove default title and description
20882 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
20885 2006-11-04 Chris Toshok <toshok@ximian.com>
20887 * Theme.cs: add a Clamp method, just for kicks.
20889 * ThemeWin32Classic.cs: clamp all color components to [0..255].
20891 2006-11-04 Chris Toshok <toshok@ximian.com>
20893 * Form.cs: if the form isn't visible, Close() does nothing.
20895 2006-11-03 Chris Toshok <toshok@ximian.com>
20897 * Form.cs (Close): if the form is modal, don't Dispose of it, only
20899 (WndProc): don't Dispose after handling the WM_CLOSE message.
20901 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
20902 them as such, instead of using casts from Control to Form. Also,
20903 don't Dispose of the modal dialog when we fall out of the loop -
20904 Close() it instead.
20908 2006-11-03 Chris Toshok <toshok@ximian.com>
20910 * Control.cs (Dispose): only go through the dispose thing if we're
20911 @disposing, and we haven't already been disposed. Fixes bug
20914 * Form.cs: no reason to call "base.Dispose()" here instead of
20917 2006-11-03 Mike Kestner <mkestner@novell.com>
20919 * ComboBox.cs : use ToString instead of casts in AddItem for
20920 sorting functionality. Fixes #79812.
20922 2006-11-03 Chris Toshok <toshok@ximian.com>
20924 * Application.cs: pave the way for actually using the thread
20925 exception dialog. it's ifdefed out at the moment.
20927 2006-11-03 Chris Toshok <toshok@ximian.com>
20929 * ThreadExceptionDialog.cs: until we get a better layout, actually
20930 hide the details textbox and label when we shouldn't see them.
20932 2006-11-03 Jackson Harper <jackson@ximian.com>
20934 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
20935 multiline textboxes anymore. This method also determines the
20936 width/height of a textboxes canvas area.
20937 - Sorta a revert of the last patch. For multiline just position
20938 the controls, then bail. This way the scrollbar width won't be
20941 2006-11-03 Everaldo Canuto <everaldo@simios.org>
20943 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
20944 it dont need. Fixes #79537.
20946 2006-11-02 Jackson Harper <jackson@ximian.com>
20948 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
20949 send the status after firing the DndOver event.
20951 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20953 * TrackBar.cs: Now orientation only switches height / width if
20954 the control's handle is created (Win32 does it like this). Also
20955 fixed a typo in ToString() for a test to pass, changed the
20956 exception thrown in set_LargeChange and set_SmallChange to
20957 match Win32 behaviour, and added TrackBar tests to the unit
20960 2006-11-02 Chris Toshok <toshok@ximian.com>
20962 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
20963 not _NET_WM_STATE_NO_TASKBAR.
20965 2006-11-02 Jackson Harper <jackson@ximian.com>
20967 * TextControl.cs: Increment count by one, since in the update view
20970 2006-11-02 Jackson Harper <jackson@ximian.com>
20972 * TextBoxBase.cs: Use client rectangle not bounds for checking if
20973 the mouse is in the client rectangle (duh).
20975 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
20977 * TrackBar.cs: Fixed trackbar jumping around when clicking
20978 on it - the trackbar was not detecting correctly at which
20979 side of the thumb the click was done. (fixes #79718)
20981 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20983 * ListBox.cs: scroll visible area when change SelectedIndex to
20984 a non visible area. Fixes #79481.
20986 2006-11-01 Jackson Harper <jackson@ximian.com>
20988 * TextControl.cs: When replacing the selection move the selection
20989 start/end/anchor to the end of the new text.
20991 2006-11-01 Jackson Harper <jackson@ximian.com>
20993 * XplatUIWin32.cs: When setting the parent change the controls
20994 visibility to it's visibility flag, not to it's old parents
20995 visibility (.Visible walks the parent chain).
20997 2006-11-01 Chris Toshok <toshok@ximian.com>
20999 * XplatUIX11.cs: revert the #79790 fix, as the simple.
21000 XSetTransientForHint fix breaks paint .net's tool windows. more
21001 work needed for that one.
21003 2006-11-01 Chris Toshok <toshok@ximian.com>
21005 * ScrollBar.cs: throw ArgumentException instead of Exception in
21006 LargeChange/SmallChange setters. fixes unit tests.
21008 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
21010 * ContainerControl.cs: reverted rev.67183 (which was itself
21011 a reversion of rev.66853... eh).
21013 * Control.cs: Fixes Reflector hang by changing Focus() call
21014 to what it was before rev.66643 (calling Select() here sets
21015 ActiveControl, which in some situations calls back Focus and
21016 eventually does a stack overflow). Temp fix.
21017 Changes to GetNextControl() to not look for children to select when
21018 parent cannot be selectable (so it looks for siblings instead)
21020 2006-10-31 Mike Kestner <mkestner@novell.com>
21022 * CheckedListBox.cs : off by one error in returned index from
21023 ObjectCollection.Add. Fixes #79758.
21025 2006-10-31 Chris Toshok <toshok@ximian.com>
21027 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21028 calls for the textbox/spinner, to keep from recursing to the point
21029 where we crash. Fixes #79760.
21031 2006-10-31 Chris Toshok <toshok@ximian.com>
21033 * ListControl.cs (set_SelectedValue): don't throw exceptions on
21034 null/"" value, just return. matches ms's behavior and fixes some
21037 2006-10-31 Chris Toshok <toshok@ximian.com>
21039 * Control.cs (set_Capture): make a logic a little easier to
21042 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21043 if it's being destroyed. A necessary fix surely, but a bandaid
21044 also, to fix the stuck capture problem in bug #78413.
21046 2006-10-31 Chris Toshok <toshok@ximian.com>
21048 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21049 convention of clearing hwnd.ClientRect when we set the
21050 width/height (so it'll be recalculated by Hwnd).
21052 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
21054 * ContainerControl.cs: reversed Contains check from
21055 ActiveControl due to hanging problems. This fix
21056 partly regresses #79667 (button does not have
21057 initial focus), so this might be a symptom for
21058 a larger parenting problem (set_ActiveControl
21059 is being called but the child control does
21060 not have the parent set yet?)
21062 2006-10-31 Mike Kestner <mkestner@novell.com>
21064 * MenuAPI.cs : fix keynav when menu is click activated.
21066 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
21068 * ToolStrip*: Version 0.2.
21070 * MenuStrip.cs: Version 0.1.
21072 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21074 2006-10-30 Chris Toshok <toshok@ximian.com>
21076 [ fixes the oversized notify icon issue in bug #79745 ]
21078 * NotifyIcon.cs: scale the icon down to the size we're given by
21079 the XplatUI layer (this would be faster if we did it once instead
21080 of whenever we paint..) Also, remove the WM_NCPAINT handling,
21081 since it's never invoked.
21083 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21084 pixels high by default, so let's hardcode our systray icon to that
21085 size. The SYSTEM_TRAY protocol should really have a way for
21086 client apps to query for the correct icon size.. but oh well. A
21087 couple of patches to deal with the screwy client_window ==
21088 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21089 instance, and also make sure we don't XSelectInput twice).
21091 2006-10-30 Chris Toshok <toshok@ximian.com>
21093 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21094 recreating forms. Control recreation is the bane of my existence.
21095 Fix it in a way that keeps everyone happy.
21097 2006-10-30 Chris Toshok <toshok@ximian.com>
21099 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21100 just non-CHILD ones. otherwise sometimes scrollbars end up with
21101 client_windows not being resized to the proper size (ReportBuilder
21102 shows this extremely well).
21104 2006-10-30 Chris Toshok <toshok@ximian.com>
21106 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21107 for non-WS_EX_APPWINDOW windows. This is what keeps them from
21108 showing up in the gnome taskbar. Fixes bug #79790.
21110 2006-10-30 Chris Toshok <toshok@ximian.com>
21112 * ApplicationContext.cs: guard against a NRE.
21114 * Application.cs: null out the old MainForm for the context, so we
21115 don't try to use it again once it's disposed. Fixes bug #79783.
21117 2006-10-30 Chris Toshok <toshok@ximian.com>
21119 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21120 BindingContext, set the data source directly, otherwise do the
21121 lazy approach - the actual ListManager will be created when we get
21122 a BindingContext. Fixes bug #79700.
21124 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21126 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21127 XplatUIX11.cs: Remove old 2 parameter SetVisible.
21129 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21131 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21133 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21134 of SetVisible that allows a window to be shown, but not activated.
21135 This is needed on Windows for MenuStrip, and can probably be used
21136 with MainMenu and ComboBox to fix the focus stealing issues on
21139 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21141 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
21143 * PictureBox.cs: Fix the output of the ToString method.
21145 2006-10-29 Chris Toshok <toshok@ximian.com>
21147 * Control.cs (get_TopLevelControl): fix bug #79781.
21149 2006-10-29 Chris Toshok <toshok@ximian.com>
21151 * ListControl.cs (set_DataSource): throw Exception here, not
21152 ArgumentException, to match MS behavior.
21154 2006-10-29 Chris Toshok <toshok@ximian.com>
21156 * Form.cs: remove the try-catch's around calls to GetWindowState.
21157 We can just check the return value.
21159 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21162 * XplatUI.cs: Add note about additional return value for
21165 2006-10-29 Chris Toshok <toshok@ximian.com>
21167 * Control.cs (CreateHandle): when we create our handle, we also
21168 create the handles of our child controls. Fixes one of the
21169 Control unit tests (CH11).
21171 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21173 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21175 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21177 * ThemeClearlooks.cs: A little speedup.
21179 2006-10-27 Chris Toshok <toshok@ximian.com>
21181 * Control.cs: implement Control.FromChildHandle in a way that
21182 matches the docs (and fixes the failed test.)
21184 2006-10-27 Chris Toshok <toshok@ximian.com>
21186 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21189 * DataGrid.cs: implement ResetForeColor such that the tests
21192 2006-10-27 Chris Toshok <toshok@ximian.com>
21194 * ToolBarButton.cs: setting text/tooltiptext to null results in it
21195 being set to "". Fixes bug #79759.
21197 2006-10-27 Jackson Harper <jackson@ximian.com>
21199 * TextControl.cs: We need to clear the entire selection area when
21200 setting the start, otherwise multiline selections are still
21203 2006-10-26 Chris Toshok <toshok@ximian.com>
21205 * PropertyGridView.cs:
21207 - ifdef all the code specific to the double
21208 buffer case, and provide some alternatives in the non-doublebuffer
21209 code, which makes heavy use of XplatUI.ScrollWindow to move things
21210 around without having to invalidate (and cause flicker). There
21211 are still some drawing problems in the non-doublebuffered case, so
21212 DOUBLEBUFFER is defined by default.
21214 - Fix the way dropdowns are handled. now we explicitly watch for
21215 the events which might cause the dropdown to close, and break out
21216 of the nested event loop there. This gets rid of all Capture
21217 code, at the expense of the Msg special casing. Seems to work,
21218 though, and fixes bug #79743.
21220 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
21221 * Control.cs: SetIsRecreating now recreates implicitly added
21222 child controls as well. Finally fixes #79629. The flag passed to
21223 SetIsRecreating has also been removed since it wasn't used.
21225 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21227 * PageSetupDialog.cs: Clean some code, fix some bits,
21228 add some checks, and add a printer sub-dialog.
21230 2006-10-26 Chris Toshok <toshok@ximian.com>
21232 * PropertyGrid.cs: make set_SelectedObject call
21233 set_SelectedObjects, and move the duplicate logic to the
21234 SelectedObjects setter. Also, raise SelectedObjectsChanged.
21236 * PropertyGridView.cs: hide the textbox when we get a
21237 SelectedObjectsChanged event.
21241 2006-10-26 Chris Toshok <toshok@ximian.com>
21243 * PropertyGridView.cs: deal with the type converter not supporting
21244 GetStandardValues() or GetStandardValues() returning null, which
21245 is does in the default case. Fixes #79742.
21247 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21249 * CheckedListBox.cs: nunit no longer crashes when selecting
21250 Project/Edit menu option
21252 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21254 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21255 is no menu selected. fixes #79739
21257 2006-10-25 Chris Toshok <toshok@ximian.com>
21259 * PropertyGridView.cs: factor out the splitter invalidation code
21260 into the SplitterPercent setter, and for kicks implement the
21261 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21262 amount in either direction.
21264 2006-10-25 Chris Toshok <toshok@ximian.com>
21266 * PropertyGridView.cs: do some cleanup of the brush used to draw
21267 text - read only fields should be grayed out. not sure how to do
21268 this with the textbox, though. but the textbox's should also be
21269 readonly now at least. Also, hide/show the textbox when resizing
21272 * CursorConverter.cs: use System.Reflection when getting the
21273 properties of Cursors, as TypeDescriptor.GetProperties isn't
21274 returning static properties.
21276 2006-10-25 Chris Toshok <toshok@ximian.com>
21278 * PropertyGridView.cs: factor out the up/down handling, and reuse
21279 it for page up/down. also add End/Home support.
21281 2006-10-25 Chris Toshok <toshok@ximian.com>
21283 * PropertyGridView.cs:
21285 - ensure the selected grid item is visible in the scrolled area,
21288 - fix Keys.Down handling when you're on the last item in the
21291 2006-10-25 Mike Kestner <mkestner@novell.com>
21293 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
21294 clicks too. Fixes #79725.
21296 2006-10-24 Chris Toshok <toshok@ximian.com>
21298 * PropertyGrid.cs: use property.Converter instead of
21299 TypeDescriptor.GetConverter(property.PropertyType), so we catch
21300 TypeConverters declared on the property as well as on the
21301 PropertyType. Fixes bug #79678.
21303 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
21305 * MimeIcon.cs, Mime.cs:
21306 Fallback to the default platform handler if no shared mime info
21307 stuff exists (fixes #79693).
21309 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21310 * ContainerControl.cs: Incorrect contains check in ActiveControl
21311 from previous fix (duh).
21313 2006-10-20 Chris Toshok <toshok@ximian.com>
21315 * PropertyGridView.cs: the dropdown should be MIN(number of items
21316 in list, 15). Fixes #79551.
21318 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21319 Fixes #79384, #79394, #79652, #79667
21322 - Modal windows are now destroyed in the proper order for windows
21324 * ContainerControl.cs:
21326 - ActiveControl setter has more conditions on when to return:
21327 - if we're reselecting the active control, but it actually
21328 didn't have focus (window hidden or some such), it runs
21329 - if the active control being selected doesn't actually
21330 exist in the container, it returns
21334 - The ShowDialog now gets the current form as the owner when
21335 invoking without parameters, and correctly activates the owner
21340 - MessageBox now catches the Escape key to exit
21342 2006-10-20 Chris Toshok <toshok@ximian.com>
21344 * PropertyGridView.cs: fix a number of issues (bug #78565, and
21345 most of bug #79676):
21347 - you can navigate around the property grid with the arrow keys.
21349 - the dropdown is sized properly when the pg has a vertical
21352 - fix the indentation for subentries, and properly select the
21355 - fix the gray bar's drawing (only draw it to the last element,
21356 not for the height of the control. Also make sure we draw that
21357 last horizontal grid line.
21359 - use the same mechanism the datagrid uses wrt the editing textbox
21360 when scrolling/resizing/etc. Namely, we hide it first, do the
21361 operation, then show it again (if it's still visible).
21363 - aggressively remove a lot of unnecessary refreshes (and also
21364 calls to Invalidate(). call more limited variants, and only redraw
21369 - when we're populating the merged collection, fill in the UI
21370 parent with either the passed in item, or the category item we
21373 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21375 * GridItem.cs: drop some fully qualified names.
21377 * GridEntry.cs: add a "UIParent", which is basically the parent
21380 * GridItemCollection.cs: add an IndexOf method.
21382 2006-10-20 Mike Kestner <mkestner@novell.com>
21384 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
21385 a working win32 NC invalidation mechanism, we can't invalidate
21386 menus. [Fixes #79705]
21388 2006-10-20 Mike Kestner <mkestner@novell.com>
21390 * ListBox.cs : don't update the VScrollbar if the list is empty,
21391 just hide it. [Fixes #79692]
21393 2006-10-20 Jackson Harper <jackson@ximian.com>
21395 * RichTextBox.cs: Handle some special chars better, and don't skip
21396 the entire group when we encounter a special char that we don't
21399 2006-10-18 Chris Toshok <toshok@ximian.com>
21401 * PropertyGridView.cs: address a number of issues from bug #79676,
21402 mostly of the cosmetic variety.
21404 - The highlight rectangle for indented items not extends all the
21407 - Indented items aren't indented so much.
21409 - the dropdown is properly sized width-wise if the pg has a
21410 vertical scrollbar.
21412 2006-10-18 Chris Toshok <toshok@ximian.com>
21414 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21415 systray stuff is rather convoluted to begin with.
21417 systray icons are a single window for some reason (that I haven't
21418 figured out yet), and for them, client_window == whole_window.
21419 Given the way the tests are structured elsewhere to determine
21420 which paints are pending (client vs. nc), that situation will
21421 always yield PAINT, not NCPAINT. So, if we have a pending
21422 nc_expose and no pending expose, remove the hwnd from the paint
21423 queue, and also set nc_expose_pending to false, to keep us from
21424 blocking further expose's adding the hwnd to the paint queue.
21426 phew. like i said, a rather convoluted change. Fixes the
21427 notifyicon repaint issues in bug #79645.
21429 2006-10-18 Chris Toshok <toshok@ximian.com>
21431 * Form.cs: when getting the backcolor of the form, don't get
21432 base.BackColor, as this allows parents to influence the background
21433 color. This breaks mdi forms. Instead, if the background_color
21434 is empty, return the default.
21436 2006-10-18 Chris Toshok <toshok@ximian.com>
21438 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21439 to being private instead of internal static.
21441 * Control.cs: remove all the stupid ParentWaitingOnRecreation
21442 crap, it wasn't working for more deeply nested controls anyway,
21443 and we already have the is_recreating flag - use that instead.
21444 Before calling DestroyHandle in RecreateHandle, recurse through
21445 the control tree setting it to true. this returns the recreate
21446 code to much of its original simplicity, while now guaranteeing we
21447 actually recreate everything we're supposed to. This change gets
21448 fyireporting actually showing mdi children.
21450 2006-10-17 Chris Toshok <toshok@ximian.com>
21452 * Form.cs: remove some debug spew, and collapse some duplicate
21453 code at the end of SetClientSizeCore.
21456 - add some more debug spew here too wrt Destroy handling.
21457 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21458 in Control's handling of WM_DESTROY.
21459 - Remove the handling of zombie window DestroyNotifies from the
21460 event loop - we don't need it. Now the only DestroyNotifies we
21461 actually handle are ones generated by X.
21462 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21463 match gtk's (functioning) handling of this. This keep metacity
21464 from leaving droppings in the form of wm borders with no window
21465 contents all over the place.
21468 - add a bunch of debug spew wrt control recreation.
21469 - fix a bug where we weren't tracking Visible properly on
21471 - fixed the WM_PAINT double buffer handling to support re-entrant
21472 calls (yes, i know it's gross, but it's happening to us).
21474 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21475 * ThemeWin32Classic.cs: changed drawing of selected days
21476 to make them look better.
21478 2006-10-16 Chris Toshok <toshok@ximian.com>
21480 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21481 drawing_stack. Nuke the ClientDC/NonClientDC properties.
21483 * XplatUIX11.cs: move away from using hwnd.client_dc and
21484 hwnd.non_client_dc and on to a stack of dc's (and in window's
21485 case, PAINTSTRUCT's), so we can deal with nested Paint calls
21486 without puking or not disposing of Graphics objects.
21488 * XplatUIOSX.cs: same.
21490 * XplatUIWin32.cs: same.
21492 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21494 * FileDialog.cs: Don't call on_directory_changed inside
21495 OnSelectedIndexChanged (it changes the SelectedIndex too).
21496 Instead move it to OnSelectionChangeCommitted.
21498 2006-10-13 Chris Toshok <toshok@ximian.com>
21500 * XplatUIX11.cs: more Destroy work. the current code does the
21501 following things, in order:
21503 1. Enumerates all handles of all controls at or below the one
21504 being destroyed, in pre-order. As it is doing this, it marks the
21505 handles as zombie and clears all references to them.
21507 2. calls XDestroyWindow on the window passed in.
21509 3. SendMessage's WM_DESTROY to all he handles in the accumulated
21512 2006-10-13 Chris Toshok <toshok@ximian.com>
21514 * XplatUIX11.cs: set hwnd.zombie to true before calling
21515 SendMessage (WM_DESTROY). this keeps us from marking the new
21516 window a zombie, and also keeps us from calling sendmessage at
21519 2006-10-13 Jackson Harper <jackson@ximian.com>
21521 * TextControl.cs: Do not show the caret and selection at the same
21522 time. Reduces ugliness by 35%.
21524 2006-10-13 Chris Toshok <toshok@ximian.com>
21526 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21527 zombie after we do the recursive call, so we actually do call
21528 SendMessage on the children controls.
21529 (GetMessage): if we find a pending paint event for a zombie hwnd,
21530 remove the hwnd from the paint queue, or else it will always be
21531 there (and we'll effectively loop infinitely)
21533 2006-10-13 Mike Kestner <mkestner@novell.com>
21535 * MenuItem.cs : add Selected format under keynav too.
21538 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
21540 * PropertyGrid.cs: Fixed some NRE's and small difference between our
21541 implementation and that of MS.
21543 2006-10-13 Chris Toshok <toshok@ximian.com>
21545 * Control.cs (OnInvalidated) only futz with the invalid_region if
21546 the control is double buffered. this fixes the apparent hang in
21547 the ListView unit tests. Someone needs to make the
21548 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21550 2006-10-13 Chris Toshok <toshok@ximian.com>
21552 * PropertyGridView.cs:
21554 - do a little refactoring so that only one place calls
21555 dropdown_form.Hide, and that is CloseDropDown. make everywhere
21556 else call that. Also make it Refresh, since there are redraw bugs
21557 otherwise (we should take a look at that...)
21559 - do a little more refactoring work to share the body of code
21560 involved with the drop down. it was duplicated in the code
21561 dealing with the listbox handling and in the code dealing with the
21564 - add a Capture to the dropdown form's control once it's
21565 displayed, and add a MouseDown handler that checks to make sure
21566 the position is inside the control. If it's not, close the
21567 dropdown. This fixes #78190.
21569 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21570 if the value is different than the initial value.
21572 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
21574 * Control.cs: see #78650
21575 - Fixed GetNextControl for several cases:
21576 - Changed FindFlatForward to return
21577 correct sibling control when more than one
21578 control has same TabIndex as the currently
21580 - Changed FindFlatBackward to loop children
21581 from last to first and apply same logic as in
21583 - Changed FindControlForward to search for
21584 children when control is not a container
21585 but has children, or search for siblings if
21586 control is a container...
21587 - Changed FindControlBackward to continue
21588 searching for child controls when hitting
21591 - Fixed Focus method to update ActiveControl
21592 (FocusTest.FocusSetsActive failure)
21595 - Focus rectangle now refreshes when gaining
21597 - Removed grab for Tab key on IsInputKey that
21598 was keeping tab navigation from working (#78650)
21600 2006-10-13 Chris Toshok <toshok@ximian.com>
21602 * PropertyGridView.cs:
21603 - Rewrite SetPropertyValue to loop over SelectedGridItem's
21606 - Deal with GridItem.Value == null a few places.
21609 - replace the PopulateGridItemCollection with a pair of methods
21610 which compute the intersection of all the properties in the
21611 SelectedObjects array. Fixes #79615.
21613 - Throw ArgumentException from set_SelectedObjects if there's a
21616 - Add GetTarget method which can be used to traverse up the
21617 GridItem.Parent chain. It depends on the assumption that
21618 selected_objects for different GridEntries are always in the same
21619 order (a safe assumption). Use this method and loop over all the
21620 selected objects in the entry when calling RemoveValueChanged and
21623 * GridEntry.cs: Make this handle multiple selected objects.
21624 .Value returns null if not all the selected objects share the same
21627 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
21628 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21629 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21630 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21631 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21632 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21633 add additional functionality.
21635 2006-10-12 Mike Kestner <mkestner@novell.com>
21637 * ErrorProvider.cs : new ToolTipWindow ctor sig.
21638 * HelpProvider.cs : new ToolTipWindow ctor sig.
21639 * ToolTip.cs : remove ToolTip param from Window sig since it is
21641 * ToolBar.cs : add tooltip support. Fixes #79565.
21643 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21645 * ComboBox.cs: move the events in set_SelectedIndex to
21646 after the call to HighlightIndex in order to avoid
21647 possible recursion and subsequent problems with the call
21648 to HighlightIndex and include a range check in
21649 set_HighlightIndex. Fixes #79588
21651 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21653 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
21654 to ui thread's settings instead of sunday.
21655 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
21657 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21659 * DateTimePicker.cs
21661 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
21662 and implement missing functionality (selecting different parts
21663 of the date and edit them individually with the keyboard).
21665 2006-10-11 Chris Toshok <toshok@ximian.com>
21667 * Control.cs (OnInvalidated): fix NRE relating to last change.
21669 2006-10-11 Chris Toshok <toshok@ximian.com>
21671 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
21672 atoms in _NET_WM_STATE here if the window is maximized. We need
21673 to do this because we're *replacing* the existing _NET_WM_STATE
21674 property, so those atoms will be lost otherwise, and any further
21675 call to GetWindowState will return Normal for a window which is
21676 actually maximized. Fixes #79338.
21678 2006-10-11 Jackson Harper <jackson@ximian.com>
21680 * TextControl.cs: Special case for setting selection end to
21681 selection start, we basically kill the anchor.
21682 - some todo comments.
21684 2006-10-11 Chris Toshok <toshok@ximian.com>
21686 * Control.cs: switch to using an "invalid_region" to track which
21687 parts of the image buffer need updating. This is more code than
21688 the simple fix from r66532. That version just attempted to always
21689 fill the entire buffer on redraw, which turns out to be
21690 inefficient when invalidating small rectangles. This version
21691 simply adds the invalid rectangle to the invalid region. When we
21692 get any WM_PAINT message we see if it can be filled using the
21693 image buffer, and if it can't (if the paint event's clip rectangle
21694 is visible in the invalid region) we first fill the image buffer.
21695 So, the image buffer is still a cache, we just fill it lazily.
21697 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
21698 need it any longer.
21700 2006-10-11 Chris Toshok <toshok@ximian.com>
21702 * XplatUIX11.cs (SetWindowPos): we need to update both position as
21703 well as size after calling XMoveResizeWindow. This keeps us from
21704 ignoring future SetWindowPos calls. Fixes the disappearing
21705 DateTimePicker in the ToolBarDockExample from bug #72499.
21707 2006-10-11 Chris Toshok <toshok@ximian.com>
21709 * TextBoxBase.cs: reorder things a bit when it comes to
21710 resizing-causing-recalculation. we were recalculating the
21711 document when our position was changed, which shouldn't happen.
21712 We only care about size changes. Clear up some more redundant
21713 recalculation calls while I'm at it. This makes the toolbar dock
21714 example snappy when you're just dragging toolbars around (since it
21715 causes a relayout whenever you move one.)
21717 2006-10-11 Chris Toshok <toshok@ximian.com>
21719 * ToolBarButton.cs (get_Rectangle): this only returns
21720 Rectangle.Empty if Visible == false, or Parent == null.
21721 Parent.Visible doesn't matter.
21723 2006-10-10 Chris Toshok <toshok@ximian.com>
21725 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
21726 by .net 1.1, so switch to an internal method instead.
21728 2006-10-10 Chris Toshok <toshok@ximian.com>
21730 * Control.cs (WM_PAINT): when a control is double buffered we draw
21731 initially to the ImageBuffer and then copy from there. But when a
21732 parent control which has child controls is double buffered, the
21733 initial drawing doesn't encompass the entire ClientRectangle of
21734 the parent control, so we end up with uninitialized bits (this is
21735 easily seen by dragging the top toolbar in
21736 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
21737 manually set the ClipRectangle of the paint_event (only the one we
21738 use to populate the ImageBuffer) to ClientRectangle. Fixes more
21739 of the nastiness in bug #72499.
21741 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
21742 which we use in Control.cs's WM_PAINT handling.
21744 2006-10-10 Jackson Harper <jackson@ximian.com>
21746 * TextBoxBase.cs: Finish off the autoscrolling stuff.
21748 2006-10-10 Chris Toshok <toshok@ximian.com>
21750 * Cursor.cs: Apply a slightly different patch to the one suggested
21753 2006-10-10 Jackson Harper <jackson@ximian.com>
21755 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
21756 not the parent form.
21757 * TextControl.cs: use difference in old line count vs new count to
21758 calculate how many lines were added, this takes into account soft
21759 line breaks properly.
21761 2006-10-10 Chris Toshok <toshok@ximian.com>
21763 * LinkLabel.cs: don't call MeasureCharacterRanges against a
21764 rectangle located at 0,0 and the size of the text. Use
21765 ClientRectangle instead. This fixes rendering of non-left aligned
21768 2006-10-10 Jackson Harper <jackson@ximian.com>
21770 * TextBoxBase.cs: When we set the selection start position the
21772 * TextControl.cs: Need to update the caret when we decrement it to
21774 - Make sure that the selection_visible flag gets reset to false if
21775 the selection isn't visible. Before this you could get it set to
21776 visible by changing the selection start, then changing the end to
21779 2006-10-09 Jackson Harper <jackson@ximian.com>
21781 * TreeView.cs: Don't update scrollbars when we aren't visible.
21782 * TreeNodeCollection.cs: Only need to update scrollbars if being
21783 added to an expanded visible node or the root node.
21785 2006-10-09 Chris Toshok <toshok@ximian.com>
21787 * XplatUIX11.cs (SendMessage): fix NRE.
21789 2006-10-09 Jackson Harper <jackson@ximian.com>
21791 * TextBoxBase.cs: Implement horizontal autoscrolling.
21792 * TextControl.cs: Add a movement types that allows moving forward
21793 and backwards without wrapping.
21795 2006-10-09 Mike Kestner <mkestner@novell.com>
21797 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
21798 with focus "expansion" of labels. Fixes #79532 and then some.
21799 * ThemeWin32Classic.cs : add LineLimit to ListView label format
21802 2006-10-09 Jackson Harper <jackson@ximian.com>
21804 * TextBoxBase.cs: Set the default max values to MaxValue since
21805 we use the scrollbar for autoscrolling and the default value is
21806 100. If we don't do this the caret won't keep up with typing
21807 after about 18 characters.
21808 * TextControl.cs: Make sure the selection is offset by the
21809 viewport x. This fixes selection when using auto scrolling.
21811 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
21813 * Form.cs: The active control should be selected after the
21814 OnLoad so that any child control initialization that affects
21815 the selection is done. Fixes #79406
21817 2006-10-06 Chris Toshok <toshok@ximian.com>
21819 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
21820 to have no evil effects.
21822 - Stop selecting StructureNotifyMask on non-toplevel windows.
21824 The only way children should be resized is by using the SWF api,
21825 and we already send WM_WINDOWPOSCHANGED messages in those cases.
21826 Toplevel windows can be interacted with via the window manager,
21827 and so we keep the input mask there.
21829 The other event StructureNotifyMask gives us (that we care
21830 about) is DestroyNotify. The code is already structured such
21831 that it assumes we won't be getting a DestroyNotify event for
21832 the window we pass to XDestroyWindow (which is what
21833 StructureNotifyMask is supposed to guarantee.) So, that code
21834 shouldn't be affected by this either.
21836 - Stop selecting VisibilityChangeMask altogether.
21838 We weren't doing anything with the resulting events anyway.
21840 This vastly reduces the number of X requests and events we see
21841 when resizing/laying out a large ui.
21843 2006-10-06 Chris Toshok <toshok@ximian.com>
21845 * ScrollableControl.cs (DisplayRectangle): we need to take into
21846 account the DockPadding regardless of whether or not auto_scroll
21847 == true. rework this slightly to this effect, and fix bug #79606,
21848 and part of #72499 (you can now see the drag handles and drag
21851 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
21853 * ListViewItem.cs: Collections of selected and checked items are now
21854 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
21855 we mark the collection "dirty".
21856 * ListView.cs: Marked collections readonly. Modified UpdateSelection
21857 to only clear SelectedItems when a new item is selected and MultiSelect
21858 is enabled. CheckedItems and SelectedItems now subscribe to Changed
21859 event of ListViewItemCollection, and mark its list dirty whenever
21860 that event is fire. This allows us to return selected/checked items
21861 in the same order as they are in the Items collection. This matches
21864 2006-10-06 Chris Toshok <toshok@ximian.com>
21866 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
21867 right mouse clicks. Fixes bug #79593.
21869 2006-10-06 Chris Toshok <toshok@ximian.com>
21871 * Splitter.cs: doh, fix splitters that don't want to cancel the
21872 movement when you drag them. Also, impose the limits on the
21873 values we send to the SplitterMovingEvent. Fixes #79598.
21875 2006-10-06 Jackson Harper <jackson@ximian.com>
21877 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
21878 since we use this for auto scrolling also.
21880 2006-10-05 Chris Toshok <toshok@ximian.com>
21882 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
21883 beginning to think that most datagrid column types don't need this
21884 method. Fixes bug #79392.
21886 2006-10-05 Chris Toshok <toshok@ximian.com>
21888 * DataGrid.cs: move back to a more lazy scheme for creating the
21889 CurrencyManager, so we aren't updating it every time you set
21890 either DataSource or DataMember. Also, don't call
21891 RecreateDataGridRows if the currency manager hasn't changed.
21893 2006-10-05 Chris Toshok <toshok@ximian.com>
21895 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
21896 emitted, SelectedIndex should already be updated. Fixes bug
21899 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
21901 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
21902 ToolStripTextBox.cs: Initial commit.
21903 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
21905 2006-10-05 Jackson Harper <jackson@ximian.com>
21907 * TabControl.cs: We need to invalidate the tab control area when
21908 new ones are added (duh).
21910 2006-10-03 Chris Toshok <toshok@ximian.com>
21912 * Form.cs (ProcessDialogKey): if the focused control is in this
21913 form and is a button, call its PerformClick method here. Fixes
21916 2006-10-04 Jackson Harper <jackson@ximian.com>
21918 * TabPage.cs: Ignore setting of Visible, and add an internal
21919 method for setting the controls visibility. TabPage's Visible
21920 property is a little strange on MS, this seems to make us
21921 compatible, and fixes cases where people set all the tab pages to
21923 * TabControl.cs: Use the new internal setting on tab pages
21926 2006-10-03 Mike Kestner <mkestner@novell.com>
21928 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
21930 2006-10-03 Mike Kestner <mkestner@novell.com>
21932 * ListView.cs : use is_visible instead of Visible to check if
21933 scrollbars should be placed/sized. Also some max_wrap_width
21934 love for LargeIcon view. [Fixes #79533]
21936 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
21939 Make set_TextAlign() do actually update the align. Fixed #78403.
21941 2006-10-03 Chris Toshok <toshok@ximian.com>
21943 * DataGrid.cs: fix a crash when switching datasources if the
21944 vertical scrollbar is at someplace other than Value = 0. Also,
21945 reduce the number of recalculation passes we do in SetDataSource
21948 2006-10-03 Jackson Harper <jackson@ximian.com>
21950 * TextBoxBase.cs: Move the if value the same bail check up, we
21951 don't want to empty the document if it is already empty, this
21952 seems to severly mess up the caret. TODO: I should probably fix
21953 the empty statement to update teh caret somehow.
21955 2006-10-03 Chris Toshok <toshok@ximian.com>
21957 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
21958 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
21959 reflection, an internal row type, properties on said type, etc.)
21960 will work with our datagrid. Fixes #79531.
21962 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21964 * FileDialog.cs: Don't crash if a path is not accessible
21965 (System.UnauthorizedAccessException). Fixes #79569.
21966 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
21967 a ':' too. Return unknown icon for those paths/files.
21969 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
21971 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
21972 GetContainerControl returns null.
21974 2006-10-02 Chris Toshok <toshok@ximian.com>
21976 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
21977 call to XGetWindowAttributes instead of "handle". fixes an X
21978 error using notifyicon after the NotifyIconWindow to Form base
21981 2006-10-02 Chris Toshok <toshok@ximian.com>
21983 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
21984 server grab and looping we need to do to get down to the most
21985 deeply nested child window.
21986 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
21987 QueryPointer again after the WarpPointer so we can generate a
21988 proper (fake) MotionNotify event to be enqueued in the destination
21990 (GetCursorPos): call QueryPointer.
21994 2006-10-02 Jackson Harper <jackson@ximian.com>
21996 * NotifyIcon.cs: Derive the notify icon from a form, so things
21997 like FindForm work on it.
21998 - Swallow the WM_CONTEXTMENU message, since that is generated on
21999 mouse down, and context menu is a mouse up kinda guy. I believe
22000 the correct fix here is probably to make the notify icon entirely
22001 NC area, but this seems to work fine for anyone not manipulating
22004 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
22006 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22007 ToolStripItemCollection.cs, ToolStripLabel.cs,
22008 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22009 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22010 Initial implementation.
22011 * TextRenderer.cs: Provide padding to MeasureText.
22013 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
22015 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22016 of ButtonBaseAccessibleObject. Fix bug #79552.
22018 2006-10-02 Jackson Harper <jackson@ximian.com>
22020 * MdiWindowManager.cs: When maximizing use the containers client
22021 rect, not it's bounds, so nc area is accounted correctly.
22022 - Use the parent form's size for the menu position, since the
22023 client isn't always the full form size.
22025 2006-10-01 Chris Toshok <toshok@ximian.com>
22027 * ScrollableControl.cs: make sure neither right_edge or
22028 bottom_edge are < 0, since they're used as LargeChange for the
22029 horiz/vert scrollbars respectively. Fixes #79539.
22031 2006-10-01 Chris Toshok <toshok@ximian.com>
22033 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22034 the xplatuix11 code can cause us to destroy/recreate our handle.
22038 - this code can be invoked many times for the same Hwnd. Make
22039 sure we only destroy the client window once (the first time this
22040 method is called). This fixes bug #79544.
22041 - Remove the call to the improperly bound XSync. why we had two
22042 bindings to this, I will never know, but this call resulted in
22043 events being discarded from the queue(!).
22044 - correct a misunderstanding of _XEMBED_INFO - the second atom is
22045 not our current state but the state we wish to be in. So, 0 if
22046 we don't want to be mapped. Change it to 1.
22047 (SystrayRemove): The XEMBED spec makes mention of the fact that
22048 gtk doesn't support the reparent of client windows away from the
22049 embedder. Looking at gtksocket-x11.c seems to agree with this.
22050 The only avenue we have for removing systray icons is to destroy
22051 them. We don't want the handle to go away for good, though, so
22052 call InternalRecreateHandle on the NotifyIconWindow. Fixes
22055 2006-10-01 Chris Toshok <toshok@ximian.com>
22057 * Form.cs (WndProc): inline the native_enabled variable usage into
22058 the cases in which it's used. Fixes #79536.
22060 2006-09-29 Mike Kestner <mkestner@novell.com>
22062 * ListView.cs : toggle the selection state for ctrl clicks in
22063 multiselect mode. [Fixes #79417]
22065 2006-09-29 Mike Kestner <mkestner@novell.com>
22067 * ListView.cs : kill CanMultiSelect and refactor the selection
22068 code to support multiselection in the absence of mod keys. Steal
22069 arrow/home/end keys by overriding InternalPreProcessMessage to
22070 restore regressed keynav behavior.
22073 2006-09-29 Jackson Harper <jackson@ximian.com>
22075 * MdiClient.cs: Repaint the titlebars when the active window is
22078 2006-09-29 Chris Toshok <toshok@ximian.com>
22080 * Application.cs: when entering a runloop with a modal, make sure
22081 the hwnd is enabled. Fixes #79480.
22083 2006-09-29 Chris Toshok <toshok@ximian.com>
22085 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22086 when ListManager.CanAddRows == false, bump us back one.
22088 * DataGridColumnStyle.cs (ParentReadOnly): remove the
22089 listmanager.CanAddRows check. This makes ArrayLists uneditable
22090 using a datagrid, which is not right.
22091 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22092 is an IEditable, but call property_descriptor.SetValue regardless.
22095 2006-09-29 Chris Toshok <toshok@ximian.com>
22097 * DataGridBoolColumn.cs: we need to test equality in the face of
22098 possible null values (as is the case with the default NullValue).
22099 This patch keeps us from crashing in that case.
22101 2006-09-29 Jackson Harper <jackson@ximian.com>
22103 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22104 here, since it will get called for every node collection in the
22105 tree. This is now done in the treeview once the sorting is
22107 * TreeView.cs: Recalculate the visible order, and update the
22108 scrollbars after sorting, set the top nope to the root so that the
22109 recalc actually works.
22111 2006-09-29 Chris Toshok <toshok@ximian.com>
22113 * LinkLabel.cs: more handling of the default link collection in
22114 the face of LinkArea manipulation. The default link collection
22115 contains 1 element (start=0,length=-1). If the user sets LinkArea
22116 to anything and the links collection is the default, clear it.
22117 Then only add the link if its nonempty. Fixes #79518.
22119 2006-09-29 Chris Toshok <toshok@ximian.com>
22121 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22122 piece correctly when we hit a '\n'. Fixes #79517.
22124 2006-09-29 Chris Toshok <toshok@ximian.com>
22126 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22127 change the binding of gdk_init_check to take two IntPtr's, and
22128 pass IntPtr.Zero for both of them. Fixes #79520.
22130 2006-09-29 Mike Kestner <mkestner@novell.com>
22132 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22135 2006-09-28 Jackson Harper <jackson@ximian.com>
22137 * XplatUIX11.cs: When translating NC messages make sure we go from
22138 whole window to screen, not client window to screen.
22139 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22140 method doesn't exist
22141 - Skip over controls that aren't forms when arranging.
22143 2006-09-28 Jackson Harper <jackson@ximian.com>
22145 * XplatUIWin32.cs: Clip the rect to the parent window.
22146 * XplatUIStructs.cs: Add clipping modes struct.
22147 * InternalWindowManager.cs: New private method that factors title
22148 bar heights in when calculating the pos of an NC mouse message.
22149 - Use SendMessage to force a paint when the form's size is changed
22150 instead of painting the decorations immediately.
22151 - Don't let the NC button click messages get to DefWndProc,
22152 because they will attempt to handle windowing themself, and this
22153 messes up z-order (it will put them in front of the scrollbars).
22154 * XplatUIX11.cs: Make sure that we don't reset window managers if
22155 we already have one (ie the window is an MDI window).
22157 2006-09-28 Chris Toshok <toshok@ximian.com>
22159 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
22160 menu code really needs going over.
22162 2006-09-27 Chris Toshok <toshok@ximian.com>
22164 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
22165 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22166 window is maximizable. So, we need to make sure that even if we
22167 clear the border/wm frame of those functions, they're still
22168 available (basically, we remove the decoration without removing
22169 the function). Half the fix for #79338.
22171 2006-09-27 Chris Toshok <toshok@ximian.com>
22173 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22176 2006-09-27 Chris Toshok <toshok@ximian.com>
22178 * Splitter.cs: reorder things a bit so that we don't actually
22179 draw/move the splitter until after calling OnSplitterMoving. This
22180 lets users cancel/disallow the movement by explicitly setting
22181 event.SplitX/SplitY. Fixes #79372.
22183 2006-09-27 Jackson Harper <jackson@ximian.com>
22185 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22186 because it is most likely on a window being destroyed, and that
22187 will give us an X11 error.
22189 2006-09-27 Chris Toshok <toshok@ximian.com>
22191 * PropertyGridView.cs: half of the fix for #78190. Clicking on
22192 the dropdown button now toggles between showing and hiding the
22193 dropdown. Also, get rid of dropdown_form_showing and just use
22194 dropdown_form.Visible. We still don't do a grab, but I'll leave
22195 that part to someone who has handled Capture-fu before.
22197 2006-09-27 Chris Toshok <toshok@ximian.com>
22199 * DataGrid.cs: return false if alt isn't pressed when '0' is
22200 pressed. this keeps the '0' key from being swallowed, and fixes
22203 2006-09-27 Chris Toshok <toshok@ximian.com>
22205 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22206 Calling Refresh (in response to a scrollbar event) screws up the
22207 scrollbar painting. Fixes bug #78923.
22209 2006-09-27 Chris Toshok <toshok@ximian.com>
22211 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22212 then insert into hashtable" blocks threadsafe.
22214 2006-09-27 Chris Toshok <toshok@ximian.com>
22216 * MessageBox.cs (CreateParams): the styles should be |'ed with our
22217 baseclass's, since otherwise the
22218 ControlBox/MinimizeBox/MaximizeBox assignments above have no
22219 effect. This gets the close button back in messageboxes.
22221 2006-09-27 Chris Toshok <toshok@ximian.com>
22223 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22224 flag, not just != 0. this makes flags that are actually multiple
22225 bits (like WS_CAPTION) work. fixes bug #79508.
22227 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
22229 * PageSetupDialog.cs: add support for getting and settings the
22230 paper size, source and orientation.
22232 2006-09-26 Chris Toshok <toshok@ximian.com>
22234 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22235 and caption == "", we need to remove the resize handles as well as
22238 * Control.cs (set_Text): turns out that setting Text on a form
22239 should change the WM styles on the window, since if ControlBox ==
22240 false, the only way to get a window border is to have a non-""
22241 Text property. check winforms/forms/text.cs for an example. so,
22242 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22243 update both window styles and title. This fixes a lot of dialogs
22244 (including the preferences dialog in MonoCalendar.)
22246 2006-09-26 Chris Toshok <toshok@ximian.com>
22248 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22249 control isn't a Form), call Win32ShowWindow to hide the window,
22250 but don't update the control Visible property. When we reparent
22251 back to a parent control, call SetVisible in order for the
22252 window's visibility to be reinstated.
22254 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22257 * Control.cs (ControlCollection.Remove): remove that value.Hide()
22258 call for good, since it breaks MonoCalendar (and other things I'm
22259 sure.) Also, set all_controls to null *after* the owner calls,
22260 which end up regenerating it.
22261 (ChangeParent): allow new_parent to be == null, passing
22262 IntPtr.Zero down to XplatUI.
22264 this fixes #79294 the right way.
22266 2006-09-26 Mike Kestner <mkestner@novell.com>
22268 * GridEntry.cs : internal SetParent method.
22269 * PropertyGrid.cs : attach to property changed on the proper
22270 target if we have a hierarchical grid with subobjects. Setup
22271 GridItem.Parent for hierarchical items.
22272 * PropertyGridView.cs : Set value on the correct target for
22273 hierarchical grids. [Fixes #78903]
22275 2006-09-26 Chris Toshok <toshok@ximian.com>
22277 * Control.cs (ChildNeedsRecreating): this should return true if
22278 either we're being recreated and the child is in our list, or our
22279 parent is waiting for our recreation.
22281 2006-09-26 Chris Toshok <toshok@ximian.com>
22283 * Control.cs (ControlCollection.Remove): reinstate the
22284 value.Hide() call as suggested in bug #79294.
22286 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
22288 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22289 coordinates (versus a relative move).
22291 2006-09-26 Chris Toshok <toshok@ximian.com>
22293 * Control.cs: rework child recreation a little bit. It turns out
22294 that we race between the DestroyNotify the WM_DESTROY message. If
22295 the parent gets its DestroyNotify before the child gets the
22296 WM_DESTROY message, the child ends up not recreating (since the
22297 parent finishes its recreation on DestroyNotify, and the child
22298 checks ParentIsRecreating.)
22300 So, instead we store off a list of all the child controls which
22301 need to be recreated when the parent control starts to recreate
22302 itself. Then, when child controls get their WM_DESTROY message we
22303 check to see if they're in the parent's pending recreation list,
22304 and if so, we recreate. This removes all dependency on ordering
22305 from the code and fixes the initial MonoCalendar upgrade dialog.
22307 2006-09-26 Jackson Harper <jackson@ximian.com>
22309 * TextControl.cs: Use the Line to get the length of the line,
22310 since soft line breaks can change the end line.
22312 2006-09-26 Chris Toshok <toshok@ximian.com>
22314 * Control.cs (ControlCollection.AddImplicit): don't add the
22315 control again if it's already in one of our lists. This keeps us
22316 from adding controls over and over again for comboboxes when their
22317 handle gets recreated (as the combobox adds implicit controls in
22318 OnHandleCreated). Fixes the X11 errors in bug #79480.
22320 2006-09-26 Jackson Harper <jackson@ximian.com>
22322 * TextControl.cs: When deleting characters make sure that any
22323 orphaned zero lengthed tags get deleted.
22324 - Fix ToString for zero lengthed tags.
22326 2006-09-25 Jackson Harper <jackson@ximian.com>
22328 * TextControl.cs: When getting a tag at the location there can be
22329 multiple tags at the same spot, these are 0-lengthed tags that
22330 appear when extra formatting has been stuck in a location. We
22331 need to pull out the last of these 0 lengthed tags.
22333 2006-09-25 Jackson Harper <jackson@ximian.com>
22335 * TextControl.cs: Fix print out in debug method.
22336 * TextBoxBase.cs: When text is set bail if we are setting to the
22339 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
22341 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22342 It is now possible to change the selected index in a FontXXXListBox
22343 with the up and down arrow keys from the FontXXXTextBoxes.
22344 Also, send the FontXXXTextBox mouse wheel event to the corresponding
22345 FontXXXListBoxes to match ms.
22347 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
22349 * SystemInformation.cs: Return a clone of the theme's MenuFont because
22350 anyone can dispose it, anytime. All other properties returns enums,
22351 structs or basic types so they don't need such tricks.
22353 2006-09-22 Jackson Harper <jackson@ximian.com>
22360 * XplatUIDriver.cs: Update interface to add a primary selection
22361 flag, so the driver can use the primary selection buffer if
22363 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22365 * RichTextBox.cs: We need to supply the data object to paste now
22366 (so we can choose to supply CLIPBOARD or PRIMARY).
22367 * TextBoxBase.cs: Supply data object to paste (see above).
22368 - Middle click uses the primary selection data object.
22370 2006-09-21 Chris Toshok <toshok@ximian.com>
22372 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22373 of SetWMStyles. It's still a rat's nest and is largely
22374 order-dependent which I dislike immensely. This also fixes the X
22375 button disappearing from toplevel forms.
22377 2006-09-21 Mike Kestner <mkestner@novell.com>
22379 * ListBox.cs: move Jordi's click/dblclick raising code to the
22382 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
22384 * ListBox.cs: Fixes 79450
22386 2006-09-21 Mike Kestner <mkestner@novell.com>
22388 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22389 to deal with people updating the TreeNodeCollection after the tree
22390 is disposed. "Fixes" 79330.
22392 2006-09-20 Jackson Harper <jackson@ximian.com>
22394 * TextControl.cs: Push the cursor record onto the undo stack
22395 before the delete action. This fixes 78651.
22397 2006-09-20 Jonathan Chambers <joncham@gmail.com>
22399 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22400 CreateParams. Fixes 79329.
22402 2006-09-19 Chris Toshok <toshok@ximian.com>
22404 * XplatUIX11.cs: a couple of blanket code massage passes to clean
22405 things up a bit. First, get rid of the NetAtoms array (and the NA
22406 enum), and just embed the atoms as static fields. Also, add a
22407 couple of functions (StyleSet and ExStyleSet) to clean up all the
22408 bitmask testing of styles.
22410 * X11Structs.cs: remove the NA enum, not needed anymore.
22412 2006-09-19 Chris Toshok <toshok@ximian.com>
22414 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22415 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
22416 added cleanup to get MessageBox titles appearing again, which were
22417 broken by my earlier fix for caption-less/ControlBox-less windows.
22419 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
22421 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22422 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22423 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22424 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22425 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22426 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22427 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22428 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22429 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22430 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22431 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22433 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22434 ToolStripButton.cs: Stubs needed for above.
22435 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22437 2006-09-15 Chris Toshok <toshok@ximian.com>
22440 - make the MessageQueues hashtable Synchronized.
22442 - SendMessage: if the Hwnd is owned by a different thread, use the
22443 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22444 thread. Fixes bug #79201.
22446 2006-09-15 Chris Toshok <toshok@ximian.com>
22448 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
22449 ControlBox == false, we disallow maximize/minimize/close. If the
22450 form Caption is "" we also disallow move (and get rid of the Title
22451 decoration). Unfortunately, regardless of how things are set,
22452 we're stuck with the Title and WM menu.
22454 2006-09-15 Chris Toshok <toshok@ximian.com>
22456 * Application.cs: add locking around the static message_filters
22457 ArrayList, part of #79196.
22459 2006-09-15 Chris Toshok <toshok@ximian.com>
22461 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22462 Form.ControlBox == false, the window has no titlebar nor resize
22463 handles. fixes bug #79368.
22465 2006-09-15 Chris Toshok <toshok@ximian.com>
22467 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22468 >= 0. Fixes bug #79370.
22470 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
22471 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22473 Add properties: LayoutEngine, Margin, DefaultMargin.
22474 Add method: GetPreferredSize.
22475 Move layout logic from PerformLayout to layout engines.
22477 2006-09-13 Chris Toshok <toshok@ximian.com>
22479 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
22480 fix for #79326 broke #78718, so this change addresses that.
22482 - in SendWMDestroyMessages remove the call to
22483 CleanupCachedWindows, since we might be recreating the control and
22484 need to maintain the references to right Hwnd handles. Also, set
22485 the zombie flag to true for each of the children in the hierarchy
22486 instead of calling hwnd.Dispose. This will cause GetMessage to
22487 ignore all events for the window except for DestroyNotify.
22489 - In GetMessage, ignore messages except for DestroyNotify for
22492 * Control.cs: revert the is_recreating fix from the last
22493 ChangeLog. It's definitely "right", but it breaks switching from
22494 an MDI form to a non-MDI form. Will need to revisit that.
22496 * Hwnd.cs: add a zombie flag, which means "the
22497 client_window/whole_window handles are invalid, but we're waiting
22498 for the DestroyNotify event to come in for them". Set the flag to
22499 false explicitly if setting WholeWindow/ClientWindow, and also
22502 2006-09-13 Chris Toshok <toshok@ximian.com>
22504 * XplatUIX11.cs: rework window destruction slightly.
22506 - when destroying the windows associated with a control, we don't
22507 need 2 separate XDestroyWindow calls. Just the one for the
22508 whole_window (or for client_window if whole_window is somehow
22509 IntPtr.Zero -- can this happen?) is enough.
22511 - reworked SendWMDestroyMessages slightly, so we always dispose
22512 the child control hwnd's after sending the messages.
22514 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22515 the two places it was used (one was even using hwnd.Handle and the
22516 other hwnd.client_window. ugh), adding another call in
22517 SendWMDestroyMessages. We need this new call because now the
22518 DestroyNotify events in the queue will be ignored for the child
22519 controls (as their hwnd's were disposed, and the window id's
22520 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22522 - this fixes bug #79326.
22524 2006-09-13 Chris Toshok <toshok@ximian.com>
22526 * Control.cs: don't always set is_recreating to false at the end
22527 of RecreateHandle, since sometimes we're not done (and won't be
22528 until WndProc handles the WM_DESTROY message). Also, set
22529 is_recreating to false in the WM_DESTROY handling code. Part of
22530 the fix for bug #79326.
22532 2006-09-13 Miguel de Icaza <miguel@novell.com>
22534 * X11DesktopColors.cs: Start the droppage of debugging messages.
22536 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22538 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
22540 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22542 2006-09-12 Chris Toshok <toshok@ximian.com>
22544 * DataGrid.cs (get_ListManager): if the list_manager is null, try
22545 to create it using SetDataSource. Fixes bug #79151.
22547 2006-09-11 Chris Toshok <toshok@ximian.com>
22549 * XEventQueue.cs: add a DispatchIdle property.
22551 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22552 either the queue is null, or the queue has DispatchIdle set to
22554 (DoEvents): set queue.DispatchIdle to false around the
22555 peek/translate/dispatch message loop in this method. This keeps
22556 Application.Doevents from emitting idle events. Part of the fix
22559 2006-09-11 Chris Toshok <toshok@ximian.com>
22561 * DataGrid.cs (set_DataSource): make this work for both the
22562 winforms/datagrid test and ReportBuilder. It seems as though when
22563 we've created a ListManager (or maybe it's if we have a
22564 BindingContext?), when we set the DataSource it clears the
22565 DataMember to "". otherwise we reuse the datamember. Fixes bug
22568 2006-09-11 Chris Toshok <toshok@ximian.com>
22570 * XplatUIX11.cs: deal with queue being null, which happens in all
22571 the Clipboard functions. Fixes one of the two problems mentioned
22574 2006-09-11 Chris Toshok <toshok@ximian.com>
22576 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22577 button on various spots (including outside the menu) works closer
22578 to MS, and doesn't crash. Fixes #79343.
22580 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
22582 * ListView.cs: Do not initialize item_sorter in init. To match MS,
22583 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22584 and the internal comparer is set. When a new ListViewItemSorter is set,
22585 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22586 was specified. No further processing is necessary if SortOrder is set
22587 to it's current value. If Sorting is modified to None, and View is
22588 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22589 (either custom or our internal ItemComparer) to null, on 1.0 profile
22590 only set item_sorter to null if its our internal IComparer. If Sorting
22591 is modified to Ascending or Descending, then use our internal IComparer
22592 if none is set, and if the current IComparer is our internal one then:
22593 on 2.0 profile always replace it with one for new Sorting, and on 1.0
22594 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22595 Enum.IsDefined to verify whether a valid View value is specified in
22596 its setter. Automatically sort listview items when listview is
22597 created. In Sort, do nothing if ListView is not yet created, or if
22598 no item_sorter is set (no Sorting was set, Sorting was explicitly set
22599 to None or ListViewItemSorter was set to null). Added Sort overload
22600 taking a bool to indicate whether the ListView should be redrawn when
22601 items are sorted (we use this in ListViewItemCollection to avoid double
22602 redraws). Modified our internal IComparer to take the sort order into
22603 account. In Add and AddRange methods of ListViewItemCollection, also
22604 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22605 view), but use overload with noredraw option to avoid double redraw.
22606 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22607 true when View is Tile, and do the same when attempting to set View to
22608 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22609 for selected/checked indices, as it involves overhead when sorting is
22610 done while these collections are not used all that often. Instead
22611 we'll build the indices on demand. Modified IList implementation of
22612 CheckedIndexCollection to use public methods if object is int.
22613 Modified CheckedListViewItemCollection to hide checked items if
22614 ListView.CheckBoxes is false. Removed LAMESPEC remark in
22615 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22616 IList implementation in SelectedIndexCollection to use public methods
22617 if object is int. Modified SelectedListViewItemCollection to hide
22618 selected items if listview is not yet created.
22619 * ListViewItem.cs: CheckedIndices list no longer needs to be
22620 maintained separately (see ListView changes). Also clone font, fixes
22623 2006-09-11 Mike Kestner <mkestner@novell.com>
22625 * ComboBox.cs: if we are updating the contents of the currently
22626 selected index, refresh the control or the textbox selection.
22629 2006-09-11 Mike Kestner <mkestner@novell.com>
22631 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
22632 the 'specified' logic has been moved there. This seems like a bug
22633 in Control.cs, since our current SetBoundsCore completely ignores
22634 the specified parameter. Peter's commit seems to indicate that is
22635 the way the MS control implementation works. [Fixes #79325]
22637 2006-09-10 Jonathan Chambers <joncham@gmail.com>
22639 * XplatUI.cs: Set default_class_name to be composed
22640 of current domain id. This allows MWF to be loaded in multiple
22643 2006-09-09 Miguel de Icaza <miguel@novell.com>
22645 * X11Keyboard.cs: If we are unable to obtain the input method, do
22646 not call CreateXic to create the input context. Should fix
22649 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
22651 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
22652 Simplified gnome support by adding more pinvokes to get the
22653 icon for a file or mime type.
22655 2006-09-08 Jackson Harper <jackson@ximian.com>
22657 * MenuAPI.cs: Deslect popup context menu items before closing the
22658 window, so that you don't see the previously selected item
22659 selected when you reopen the menu.
22660 * TextControl.cs: Update the cursor position even if we don't have
22661 focus. This fixes typing in things like the ComboBox. I'm not
22662 totally sure we should always set the visibility if we don't have
22663 focus, but couldn't find any corner cases where the cursor showed
22664 up when it shouldn't.
22666 2006-09-08 Chris Toshok <toshok@ximian.com>
22668 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
22669 our arrays are length 256. & 0xff before indexing. Fixes the
22670 crash in bug #78077.
22672 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22674 * ThemeWin32Classic.cs:
22675 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
22676 is true. Handle that check box too.
22678 2006-09-07 Chris Toshok <toshok@ximian.com>
22680 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
22683 2006-09-07 Chris Toshok <toshok@ximian.com>
22685 * Control.cs: in set_BackColor only do the work if
22686 background_color != value.
22688 * XplatUIX11.cs: move the clearing of invalid areas (both client
22689 and nc) to the same block of code where we set (nc_)expose_pending
22690 to false. That is, move it from PaintEventEnd to PaintEventStart,
22691 so things that cause invalidates from within OnPaint will trigger
22692 another call to OnPaint. Fixes bug #79262.
22694 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
22696 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
22697 * FileDialog.cs: Fix typo
22699 2006-09-07 Jackson Harper <jackson@ximian.com>
22701 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
22702 for tab pages if they have any.
22704 2006-09-06 Mike Kestner <mkestner@novell.com>
22706 * Splitter.cs: use the "current" rect when finishing drag handle
22707 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
22709 2006-09-06 Mike Kestner <mkestner@novell.com>
22711 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
22712 support offset splitters. [Fixes #79298]
22714 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
22716 * Mime.cs: Fixed a bug that could override the global mime type
22719 2006-09-05 Jackson Harper <jackson@ximian.com>
22721 * TabControl.cs: Better calculation method for setting the slider
22722 pos. Prevents crashes on really wide tabs.
22723 - Draw Image on tab pages if an image list is used.
22725 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22727 * MonthCalendar.cs: When Font changes, the Size should be
22728 updated to fit the new font's space requirements.
22730 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
22732 * ListBox.cs: If the items are cleared with Items.Clear set
22735 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22737 * MonthCalendar.cs: Handle arrow keys as input keys. Also
22738 fire DateChanged event instead of DateSelected event when
22739 the date was changed by keyboard interaction.
22741 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22743 * DateTimePicker.cs: Handle DateChanged for the associated
22744 month_calendar control, and set month_calendar.Font from
22745 OnFontChanged method, as well as resize the height of the
22746 control when needed. Make PreferredHeight proportional.
22748 2006-09-01 Chris Toshok <toshok@ximian.com>
22750 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
22753 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
22755 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
22757 * FileDialog.cs: Set ClientSize instead of window size, to allow space
22758 for decorations (Fixes #79219)
22760 2006-09-01 Mike Kestner <mkestner@novell.com>
22762 * ComboBox.cs: first stab at sorting plus some selection handling
22763 fixes to bring us more in line with MS behavior. Also switches back
22764 to index based selection. Alternative patches for index-based
22765 selection were provided by Jackson Harper, Carlos Alberto Cortez,
22766 and latency@gmx.de on bug 78848. I assume they were similar to this
22767 code I've had simmering in my tree forever.
22770 2006-09-01 Chris Toshok <toshok@ximian.com>
22772 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
22773 when setting list position guard against ending up with a -1 index
22774 (the other part of the fix for #78812). Should probably make sure
22775 we don't need the analogous fix in the ItemDeleted case.
22778 - in SetDataSource, work around the fact that the way
22779 OnBindingContextChanged is invoked will cause us to re-enter this
22780 method. I'll remove the hack once I investigate
22781 OnBindingContextChanged.
22783 - fix the logic in set_DataSource and set_DataMember (basically
22784 what to do if the other of the two is null.)
22786 - in OnListManagerItemChanged, we need to take into account the
22787 edit row when deciding whether or not to call RecreateDataGridRows
22788 (part of the fix for #78812).
22790 2006-09-01 Jackson Harper <jackson@ximian.com>
22792 * Splitter.cs: Don't do anything if there is no control to affect
22793 (prevents us from crashing in weird tet cases).
22794 * TreeView.cs: Bounding box for the mouse movement reverting
22795 focus/selection back to previously selected node. This matches
22796 MS, and makes the tree a lot more useable.
22797 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
22798 use clipping so they are not drawn. This fixes when the control
22799 is set to have a transparent background, or if it was over an
22802 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
22804 * MimeIcon.cs: Improved handling for reading default icons when
22805 using gnome (2.16 made it necessary). Check and read svg icons
22806 first, then 48x48 and then 32x32 icons.
22808 2006-08-31 Chris Toshok <toshok@ximian.com>
22810 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
22813 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
22814 ProcessKeyPreview. Fixes part of #77806.
22816 * DataGrid.cs: big patch.
22818 - revert the queueing up of DataSource/DataMember if inside
22819 BeginInit/EndInit calls. That's not the way the datagrid achieves
22820 its delayed databinding. Instead, call SetDataSource in
22821 OnBindingContextChanged. This mimic's MS's behavior, and fixes
22824 - Also, it wasn't mentioned in #78811, but the test case exhibits
22825 behavior that was lacking in our datagrid implementation - Columns
22826 that have mapping names that don't exist in the datasource's
22827 properties aren't shown. Yuck. To fix this I added the bound
22828 field to the column style, and basically any calculation to figure
22829 out anything about columns uses a loop to find the bound columns.
22830 still need to investigate if I can cache an array of the bound
22831 columns or if the indices must be the same.
22833 - When setting CurrentCell, we no longer abort if the cell being
22834 edited was in the add row. This fixes the other part of #77806.
22836 - The new code also fixes #78807.
22838 * ThemeWin32Classic.cs: perpetrate the same disgusting
22839 column.bound field hack, and only render bound fields.
22841 2006-08-31 Chris Toshok <toshok@ximian.com>
22843 * DataGridColumnStyle.cs: add bound field. this field is true if
22844 the datasource has a property corresponding to the mapping name.
22846 * DataGridTableStyle.cs: set the bound field on the column styles
22847 depending on whether or not we have a column for that property.
22849 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
22851 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
22852 splitter control (fixes #79228)
22854 2006-08-31 Chris Toshok <toshok@ximian.com>
22856 * DataGridColumnStyle.cs: we need to delay the assignment of
22857 property descriptor until the last possible moment due to the lazy
22858 databinding stuff in the datagrid. Also, fix the exceptions
22859 thrown by CheckValidDataSource to match MS.
22861 2006-08-31 Jackson Harper <jackson@ximian.com>
22863 * Form.cs: When activated select the active control, if there is
22864 no active control, we select the first control.
22865 * XplatUIX11.cs: If there is no focus control when we get a
22866 FocusIn event, find the toplevel form and activate it. This
22867 occurs when you popup a window, it becomes the focus window, then
22868 you close that window, giving focus back to the main window.
22870 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22872 * MonthCalendar.cs:
22873 * ThemeWin32Classic.cs: Cache Font in bold style, as well
22874 as StringFormat with Center alignments in MonthCalendar,
22875 instead of creating new ones when drawing the control.
22876 Also, draw the month name in bold style.
22878 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
22881 - PerformLayout(): It would seem MS performs the fill even if the
22882 control is not visible (part of #79218 fix)
22883 - ResetBackColor(): Use the setter to reset the color, to allow
22884 overriders to catch the change.
22886 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
22887 - CreateHandle(): dito (part of $79218 fix)
22888 - Don't set an icon if we have a dialog
22889 * ScrollableControl.cs:
22890 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
22891 - ScrollIntoView(): No need to scroll if control is already visible
22892 (resolves fixme and fixes #79218)
22894 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22896 * MonthCalendar.cs: Change proportions in SingleMonthSize
22897 to match the aspect of the original control.
22899 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
22901 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
22902 get updated when they get maximized.
22904 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
22906 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
22908 2006-08-29 Chris Toshok <toshok@ximian.com>
22910 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
22912 2006-08-29 Jackson Harper <jackson@ximian.com>
22914 * TreeView.cs: Need to track selected node and highlighted node,
22915 they aren't always the same thing, when the mouse is down on a
22916 node it is hilighted, but not selected yet.
22917 - Do the HideSelection stuff right
22918 - Need to focus on rbutton mouse down. And redraw selection when
22919 right click is mouse upped.
22921 2006-08-29 Mike Kestner <mkestner@novell.com>
22923 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
22924 when SubItems.Count < Columns.Count. [Fixes #79167]
22926 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22928 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
22930 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
22932 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
22933 from X. Only send based on ConfigureNotify if we don't have the
22934 correct location in hwnd (if the window manager moved us)
22936 2006-08-28 Mike Kestner <mkestner@novell.com>
22938 * ListView.cs: remove a TODO.
22939 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
22940 [Fixes ListView part of #79166]
22942 2006-08-28 Mike Kestner <mkestner@novell.com>
22944 * ListView.cs: move wheel handler to parent since it is focused
22945 instead of the item_control now. [Fixes #79177]
22947 2006-08-28 Mike Kestner <mkestner@novell.com>
22949 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
22950 when the control is focused. [Fixes #79171]
22952 2006-08-28 Mike Kestner <mkestner@novell.com>
22954 * ListView.cs: size the item and header controls for empty and
22955 unscrollable views.
22956 * ThemeWin32Classic.cs: draw disabled backgrounds.
22959 2006-08-28 Chris Toshok <toshok@ximian.com>
22961 * Form.cs: remove unused "active_form" static field.
22963 * Hwnd.cs: lock around accesses to static windows collection.
22965 * Application.cs: lock threads in Exit ().
22967 2006-08-28 Chris Toshok <toshok@ximian.com>
22969 * NativeWindow.cs: lock around accesses to window_collection.
22971 2006-08-28 Chris Toshok <toshok@ximian.com>
22973 * Control.cs: err, fix this the right way, by locking on controls
22974 when using it. not by making it synchronized.
22976 2006-08-28 Chris Toshok <toshok@ximian.com>
22978 * Control.cs: make the static "controls" field synchronized, as it
22979 gets updated from multiple threads.
22981 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
22983 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
22984 Prevent other threads from exiting when calling thread sets quit state.
22985 * XEventQueue.cs: Added PostQuitState property
22987 2006-08-27 Chris Toshok <toshok@ximian.com>
22989 * AsyncMethodData.cs: add a slot for the window handle.
22991 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
22992 window (the destination control's window, not the foster window).
22994 * Control.cs (BeginInvokeInternal): store the window's handle in
22995 the AsyncMethodData.
22998 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23001 - PostQuitMessage: Removed resetting S.D display handle, we might have
23002 another loop started after calling PostQuitMessage (Fixes #79119)
23003 - Created destructor to reset S.D handle
23005 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23007 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23009 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23011 * TextControl.cs (Insert): Update the caret position even if we don't
23012 have a handle yet, just don't call the driver in that case.
23013 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23014 to the end of the new selection text (Fixes #79184)
23016 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23018 * Form.cs (Activate): Only activate if the handle is created)
23020 - Mark window as invisible when it's disposed
23021 - Check if window handle is created when setting window visible,
23022 instead of relying just on the is_created variable
23023 - Check if object is disposed when creating the control (Fixes #79155)
23025 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23027 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23028 when allowing layout again. Otherwise we re-generate the anchoring
23029 distance to the border again and actually alter what the user wanted
23030 This is ugly, it'd be better if we used DisplayRectangle instead of
23031 ClientRectangle for Control.UpdateDistances, but that causes us to
23032 have other problems (initial anchoring positons would be wrong)
23035 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23038 - The size and location setters shouldn't go directly to
23039 SetBoundsCore, but to SetBounds, which triggers layout on the
23040 parent, then calls SetBoundsCore. (Related to fix for #78835)
23041 - SetBounds: Moved actual location update code into this function
23042 from SetBoundsCore, to match MS. Added call to PerformLayout if
23043 we have a parent (to trigger resizing of anchored parents if the
23044 child size has changed (see testcase for #78835)
23045 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
23047 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23049 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23051 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23052 System.Drawing when a toplevel window gets closed; there might
23053 be other toplevel windows belonging to the same app (Fixes #78052)
23055 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
23057 * FileDialog.cs: After reading FileDialog settings from mwf_config
23058 use Desktop prefix only if a real folder doesn't exist anymore.
23059 * FontDialog.cs: Added char sets.
23060 It is now possible to select the font, size or style with the
23063 2006-08-25 Kornél Pál <kornelpal@gmail.com>
23065 * PrintPreviewDialog.cs: Use assembly name constants.
23067 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23069 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23070 scrollbar from whacking it's buttons)
23072 2006-08-24 Chris Toshok <toshok@ximian.com>
23074 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
23075 in this patch (aggregating setting Left/Top/Width/Height to
23076 setting Bounds on the scrollbars), but the crux of the fix is in
23077 Recalculate, where we scroll by the remaining scroll_position if
23078 we're hiding a scrollbar. The 2*$5 reward in the comment is
23081 2006-08-24 Jackson Harper <jackson@ximian.com>
23084 * MdiWindowManager.cs: If the form is made a non-mdi window we
23085 need to remove the form closed event so that closing forms works
23088 2006-08-24 Jackson Harper <jackson@ximian.com>
23090 * Control.cs: Make IsRecreating internal so that the driver can
23092 - Temporarily remove the Hide when controls are removed, its
23093 making a whole bunch of things not work because visibility isn't
23094 getting reset elsewhere correctly
23095 * Form.cs: Need to do a full handle recreation when the mdi parent
23097 * XplatUIX11.cs: If we are recreating handles don't dispose the
23098 HWNDs. What was happening is the handles were being recreated in
23099 SendWMDestroyMessages, but then flow continued on in that method
23100 and destroyed the new handles.
23102 2006-08-23 Jackson Harper <jackson@ximian.com>
23104 * Form.cs: MdiClient is always at the back of the bus
23105 * Control.cs: When the order of items in the collection is changed
23106 we need to reset the all_controls array
23107 - do the same sorta setup thats done when adding a control when a
23108 control is set on the collection.
23110 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23112 * TextBoxBase.cs (get_Text): Return an empty array if our document
23113 is empty (fixes #79052)
23115 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23117 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23118 on WM_SYSCHAR messages (fixes #79053)
23120 2006-08-23 Chris Toshok <toshok@ximian.com>
23122 * DataGrid.cs: fix flickering when scrolling vertically.
23124 2006-08-23 Chris Toshok <toshok@ximian.com>
23126 * DataGrid.cs (EndEdit): only invalidate the row header when we
23129 2006-08-23 Chris Toshok <toshok@ximian.com>
23131 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23132 methods. fixes the flicker when scrolling around.
23134 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23136 * FileDialog.cs: Making sure the control is created before we get a
23137 chance to use it with BeginInvoke (Fixes #79096)
23139 2006-08-23 Chris Toshok <toshok@ximian.com>
23141 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23142 width to use when painting the rows.
23144 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23147 - Throw ArgumentException if a negative value is passed to SelectionLength
23148 - Update the selection end if start is moved. end needs to be always
23149 after start. (Fixes #79095)
23150 - Track selection length; MS keeps the selection length even if start
23151 is changed; reset on all other operations affection selection
23153 2006-08-22 Jackson Harper <jackson@ximian.com>
23155 * TreeView.cs: Make sure both scrollbars get displayed and sized
23156 correctly when the other bar is visible.
23157 - Use the original clip rectangle for checking if the area between
23158 the two scrollbars is visible, not the viewport adjusted clipping
23161 2006-08-22 Jackson Harper <jackson@ximian.com>
23163 * Binding.cs: We don't use IsBinding because it requires the
23164 control to be created, which really shouldn't be necessary just to
23165 set a property on the control.
23167 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23169 * ComboBox.cs: Some CB.ObjectCollection methods must throw
23170 ArgumentNullReferenceException when the argument is null.
23172 2006-08-21 Jackson Harper <jackson@ximian.com>
23174 * Timer.cs: Track the thread that the timer is started in (NOT
23175 CREATED), this way messages for it will only be triggered on its
23177 * XEventQueue.cs: Track the timers here, this makes timers per
23179 * XplatUIX11.cs: The timers are moved to the XEventQueue.
23181 2006-08-19 Chris Toshok <toshok@ximian.com>
23183 * XplatUIX11.cs: after further communication with pdb, we get the
23184 best of both worlds. SetZOrder working for un-Mapped windows, and
23185 no X errors for un-mapped windows.
23187 2006-08-19 Chris Toshok <toshok@ximian.com>
23189 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23190 as it was causing pdn toolbars to not have the correct stacking.
23192 2006-08-18 Mike Kestner <mkestner@novell.com>
23194 * ListView.cs : guard against negative ClientArea.Width in scrollbar
23195 calculation. Not sure why control should ever be setting a negative
23196 width though. Fixes #78931.
23198 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23200 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23201 null items in ObjectCollection class.
23202 * ListBox.cs.: Likewise.
23204 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
23206 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23207 as the base method in ThemeWin32Classic should work fine.
23210 2006-08-18 Jackson Harper <jackson@ximian.com>
23212 * Binding.cs: When validating if the value entered doesn't convert
23213 properly reset to the old value.
23214 * RadioButton.cs: Don't fire click when we get focus.
23216 2006-08-18 Jackson Harper <jackson@ximian.com>
23218 * FileDialog.cs: Paint the selection on the directory combobox the
23221 2006-08-17 Jackson Harper <jackson@ximian.com>
23223 * ErrorProvider.cs: Don't allow the error control to be selected.
23224 * Control.cs: Don't send the SetFocus messages, the control
23225 activation will do this, and if we do it blindly here validation
23228 2006-08-17 Jackson Harper <jackson@ximian.com>
23231 * ContainerControl.cs: Make validation events fire in the correct
23232 order. TODO: For some reason the first validation event is not
23235 2006-08-17 Mike Kestner <mkestner@novell.com>
23237 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23239 2006-08-17 Mike Kestner <mkestner@novell.com>
23241 * ComboBox.cs : implement scroll wheel support for popped-down
23242 state. Fixes #78945.
23244 2006-08-17 Jackson Harper <jackson@ximian.com>
23246 * TreeView.cs: Specify treeview actions (old patch that didn't get
23247 committed for some reason).
23248 - Don't let the mouse wheel scroll us too far. Just want to make
23249 the bottom node visible, not scroll it all the ways to the top.
23251 2006-08-17 Jackson Harper <jackson@ximian.com>
23253 * XplatUIX11.cs: Mouse wheel events go to the focused window.
23255 2006-08-17 Mike Kestner <mkestner@novell.com>
23257 * ComboBox.cs : don't do mouseover selection in simple mode.
23259 2006-08-16 Jackson Harper <jackson@ximian.com>
23261 * Form.cs: Fire the closing events for all the mdi child windows
23262 when a window is closed. If the cancel args are set to true, the
23263 main window still gets the event fired, but it doesn't not close.
23264 * MdiWindowManager.cs: Do this closing cleanup in a Closed
23265 handler, instead of when the button is clicked, so cancelling the
23266 close works correctly.
23267 * ComboBox.cs: Send the mouse down to the scrollbar.
23269 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23271 * ListBox.cs: When passing 'null' to SelectedItem,
23272 set SelectedIndex to -1, to unselect items. This is the
23273 observed behaviour in .Net.
23275 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
23277 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23278 MS flags saying there won't be any. (fixes #78800)
23279 * Control.cs (HandleClick): Made virtual
23281 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
23283 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23284 cultures. Fixed bug #78399.
23286 2006-08-16 Jackson Harper <jackson@ximian.com>
23288 * Form.cs: Use the MdiClients MdiChildren property to access
23289 MdiChildren instead of creating the array from the child controls.
23290 * MdiClient.cs: Maintain a separate array of the mdi children, so
23291 that insertion order is maintained when the Z-order is changed.
23293 2006-08-16 Mike Kestner <mkestner@novell.com>
23295 * ListView.cs : add an ItemComparer and default to it for sorting.
23296 Fixes #79076, but sorting needs a complete overhaul to be compat with
23299 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23301 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23303 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23305 * Hwnd.cs (Mapped): Properly traverse the tree
23307 2006-08-15 Chris Toshok <toshok@ximian.com>
23309 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
23310 pass manager.Current.GetType() to ParseData. It has to be the
23311 property type. So, hold off doing the ParseData until we're in
23312 SetPropertyValue where we know the type. This fixes the crash in
23313 #78821 but the textbox is still empty.
23315 2006-08-15 Chris Toshok <toshok@ximian.com>
23318 - when we're scrolling, only call Edit() again if the
23319 current cell is still unobscured. Fixes bug #78927.
23320 - when handling mousedown on a cell, ensure the cell is visible
23321 before calling Edit.
23322 - remove the properties from DataGridRow, and remove the
23323 DataGridParentRow class altogether.
23326 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23328 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23329 fire OnTextChanged by ourselves. There's no point calling base,
23330 we don't set the base value anywhere else. Fixes #78773.
23332 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23334 * ListBox.cs: Call CollectionChanged when modifying
23335 an item from Items indexer, to update the actual items
23338 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23340 * PrintDialog.cs: Small fixes for focus and a pair of checks,
23341 to match .Net behaviour.
23343 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23345 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23347 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23349 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23351 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23353 * MessageBox.cs: Prevent potential NRE exception.
23354 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23356 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23358 * MessageBox.cs: Calculate the owner of a messagebox, also make
23359 it topmost. Fixes #78753
23361 2006-08-14 Chris Toshok <toshok@ximian.com>
23363 * XplatUIX11.cs: A couple of fixes so that metacity will let us
23364 programmatically move windows. first, set the PPosition hint as
23365 well as the USPosition hint. Second include some code from pdb
23366 that sets the window type to NORMAL when we set the transient for
23367 hint. This is because, in the absence of a window type, metacity
23368 thinks any window with TransientFor set is a dialog, and refuses
23369 to let us move it programmatically. fascists.
23371 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23373 * XplatUIX11.cs: When setting normal hints, take into consideration
23374 an different hints previously set so we don't delete them (fixes #78866)
23376 2006-08-12 Chris Toshok <toshok@ximian.com>
23378 * ToolBarButton.cs: make Layout return a boolean, if something to
23379 do with the button's layout changed.
23382 - add another parameter to Redraw, @force, which all existing
23384 - make the Layout function return a boolean which is true if the
23385 layout has actually changed. Redraw now uses this (and @force)
23386 to determine when to invalidate. At present the only place
23387 where @force can be false is the call from OnResize, when
23388 background_image == null. So, resizing a toolbar when the
23389 layout doesn't change results in no drawing.
23391 2006-08-12 Chris Toshok <toshok@ximian.com>
23393 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
23394 the VScrollBar and HScrollbar reversed. oops.
23396 * DataGrid.cs: fix the logic that assigns sizes to the implicit
23397 scrollbars. we were assigning them twice (once in
23398 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23399 therefore causing two scrollbar resizes (and redraws?) to happen
23402 2006-08-12 Chris Toshok <toshok@ximian.com>
23404 * ToolBarButton.cs: redraw the entire button if the theme tells us
23407 * Theme.cs: add ToolBarInvalidateEntireButton.
23409 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23410 buttons, just the border.
23412 * ThemeNice.cs: redraw the entire toolbar button since we need to
23413 draw the highlight image.
23415 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23416 we need to redraw the entire button (not just the border).
23418 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23420 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23421 for vertical bars. Fixes the mismatches shown by #78513
23423 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
23425 * FileDialog.cs: If a saved/remembered path doesn't exist
23426 anymore, fall back to "Desktop".
23428 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23430 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23431 parent. It's apparently legal to not have one
23433 - SetZOrder: Don't try to set Z-Order on an unmapped window
23434 - CreateWindow: 0,0 are legal coordinates for a window. don't move
23435 it unless the coordinates are negative
23437 2006-08-10 Mike Kestner <mkestner@novell.com>
23439 * ListControl.cs: allow null for DataSource. Clear DisplayMember
23440 when setting to null per msdn docs. Fixes #78854.
23442 2006-08-10 Chris Toshok <toshok@ximian.com>
23444 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23445 flickering by setting a clip rectangle on the Graphics when we
23446 need to redraw just a particular menuitem. Also, rename "OnClick"
23447 to "OnMouseDown" to reflect what it actually is.
23449 * Form.cs: track the OnMouseDown change.
23451 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
23453 * CommonDialog.cs: Properly inherit the CreateParams from the form
23454 and only change what we need. Fixes #78865
23456 2006-08-10 Chris Toshok <toshok@ximian.com>
23458 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23459 flickering in flat mode (and most of the flickering in general) by
23460 only invalidating the button border (and not the entire rectangle)
23461 when the state changes. A couple of cases still flicker:
23462 ToggleButtons, and the dropdown arrow case when the user mouse
23465 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
23467 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23468 for german keyboards. Numlock state shouldn't affect the behaviour
23469 of the Del key. Fixes bug #78291.
23471 2006-08-10 Chris Toshok <toshok@ximian.com>
23473 * ListControl.cs: remove the items.Clear line from BindDataItems,
23474 as this is the first thing done by both subclasses in their
23475 SetItemsCore overrides. Also, add a ItemChanged handler, and when
23476 passed -1, refresh the list. This gets databinding working when
23477 the datasource is set on the list before the datasource is
23478 populated (as in wf-apps/ReportBuilder.)
23480 * ComboBox.cs: remove the argument to BindDataItems. This call
23481 should really go away, and be initiated by the ListControl code.
23483 * ListBox.cs: same.
23485 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23487 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23488 if no data is in the document when the control is displayed
23490 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23492 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23495 - PositionCaret: Allow positioning of caret but don't call methods
23496 requiring a handle if the window isn't created yet
23497 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23498 - owner_HandleCreated: Don't position the caret, just update it's
23499 location. User might have already set a different position
23501 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23503 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23504 windows. Screws up the returned coordinates for child windows.
23505 Fixes #78825. I'm hoping this doesn't break something, since the
23506 code was explicitly put in 8 months ago, but no bug was attached.
23507 Menus still seem to work properly.
23509 2006-08-08 Chris Toshok <toshok@ximian.com>
23511 * DataGrid.cs: make BeginInit/EndInit actually do what they're
23512 supposed to do - delay data binding until the EndInit call. Also,
23513 make the table style collection's CollectionChangeAction.Refresh
23516 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23517 (with action = Refresh) when a consituent table's MappingName is
23520 2006-08-08 Chris Toshok <toshok@ximian.com>
23522 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23523 Invalidate, since changing the text can change the size of the all
23526 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23528 * Form.cs (AddOwnedForm): Still need to add the form to our listif
23529 we don't have it yet
23531 2006-08-08 Chris Toshok <toshok@ximian.com>
23533 * PrintControllerWithStatusDialog.cs: don't .Close() the status
23534 dialog, as this causes X errors later on, since we actually
23535 destroy the window. Instead, .Hide() it.
23537 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23539 * ComboBox.cs: Added focus reflection for popup window
23541 - Removed transient setting for non-app windows for now, not sure it
23543 - Fixed logic checking if we have captions when deciding
23544 override_redirect, WS_CAPTION is two bits and a 0 check was not
23546 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23549 - AddOwnedForm: Don't just add the form to the list, call the property
23550 to ensure the driver is informed about the ownership as well
23551 - CreateHandle: Set the TopMost status in the driver if we have an owner
23552 * XplatUI.cs: Fixed debug statement
23554 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
23555 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23556 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23557 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
23558 TrackBarRenderer.cs: Make constructor private.
23559 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23560 * ProfessionalColorTable.cs: Make properties virtual.
23562 2006-08-06 Duncan Mak <duncan@novell.com>
23564 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23567 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23568 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23569 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23570 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23571 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23572 Initial import of new 2.0 classes.
23574 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23575 * Application.cs: Add 2.0 VisualStyles properties.
23577 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23578 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23579 XplatUIX11.cs: Create property to allow access to existing private
23580 variable "themes_enabled"
23582 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23584 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23585 file size, as otherwise our class libraries fail using windows. Fixes
23588 2006-08-04 Jackson Harper <jackson@ximian.com>
23591 * XplatUIX11.cs: Move the toolwindow window manager creation into
23592 the X11 driver, this way on win32 we can let windows create/handle
23595 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23597 * PrintDialog.cs: Remove some redundant checks, add some others,
23598 clean some code, and move the focus to the text boxes when the
23599 values are incorrect.
23601 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
23603 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23605 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23607 * NumericUpDown.cs: Setting the Minimum and Maximum is now
23608 handled correctly. Fixes bug #79001.
23610 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23612 * PrintDialog.cs: The "Copies" numeric up down must have
23613 set the Minimum property to 1; only if the value is bigger
23614 than 1, activate "Collate" check box. This is the behaviour of .Net.
23615 Also modify the Document elements only if it is not null.
23617 2006-08-03 Jackson Harper <jackson@ximian.com>
23619 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23620 length. (We have a larger array then actual node count).
23622 2006-08-03 Jackson Harper <jackson@ximian.com>
23624 * ComboBox.cs: Don't show selection by default.
23625 - The SelectAll isn't needed here, since the focus code should do
23627 - DDL style lists to manual selection drawing, so when they
23628 get/lose focus they have to invalidate.
23630 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
23632 * TextBoxBase.cs: Don't always show all selections by default.
23634 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
23635 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23636 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23637 Fixed various typos.
23639 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23641 * Control.cs: Removing the controls in a ControlCollection with
23642 Clear now hides the controls as expected. Fixes bug #78804.
23644 2006-08-03 Jackson Harper <jackson@ximian.com>
23646 * Control.cs: Revert previous focus patch, it breaks reflector.
23648 2006-08-03 Jackson Harper <jackson@ximian.com>
23650 * ComboBox.cs: Cleanup selection and focus with the combobox.
23651 This also eliminates some duplicated keyboard code, since now
23652 everything is handled by the main class.
23653 - Make list selection work on mouse up instead of down, to match
23656 2006-08-02 Jackson Harper <jackson@ximian.com>
23658 * Control.cs: Setting focus needs to go through the whole
23659 selection mechanism.
23661 2006-08-02 Chris Toshok <toshok@ximian.com>
23663 * PrintPreviewDialog.cs: change MinimumSize to use
23664 base.MinimumSize so it works.
23666 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
23669 - UpdateCaret: Added sanity check in case caret isn't defined yet
23670 - Line.Delete: Now updating selection and caret markers if we're
23671 transfering a node (Properly fixes #78323)
23672 - SetSelectionEnd: Added sanity check
23673 * TextBoxBase.cs: Removed broken attempt to fix #78323
23675 2006-08-01 Chris Toshok <toshok@ximian.com>
23677 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
23678 Close() call is handled in Form, not here.
23680 2006-08-01 Chris Toshok <toshok@ximian.com>
23682 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
23685 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
23686 for sizes < 100% zoom. The code now aggressively attempts to keep
23687 from calling document.Print (), and tries not to use the scaling
23688 g.DrawImage whenever possible (it still does if you scale to >
23689 100%, since usually that involves huge images).
23691 * PrintPreviewControl.cs: hook up the close button.
23693 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
23694 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
23695 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
23696 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
23697 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
23698 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
23699 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
23700 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
23701 Removed [Serializable] for 2.0 Event Handlers.
23703 2006-07-31 Jackson Harper <jackson@ximian.com>
23705 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
23706 * TextControl.cs: Uncomment out the body of this method.
23708 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
23710 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
23713 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23715 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
23716 that embed TextBox and need selections visible even if textbox is not
23717 focused to enforce that behaviour.
23718 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
23721 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23724 - Added new SetSelectionStart/SetSelectionEnd overloads
23725 - Fixed viewport width assignment to be accurate
23726 - Adjusted alignment line shift calculations to allow cursor on right
23727 aligned lines to be always visible at the right border (like MS)
23729 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
23730 - TextBoxBase_SizeChanged: recalculating canvas on size changes
23731 - CalculateScrollBars: Use ViewPort size instead of window size, to
23732 properly consider space occupied by the border and scrollbars
23734 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
23735 calculations; no longer leaves artifacts
23736 - CaretMoved: Adjusted window scrolling to match MS and fixed several
23737 calculation bugs (Still missing right/center align calculations)
23739 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23741 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
23742 use of both scroll rect and clip rect, as they do the same.
23744 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
23746 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
23747 in the event handler (fixes #78912)
23749 2006-07-31 Chris Toshok <toshok@ximian.com>
23751 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
23752 grid.ListManager.Count, since grid.ListManager might be null.
23753 This of course begs the question "why are we drawing rows for a
23754 grid with no list manager (and therefor no rows)?" Fixes the
23755 crash in bug #78929.
23757 2006-07-31 Chris Toshok <toshok@ximian.com>
23759 * RelatedPropertyManager.cs: Don't always chain up to the parent
23760 ctor. instead, call SetDataSource if the parent's position is !=
23761 -1. Fixes the crash in #78822.
23763 2006-07-31 Chris Toshok <toshok@ximian.com>
23765 * DataGrid.cs (get_ListManager): use field instead of property
23766 accessors for datasource and datamember.
23767 (RowsCount): make internal again.
23768 (OnMouseDown): end edits before resizing columns/rows.
23769 (OnMouseUp): restart edits after resizing columns/rows.
23771 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
23773 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
23774 This fixes the situation where the last set cursor is displayed
23775 whenever the mouse is over scrollbars.
23777 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23779 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
23780 Document properties, as well as initial values.
23782 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
23784 * XplatUIWin32.cs (SetBorderStyle): Setting both border
23785 and ClientEdge results in a 3-pixel border, which is
23788 2006-07-28 Jackson Harper <jackson@ximian.com>
23790 * TreeNodeCollection.cs: Fix the clear method.
23791 - Fix the Shrink also
23793 2006-07-27 Jackson Harper <jackson@ximian.com>
23795 * TreeView.cs: Make sure the visible order is computed when we
23796 attempt to size the scrollbars (for trees that mess with the
23797 scrolling when they shouldn't.
23798 - Make sure to give the scrollbars valid values.
23800 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23802 * XplatUIX11.cs: Move motion compression code to where it
23803 has less performance impact
23805 2006-07-26 Jackson Harper <jackson@ximian.com>
23807 * UpDownBase.cs: When the control is selected make the child
23808 controls non selectable, so that a click on them won't do a
23809 focus/unfocus cycle.
23810 - Don't give focus to the text box when the spinner is selected.
23811 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
23813 2006-07-26 Chris Toshok <toshok@ximian.com>
23815 * ThemeWin32Classic.cs: add print preview rendering. I'm not
23816 satisfied with this solution. If the bitmaps are small, we should
23817 just cache them in the PrintPreviewDialog and draw them here.
23818 Also, the layout is broken for the 2-up and 3-up cases.
23820 * Theme.cs: add PrintPReviewControlPaint.
23822 * PrintPreviewDialog.cs: first pass implementation.
23824 * PrintPreviewControl.cs: first pass implementation. No
23827 * PrintDialog.cs: only validate fields if that particular portion
23828 of the UI is enabled. Also, set the document's controller to a
23829 PrintControllerWithStatusDialog wrapping the document's print
23832 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
23833 bring up a SaveFileDialog (i hope we don't want to match the
23834 behavior of the crappy windows file entry) and set the
23835 PrinterSettings.PrintFileName accordingly.
23837 2006-07-26 Jackson Harper <jackson@ximian.com>
23839 * ContainerControl.cs: Add a field that disables auto selecting
23840 the next control in a container when the container is activated.
23841 * UpDownBase.cs: Don't select the text box when the up down is
23844 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
23846 * XEventQueue.cs: Added methods for peeking (used for compression
23847 of successive events)
23848 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
23849 mouse move events (fixes #78732)
23851 2006-07-25 Jackson Harper <jackson@ximian.com>
23853 * UpDownBase.cs: Use an internal class for the textbox so that we
23854 can control focus. the updown control should always have focus,
23855 if either the text area or the buttons are clicked.
23856 - Send the key messages to the textbox, since it never actually
23858 - Activate and decativate the textbox caret.
23860 2006-07-24 Jackson Harper <jackson@ximian.com>
23862 * Control.cs: Use the directed select when selecting a control,
23863 this way the container controls override will get called and the
23864 whole ActiveControl chain will get triggered. TODO: probably need
23865 to make sure this gets done everywhere instead of the old
23867 * ContainerControl.cs: Implement the directed Select method to
23868 find and activate the correct child control.
23870 2006-07-22 Mike Kestner <mkestner@novell.com>
23872 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
23873 menu handling code so that clicks without a grab work too.
23876 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
23878 * FileDialog.cs: Enable the BackButton when dirstack has one element.
23879 Added some small optimizations.
23881 2006-07-21 Matt Hargett <matt@use.net>
23883 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
23885 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
23887 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
23888 tests pass and match MS in some strange border cases.
23890 2006-07-21 Chris Toshok <toshok@ximian.com>
23892 * ThemeWin32Classic.cs: handle drawing of the relation links and
23893 parent row buttons.
23895 * Theme.cs: change args to DataGridPaintParentRow.
23897 * DataGrid.cs: Don't use controls for the relation links and
23898 parent buttons, so we have to handle all their interactions in
23899 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
23900 when we're navigating through child tables, so we can reinstate
23901 selection, expanded state, current cell, etc.
23903 2006-07-20 Chris Toshok <toshok@ximian.com>
23905 * ToolBar.cs: When we redraw a button, for whatever reason,
23906 there's no reason to redraw the entire toolbar. Also, don't call
23907 Control.Refresh from within Redraw, as it's much heavier than
23908 Invalidate (which is really what we want).
23910 2006-07-20 Chris Toshok <toshok@ximian.com>
23912 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
23913 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
23914 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
23915 traces from within a debug IBindingList datasource
23916 (in mono/winforms/datagrid) for *days*, I've finally gotten things
23917 to work in a similar fashion.
23919 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23921 * ListBox.cs: Don't call Sort () when setting
23922 the Sorted property to false (avoid an unnecessary sort).
23924 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23926 * ListControl.cs: DataSource should throw an ArgumentException
23927 instead of a normal exception when the argument is not of the
23930 2006-07-20 Mike Kestner <mkestner@novell.com>
23932 * Control.cs: add InternalPreProcessMessage to allow us to steal
23933 key events before MWF gets its paws on them. Adapted from a
23935 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
23936 up/down/left/right navigation. Override the new internal control
23937 method to steal the events since they never make it to WndProc.
23938 * ToolBarButton.cs: don't worry about pushed when setting hilight
23939 since the drawing code prefers pushed to hilight. Invalidate on
23940 Hilight changes. Fixes #78547 and #78525.
23942 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23944 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
23945 the canvas size. Fixes #78868
23947 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23949 * Splitter.cs: Track requested split position until first layout
23950 is performed. Fixes #78871
23952 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
23954 * Application.cs: Removed code that forces 1.x for the version
23955 number if the version started with 0. Not sure why that code was
23956 there and I couldn't find any bugs that indicated we needed it.
23959 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
23961 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
23962 ResetDefaults(), just write some output to the console until it's
23963 implemented. Fixes bug #78907 for now. Eliminated two warnings.
23965 2006-07-19 Jonathan Chambers <joncham@gmail.com>
23967 * PropertyGridView.cs: set StartPosition of drop down forms
23968 so they appear in correct initial spot. Fixes #78190.
23970 2006-07-19 Mike Kestner <mkestner@novell.com>
23972 * ThemeWin32Classic.cs: use parent background color when drawing
23973 flat toolbars. Restructure the conditionals to make sure non-flat
23974 non-Divider toolbars are filled too. Fixes #78837.
23976 2006-07-19 Mike Kestner <mkestner@novell.com>
23978 * ListBox.cs: Sort on collection changes even if the handle
23979 isn't created yet. Fixes #78813.
23981 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23983 * ListControl.cs: DisplayMember should never be null,
23984 and now we assign String.Empty when null is passed to it (this
23987 2006-07-17 Mike Kestner <mkestner@novell.com>
23989 * ListViewItem.cs: restructure Font and subitem Font handling
23990 to hold a specific font and refer back to owner on null.
23993 2006-07-17 Mike Kestner <mkestner@novell.com>
23995 * ToolBar.cs: bandaid for side-effect of previous patch which was
23996 discarding explicit heights for non-AutoSize toolbars. Need to
23997 extend my format tester to deal with AutoSize=false. Fixes #78864.
23999 2006-07-15 Jackson Harper <jackson@ximian.com>
24001 * LabelEditTextBox.cs:
24002 * TreeView.cs: Use a new LabelEdit class for node editing, this
24003 class automatically 'closes' itself when it gets the enter key or
24005 - Use the client rectangle when setting the trees scrollbars, so
24006 border style is taken into account.
24008 2006-07-14 Jackson Harper <jackson@ximian.com>
24011 * TreeView.cs: Make the editing work similar to MSs, firing the
24012 events correctly and ending edits correctly.
24014 2006-07-14 Mike Kestner <mkestner@novell.com>
24016 * ToolBarButton.cs:
24017 * ToolBar.cs: layout restructuring and redraw enhancements to support
24018 formatting changes gracefully, like setting TextAlign, ImageList,
24019 ButtonSize, and Appearance. Handles explicit button sizing quirks
24020 of the MS controls. Things like flat toolbars ignoring button size
24021 but becoming constant sized at the largest button's size. Normal
24022 toolbars with an image set cannot be shrunk smaller than the image,
24023 but text can be clipped/ignored.
24024 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24025 is zero. Seems like DrawString should be smart enough to not put
24026 anything on screen though. Also trim labels and ellipsize at the char
24027 boundary, not word.
24028 Fixes #78711 and #78483.
24030 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24032 * FolderBrowserDialog.cs: Disable "New Folder" button and
24033 "New Folder" contextmenu menuitem if a folder like "My Computer"
24036 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24038 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24039 * FolderBrowserDialog.cs:
24040 - Use MWFConfig to store and read size and position settings
24041 - Added code to create a new folder (button or context menu).
24042 Use TreeView labeledit to change the name of the new folder.
24044 2006-07-14 Jackson Harper <jackson@ximian.com>
24046 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
24047 when the tree is scrolled we end editing.
24049 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24051 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24054 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24056 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24057 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24058 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24059 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24060 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24061 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24062 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24063 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24064 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24065 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24066 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24067 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24068 ListViewItemSelectionChangedEventHandler.cs,
24069 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24070 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24071 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24072 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24073 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24074 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24075 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24076 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
24077 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
24078 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24079 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24080 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24081 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24082 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24083 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24084 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24085 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24086 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24087 WebBrowserNavigatingEventHandler.cs,
24088 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24090 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24092 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24093 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24094 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24095 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24096 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24097 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24098 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24099 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24100 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24101 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24102 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24103 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24104 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24105 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24106 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24107 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24108 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24109 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24110 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24111 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24112 ListViewItemStates.cs, MaskFormat.cs: Added
24114 2006-07-13 Jonathan Chambers <joncham@gmail.com>
24116 * PropertyGridView.cs: Fix keyboard navigation of drop down.
24117 Patch from eno for bug 78558.
24119 2006-07-13 Jackson Harper <jackson@ximian.com>
24121 * TreeView.cs: When an edit is finished make sure that the
24122 selected node is visible.
24123 - When setting the top/bottom use the scrollbars is_visible, so
24124 everything will be set correctly even if the tree isn't visible
24127 2006-07-13 Jackson Harper <jackson@ximian.com>
24129 * ComboBox.cs: Revert the item->index part of my previous patch.
24130 * TreeView.cs: Use LostFocus instead of Leave for detecting when
24131 the edit box has lost focus (duh).
24132 - Just make the edit box not visible when we get return, that will
24133 take the focus, which will call EndEdit
24134 * TreeNode.cs When we start editing, notify the treeview.
24136 2006-07-12 Jackson Harper <jackson@ximian.com>
24138 * ComboBox.cs: Clear out old items before setting the item list.
24139 This prevents databound controls from having their items added
24141 - Switch the combobox to use indices whereever possible instead of
24142 using Item's. This allows usto navigate through lists that have
24143 more then one item with the same string value (ie a, b, b, a).
24144 - Scroll the listboxes scrollbar when a non visible item is
24146 - Allow keypress to cycle through all the possible values. For
24147 example if you have b1, b2, b3 and hold down the B key all the
24148 values will be cycled through.
24150 2006-07-12 Jackson Harper <jackson@ximian.com>
24153 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24154 this using the internal methods.
24155 * Control.cs: Add OnGotFocusInternal. A new method that allows
24156 controls to "override" OnGotFocus and change focus behavior if
24158 - Same thing for LostFocus
24159 * ComboBox.cs: Pass off focus to the text control properly.
24161 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
24163 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24164 * FolderBrowserDialog.cs: Almost a complete rewrite.
24165 - Better support for Environment.Specialfolders
24166 - Added support for MWFVFS
24167 - Made setting SelectedPath work
24169 2006-07-12 Jackson Harper <jackson@ximian.com>
24171 * Control.cs: Optimze getting all the controls.
24173 2006-07-11 Jackson Harper <jackson@ximian.com>
24175 * ContainerControl.cs: Override SETFOCUS in the container control,
24176 so that it is not selected on mouse click.
24178 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24180 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
24181 Hopefully we will have a better way once all of focus is complete.
24183 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24185 * ThemeWin32Classic.cs: Commented out some debug code and fixed
24186 a compile error with csc.
24188 2006-07-11 Jackson Harper <jackson@ximian.com>
24190 * Control.cs: When hiding a control only select the next control
24191 if the current control was focused.
24192 - Don't handle enter/leave when setting/killing focus, this is
24193 done by the container control.
24194 - Remove is_selected, it's not needed anymore.
24195 - Add utility methods for selecting a child control, and for
24196 firing the Enter/Leave events.
24197 * ContainerControl.cs: When a control is activated fire the
24198 enter/leave events.
24199 - Don't wrap when processing the tab key, so that focus can be
24200 moved outside of the container.
24201 - Use the correct active control
24203 2006-07-11 Jackson Harper <jackson@ximian.com>
24205 * ComboBox.cs: Remove some debug code that was blinding me.
24206 * UpDownBase.cs: These controls actually aren't implicit, they are
24207 visible to the user.
24209 2006-07-10 Chris Toshok <toshok@ximian.com>
24211 * DataGrid.cs: move back to the is_adding boolean field. god i
24212 hate this is_editing/is_adding/is_changing stuff.
24214 2006-07-10 Chris Toshok <toshok@ximian.com>
24216 * DataGridTableStyle.cs: just check if the property type is bool.
24217 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24218 Don't use CanRenderType.
24220 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24221 if our text == NullText. Remove CanRenderType.
24223 * DataGridBoolColumn.cs: nuke CanRenderType.
24225 * DataGrid.cs: reenable some code to end the current edit inside
24226 of set_CurrentCell. This fixes the other 1.1.16 regression.
24227 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24228 Also, remove the visible_row_count arg from CalcRowHeaders, since
24229 we don't need to worry about the actual height of the area.
24231 2006-07-10 Chris Toshok <toshok@ximian.com>
24233 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24236 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24237 the real sense of the IsInEditOrNavigateMode property (true =
24238 navigate, false = edit). Also, update OnKeyPress to reflect this.
24240 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24241 column style exists, we still need to set its property descriptor
24242 to match up with our list manager.
24244 2006-07-10 Chris Toshok <toshok@ximian.com>
24246 * ThemeWin32Classic.cs: implement the new row/header painting
24247 approach. The parent row painting will likely go away and
24248 replaced with label controls, but the rest seems to work ok (and
24251 * Theme.cs: change the way we draw datagrid rows. we don't draw
24252 the row headers as a block now. Instead we draw them in the
24253 normal draw-row loop. Add some calls for drawing parent rows and
24256 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24257 a default table style. Set the defaults from ThemeEngine.Current,
24258 not SystemColors. Fix lots of misc issues with property setters.
24260 * DataGrid.cs: move loads of style information out of this class
24261 as it's being duplicated with DataGridTableStyle. keep track of a
24262 special DataGridTableStyle for the properties we used to mirror
24263 here. Switch all the style properties to access this table style
24264 instead of instance fields of this class. Also add a internal
24265 class to represent parent rows (more needs to be stored here, like
24266 the selection state from the parent table, as well as the
24267 expansion state.) Also, for datasources with relations, do the
24268 right thing for collapse/expand, and add support for the
24269 navigation/parent row buttons.
24271 Lastly, fix the crash in the 1.1.16 build.
24273 * GridTableStylesCollection.cs: make the explicit interface
24274 implementations call the class's methods as opposed to duplicating
24277 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24278 0 so the text doesn't jump around when we move the cursor.
24280 2006-07-10 Jackson Harper <jackson@ximian.com>
24283 * ListBox.cs: Match MS's ToString (this makes debugging focus
24284 stuff infinitely easier).
24286 2006-07-10 Jackson Harper <jackson@ximian.com>
24288 * Control.cs (SelectNextControl): When checking the control's
24289 parent use this instead of ctrl.parent so that null can be passed
24290 to SelectNextControl. (I have unit tests for this).
24291 - Remove unused var.
24293 2006-07-10 Chris Toshok <toshok@ximian.com>
24295 * CurrencyManager.cs: correct one regression, the removal of the
24296 finalType field. Also, add a MonoTODO on CanAddRows, implement
24297 Refresh() correctly, and fix some event emission in
24298 ListChangedHandler.
24300 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24302 * FileDialog.cs: Don't use brackets for new folders if they exist
24303 under *nix. Instead use -(number of existing folders +1).
24305 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24308 - Fixed really nasty bug #78771
24309 - Don't block the whole GUI when reading directories with a lot of
24310 entries. Use an other thread instead and call BeginInvoke to
24311 update the ListView in MWFFileView
24313 2006-07-07 Chris Toshok <toshok@ximian.com>
24315 * Control.cs (Dispose): release any Capture when disposing.
24317 2006-07-07 Chris Toshok <toshok@ximian.com>
24319 * LinkLabel.cs (Select): if we chain up to the parent, set
24320 focused_index to -1 so we'll search for the first available link
24321 the next time the user tabs into us. Also, if the direction is
24322 backward and focused_index == -1, start the search from the last
24325 2006-07-07 Chris Toshok <toshok@ximian.com>
24327 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24328 is beyond the end of the text, don't do anything.
24329 (CreateLinkPieces): set our ControlStyles.Selectable based on
24330 whether or not we have any links.
24331 (Link.Invalidate): use a loop instead of foreach.
24332 (Link.set_Start): null out owner.sorted_links so it'll be
24333 recreated by CreateLinkPieces.
24335 2006-07-06 Chris Toshok <toshok@ximian.com>
24337 * LinkLabel.cs: revert the SetStyle change.
24339 2006-07-06 Chris Toshok <toshok@ximian.com>
24341 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24342 (OnEnableChanged): s/Refresh/Invalidate
24343 (OnGotFocus): if we have a focused index already, refocus it (so
24344 if we mouse out/in to the window it'll focus the right link).
24345 (OnKeyDown): move the tab handling out of here.
24346 (OnLostFocus): don't set focused_index to -1, so we can refocus it
24347 when we lose focus.
24348 (OnMouseDown): don't Capture here - Control handles it. Also,
24349 focus the active link.
24350 (OnMouseUp): don't deal with Capture.
24351 (OnPaintBackgroundInternal): remove.
24352 (OnTextAlignChanged): CreateLinkPieces before calling the
24353 superclass's method.
24354 (OnTextChanged): call CreateLinkPieces before calling superclass's
24356 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24358 (Select): implement this, moving the selection between different
24359 links, and call parent.SelectNextControl if we don't have another
24360 link to focus in the given direction.
24361 (CreateLinkPieces): call Invalidate instead of Refresh.
24363 2006-07-06 Chris Toshok <toshok@ximian.com>
24365 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24366 new LinkLabel internals.
24368 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
24369 over pieces looking for active/focused/etc links. also, deal with
24370 runs of text (and links) with embedded \n's in them, and use
24371 MeasureCharacterRanges instead of MeasureString to figure out the
24372 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
24375 2006-07-04 Jackson Harper <jackson@ximian.com>
24377 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24378 XKB or key auto repeat, do it manually. Without key auto repeat,
24379 when a key is held down we get key press, key release, key press,
24380 key release, ... with auto repeat we get key press, key press, key
24381 press ..., and then a release when the key is actually released.
24383 2006-07-03 Jackson Harper <jackson@ximian.com>
24386 * ThemeWin32Classic.cs: Tabs do not obey normal background color
24387 rules, they are always control color regardless of the background
24390 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
24392 * FileDialog.cs: Added internal class MWFConfig.
24393 Removed Registry support and replaced it with support for the new
24394 MWFConfig class. See MWFConfig comments for more information.
24396 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
24398 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24399 rectangle. Added some patches from eno from bug #78490 and fixed
24400 the arrow position for small up and down CPDrawScrollButtons.
24402 2006-06-30 Jackson Harper <jackson@ximian.com>
24404 * InternalWindowManager.cs: Remove some debug code.
24405 * Form.cs: When an MdiParent is set to null, the window is
24406 "detatched" and becomes a normal window.
24407 * MdiClient.cs: Don't bring the new child form to the front until
24408 it is activated (setting it as active does this), this makes the
24409 previously active forms titlebar get redrawn as inactive.
24411 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
24413 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24414 with later controls
24416 2006-06-29 Mike Kestner <mkestner@novell.com>
24418 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24419 arrow in keynav state. Fixes #78682.
24421 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24423 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
24424 order (fixes #78393)
24426 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
24428 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
24429 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24430 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24431 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24432 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24433 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
24434 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24435 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24436 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24437 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24438 enumerations (FlagsAttribute, SerializableAttribute, added/removed
24441 2006-06-28 Mike Kestner <mkestner@novell.com>
24443 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24445 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24448 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24449 item lines from other area (It also makes BackColor consistent and
24450 compatible with .NET). Fixed bug #78564.
24452 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
24454 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24455 Patch from Eno for #78555.
24457 2006-06-27 Chris Toshok <toshok@ximian.com>
24459 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24461 * DataGridColumnStyle.cs: same.
24463 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24465 * DataGridDrawingLogic.cs: nuke.
24467 2006-06-27 Chris Toshok <toshok@ximian.com>
24469 * DataGridTableStyle.cs: clean up the constructors, and build the
24470 list of child relations for this table. I have no idea if this is
24471 where we should be doing it (it probably isn't), but since we're
24472 already iterating over the properties..
24474 * DataGrid.cs: add row resizing. for now we add a DataGridRow
24475 struct and array for keeping track of row information, similar to
24476 what's shown in a hack on
24477 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24479 * Theme.cs: be consistent about the naming of DataGrid methods,
24480 prefering ColumnWidths and RowHeights over columnsWidths and
24483 * ThemeWin32Classic.cs: same, and also add support for variable
24484 sized rows (and the +/- expansion icons for related rows).
24486 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24488 * TextBoxBase.cs: Applied Eno's patch from #78660
24490 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24492 * Form.cs (ScaleCore): We don't want to scale our form if it's
24493 state is minimized or maximized, but we still need to scale our
24494 child windows. Also, added try/finally block to ensure layout
24495 gets reset (Fixes #78697)
24497 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24499 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24501 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24503 * Form.cs: Fixed c+p error and added check to resize form if minimum
24504 size is bigger than current size (Fixes #78709)
24506 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
24508 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24510 2006-06-26 Mike Kestner <mkestner@novell.com>
24512 * ComboBox.cs: only do Keypress handling in the combo when there
24513 are items in the collection. Fixes #78710.
24515 2006-06-26 Chris Toshok <toshok@ximian.com>
24517 * Binding.cs: make this work bi-directionally. also, clear up
24518 other mixups between Push/Pull Data (e.g. we're supposed to pull
24519 data when validating).
24521 * BindingManagerBase.cs: trim some fully qualified collection
24524 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24526 2006-06-23 Chris Toshok <toshok@ximian.com>
24528 * PropertyManager.cs: It appears (according to the unit tests)
24529 that PropertyManager doesn't use
24530 PropertyDescriptor.AddValueChanged to track propery value changes
24531 in its datasource, but uses the same scheme as Binding, where it
24532 looks for a <Property>Changed event and binds to it.
24534 Also, according to the docs, IsSuspended always returns false for
24535 a property manager with a non-null datasource.
24537 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24539 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24540 need to update the actual DialogResult. (Fixes #78613)
24542 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24544 * Form.cs (ShowDialog): Release any captures before running the
24545 new message pump (fixes #78680)
24547 2006-06-22 Mike Kestner <mkestner@novell.com>
24549 * ListView.cs: Layout column widths properly in details mode even
24550 if HeaderStyle.None is set. Fixes #78691.
24552 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24554 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24556 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24558 * Control.cs (ContainsFocus): Using new driver method to get focused
24559 window, instead of trying to use internal tracking var, which can
24560 recursion issues (Fixes #78685)
24561 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24562 XplatUIWin32.cs: Added GetFocus method to return focused window
24564 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24566 * ColorDialog.cs: when the mouse button is pressed inside the color
24567 matrix, don't let the cursor move out of it until the button is
24568 released, which is the behavior on windows. Changed 'colours' by
24569 'colors' to use the same word consistently.
24571 2006-06-21 Chris Toshok <toshok@ximian.com>
24573 * DataGrid.cs: add in some basic navigation stuff (navigating to a
24574 child relation and back, using a stack). Also, remove
24575 GetDataSource and the code that calls it - it's not needed. Also,
24576 track CurrencyManager.ListName's removal.
24578 2006-06-21 Chris Toshok <toshok@ximian.com>
24580 * CurrencyManager.cs: push some of the original type checking from
24581 BindingContext.CreateBindingManager to here, and remove some of
24582 the finalType stuff. Need more tests to make sure I've got the
24583 ListName part right, and we might need more in SetDataSource.
24585 * PropertyManager.cs: add a ctor that takes just the datasource,
24586 and no property name. Make SetDataSource work with a null
24587 property_name, and make Current return the data_source if the
24588 property descriptor is null. this makes 'string foo = "hi";
24589 BindingContext[foo].Current' return "hi" as it should.
24591 * RelatedCurrencyManager.cs: make this code more generic - there's
24592 no reason the parent manager has to be CurrencyManager, and
24593 there's no reason to pass the DataRelation. It suffices to use a
24594 BindingManagerBase and PropetyDescriptor.
24596 * RelatedPropertyManager.cs: make a similar change here.
24598 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24599 flower I knew it could be.
24601 2006-06-20 Chris Toshok <toshok@ximian.com>
24603 * PropertyManager.cs: the PropertyChangedHandler is invoked when
24604 data in the source has changed and we need to update the control,
24605 so s/PullData/PushData.
24607 * CurrencyManager.cs: Refresh is meant to update the control from
24608 data in the datasource. So, s/PullData/PushData.
24610 * BindingContext.cs: add more ugliness (we weren't handling the
24611 case where data_source = DataTable and data_member = column_name).
24613 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
24614 from the perspective of the datasource. PullData pulls from the
24615 control, PushData pushes to the control.
24617 2006-06-20 Chris Toshok <toshok@ximian.com>
24619 * BindingContext.cs: rewrite the CreateBindingManager code to
24620 handle navigation paths more or less properly. This could
24621 definitely stand some more work, in particular to push the
24622 recursion up to the toplevel. But that relies on fixes in other
24623 places (System.Data comes to mind).
24625 Also, move to a flat hashtable (and encode the twolevel nature of
24626 the dictionary into the hash key). This lets us implement the
24627 IEnumerable.GetEnumerator method.
24629 * RelatedCurrencyManager.cs: new class. Update our view based on
24630 our relation and our parent CurrencyManager's position.
24632 * CurrencyManager.cs: split out some logic from the ctor into
24633 SetView, so it can be called from the new RelatedCurrencyManager
24636 * RelatedPropertyManager.cs: new class. Update our datasource
24637 based on the position of our parent CurrencyManager.
24639 * PropertyManager.cs: split out some logic from the ctor into
24640 SetDataSource, so it can be called from the new RelatedDataSource
24641 subclass. Also, make the Current getter return the value
24642 of the PropertyDescriptor, not the data_source.
24644 * Binding.cs: no need to duplicate the string splitting code here.
24646 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24649 - set_Enabled: OnEnabledChanged is not called if the inherited state
24650 of the control is not altered, even though we might be changing the
24651 internal state of the control (#78458)
24652 - set_Enabled: (Re)Moved the enabling/disabling of the window to
24653 OnEnabledChanged, to allow easy altering of any child window state
24654 - OnEnabledChanged: Added code to enable/disable driver window state
24655 - OnParentEnabledChanged: Instead of firing the event, call
24656 OnEnabledChanged, which will fire the event and also a) set driver
24657 window state and pass the enabled state to any grandchildren (#78458)
24659 2006-06-19 Jackson Harper <jackson@ximian.com>
24661 * InternalWindowManager.cs: We don't set the cursor explicitly
24662 thats done via the response to NCHITTESTs.
24663 - Don't need to adjust for titlebar heights anymore, the
24664 coordinates are coming in the correct coordinates now (see peters
24668 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
24670 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
24671 being translated relative to whole window, instead of client window.
24672 That caused broken offsets on mouseclick (and caused gas for our
24673 InternalWindowManager)
24675 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24678 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
24679 - Undo(): Added replay of cursor move on DeleteChars action; added
24680 calling Undo() again if a recorded cursor move is invalid (to
24681 ensure that some action is performed on Undo)
24682 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
24684 2006-06-16 Jackson Harper <jackson@ximian.com>
24686 * MdiClient.cs: Instead of just sizing maximized windows when
24687 there is a resize we also have to adjust the Y of minimized
24688 windows, so they stay pinned to the bottom of the mdi container.
24689 - Eliminate separate tracking of the active control, we can just
24690 get this from the controls collection.
24691 - Paint the decorations for the newly activated titlebar so we get
24693 * InternalWindowManager.cs:
24694 * ThemeWin32Classic.cs: Minimized windows get all three buttons
24695 even if they are a tool window.
24697 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
24699 * TextControl.cs (Undo): Handle non-existent cursor locations in the
24700 undo buffer, these can happen when text was deleted and the cursor
24701 was recorded first. Since we will also have a recorded cursor
24702 after the delete this is not an issue. (Fixes #78651)
24704 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
24706 * AccessibleObject.cs: Remove dependence on Control.is_selected;
24707 instead properly track control states internally (allows us to
24708 remove is_selected from Control)
24710 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24712 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
24713 whose width is not a multiple of 8.
24715 2006-06-13 Jackson Harper <jackson@ximian.com>
24717 * MdiClient.cs: Only maximize the next child if the current one
24720 2006-06-13 Chris Toshok <toshok@ximian.com>
24722 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
24723 modified. Also, guard against grid or grid_drawing being null in
24726 * DataGrid.cs: Reformat tons of getters/setters. In the
24727 DataMember setter, just call SetNewDataSource instead of
24728 duplicating some of its functionality. In SetNewDataSource, don't
24729 check ListManager for null, since the property getter creates the
24732 * DataGridTableStyle.cs: don't set TableStyle or call
24733 SetDataGridInternal on the column here, it's done in
24734 GridColumnStylesCollection.Add.
24736 * GridColumnStylesCollection.cs: fix all the explicit interface
24737 implementations to just call our methods. Nuke AddInternal() and
24738 move the body of it to Add(). Also, add a call to
24739 column.SetDataGridInternal to Add().
24741 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
24742 base()+duplicate code. Also, use the Format property instead of
24743 format to generate an Invalidate ala MS. Lastly, create the
24744 textbox here, unconditionally.
24745 (set_Format): call Invalidate.
24746 (get_TextBox): no need to call EnsureTextBox.
24747 (Commit): remove the message box.
24748 (Edit) remove the call to EnsureTextBox.
24749 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
24750 (EnterNullValue): no need to check textbox for null.
24751 (HideEditBox): no need to check textbox for null.
24752 (SetDataGridInColumn): add the textbox to the grid's controls.
24753 (EnsureTextBox): nuke.
24755 2006-06-13 Jackson Harper <jackson@ximian.com>
24757 * MdiWindowManager.cs: Hook up to the maximized menus paint event
24758 and redraw the buttons when needed. Unhook when the window is
24760 * MainMenu.cs: Add an internal Paint event, the mdi window manager
24761 needs this so that it can redraw its buttons when the menu is
24763 * InternalWindowManager.cs:
24764 * Form.cs: The method order has changed for DrawMaximizedButtons,
24765 so that it can be a PaintEventHandler.
24767 2006-06-13 Jackson Harper <jackson@ximian.com>
24769 * MdiClient.cs: When we close a maximized mdi window, the next mdi
24770 window is activated and maximized, even if it wasn't before.
24771 - When a new window is activated repaint the decorations of the
24772 old one, so that it no longer has the Active "look" (the blue
24774 * InternalWindowManager.cs: Open up CreateButtons to base classes
24775 so they can recreate the buttons on state changes.
24776 - If a window is maximized give it all three buttons
24777 * MdiWindowManager.cs: Create the titlebar buttons when the state
24778 is changed, this is needed because a toolwindow will not have all
24779 three buttons until it is maximized.
24781 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
24783 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
24786 2006-06-12 Jackson Harper <jackson@ximian.com>
24788 * KeysConverter.cs: Make sure we handle the Ctrl special case
24789 if its the only key.
24791 2006-06-12 Jackson Harper <jackson@ximian.com>
24793 * Theme.cs: Add a method to get the size of a managed window
24795 * InternalWindowManager.cs: Remove the ButtonSize property, this
24796 should be retrieved from the theme.
24797 * MdiWindowManager.cs: Get the button size from the theme
24798 * ThemeWin32Classic.cs: Make the method to get the managed window
24799 titlebar button size public.
24800 - Handle the different button sizes of maximized toolwindows
24801 (should match any maximized window).
24802 - Get the titlebar height from the theme, not the WM (which gets
24803 it from the theme).
24805 2006-06-12 Jackson Harper <jackson@ximian.com>
24807 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
24808 event down to the mdi window manager.
24809 - Expose some extra stuff to base classes
24810 - Make sure to end the Capture on an NC Mouse up, so that we can
24811 get double clicks properly, and the sizing doens't stick.
24812 - When doing PointToClient contain it in the workable desktop
24813 area, this prevents windows from changing size when the cursor is
24814 pulled outside of the working area while sizing.
24815 * MdiWindowManager.cs: When we get a double click maximize the
24817 - Reset the cursor after handling mode changes.
24819 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
24821 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
24822 current desktop, instead of just assuming a 0, 0 origin. This
24823 is needed for our internal window manager, to know the top
24824 margin of the desktop
24826 2006-06-12 Chris Toshok <toshok@ximian.com>
24828 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
24829 we need this to get rid of the selected background in the bool
24831 (CancelEditing): move the ConcedeFocus call to above the Abort
24832 call. Also, set is_changing to false and invalidate the row
24833 header if we were changing before.
24834 (ProcessKeyPreviewInternal): remove, since noone outside this
24835 class calls it anymore. Roll the code into ProcessKeyPreview.
24836 (EndEdit): remove the internal version.
24837 (InvalidateCurrentRowHeader): make private.
24839 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
24840 Keys.Escape handling (and with it the last call to
24841 DataGrid.EndEdit from outside the class.)
24844 2006-06-12 Chris Toshok <toshok@ximian.com>
24846 * DataGridTextBox.cs (.ctor): isedit defaults to false.
24847 (OnKeyPress): set isedit to true.
24848 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
24849 already handled by the grid.
24851 * DataGrid.cs (set_CurrentCell): more work here. it's still not
24853 (set_DataSource): SetDataSource always returns true, so stop
24854 putting it in an if statement.
24855 (EndEdit): get rid of some {}'s
24856 (ProcessGridKey): return true in case Keys.Escape.
24857 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
24858 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
24859 PositionChanged, stopped connecting to CurrentChanged.
24860 (GetDataSource): simplify this a bunch.
24861 (SetDataSource): change return type from bool to void.
24862 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
24863 to this, and make sure we don't set ListManager.Position inside
24865 (OnListManagerItemChanged): if we're passed an actual index,
24868 * CurrencyManager.cs (set_Position): don't call PullData here.
24870 2006-06-09 Jackson Harper <jackson@ximian.com>
24872 * TreeNode.cs: Recalculate the visible order before doing the
24873 Expand/Collapse Below calls, because those calls generate an
24875 - Reduce calls to the TreeView property, which is mildly expensive
24876 by using a local var.
24877 * Form.cs: Layout the MDI child windows when creating the parent
24879 - Don't use the internal constructor anymore
24880 * MdiClient.cs: use the parent form width/height (if available)
24881 when laying out the child windows, we do this because the
24882 mdiclient isn't docked yet when the initial layout is done.
24883 - Don't need an internal constructor anymore.
24885 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24887 * FileDialog.cs: handle access errors when trying to create a folder
24888 or changing to a directory. No need to initialize out parameters.
24890 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24892 * FileDialog.cs: Append a number when creating a new folder if the
24893 folder already exists (use parenthesis instead of square brackets)
24895 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24898 - Disabled registry support for windows and added better registry
24899 error checking for other systems (need to investigate why it
24900 works perfectly on my system)
24901 - If a folder already exist show an error MessageBox instead of
24902 trying to create an indexed name.
24903 - Fixed a non intentional typo.
24905 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24907 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
24909 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24911 * FileDialog.cs: When creating a new folder don't crash if the
24912 folder already exists.
24914 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24916 * FileDialog.cs: Allmost a complete rewrite.
24917 - added a "virtual" file system that handles the differences
24918 between unix and windows file systems (especially the directory
24919 structure). Moved most of the directory and file handling code
24921 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
24922 UnixFileSystem and FSEntry.
24923 - Recently used folder/directory, size, location and used file names
24924 (file name ComboBox) are now stored in the registry and get read
24925 before the dialog shows up (fixes part 6 of bug #78446).
24926 - Creation of new folders/directories is now possible (context menu
24927 or ToolBar). Added TextEntryDialog for this that fills in the gap
24928 until ListView.LabelEdit works.
24929 - Fixed cursor handling (bug #78527) and focus handling for
24931 - Various "Search in" ComboBox enhancements. The content of the
24932 dropdown listbox now almost matches ms.
24933 - Changed the behaviour when the user switches to SpecialFolder
24934 Recent to show the ListView in View.Details.
24935 - Beside using the ToolBar to change the View property of the
24936 file ListView it is now possible to use the context menu too.
24938 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
24940 * ComboBox.cs: Don't create a new ObjectCollection when an item
24941 gets inserted. Just insert the item in the existing object_items
24944 2006-06-08 Jackson Harper <jackson@ximian.com>
24946 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
24947 that the treeview and root node checks are done also, this fixes a
24948 regression i caused in the unit tests.
24950 2006-06-07 Wade Berrier <wberrier@novell.com>
24952 * RichTextBox.cs: More ISO8859-1 -> unicode
24954 2006-06-07 Mike Kestner <mkestner@novell.com>
24956 * ComboBox.cs : use items to hold highlight/selection so that
24957 collection insertions don't require synchronization.
24959 2006-06-07 Jackson Harper <jackson@ximian.com>
24961 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
24962 routine. We now always keep the sized edge at the cursor instead
24963 of computing movement and adjusting rects. There is one buglet
24964 with this method though when the cursor is moved over area that
24965 the window can not expand too (such as the toolbars on the desktop).
24967 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24969 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
24970 here. Fixes crash on startup in AlbumSurfer.
24972 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
24974 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
24977 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24979 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
24980 statement to avoid calling XNextEvent which will block if another thread
24981 took the event that we were expecting. Fixes bug #78605.
24983 2006-06-07 Mike Kestner <mkestner@novell.com>
24985 * ListView.cs : isolated checkbox clicking from the selection logic.
24986 Toggle check state on item doubleclicks. Really fixes #78454 part2.
24988 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24990 * Form.cs: Check that the value passed to Form.DialogResult
24991 is a valid enum value.
24993 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24995 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
24996 Computer'. Clicking it in the network view goes to 'My Computer'.
24997 Added CIFS filesystem type. Display the mount point of filesystems.
24998 Avoid duplicate mount points (happens for me with CIFS);
25000 2006-06-06 Jackson Harper <jackson@ximian.com>
25002 * InternalWindowManager.cs: Draw the maximized windows buttons
25005 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25007 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25008 all other dialogs. Fixes bug #78585.
25010 2006-06-06 Mike Kestner <mkestner@novell.com>
25012 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25013 Only invalidate checkbox on checkstate changes to avoid flicker.
25014 * ListBox.cs : avoid unselect/select when clicking selected item.
25015 avoid reselection flicker for already multiselected items.
25018 2006-06-06 Jackson Harper <jackson@ximian.com>
25020 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25021 the parent form so that the menu is removed if needed.
25023 2006-06-06 Mike Kestner <mkestner@novell.com>
25025 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
25026 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
25028 2006-06-06 Mike Kestner <mkestner@novell.com>
25030 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
25033 2006-06-06 Jackson Harper <jackson@ximian.com>
25035 * Control.cs: Use the property (instead of the field) to get the
25036 default cursor so it is instantiated correctly.
25037 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25038 resizes so we need to manually repaint the window decorations here.
25039 - Set the titlebar button locations as soon as they are created,
25040 otherwise they are not set correctly on win32.
25042 2006-06-06 Chris Toshok <toshok@ximian.com>
25044 * CurrencyManager.cs (set_Position): call PullData before
25046 (AddNew): after calling IBindingList.AddNew, update our
25047 listposition, and call OnCurrentChanged/OnPositionChanged (without
25049 (OnCurrentChanged): remove the call to PullData from here.
25050 (OnItemChanged): remove the call to PushData from here.
25051 (OnPositionChanged): change the test from == null to != null to
25052 match the other methods.
25053 (ListChangedHandler): the grossest part of the patch. Implement
25054 this such that it passes the unit tests in CurrencyManagerTest and
25055 the output more or less matches that of MS's implementation.
25057 2006-06-06 Mike Kestner <mkestner@novell.com>
25059 * ListView.cs : only update check state on single click.
25060 * ThemeWin32Classic.cs : fix focus drawing for details view without
25061 fullrowselect. Fixes #78454.
25062 * XplatUIX11.cs : fix for double click emission.
25064 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
25066 * PropertyGridView.cs : Applied Atsushi's patch to fix
25067 font dialog bug (#78197).
25069 2006-06-05 Jackson Harper <jackson@ximian.com>
25071 * TreeNode.cs: Compute the next node for expanding/collapsing
25072 correctly. We now factor in nodes without a NextNode
25073 correctly. (Fixes somes cases in nunit-gui).
25074 * InternalWindowManager.cs: Set the bounds when updating the
25075 virtual position of a tool window.
25077 2006-06-05 Chris Toshok <toshok@ximian.com>
25079 * DataGrid.cs: rename cached_currencymgr to list_manager.
25080 (set_CurrentCell): move SetCurrentCell code here, and clean it up
25082 (CurrentRow, CurrentColumn): single accessors so we can make the
25083 cursor movement code a lot easier to understand.
25084 (CurrentRowIndex): implement this in terms of CurrentRow.
25085 (BeginEdit): clean this up a bit.
25086 (CancelEditing): sort out the is_editing/is_changing/is_adding
25088 (EndEdit): minor changes.
25089 (OnKeyDown): add a comment about a (most likely) unnecessary
25091 (OnMouseDown): cancel editing when we click on a row header. And
25092 use the CurrentRow setter, not CurrentCell.
25093 (ProcessDialogKey): directly call ProcessGridKey.
25094 (UpdateSelectionAfterCursorMove): factor out this common block of
25095 code (it's used everywhere that we move the cursor by updating row
25097 (ProcessGridKey): pretty substantial overhaul. Use the
25098 CurrentRow/CurrentColumn properties to make the code a lot more
25099 readable. Only use the CurrentCell property when we have to
25100 modify both row and column at once. Tab behavior is still broken,
25101 and Delete is untested.
25102 (Select): if we have no selected rows, set selection_start to
25104 (EditCurrentCell): rename EditCell this. It was only ever invoked
25105 with CurrentCell as the arg, so drop the arg and rename it.
25107 * DataGridColumnStyle.cs: clean up the constructors a little, and
25108 drop CommonConstructor().
25110 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25111 actually get notified when the user hits it.
25112 (ProcessKeyMessage): *substantially* simplify this method.
25113 There's no reason (that I can see) for the textbox to be making
25114 calls into the datagrid at all. Remove all of them but the ones
25115 for Enter handling. those will take some more work.
25117 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25118 calling HideEditBox.
25119 (HideEditBox): if we have an active textbox, render it invisible
25120 without causing a re-layout of the datagrid.
25122 2006-06-05 Mike Kestner <mkestner@novell.com>
25124 * ListView.cs : fix NRE crasher when focuseditem is cleared by
25125 collection changes by resetting it to Items[0]. Fixes #78587.
25127 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25129 * MessageBox.cs: if the height of the text is larger than the icon_size,
25130 use that. Fixes bug #78575.
25132 2006-06-05 Jackson Harper <jackson@ximian.com>
25134 * TreeView.cs: Fix line drawing when scrolling. To do this each
25135 node is basically responsible for drawing its entire horizontal
25136 area. When drawing a node it draws its parent node lines if
25138 - Adjust the clip area to the viewport rectangle
25139 - Fix Left/Right key handling to match MS. (It expand/collapses
25140 and moves to parents/first child but does not move selection to
25142 - Fix SetTop to work with new bound calculation code
25143 - When scrollbars are no longer needed we need to reset scrolling
25144 vars and recalculate the visible order so the redraw is correct
25145 * TreeNode.cs: We can't expand/collapse nodes with no children.
25147 2006-06-03 John Luke <john.luke@gmail.com>
25149 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25150 so the colors work without dev packages
25152 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
25155 - Select: Implemented to just use activate. Seems to match MS
25156 behaviour closest. Documented to only do actual control walking
25157 based on it's parameters if in a container control so I moved
25159 - Removed selection check logic from our internal Select() method
25160 * ContainerControl.cs:
25161 - Select: Moved selection logic from Control here, since MS documents
25162 that containers obey the bool arguments. No longer calling base
25164 2006-06-02 Jackson Harper <jackson@ximian.com>
25166 * TreeView.cs: If the selected node isn't changed when we get
25167 focus update the previously selected node so that we see the
25170 2006-06-02 Mike Kestner <mkestner@novell.com>
25172 * ComboBox.cs: restructure grab and general mouse event handling.
25173 Make the composite control raise mouse events like it was a single
25174 control for leaves/enters/motion/up/down events. fix dropdown list
25175 coordinate mangling and refactor it into the scrollbar subclass to
25176 reduce code duplication. Fixes #78282 #78361 and #78457.
25178 2006-06-02 Mike Kestner <mkestner@novell.com>
25180 * ScrollBar.cs: remove Capture setting/clearing, as it happens
25181 automatically in the Control.WndProc.
25183 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25185 * FileDialog.cs: fix crash when running SharpChess, which sets the
25186 FilterIndex to 2 with only one Filter.
25188 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25190 * ToolBar.cs: add SizeSpecified property.
25191 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25192 try to figure out our real size, otherwise fallback to what the
25195 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25197 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25198 * Control.cs (WndProc): MS always calls the DefWndProc to pass
25201 2006-06-01 Mike Kestner <mkestner@novell.com>
25203 * ListView.cs: revamp the focus management in ListView. It still
25204 causes churn of LostFocus/GotFocus emissions on clicks, but it's
25205 better than not handling focus at all. Will revisit when pdb feels
25206 the general focus handling is solid. Fixes #78526.
25208 2006-06-01 Jackson Harper <jackson@ximian.com>
25210 * TreeView.cs: Set the default border style in the constructor.
25211 - Move painting to use OnPaintInternal instead of capturing
25212 WM_PAINT, this is the correct way of doing things
25213 - UpdateBelow shouldn't invalidate the scrollbar area
25214 - Cap the top on update below in case the node was above the top
25215 of the viewport rectangle.
25216 - ExpandBelow and Collapse below need to obey Begin/End Update.
25217 * TreeNode.cs: Make is_expanded internal so the treenode
25218 collection can change it without firing the whole event chain.
25219 * TreeNodeCollection.cs: When clearing all the child nodes make
25220 sure to recalc the visible order.
25221 - Improve algo for remove the top node
25223 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25225 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25226 SendMessage directly calling window procedures, which in turn might
25229 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25231 * Control.cs: Don't handle WM_SETFOCUS if the same window already
25232 has focus (works around X11 sending a FocusIn after our SetFocus)
25233 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25235 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
25237 * Mime.cs: Fix for the NET_2_0 build.
25238 NameValueCollection needs StringComparer now.
25240 2006-05-31 Chris Toshok <toshok@ximian.com>
25242 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25243 return (via an out parameter) the starting X of the column.
25244 (UpdateVisibleColumn): track change to FromPixelToColumn.
25245 (HitTest): add a ColumnResize case here.
25246 (DrawResizeLine): new function, probably poorly named.
25248 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
25249 only need to keep one reference.
25250 (set_ListManager): same.
25251 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25252 Also, add support for HitTestType.ColumnResize.
25253 (OnMouseMove): add column resize behavior here, and change the
25254 cursor to the correct one as we move around the datagrid.
25255 (OnMouseUp): terminate the column resize if we're resizing.
25256 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25257 for the current cell.
25258 (ConnectListManagerEvents): use cached_currencymgr.
25259 (DisconnectListManagerEvents): fill this in, using
25260 cached_currencymgr.
25261 (SetCurrentCell): remove cached_currencymgr_events handling.
25262 (SetDataMember): only call DisconnectListManagerEvents if
25263 cached_currencymgr is != null.
25264 (SetDataSource): same.
25265 (OnListManagerCurrentChanged): cached_currencymgr_events ->
25266 cached_currencymgr.
25268 2006-05-31 Jackson Harper <jackson@ximian.com>
25270 * BindingManagerBase.cs: Remove somedebug code that creeped into
25272 * TreeNode.cs: We get the indent level dynamically right now, so
25273 don't track it as a member.
25274 * TreeNodeCollection.cs: Make sure all nodes added to the list
25275 have parents, treeviews/topnodes setup properly.
25276 - Don't attempt to track indent level.
25278 2006-05-30 Jackson Harper <jackson@ximian.com>
25280 * BindingContext.cs: Create the currency manager tables here.
25281 This allows us to more easily create null tables (when bad data
25282 members are used), and more easily create related currency
25284 * CurrencyManager.cs: All the table creation stuff is done by the
25285 binding context now.
25286 - Current should throw an exception if listposition is -1.
25287 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25290 2006-05-30 Mike Kestner <mkestner@novell.com>
25292 * ListView.cs: allow reexpansion of zero-width column headers.
25295 2006-05-28 Chris Toshok <toshok@ximian.com>
25297 * CurrencyManager.cs (get_Current): after the late binding
25298 listposition = -1 fix, we need to guard against it here and return
25299 null, otherwise we raise an exception (which is swallowed
25300 elsewhere, and breaks datagrid databinding.)
25302 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25304 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25305 than WM_SYSKEY, don't throw if get something unexpected (#78507)
25307 2006-05-26 Jackson Harper <jackson@ximian.com>
25310 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25311 values, it's faster and it's all we care about (we don't care if
25312 the names aren't equal).
25313 * KeyboardLayouts.cs: Eliminate some dead code.
25315 * X11Keyboard.cs: Lazy init keyboard detection.
25316 - Cleanup access modifiers a little.
25318 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25320 * XplatUIX11.cs: Once again, attempting to get layout just right.
25322 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25324 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25325 the sizes of each link section, that will result in sizes that
25326 match DrawString's layout (Fixes #78391)
25328 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
25330 * FileDialog.cs: If AddExtension property is true autocomplete the
25331 extensions in SaveFileDialog correctly. Fixes bug #78453.
25332 Set MyNetwork and MyComputer to "C:\" for windows. This should
25333 fix part 8 of bug #78446 for now.
25335 2006-05-26 Chris Toshok <toshok@ximian.com>
25337 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
25338 invalidate the current row header if we need to, but presumably
25339 we'll invalidate the row corrsponding to the bounds or
25341 (GridHScrolled): switch back to this method, as it's part of the
25342 public api. *sigh*.
25343 (GridVScrolled): same.
25344 (OnMouseWheel): hack up something that more or less works. Call
25345 GridHScrolled/GridVScrolled directly, instead of duplicating much
25346 of their code here.
25347 (EnsureCellVisibility): reinstate a bunch of this code, since we
25348 can't just set the scrollbar Value and expect to do all the work
25349 in the ValueChanged handler. Also, Call Update() after scrolling
25350 in one direction so the other XplatX11.ScrollWindow call has the
25351 proper stuff in the proper places.
25352 (EditCell): set is_editing to true before calling .Edit.
25354 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25355 don't bother comparing first.
25356 (OnKeyPress): call grid.ColumnStartedEditing before calling
25357 base.OnKeyPress. this will set is_changing and invalidate the row
25358 header if necessary.
25359 (ProcessKeyMessage): for WM_CHAR messages, call
25360 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
25363 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25364 it's done in the DataGrid.
25365 (NextState): call grid.ColumnStartedEditing, which takes care of
25366 invalidating the row header (and setting is_changing).
25368 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25369 here. it's done in the DataGrid.
25371 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25373 * Control.cs: allow changing the cursor when the mouse position is
25374 out of bounds but Capture is set.
25375 * LinkLabel.cs: handle the case when the mouse button is pressed on the
25376 linklabel but released somewhere else.
25378 2006-05-25 Jackson Harper <jackson@ximian.com>
25380 * TreeView.cs: When we get focus if there is no selected node make
25382 - Remove some uneeded setup code from Draw.
25383 * TreeNodeCollection.cs: If the tree doesn't have a top node when
25384 a new node is inserted make the new node the top.
25386 * Timer.cs: Use Utc time so that no local time zone stuff needs to
25387 be used (should be faster).
25389 2006-05-25 Chris Toshok <toshok@ximian.com>
25391 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25392 problem with the last commit.
25394 2006-05-25 Chris Toshok <toshok@ximian.com>
25396 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25397 need the invalidate call here, while scrolling right-to-left via
25398 the left arrow key (i.e. moving the editing cell while scrolling).
25400 * DataGrid.cs (.ctor): remove the initialization of
25401 ctrl_pressed/shift_pressed. We no longer track them using key
25402 up/down handlers, but by using Control.ModifierKeys. Also, switch
25403 to using ValueChanged handlers on the scrollbars instead of
25404 Scrolled event handlers. This simplifies a bunch of the scrolling
25406 (GridHValueChanged): rename from GridHScrolled, and change it to
25407 work with the new event args.
25408 (GridVValueChanged): same.
25409 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25410 (OnMouseWheel): actually scroll the datagrid. Don't change the
25412 (ProcessGridKey): correct all the keyboard navigation stuff I
25413 could find. Ctrl up/down/left/right/home/end work now.
25414 (EnsureCellVisibility): correct method name spelling. Also,
25415 simplify this a touch by not explicitly calling the
25416 ScrollToRow/ScrollToColumnInPixels methods. We just set the
25418 (OnKeyUpDG): no need for this method now.
25420 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25422 * LinkLabel.cs: display the OverrideCursor when hovering the label.
25425 2006-05-25 Chris Toshok <toshok@ximian.com>
25427 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25430 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25432 * Application.cs: Moved setting of is_modal and closing to before
25433 we create the control, to allow the event handlers called as a
25434 result of creation affect closing. Also removed Gonzalo's previous
25435 change to setting DialogResult, the behaviour has been moved to
25438 - ShowDialog(): Removed explicit creation of the form, let RunLoop
25440 - ShowDialog(): If no dialog result is set, we need to return Cancel
25441 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25442 the close is cancelled
25444 2006-05-25 Jackson Harper <jackson@ximian.com>
25446 * StatusBar.cs: We only need to update the sizes of the other
25447 panels when we have auto size contents. Also we are only updating
25448 the contents of the panel, not the borders, so compensate for the
25449 border width (TODO: get this width from the theme somehow).
25450 * TreeView.cs: Scrollable is true by default
25451 - Use invalidate instead of refresh where needed
25452 - Factor the scrollable value into scrollbar updating
25453 - Update the scrollbars if the Scrollable property is altered
25454 - Update the selected node if its ImageIndex is changed
25455 - Handle null nodes in UpdateNode (mainly so we don't have to
25456 check if selected is null when updating it
25457 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25458 are factored into the visible count
25459 - Use VisibleCount for clarity in the code
25460 - When the font is changed we need to recurse through all the
25461 nodes and invalidate their sizes
25463 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25465 * Application.cs: set the DialogResult to fixed when the main form is
25466 hidden or destroyed while being modal.
25468 2006-05-25 Miguel de Icaza <miguel@novell.com>
25470 * Theme.cs: Use Tangoified messagebox icons.
25472 (GetSizedResourceImage): Also cope with width = 0 and do not
25473 trigger a warning in that case (0 means "give me your icon from
25474 the resouce, no special size needed).
25476 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25478 * Application.cs: Leave runloop if the the main modal form is
25479 hidden (fixes #78484)
25481 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
25483 * BindingContext.cs : reject null datasource in Contains() and
25485 * CurrencyManager.cs : check data_member validity when data_source
25486 is dataset. When it is late binding, the initial position is -1.
25488 2006-05-24 Jackson Harper <jackson@ximian.com>
25490 * TreeNodeCollection.cs: Dont't recalculate the visible order on
25491 inserted nodes that aren't visible. This changes the
25492 max_visible_order which confuses scrollbar settings.
25493 - Use the enumerator to get the prev node instead of duplicating
25495 * TreeView.cs: Use new method for setting scrollbar values
25496 - Don't set the bounds every time the scrollbar is updated
25497 - When updating below the root node use an invalidate instead of a
25498 refresh to prevent the child controls (scrollbars) from being
25499 refreshed. (UpdateBelow still needs to be reworked anyways).
25500 - Reenable SetBottom now that visible orders are set correctly,
25501 added some debug code incase we ever get bad values there again.
25502 - Set the scrollbar max to 2 less then the max value, this
25503 compensates for the max value being one above the node count, and
25504 for scrollbars adding one extra "notch".
25505 - When drawing image nodes if there is an imagelist we draw the
25506 first image in the list if the supplied image index is out of the
25507 image list's bounds.
25509 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25511 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
25512 we receive a size change from the WM (Fixes #78503)
25514 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25516 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
25517 rectangle (Fixes #78501)
25519 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25522 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
25524 - Fixed MouseMove to no longer switch pressed state unless the left
25525 mouse button is pressed. Atsushi provided the original patch (#78485)
25527 2006-05-24 Jackson Harper <jackson@ximian.com>
25529 * ScrollBar.cs: New internal methods that allow us to change a
25530 couple values on the scrollbar (the most common case is maximum
25531 and large change) without getting multiple invalidates.
25533 2006-05-24 Chris Toshok <toshok@ximian.com>
25535 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25536 (Edit): save off the original state in oldState, and set
25537 grid.is_editing to true.
25538 (OnKeyDown): abort editing if escape is pressed. also, call
25539 NextState if space is pressed.
25540 (OnMouseDown): call NextState.
25541 (NextState): factor out shared code from OnKeyDown and OnMouseDown
25542 here. Also, only invalidate the row header once (on the initial
25543 is_changing switch) to save on redraws.
25545 2006-05-24 Chris Toshok <toshok@ximian.com>
25547 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25548 if the value in the cell is different than it was before. This
25549 keeps us from triggering a layout when we move around a datarid
25550 with a highlighted cell.
25551 (Edit): suspend layout when creating/positining the text box, and
25552 resume passing false so we don't ever actually re-layout.
25553 (ReleaseHostedControl): same.
25554 (EnsureTextBox): reformat slightly, and set WordWrap to false.
25556 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25557 control-key sequences should go to the datagrid - remove that
25558 lock. Also, modify the conditions under which we move between
25559 cells when moving the cursor within a cell, and remove the "this"
25560 and "base" from field accesses. We weren't even consistent, given
25561 they all were in the base class.
25563 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
25565 * Binding.cs : (.ctor)
25566 An obvious NRE fix for BindingTest.CtorNullTest().
25568 2006-05-23 Chris Toshok <toshok@ximian.com>
25570 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25571 them between lines. This fixes some quirks editing cells in the
25574 2006-05-23 Jackson Harper <jackson@ximian.com>
25576 * TreeView.cs: Use begin/end update when doing expand/collapse all
25577 so that we don't get flicker on the scrollbar.
25579 2006-05-23 Jackson Harper <jackson@ximian.com>
25581 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
25582 treenode calculations to be independant of the painting code. To
25583 do this nodes track a visible order which is calculated by the
25585 - Call new methods for expanding/collapsing nodes. These methods
25586 use scrollwindow so we don't have to update everything below the
25588 * TreeView.cs: Refactored drawing and scrolling code. We don't
25589 need to update nodes when drawing anymore or calculate scrollbar
25591 - Added new methods for expanding/collapsing nodes. These methods
25592 use ScrollWindow so as to not have to redraw all the nodes below.
25593 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25594 we add/remove nodes or sort.
25595 - Handle removing the selected and the top node properly.
25597 2006-05-23 Chris Toshok <toshok@ximian.com>
25599 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25600 maybe this should actually happen in the datagrid code?
25601 (EndEdit): no need to invalidate anything, given that
25602 ReleaseHostedControl causes the datagrid to relayout, which
25603 invalidates everything anyway.
25605 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25606 in SetCurrentCell).
25607 (set_SelectionBackColor): call InvalidateSelection instead of
25609 (set_SelectionForeColor): same.
25610 (BeginEdit): Flesh this out a bit.
25611 (CancelEditing): only do any of this if we're editing/adding.
25613 (OnMouseDown): there's no need to cancel editing here, it's done
25615 (SetCurrentCell): only invalidate the current row header if it's a
25616 different row than the new one.
25617 (ShiftSelection): fix this to work like MS does.
25618 (ResetSelection): factor out the invalidation of selected_rows to
25619 InvalidateSelection.
25620 (SetDataSource): cancel any editing that's going on.
25622 * DataGridColumnStyle.cs
25623 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25624 call the non-interface version.
25626 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25627 header rectangle with the clip rectangle so we don't redraw the
25628 entire header for just a small area. Gets rid of the last flicker
25629 when horizontally scrolling.
25630 (DataGridPaintRow): same.
25632 2006-05-23 Mike Kestner <mkestner@novell.com>
25634 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25635 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
25636 poorly placed checkbox on the MS control. Fixes Alex's unfiled
25637 Critical bug report.
25639 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25641 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25642 and this fixes #78493
25644 2006-05-23 Miguel de Icaza <miguel@novell.com>
25646 * Theme.cs (GetSizedResourceImage): Scale images if the proper
25649 * FileDialog.cs: Do not change the background for the side bar as
25650 it wont work nicely with the theme, and also reduces the artifacts
25651 in rendering the icons (which I want to fix too).
25653 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
25654 resources, not resgen resources.
25656 (PlatformDefaultHandler): Pull images using the new API.
25658 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25660 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
25661 a reference to the hwnd and will not remove it unless there are
25662 no pending exposures (fixes #78341)
25663 * XplatUI.cs: Improved debug
25665 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
25667 * MenuAPI.cs : don't handle OnClick event when it was not the left
25668 button. Fixed bug #78487.
25670 2006-05-23 Mike Kestner <mkestner@novell.com>
25672 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
25673 prefer submenus to the top menu for item lookup, to avoid popping down
25676 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
25678 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
25679 Graphics.FillRectangle as the visual results are really bad (even
25680 on win). We now draw perfect arrows (and perfect shadows when the
25681 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25682 Pen.DashPattern to draw the dots of each line.
25684 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
25686 * FileDialog.cs: Update the filename combobox when navigating through
25687 the ListView with the cursor keys. Fixes part 7 of bug #78446.
25689 2006-05-22 Mike Kestner <mkestner@novell.com>
25691 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
25694 2006-05-22 Mike Kestner <mkestner@novell.com>
25696 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
25697 requests. Fix a misspelled parameter and a copy paste exception error
25700 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
25702 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
25703 to get the same width/height (5/13) on X11 as the default font has on
25704 win32. This means that our DefaultFont emSize is smaller than the
25705 the MS SWF equivalent (even thought the width/height stays the same)
25707 2006-05-20 Jackson Harper <jackson@ximian.com>
25710 * MdiWindowManager.cs:
25711 * InternalWindowManager.cs: Make sure to use the border width from
25714 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
25716 * PrintDialog.cs: Implements printer details
25718 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
25720 * FileDialog.cs: Added focus handling for PopupButtonPanel.
25721 Fixes part 1 and 2 of bug #78446
25723 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
25725 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
25726 instead of sticking to the first ever calculated value
25728 2006-05-19 Mike Kestner <mkestner@novell.com>
25730 * ComboBox.cs: fix mouse motion selection to use MousePosition and
25731 PointToClient, since Capture is set. Fixes #78344.
25733 2006-05-19 Mike Kestner <mkestner@novell.com>
25735 * ListView.cs: match MS behavior in Details view where items are not
25736 drawn if Columns.Count == 0.
25737 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
25738 Use a separate pen to draw the check, since changing the width affects
25739 the box as well. Fixes #78454.
25741 2006-05-18 Miguel de Icaza <miguel@novell.com>
25743 * ListView.cs: ArgumentOutOfRangeException, single versions of the
25744 exception should throw the name of the invalid argument.
25746 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
25747 there are no files listed.
25749 2006-05-18 Jackson Harper <jackson@ximian.com>
25751 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
25754 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25756 * Control.cs: Brought back our old UpdateZOrder method as a private
25757 function and switched our calls from UpdateZOrder to the new one.
25758 This fixes the Paint.Net canvas disappearing bug.
25760 2006-05-18 Jackson Harper <jackson@ximian.com>
25763 * ThemeWin32Classic.cs:
25764 * InternalWindowManager.cs: Move the drawing into the theme,
25765 expose everything the theme should need from the window manager.
25767 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25769 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
25770 from the call to NativeWindow to avoid walking up the parent chain
25771 further than needed (speeds up setting cursors and avoids setting
25772 the wrong cursor if a parent has another cursor defined)
25773 * Cursor.cs: When loading an icon as cursor, MS uses the center of
25774 the icon as hotspot, not what's contained as hotspot in the icon
25775 file. This fixes the perceived drawing offset seen with Paint.Net
25777 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25780 - Store the calculated rectangle in Hwnd object and use it when
25781 setting the client size
25782 - Force Toolwindows to always be type Dock, to ensure they're on top
25784 2006-05-18 Mike Kestner <mkestner@novell.com>
25786 * ComboBox.cs: first pass at ComboBox rework. Layout is more
25787 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
25788 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
25789 Substantial refactoring to remove confusing nested classes. Coding
25790 standard and Get+Set->property refactorings. Shift to index based
25791 highlighting in ComboListBox instead of constantly using IndexOf and
25792 Items[]. Add invalidations on resize for DropDownList to fix ugliness
25793 in FileDialog growth. Draw borders manually since Simple mode needs
25794 to look like two independent controls. Make listbox border
25795 conditional to DropDownStyle. Improved OwnerDraw support.
25797 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
25799 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
25800 Don't set the disposed graphics to null, so we can throw the "right"
25801 exception if the graphics is reused later (added a flag to avoid
25802 double disposing). Some behaviours are different under 2.0 and are
25803 filled under bug #78448.
25805 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
25807 * Control.cs: When double-buffering is enabled, we need to reset
25808 our graphics context between paint calls. Otherwise, any
25809 transformations and other alterations on the context will
25810 become cumulative (#77734)
25812 2006-05-18 Mike Kestner <mkestner@novell.com>
25814 * ListView.cs: do focused item selection like MS on clicks.
25815 Rework focus handling for ItemControl so LostFocus invalidates as
25817 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
25818 the ListView ItemControl has focus.
25820 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
25822 * XplatUIX11.cs: If client_window ends up being width or height zero
25823 due to border settings, move it off window inside whole_window (#78433)
25825 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25827 * Mime.cs: Shrink the mime file cache correctly.
25829 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
25831 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
25833 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25835 * XplatUIX11.cs (AddExpose): More sanity checks
25837 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25840 - AddExpose: Don't add expose ranges outside the size of our
25842 - Cast opacity values to Int32 to avoid crashes with certain
25844 - Added disabled code paths that protect against illegal cross-
25845 thread painting (Developers.exe)
25847 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25849 * ProgressBar.cs: Invalidate the control when it's resized
25850 since block size is based on control size. (#78388)
25852 2006-05-16 Miguel de Icaza <miguel@novell.com>
25854 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
25855 of setting the incoming argument to the "reset" value, we set the
25856 this.datamember to string.empty (before we were invalidating the
25861 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25863 * Form.cs: Only apply transparency settings after the form
25864 is created. (Fixes #77800)
25866 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25868 * ApplicationContext.cs: Grab the HandleDestroyed event so
25869 we know when to fire OnMainFormClosed
25871 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25873 * Application.cs: Introduced sub-class to allow tracking of
25874 threads and centralized triggering of the event mess for
25875 ThreadExit, AppExit, etc.. (#76156)
25877 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
25880 - Do not return a null icon index value for a mime subclass.
25881 Instead try the main mime type class too.
25882 - Seems that some newer distributions don't have a link to some
25883 gnome default icons anymore. So check the default gnome dir too.
25886 2006-05-16 Jackson Harper <jackson@ximian.com>
25888 * MdiClient.cs: Don't paint the parent background image if we have
25889 our own background image.
25891 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
25894 - PerformLayout: Do not shrink space filled by DockStyle.Fill
25895 controls, all filled controls are supposed to overlap (#78080)
25896 - UpdateZOrder is supposed to update the control's z-order in the
25897 parent's z-order chain. Fixed to behave like that
25898 - BringToFront: Removed obsolete code
25899 - SendToBack: Simplyfied
25900 - SetChildIndex: Trigger layout calculations when Z-order changes
25901 since layout is done by z-order
25903 2006-05-16 Chris Toshok <toshok@ximian.com>
25905 [ fixes bug #78410 ]
25906 * DataGrid.cs (set_AlternatingBackColor): use
25907 grid_drawing.InvalidateCells instead of Refresh().
25908 (set_BackColor): call grid_drawing.InvalidateCells.
25909 (set_BackgroundColor): use Invalidate instead of Refresh.
25911 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
25912 invalidate the cell area.
25914 2006-05-15 Chris Toshok <toshok@ximian.com>
25916 [ fixes bug #78011 ]
25917 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
25918 on to DataGridPaintRow.
25919 (DataGridPaintRow): take a clip argument, and only draw the cells
25920 which intersect it. same with the not_usedarea.
25922 * Theme.cs (DataGridPaintRow) add @clip parameter.
25924 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
25925 XplatUI.ScrollWindow.
25926 (ScrollToRow): same.
25928 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
25929 with last column which was causing a gray swath to appear with the
25930 XplatUI.ScrollWindow code.
25932 2006-05-15 Chris Toshok <toshok@ximian.com>
25934 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
25935 use XplatUI.ScrollWindow.
25936 (VerticalScrollEvent): use XplatUI.ScrollWindow.
25938 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25940 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
25942 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25944 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
25945 file since there are no equivalent X11 cursors
25947 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25949 * MonthCalendar.cs : DateTimePicker should reflect selected date
25950 on mouse*up*, not mouse*down*. Fixed originally reported part of
25953 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
25955 * TabControl.cs : When argument index is equal or more than tab
25956 count, just ignore. Fixed bug #78395.
25958 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
25960 * Control.cs: Dispose all child controls when control is diposed (#78394)
25962 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25964 * ColorDialog.cs: Finally it is possible to select the color with
25967 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25969 * PrintDialog.cs: Fix typo
25971 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
25973 * PrintDialog.cs: PrintDialog is not resizable
25974 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
25975 color. Made some ToolBar drawing methods protected virtual.
25977 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
25979 * PrintDialog.cs: Implementation of the PrintDialog
25981 2006-05-12 Chris Toshok <toshok@ximian.com>
25983 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
25984 thumb, instead use MoveThumb. This has the side effect of making
25985 most of the other thumb moving machinery use MoveThumb as well.
25986 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
25987 need to actually invalidate the rectangle where the new thumb will
25989 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
25990 We force an Update() after, so it's not as fast as it could be,
25991 but at least there's zero flicker and no droppings.
25992 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
25993 (UpdateThumbPos): add another argument (dirty), which says whether
25994 or not to calculate/add dirty regions which we later invalidate.
25995 For cases where we know we're going to use MoveThumb, we pass
25996 false for this. Otherwise, pass true.
25998 2006-05-12 Jackson Harper <jackson@ximian.com>
26000 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26003 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
26005 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26006 and GetClipRegion methods and UserClipWontExposeParent property.
26007 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26008 overriding UserClipWontExposeParent property, setting to false, since
26009 Win32 handles the required expose messages to draw our clipped parent
26011 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26012 PaintEventStart to set the user clip region if set.
26014 - Now internally tracking the Region for the control since we need to
26015 store it if the handle is not yet created and only set it when it
26016 becomes created. Before setting the region forced handle creation
26017 - Added code to draw the parents underneath a user-clipped region
26018 * Hwnd.cs: Added UserClip property
26020 2006-05-12 Chris Toshok <toshok@ximian.com>
26022 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26023 (set_Maximum): same.
26024 (set_Minimum): same.
26025 (set_SmallChange): same.
26026 (OnMouseUpSB): remove the call to refresh when releasing the
26027 thumb. We shouldn't need it.
26029 2006-05-12 Miguel de Icaza <miguel@novell.com>
26031 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26032 AutoSize set to None, we do not need to relayout everything, we
26033 just need to invalidate the current region.
26035 (Draw): Do not draw the entire ClientArea, just redraw the
26036 clip area being passed.
26038 * MdiClient.cs: Make MdiClient constructor with the Form argument
26041 2006-05-12 Jackson Harper <jackson@ximian.com>
26043 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26044 parents background image, but strangely not their own.
26045 - (DrawStatusBarPanel): Take into account horizontal alignment
26046 when drawing the strings and icons.
26048 2006-05-12 Mike Kestner <mkestner@novell.com>
26050 * ListBox.cs: avoid invalidations for focus when the collection is
26053 2006-05-12 Chris Toshok <toshok@ximian.com>
26055 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26056 invalidate the entire thumb area. Call InvalidateDirty which
26057 limits the redraw to the thumb itself and surrounding pixels.
26059 * XplatUIX11.cs (ScrollWindow): optimize copying.
26061 2006-05-12 Chris Toshok <toshok@ximian.com>
26063 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26064 Figure out the positioning/layout in a single pass instead of
26065 multiple recursive invocations. Speeds up the initial display of
26066 the data grid. Also, make many things private that were
26067 originally public but unused outside this class.
26069 2006-05-11 Jackson Harper <jackson@ximian.com>
26071 * MdiClient.cs: Improved layout code.
26073 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
26075 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26076 not SelectedObject.
26078 2006-05-11 Chris Toshok <toshok@ximian.com>
26080 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26081 union of that will always be {0,0,width,height}.
26083 2006-05-11 Jackson Harper <jackson@ximian.com>
26085 * Form.cs: Match MS's DefaultSize for forms (they must have
26086 changed the size in sp2).
26088 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26090 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26092 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26094 * TextControl.cs : Fixed bug #78109. This incorrect position
26095 comparison caused crash on automatic line split.
26096 * TextBoxBase.cs : reduce duplicate code.
26098 2006-05-10 Jackson Harper <jackson@ximian.com>
26100 * MdiClient.cs: Active form is only sent to the back when using
26101 the Next form functionality, when a form is clicked the current
26102 active shouldn't be sent to the back.
26103 - Layout the mdi windows when the container is first made visible.
26104 * Form.cs: Give the MdiClient a ref to the containing form when we
26107 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26109 * LinkLabel.cs : link_font could be uninitialized, so populate one
26110 before actual use. Fixed bug #78340.
26112 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26114 * XplatUIX11.cs : clipboard format native value is IntPtr.
26117 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26120 - Instead of showing context menus directly we send WM_CONTEXTMENU,
26121 which is passed up the parent chain by DefWndProc
26122 - We now handle WM_CONTEXTMENU to display any menu, or pass it
26123 to DefWndProc (#77956)
26124 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26126 2006-05-10 Jackson Harper <jackson@ximian.com>
26128 * MdiClient.cs: We need to remove the controls from the mdi
26129 collection, when we close the window.
26130 * MdiWindowManager.cs: Special handling of closing mdi windows.
26131 * InternalWindowManager.cs: Make the close method virtual so the
26132 mdi window manager can handle it specially.
26134 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
26137 - Recalculate grid when the data source has changed
26138 - Matches styles provided by user from all data sources types
26139 * DataGridTableStyle.cs: For columns that provided by the user set the
26140 with the preferred value is there was unassigned.
26141 * CurrencyManager.cs: throw OnItemChanged event
26143 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26145 * PictureBox.cs: Don't animate until handle is created. Start animation
26146 when handle is created.
26148 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26150 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26152 * XEventQueue.cs: We don't need to provide the extra info
26154 2006-05-10 Jackson Harper <jackson@ximian.com>
26156 * MdiClient.cs: If the mdi clients parent form has a background
26157 image set, we draw that background image for the mdi area's
26160 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26162 * TextBoxBase.cs: Set IBeam cursor (#78347)
26164 2006-05-10 Mike Kestner <mkestner@novell.com>
26166 * ToolBar.cs: fix some text padding issues with ButtonSize
26167 calculation. Update the default size to match MS documentation.
26168 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26169 button size. Fixes #78296.
26171 2006-05-10 Mike Kestner <mkestner@novell.com>
26173 * ListBox.cs: use is_visible for scrollbar positioning in case the
26174 control isn't on screen yet. Fix off by one with Right vs Width
26175 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26177 2006-05-10 Jackson Harper <jackson@ximian.com>
26179 * X11Dnd.cs: Drop to a control with another control on top of it.
26180 * ToolBar.cs: Work on a copy of the buttons list, so that it can
26181 be modified in click handlers. TODO: Look for similar problems in
26184 2006-05-09 Jackson Harper <jackson@ximian.com>
26186 * Form.cs: Window managers need the old window state when setting
26188 * InternalWindowManager.cs: Allow the base mdi window manager to
26189 handle more of the MDI only stuff (like maximize buttons).
26190 * MdiWindowManager.cs: Fix some snafus in changing the window
26191 state. Add all the menu functionality, for both popup and
26193 * MdiClient.cs: When a new form is selected the currently
26194 activated form is sent to the back, this matches MS.
26195 - Implement a new method to activate the next mdi child window.
26197 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26200 - Added new InternalCapture method to allow controls to prevent
26201 the capture behaviour on the click handlers
26202 - Switched to use InternalCapture
26204 - Using InternalCapture to prevent mouse captures from being released
26205 on mouse button release (Fixes #78100)
26206 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26207 returns Form borders if a caption is present. (Fixes #78310)
26209 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26211 * TreeNode.cs: Changed serialization .ctor to not require every field
26212 to be present. (#78265)
26213 * OwnerDrawPropertyBag.cs: Added serialization .ctor
26215 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
26217 * MimeIcon.cs: for is faster than foreach for strings.
26219 2006-05-05 Mike Kestner <mkestner@novell.com>
26221 * CheckedListBox.cs: update check handling code to not use selected.
26222 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26223 behavior for visual feedback, motion response, shift/ctrl handling,
26224 and properly deal with all 4 selection modes. Updates to bounds
26225 handling logic. Add scroll wheel support. [Fixes #77842]
26227 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26230 - Moved adding of Implicit controls into .ctor. That way, subsequent
26231 creation of the controls will not cause them to think they are
26232 toplevel windows (fixes #78200 header problem)
26233 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26234 - Switched visibility setting of header control to use internal field
26235 to avoid triggering handle creation
26236 - Now checking if handle is created before causing a refresh when items
26237 are added (This makes us now match handle creation time with MS)
26238 * Splitter.cs: Removed loading of private splitter cursor, switched to
26239 Cursors version now that that is loading the right ones
26240 * Cursors.cs: Load proper splitter cursors from resources
26241 * Cursor.cs: Added second method of loading resource cursors for the
26242 VS.Net users amongst us
26244 2006-05-05 Mike Kestner <mkestner@novell.com>
26246 * ListView.cs: give header_control a minimum size based on the
26249 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26251 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26252 window seems to do that with metacity, so set that type. (#78120)
26254 2006-05-05 Mike Kestner <mkestner@novell.com>
26256 * ListViewItem.cs: fix Details mode checkbox layout bug.
26257 * ThemeWin32Classic.cs: draw a ListView column header for unused space
26258 at the end of the header, if it exists. [Fixes for #78200]
26260 2006-05-04 Jackson Harper <jackson@ximian.com>
26262 * MdiClient.cs: Add a helper property to get the container form.
26263 * MdiWindowManager.cs: We have to make sure to use the menu origin
26264 when drawing the icons and buttons, this fixes maximized window
26265 icons/buttons on win32.
26266 * InternalWindowManager.cs: Reset the restore captions when a
26267 window goes from Maximized to Minimized and vice versa. Move the
26268 DrawMaximizedButtons into the MdiWindowManager source, tool
26269 windows can't be maximized. NOTE: This could use a little
26270 refactoring if time ever permits.
26272 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26274 * TextBox.cs: Add MWFCategoryAttributes
26275 * TextBoxBase.cs: Add MWFCategoryAttributes
26276 * Form.cs: Add MWFCategoryAttributes
26278 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26280 * Control.cs: Add MWFCategoryAttributes
26281 * ScrollableControl.cs: Add MWFCategoryAttributes
26283 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
26285 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26286 Divider is true. Fix a little glitch in PropertyToolBar
26289 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
26292 - Dispose: Call base.Dispose, this causes the disposed event
26293 to be fired (and probably other, more important stuff)
26294 - SetVisibleCore: Set is_visible to true after creating the
26295 window so that the window still gets created invisible (if
26296 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26297 to generate a WM_ACTIVE message
26298 * Form.cs: Call Dispose when we want to destroy the window, instead of
26299 just destroying the handle (Dispose will do that for us)
26301 - RootWindow also needs a queue, so we can properly process the
26302 property change events from RootWindow (like Activate)
26303 - Generatic synthetic WM_ACTIVE message when the active window is
26306 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26308 * LinkLabel.cs: Trigger a recalc of our label dimensions when
26311 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26313 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26314 for determining width and height (image might not be assigned if
26315 we're drawing an imagelist)
26317 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26319 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26320 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26322 * Theme.cs: No longer returns hardcoded menu height, instead calls
26324 * Form.cs (OnLoad): Scaling happens before triggering Load events
26327 2006-05-01 Mike Kestner <mkestner@novell.com>
26329 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
26331 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26333 * TextBoxBase.cs: Removed Fixme
26334 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26336 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26339 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26340 the rectangle relative to the parent, considering borders. We
26341 don't really want that.
26342 - ScrollWindow: Fixed warning to be more understandable
26343 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26344 scrollbars and scroll only the visible area
26345 * RichTextBox.cs: Removed debug output
26347 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26349 * NumericUpDown.cs (Text): Just use base
26350 * UpDownBase.cs: Ensure txtView is created before using it
26352 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26354 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26355 casting to IntPtr to avoid 64bit overflow errors
26357 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26360 - AllowDrop: Don't force handle creation.
26361 - CreateHandle: Added call to tell driver if we're allowed to drop
26363 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26365 * FileDialog.cs: Remember the last directory not only for the
26366 current instance but also for new FileDialog instances.
26368 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26370 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26371 broke sending async messages
26373 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26376 - ScrollWindow: Fixed method. We finally generate expose events again
26377 for scrolled areas. This was causing 'garbage' when scrolling
26378 textbox and other controls that used ScrollWindow
26379 - Switched from using the regular queue for paint events to the MS
26380 model of 'generating' paint events when the queue is empty.
26381 We use the new XQueueEvent.Paint subclass to store which windows
26383 - AddExpose now takes the x/y/width/height of the exposed area
26384 and inserts the window into the paint queue if not already there
26385 - InvalidateWholeWindow: Switched to use new AddExpose method
26386 - UpdateMessageQueue: Added which queue to monitor for paint events
26387 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26388 the unlikely case nothing above handles it. We reset the expose
26389 pending states to get them off the queue.
26390 - GetMessage: Now pulls a paint event if no other events are in the
26392 - Invalidate: Switched to new AddExpose method
26393 - PeekMessage: Updated to understand pending paint events
26394 - UpdateWindow: Fixed logic bug. We were only updating if the window
26395 didn't need updating. Also switched to sending WM_PAINT directly,
26397 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26398 and random access Remove(). The random access is needed to handle
26399 UpdateWindow() where a WM_PAINT is sent directly without accessing
26401 * ScrollBar.cs: Added Update() calls to cause immediate updates to
26402 allow for better feedback when scrolling. Scrollbars are small and
26403 the immediate update should make it 'feel' more responsive without
26404 slowing things down. ScrollBar still needs it's invaliate logic
26405 updated to not always invalidate the whole bar on certain changes.
26407 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26410 (BackColor): if the control does not support a transparent background,
26411 return the default backcolor when the parent backcolor is transparent.
26413 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
26415 * Application.cs: Updated to new StartLoop/GetMessage API
26416 * RichTextBox.cs: Provide some output on RTF parsing errors
26417 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26418 new queue_id argument to GetMessage and PeekMessage to allow faster
26419 handling of per-thread queues in drivers.
26420 * Hwnd.cs: Added Queue tracking and property
26421 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26422 * XEventQueue.cs: Added thread trackingA
26423 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26425 - Implemented new per-thread queue
26426 - GetMessage: Fixed return/break behaviour on several cases. We were
26427 returning stale messages in some cases, instead of just processing
26430 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26432 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26434 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
26436 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26437 fixed off-by-one comparisons between Width/Height and Right/Bottom.
26439 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26441 * PropertyGridView.cs: Fix drop down width.
26443 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26445 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26446 a mess in DrawToolBar, so I removed one of them.
26448 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26450 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26451 needed (clip). Otherwise we get artifacts.
26453 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26455 * FixedSizeTextBox.cs: Added constructor to allow specifying which
26457 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26458 and switched FixedSizeTextBox to only be fixed vertical (#78116)
26459 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26460 if it matches the scale base font (avoids unneeded scaling)
26462 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26464 * X11DesktopColors.cs: One gtk_init_check should be enough
26466 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26468 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26471 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26474 - Generate OnTextChanged for Backspace even if we're only deleting
26475 the current selection
26476 - When setting the Text property, only select all text if the
26477 control does not have focus when it is being set. Otherwise
26478 just place the cursor at the beginning of the control
26480 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26482 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26483 Added a little helper to draw PropertyGrid ToolBar with a different
26484 border and a different BackColor.
26485 * PropertyGrid.cs: Some background parts didn't get painted with the
26486 correct background color. Added a class that helps us to draw the
26487 correct border for PropertyGridView and a class that helps us to
26488 draw ToolBars with a different backcolor
26489 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26491 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26493 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26494 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26496 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26498 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26499 into the palette entries. Also, since we're working on a copy
26500 we needed to copy the palette back onto the bitmap.
26501 * Cursor.cs: Same fix as XplatUIWin32.cs.
26503 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26505 * ImageListStreamer.cs: Need to read the var (or we're off)
26507 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26509 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
26510 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26511 TextBoxBase.cs: Unused var fixes
26512 * AxHost.cs: Small 2.0 fix
26513 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
26514 as it seems that is what at least Metacity expects. This will make
26515 icons show up on 64bit platforms. We still have some 64bit size
26516 issues, though, since the startup app window size still won't match.
26518 2006-04-25 Mike Kestner <mkestner@novell.com>
26520 * *.cs: cleanup newly reported exception var unused warnings.
26522 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26524 * ThemeWin32Classic.cs: Button image alignment now matches exactly
26527 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26529 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26530 image. The image position is always the same, no matter if the
26531 button is pressed or not.
26533 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26535 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26536 selection and set the correct filename for SaveFileDialog.
26537 Patch by Emery Conrad.
26539 2006-04-24 Mike Kestner <mkestner@novell.com>
26541 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26542 check for item.X outside the ClientRect instead of item.Y. Fixes
26545 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26547 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26548 trust that value blindly and do some sanity check. Fixes bug #77814.
26550 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26552 * ImageListStreamer.cs: save the mask as a 1bpp image.
26554 2006-04-21 Mike Kestner <mkestner@novell.com>
26556 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26557 pass Checked and Indeterminate to the Theme Engine. Improve
26558 encapsulation with ListBox.
26559 * ListBox.cs: Keep a StringFormat instead of calculating it every item
26560 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26561 nested types. Move all CheckState functionality to CheckedListBox.
26562 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
26563 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
26564 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26565 single base list. Fix scrollbar sizing and placement to mirror MS.
26566 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26568 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26569 for CheckedListBox by using new DrawItemState info. Center the
26570 checkboxes on the items. Use new StringFormat property.
26572 2006-04-18 Jackson Harper <jackson@ximian.com>
26574 * Form.cs: MdiChildren don't do default locations the same way as
26575 regular forms. This prevents a crash when trying to position the
26578 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
26580 * PropertyGridTextBox.cs: Formatting, copyright
26581 * PropertiesTab.cs: Formatting
26582 * PropertyGrid.cs: Formatting
26583 * PropertyGridView.cs: Formatting, fix drop down, enabled double
26584 click toggling of values
26586 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
26588 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26589 * Control.cs (.ctor): verify_thread_handle is static, don't reset
26590 every time a control is created
26591 * Application.cs: Removed obsolete EnableRTLMirroring method
26593 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
26595 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26596 SelectedIndex to -1. Fixes bug #78121.
26598 2006-04-17 Jackson Harper <jackson@ximian.com>
26600 * Binding.cs: Handle null values for Current and BindingContext.
26601 This occurs when binding is a little delayed.
26602 * CurrencyManager.cs: return null for Current when there are no
26604 - Hookup to the listchanged event on the DataView and update
26605 bindings when the list is changed. This fixes late binding of
26608 2006-04-17 Jackson Harper <jackson@ximian.com>
26611 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26614 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
26616 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26618 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26619 with the correct ButtonState
26621 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
26623 * XplatUIX11.cs: Improved distinguishing between window types to
26624 tell the WM a type closer to what the app wants (Fixes #78107)
26626 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26628 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26631 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26633 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26634 drawing code to reflect the size grip changes
26636 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26638 * ImageListStreamer.cs: fix handling of the mask that follows the main
26639 bitmap when deserializing and serialize it properly. The generated mask
26640 should better be a 1bpp image, but I'll do that later.
26642 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26644 * FileDialog.cs: Show something in the DirComboBox on *nix if the
26645 path doesn't fit into some of our Current.Places
26647 2006-04-13 Jackson Harper <jackson@ximian.com>
26649 * ComboBox.cs: Use borders instead of drawing our own decorations,
26650 try to obey correct rules for heights.
26653 * ThemeClearLooks.cs:
26654 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
26655 this is now handled by borders.
26656 - Remove unused DrawListBoxDecorationSize method.
26658 2006-04-13 Mike Kestner <mkestner@novell.com>
26660 * MenuAPI.cs: null guarding for the disbled click check fixes crash
26663 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26665 * ThemeWin32Classic.cs:
26666 - Fixed CPDrawStringDisabled
26667 - Corrected drawing of disabled menu items
26668 - Fixed drawing of disabled radio buttons (bug #78095)
26669 - Draw check in a disabled CheckBox with color ControlDark
26671 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26673 * Form.cs: Use the provided width when calculating the menu size;
26674 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
26675 and ClientSize.Width won't be updated yet
26676 * Application.cs: Use Visible instead of Show() to make form visible,
26677 this way we create the handle later and menusize is considered
26679 2006-04-12 Mike Kestner <mkestner@novell.com>
26681 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
26684 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26686 * TextBox.cs: Implemented context menu
26688 2006-04-12 Mike Kestner <mkestner@novell.com>
26690 * ListView.cs: implement box selection. fixes #77838.
26691 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
26693 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26695 * XplatUIX11.cs: Added setting of window type when transient window
26696 is created (metacity would move it otherwise)
26697 * X11Structs.cs: Added WINDOW_TYPE atoms
26698 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
26699 background (the control is Opaque but still wants transparent
26702 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26704 * Control.cs: Added OnPaintBackgroundInternal to allow controls
26705 that set Opaque but don't mean it (like all ButtonBase-derived
26706 controls) to still draw their background
26707 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
26710 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26712 * Control.cs (PaintControlBackground): Set the graphics object
26713 on our PaintEvent to null to prevent it from being disposed
26714 when the PaintEvent gets disposed
26716 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
26718 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
26719 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
26721 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
26724 - Added transparency check to BackColor property. Transparent
26725 backgrounds are only allowed if the control styles permit it
26726 - Added recursive painting of parent control background and
26727 foreground if a control with a transparent backcolor is drawn
26728 (Thanks to Tim Ringenback for providing his 'hack' as a base
26729 for this patch) Fixes #77985 and #78026.
26730 - Added Opaque style check before calling OnPaintBackground, no
26731 need to draw the background if the control is opaque
26732 - Removed ControlAccessibleObject owner variable (inherited from
26733 base, no need to define again)
26734 - Added some documentation links explaining the drawing events
26737 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26739 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
26740 that the affected control is the located at the left border of our
26741 parent (Fixes #77936)
26743 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26745 * TextBoxBase.cs: When rendering disabled or readonly controls,
26746 draw the background with 'Control' instead of 'Window' color as
26747 long as the user hasn't specifically set a color
26749 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26751 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
26752 since that won't be updated if the user types text (only if it's
26753 programatically set)
26755 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26757 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
26758 layout changes do to app-triggered resizes will have the proper
26759 display rectangle for layout
26761 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
26763 * ThemeWin32Classic.cs:
26764 - Make use of the SystemBrushes and SystemPens wherever possible
26765 - Corrected some highlight colors
26766 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
26768 * Theme.cs: Added Empty field to CPColor struct
26770 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
26772 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
26773 is displayed when calculating the display rectangle. Thanks to Mike
26774 for teaching me the err of my ways.
26776 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
26778 * ScrollableControl.cs:
26779 - Rewrote DisplayRectangle code, now returning the proper x/y coords
26780 (instead of 0,0) and we now return the real width/height instead of
26781 just the clientrectangle, adjusted for padding. The rectangle is
26782 now cached and created by the new CalculateDisplayRectangle method.
26783 - Created new CalculateDisplayRectange method, which basically does
26784 what get_DisplayRectangle() did originally, but now using the
26785 right edge instead of DisplayRectangle to determine the size of
26787 - get_Canvas(): Fixed it to properly calculate canvas for
26788 right/bottom controls which seem to be placed to the right/bottom
26789 of any controls that have a fixed location
26790 - Removed TODO that's taken care of
26791 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
26792 and SetDisplayRectLocation according to new MSDN2 docs
26793 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
26794 event when that is called, this is added for compatibility
26795 - ScrollControlIntoView(): Implemented.
26796 - Switched scrollbars to be implicit, they shouldn't be selectable
26797 * ContainerControl: Now that ScrollControlIntoView is implemented, we
26798 call it when the active control is set/changed
26799 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
26800 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26801 implicit_control variable (used for native Win32 message generation)
26802 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
26803 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
26804 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
26805 * XplatUIStructs.cs: Added ScrollBarCommands enum
26807 2006-04-10 Jackson Harper <jackson@ximian.com>
26810 * CheckedListBox.cs:
26817 * PrintPreviewControl.cs:
26823 * UpDownBase.cs: Fixup base event overrides.
26825 2006-04-06 Mike Kestner <mkestner@novell.com>
26827 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
26828 all user-initiated value changes to min <= value <= max-thumbsz+1.
26829 (set_Value): check for vert/horiz when calculating new thumb position.
26830 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
26832 (OnMouseMoveSB): refactor the thumb dragging code and refine
26833 invalidation logic to reduce flicker.
26834 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
26835 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
26836 (UpdateThumbPosition): small code readability cleanup
26838 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
26840 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
26843 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26845 * ThemeNice.cs: Use a better graphics effect when a button is pressed
26847 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
26849 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
26850 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
26851 This dramatically reduces the number of Pen.Dispose calls.
26852 Where possible call ResPool methods only once instead of calling it
26853 over and over again (for example for the same color).
26855 2006-04-06 Mike Kestner <mkestner@novell.com>
26857 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
26858 Also remove an unused private field on the collection. Fixes #77972.
26860 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26862 * ThemeNice.cs: Added ToolBar drawing code
26864 2006-04-06 Mike Kestner <mkestner@novell.com>
26866 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
26867 I'm assuming that means we need to look up the toplevel for the
26868 provided control. Fixes the crash trace in #77911 but exposes another
26869 crash in some strange reflection usage in NDocGui.
26871 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
26873 * ThemeNice.cs: Gave it a little silver touch and added Images
26875 * FontDialog.cs: FontDialog is not resizable
26876 * FileDialg.cs: Added SizeGripStyle.Show
26878 2006-04-05 Jackson Harper <jackson@ximian.com>
26880 * KeyboardLayouts.cs: Remove warning.
26882 2006-04-05 Jackson Harper <jackson@ximian.com>
26884 * Control.cs: Enable OnPaintInternal so we can use it for drawing
26885 all of our controls instead of Paint +=.
26900 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
26901 use OnPaintInternal. Remove Width/Height and Visible checks in
26902 paint handler, this is done at a higher level now.
26903 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
26904 * PaintEventArgs.cs: Add a handled flag so controls that don't
26905 want anymore painting after OnPaintInternal can make sure OnPaint
26908 2006-04-05 Mike Kestner <mkestner@novell.com>
26910 * Form.cs: fix the menu WndProc hacks to respect the native enabled
26911 state of the form, so that we don't process events when Modal dialogs
26912 are up. Fixes #77922.
26914 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
26916 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
26919 2006-04-05 Mike Kestner <mkestner@novell.com>
26921 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
26923 2006-04-05 Mike Kestner <mkestner@novell.com>
26925 * ListView.cs (HeaderMouseMove): null guarding for the over column
26926 when setting up the drag_to_index. Fixes #78015.
26928 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26930 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
26931 in the taskbar. Transient windows seem to accomplish that.
26933 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
26936 - Re-enabled CreateParams.X/Y code for FormStartPosition
26937 - Added code for manual placement when creating the Control
26938 - Incomplete patch to treat MDI forms differently when
26939 setting the ClientSizeCore. (Still need to figure out handling
26942 - When we're explicitly setting the X/Y position of a non-Child
26943 window, let the WM know. Metacity really wants this.
26945 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26947 * ThemeNice.cs: Added CPDrawButton
26949 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26951 * ThemeNice.cs: Changed the color for focused buttons and activated
26952 the arrows for small scroll buttons.
26954 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
26956 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
26957 anymore. Changed some method modifiers to protected (virtual)
26958 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
26960 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
26961 Updated drawing of menus, buttons and progressbars; added
26964 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26966 * ImageListStreamer.cs: implemented serialization/deserialization
26969 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
26971 * ThemeWin32Classic.cs:
26972 - Removed all the DrawFrameControl stuff; CPDrawButton,
26973 CPDrawCheckBox and CPDrawRadioButton are now handled directly
26975 - Updated and corrected the drawing code of CPDrawButton,
26976 CPDrawCheckBox and CPDrawRadioButton to better match ms
26977 - Updated theme checkbox and radiobutton code to use the CP*
26980 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26982 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
26985 2006-03-31 Jackson Harper <jackson@ximian.com>
26987 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
26989 * UpDownBase.cs: Don't CreateGraphics manually, use a
26990 Refresh. Ideally we would invalidate the correct areas here.
26992 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
26995 - We now track the mapping state of windows. If a window (or
26996 one of it's parents) is not mapped we no longer permit
26997 WM_PAINT messages to be generated since we'd otherwise get
26998 lots of BadMatch X errors. Jackson did all the work figuring
27000 - Destroying the caret if the window it's contained in is
27001 destroyed. Can't use regular DestroyCaret method since it
27002 might fall into a drawing function (trying to remove the
27003 caret) and with that generate new BadMatch errors. Again,
27004 Jackson tracked this down.
27005 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27006 make sure we send the messages to all windows. (The old code
27007 would send the WM_DESTROY to the window, and then all child
27008 windows would be 'gone' because the WM_DESTROY handle lookup
27009 would no longer find the destroyed window)
27010 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27011 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27013 2006-03-31 Jackson Harper <jackson@ximian.com>
27015 * ScrollableControl.cs: Dont recalc if we are not visible.
27017 2006-03-31 Mike Kestner <mkestner@novell.com>
27019 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27020 the visibility branch.
27022 2006-03-31 Jackson Harper <jackson@ximian.com>
27024 * ScrollBar.cs: Cap values when incrementing/decrementing.
27026 2006-03-31 Mike Kestner <mkestner@novell.com>
27028 * MenuAPI.cs: setup menu.tracker for popup/context menus.
27029 * ToolTip.cs: guard against timer expirations with no active control.
27030 Not sure why it happened.
27032 2006-03-31 Mike Kestner <mkestner@novell.com>
27034 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27036 * ToolTip.cs: Position the tooltip based on where the cursor is at
27037 popup time, not at MouseEnter time. Add a Down state so that we don't
27038 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27039 positioning offset. Lookup DisplaySize at positioning time, since it
27040 can theoretically change during invocation.
27041 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27042 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27044 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27046 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27047 Fixes behaviour when the Text property of the box is String.Empty
27049 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27051 * XplatUIX11.cs: Only send mouseleave for our client windows, not
27052 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27055 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27057 * FileDialog.cs: Visual enhancement for the popup buttons in
27060 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27062 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27065 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
27067 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27068 highlighted menu items to match ms
27070 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
27072 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27074 2006-03-30 Mike Kestner <mkestner@novell.com>
27076 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27077 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27078 go active to account for HotLight to Selected transition.
27079 * MenuItem.cs: add internal Selected prop. Fill out the Status
27080 property by calculating it from item info. Add HotLight,
27081 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27083 2006-03-30 Mike Kestner <mkestner@novell.com>
27085 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27087 2006-03-29 Jackson Harper <jackson@ximian.com>
27089 * Form.cs: Implement TODO.
27091 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27093 * PrintPreviewDialog.cs: Implemented missing methods and events; still
27094 missing proper dialog setup in the constructor
27096 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27098 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27100 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27101 - Fixed ResetBindings and removed TODO
27102 - Added check for cross-thread calls to get_Handle()
27103 - Added Marshaller attribute for set_Font to satisfy class status
27104 * FontDialog.cs: Removed TODOs that seemed implemented
27105 * UpDownBase.cs: Removed unneeded TODO and Fixme
27106 * MessageBox.cs: Implemented support for Default button and removed TODO
27107 * FileDialog.cs: Removed obsolete TODO
27108 * DomainUpDown.cs: Removed obsolete TODO
27109 * ButtonBase.cs: Removed obsolete TODO
27110 * XplatUIWin32.cs: Removed obsolete TODO
27112 - Removed obsolete TODO
27113 - Calling CheckAcceptButton when the acceptbutton is changed to allow
27114 internal status updates
27115 - Making sure the active control is selected when the control is created
27116 * CurrencyManager.cs: Removed obsolete TODO
27118 2006-03-29 Mike Kestner <mkestner@novell.com>
27120 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27121 of PrintPreviewDialog and RichTextBox.
27123 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27125 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27126 DarkDark, Light and LightLight colors for a specific color
27127 * ThemeWin32Classic.cs:
27128 - Use Button drawing code to draw RadioButtons and CheckBoxes with
27129 Appearance = Button
27130 - Make use of the new ResPool helper CPColor
27131 - Draw ProgressBar and StatusBar with correct 3D borders
27133 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27135 * ColorDialog.cs: Return selected color. Fixes bug #77940.
27137 2006-03-28 Mike Kestner <mkestner@novell.com>
27139 * ListView.cs: fix Icon layout to plan for scrollbar widths when
27140 calculating col/row counts.
27142 2006-03-28 Mike Kestner <mkestner@novell.com>
27148 switch to explicit interface method implementation for some methods
27149 corcompare identifies as inconsistent with MS.
27151 2006-03-28 Mike Kestner <mkestner@novell.com>
27155 add a few missing methods from the class status output.
27157 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
27159 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27162 2006-03-28 Mike Kestner <mkestner@novell.com>
27164 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27166 2006-03-27 Mike Kestner <mkestner@novell.com>
27168 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27169 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27171 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
27173 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27175 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27177 * ThemeWin32Classic.cs:
27178 - GroupBox: Inserted a little gap between the text and the lines
27180 - Made the code in CPDrawBorder3D more readable
27181 - Corrected the drawing location of the up and down arrows in
27184 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27186 * ControlPaint.cs: Corrected line widths in DrawBorder for
27187 ButtonBorderStyle Inset and Outset
27189 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27191 * ThemeWin32Classic.cs:
27192 - Rewrote the totally broken CPDrawBorder3D method. That was
27193 one of the main problems for the terrific ThemeWin32Classic
27195 - Updated and corrected Button drawing
27196 - Correct the dimensions of the SizeGrip to match ms ones
27197 - Removed a small drawing glitch in DrawComboBoxEditDecorations
27198 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27199 Border3DStyle.Sunken to match ms.
27201 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27203 * ThemeWin32Classic.cs: First small part of the "de-uglify
27204 ThemeWin32Classic" effort, SizeGrip
27206 2006-03-24 Jackson Harper <jackson@ximian.com>
27208 * XplatUIX11.cs: Give a max idle time of one second, this matches
27209 MS and forces an Idle event every second when there are no other
27210 events in the queue.
27212 2006-03-24 Mike Kestner <mkestner@novell.com>
27214 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27215 * ListView.Item.cs: fix layout issues with null image lists and images
27216 smaller than checkbox size.
27217 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27218 mode like MS does. It's weird, but consistent. ;-)
27221 2006-03-24 Mike Kestner <mkestner@novell.com>
27223 * ListView.cs: Scroll wheel support for the item control. Fixes
27226 2006-03-23 Jackson Harper <jackson@ximian.com>
27228 * ScrollableControl.cs: Special case negative sized areas, not
27230 * MonthCalendar.cs: Save the rect of the clicked date so we can
27231 use it for invalidation.
27232 - Try to cut down on the number of invalidates
27233 - Invalidate the rect the mouse is over and was over when moving
27234 the mouse, so we get the focus box following the cursor.
27236 2006-03-23 Mike Kestner <mkestner@novell.com>
27238 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27239 focus rectangle drawing. Fixes #77835.
27241 2006-03-23 Mike Kestner <mkestner@novell.com>
27243 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27244 the if and else if and reverting back to the original == check on the
27247 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27249 * FontDialog.cs: Update the example panel if the selected index of
27250 the fontListBox changes.
27252 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27254 * FileDialog.cs: Make FileDialog remember which directory it was in
27255 last in the same execution.
27257 2006-03-22 Mike Kestner <mkestner@novell.com>
27259 * FileDialog.cs: make the DropDownMenu on the toolbar display
27260 RadioChecks since they are mutually exclusive and that's what MS does.
27262 2006-03-22 Mike Kestner <mkestner@novell.com>
27264 * Theme.cs: add Color param to CPDrawMenuGlyph.
27265 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27266 checks and radio marks and arrows are visible on highlighted items.
27267 * ControlPaint.cs: update to use new Theme signature.
27269 2006-03-22 Mike Kestner <mkestner@novell.com>
27271 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27272 is active. Fixes #77870.
27274 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27276 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27277 to be focused/selected after startup
27279 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27282 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27283 CustomColors and ShowHelp properties
27284 - Some internal rewrites to get better results when using the
27287 2006-03-22 Mike Kestner <mkestner@novell.com>
27289 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27290 HoverSelection. Fixes #77836.
27292 2006-03-22 Mike Kestner <mkestner@novell.com>
27294 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
27295 ToggleButtons. (De)Sensitize the Back button around a stack count of
27296 1, not 0. Update ButtonSize based on a pixel count of the win32
27297 control. Adjust the toolbar size/location for new button size.
27299 2006-03-22 Jackson Harper <jackson@ximian.com>
27301 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27303 * ScrollBar.cs: When doing increments and decrements we need to
27304 set the Value property so that ValueChanged gets raised. A
27305 possible optimization here would be to make an internal SetValue
27306 that doesn't invalidate immediately.
27307 * ToolTip.cs: Tooltips get added to their container (when
27308 supplied) so they get disposed when the container is disposed.
27309 - Don't create tooltips for String.Empty. This prevents all these
27310 little 2-3 pixel windows from showing up when running nunit-gui
27311 and driving me mad.
27312 * Form.cs: Don't set topmost when setting the owner if the handles
27313 haven't been created yet. The topmost set will happen when the
27314 handles are created.
27316 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
27319 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27320 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
27321 visible (to allow them to recalculate their sizes)
27323 2006-03-21 Mike Kestner <mkestner@novell.com>
27325 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27326 methods. Removed a ton of redundant code. Still not really happy with
27327 the border rendering, but I think that's mainly because of the
27328 ControlDarkDark being black instead of a dark grey. Depending on how
27329 close we want to be, we might want to revisit those color choices.
27330 Among the new features added during the refactor were DropDownArrow
27331 pressed rendering, Disabled image rendering. Proper flat appearance
27332 boundary rendering. Removed the Divider and Wrapping dividers since I
27333 can't figure out any combination of themes and conditions to make the
27334 MS control draw a horizontal line on a toolbar despite what the
27335 Divider property docs indicate.
27336 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27337 conditions and incorrect layout. Updated to coding standard.
27338 * ToolBarButton.cs: refactored layout and positioning code from
27339 ToolBar to here. Invalidate wherever possible instead of forcing
27340 redraws of the whole toolbar.
27341 (Known remaining issues: explicit ButtonSize smaller than provided
27344 2006-03-21 Mike Kestner <mkestner@novell.com>
27346 * ContextMenu.cs (Show): use the position parameter instead of just
27347 showing at the MousePosition.
27349 2006-03-21 Jackson Harper <jackson@ximian.com>
27351 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27352 control handle this.
27353 * TreeNodeCollection.cs: If we are clearing the root node we need
27354 to reset top_node so calcs can still happen.
27355 * ThemeWin32Classic.cs: This is a Flags so we need to check
27358 2006-03-21 Jackson Harper <jackson@ximian.com>
27360 * DataGrid.cs: Create columns when the binding context has been
27362 * X11Structs.cs: Keysyms are uints.
27363 - Add size to fix build.
27365 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
27367 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27369 - Added ResetMouseHover method to allow controls to retrigger
27370 hovering if they need it more than once
27371 - Implemented MouseHoverTime and MouseHoverSize properties
27372 * Timer.cs: Start() must reset the interval
27373 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27376 2006-03-21 Jackson Harper <jackson@ximian.com>
27378 * X11Keyboard.cs: improved layout detection. Move the nonchar
27379 tables into this file.
27380 * KeyboardLayouts.cs: Move the tables into resource files.
27382 2006-03-21 Mike Kestner <mkestner@novell.com>
27384 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27386 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
27388 * Mime.cs: Various speed optimizations. Looking up mime types
27389 is now 2 times faster than before
27391 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27393 * CreateParams.cs: Added internal menu field
27395 - Switched call order for UpdateBounds; now we always call
27396 the one that also takes ClientSize, and we're calculating the
27397 client size via driver method in the others. The previous
27398 method of tracking client size by difference wasn't working
27399 for forms where even the starting client size wouldn't match
27400 the overall form size (due to borders) (Part of fix for #77729)
27401 - CreateParams(): Do not use parent.Handle unless the handle is
27402 already created. Causes havoc with Nexxia and throws off our
27403 creation of controls
27405 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27406 - Switched handling of ConfigureNotify over to new PerformNCCalc
27407 method (consolidates code)
27408 - Changed RequestNCRecalc to use new PerformNCCalc method
27409 - Added calls to RequestNCRecalc when menus and borders are changed
27410 to allow app to set NC size. (Part of fix for #77729) This matches
27411 when MS send a WM_NCRECALC on Win32 windows.
27412 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27413 (Part of fix for #77729). This matches what MS does, they also
27414 send that message when the form is made visible.
27415 - XException.GetMessage: Improved usability of X errors by including
27416 a translation of the window into Hwnd and Control class
27417 - Improved debug info for window creation, reparenting and destruction
27418 - Created helper method WindowIsMapped() [Currently not used]
27419 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27421 - CreateParams: Now setting our menu on the new internal menu field
27422 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27423 avoid calculating the same property twice
27425 - Improved usability of ToString() for debugging purposes
27426 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27427 determine the height of the menu, instead of just the font. This
27428 required to also create a graphics context and to keep a bmp
27429 around (for performance reasons)
27431 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27433 * MenuAPI.cs: Added OnMouseUp method
27435 - Now remembering the requested client size, avoids size errors
27436 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27437 instead of base if the menu is active. This is required due to
27438 control now capturing and releasing on down/up and it would
27439 prematurely release our menu capture
27441 2006-03-17 Jackson Harper <jackson@ximian.com>
27443 * KeyboardLayouts.cs: Add the czech layouts.
27445 2006-03-16 Jackson Harper <jackson@ximian.com>
27447 * Control.cs: Use the viewport space when sizing not the controls
27448 client size, so things like ScrollableControl that effect the
27449 viewport size (when scrollbars are added) are computed correctly.
27450 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27452 - Handle creating BindingManagers for null data sources.
27453 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27454 source, otherwise when rows are added they are added to the 'fake'
27455 datasource and we will crash when trying to set the position in
27457 - Use Implicit scrollbars on the datagrid so they arent
27460 2006-03-16 Jackson Harper <jackson@ximian.com>
27463 * InternalWindowManager.cs:
27464 * MdiWindowManager.cs:
27465 * X11Keyboard.cs: I really want Mike to love me again (fix
27466 compiler warnings).
27468 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27471 - OnMouseDown: Switch to editing mode when clicking on the cell
27472 even if we're clicking on the cell that's currently
27474 - ProcessGridKey: Left/Right now wrap like MS.Net does
27475 - ProcessGridKey: Tab now knows to add a new row when tab is
27476 pressed in the cell of the last column of the
27478 - ProcessGridKey: Enter now adds another row if pressed in the last
27479 row and selectes the new row, same column cell
27480 - ProcessGridKey: Home/End navigate columns, not rows, like
27481 originally implemented
27482 - Broke ProcessKeyPreview code out into an extra Internal method
27483 so it can be called from the edit code
27484 * DataGridTextBox.cs (ProcessKeyMessage):
27485 - Switched to accept Tab keypresses
27486 - Added F2 handling to allow jumping to the end of the edited cell
27487 - Added logic to allow moving caret left/right inside edited cell
27488 and making the edited cell jump when the caret hits cell borders
27489 - Tab and Enter are now passed to the datagrid after being handled
27491 - Removed capture code now that Control handles it
27492 - set_SelectionStart now ensures caret is visible
27494 2006-03-16 Jackson Harper <jackson@ximian.com>
27496 * TrackBar.cs: Debackwards the increment/decrement for handling
27497 mouse clicks on the bar with vertical trackbars.
27498 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27499 bottom to match MS.
27501 2006-03-16 Mike Kestner <mkestner@novell.com>
27503 * ListView.cs: make shift/ctrl keyboard and mouse selection
27504 consistent with the MS control. Fix a bug in
27505 SelectedListViewItemCollection.Clear that was pissing me off for the
27506 better part of a day because the collection was being altered
27507 underneath us as we walked the list.
27509 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27511 * Control.cs: Not sure how we could miss this so long, but it seems
27512 that MS.Net has Capture set all the way from before calling
27513 OnMouseDown through sending the mouse events until after
27514 OnMouseUp. This will fix DataGrid's selection being set to end
27515 at the location of the MouseUp.
27517 2006-03-15 Jackson Harper <jackson@ximian.com>
27519 * BindingContext.cs: Check the binding after its added so that it
27520 can initialize the binding managers and hookup to events.
27521 * Binding.cs: Data members seem to sometimes include rows/cols in
27522 the format Row.Column we now take this into account.
27523 - Hookup to the position changed event so we can update the
27524 control when the position has changed in the data set.
27525 * CurrencyManager.cs: Take into account the row/col naming
27526 convention when creating dataset tables.
27527 * BindingContext.cs: Using a newer better way of storing
27528 datasource/datamember pairs. Hopefully this better matches MS for
27529 looking up binding managers.
27532 2006-03-15 Jackson Harper <jackson@ximian.com>
27534 * BindingContext.cs: The currency manager needs the data member
27535 name, if the member is a data set we use the name to find the
27537 * CurrencyManager.cs: When creating the list prefer an IList over
27539 - Attempt to create a DataTable from a DataSet (TODO: might need
27540 some better error checking here, although MS doesn't seem to have much)
27541 - If we have a DataTable create a view and use it as our list.
27543 2006-03-15 Mike Kestner <mkestner@novell.com>
27545 * ListView.cs: keep a matrix of the icon mode layout to facilitate
27546 keyboard navigation. Support Up/Down/Left/Right selection correctly
27547 for all 4 View modes.
27548 * ListViewItem.cs: add internal row/col fields for icon layouts.
27550 2006-03-15 Jackson Harper <jackson@ximian.com>
27552 * TabControl.cs: Redraw the tabs when we resize so their newly
27553 calculated sizes are drawn on screen.
27554 * X11Keyboard.cs: Begginnings of XIM support. We also now support
27555 composite characters.
27556 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27557 - filter events so that composite characters can be created
27559 * X11Structs.cs: Add XIMProperties enum.
27561 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27563 * Control.cs (BringToFront, SendToBack): Don't use window or handle
27564 unless it's created
27566 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27568 * Control.cs (PerformLayout): We don't need to consider visiblity
27569 for anchoring, only for docking. This fixes 'whacky' alignment
27570 in listbox and other controls that use implicit scrollbars after
27571 the previous PerformLayout patch
27572 * ListBox.cs: Switched to use implicit scrollbars
27574 2006-03-14 Mike Kestner <mkestner@novell.com>
27578 - chain up the "new event" overrides to base and use
27579 OnEvent to raise them. Part of fix for bug #76509.
27581 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
27583 * FileDialog.cs: Do not select an item in the parent directory
27586 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27588 * Control.cs (PerformLayout): It would seem that we considered
27589 invisible windows for our layout. Not quite the right thing
27590 to do. Now we don't any longer, thereby fixing bug #76889.
27592 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27594 * Control.cs (CanFocus): I goofed. A control can have focus
27595 even though it's not selectable. Made it match MS docs.
27597 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27599 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27600 center by default (fixes #76895)
27601 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
27602 all uses of Border3DSides.All with the explicit ORd together
27603 Left|Right|Top|Bottom because I assume that nobody was aware
27604 that All also implies a center fill. Most places I checked had
27605 a fill right above.
27606 * ProgressBarStyle.cs: Added
27608 2006-03-13 Mike Kestner <mkestner@novell.com>
27610 * ListView.cs: fix breakage in drag shadow header positioning
27611 from Peter's csc compilation fix.
27613 2006-03-13 Mike Kestner <mkestner@novell.com>
27615 * ListView.cs: fix NRE produced by backspacing twice in a focused
27618 2006-03-13 Mike Kestner <mkestner@novell.com>
27620 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27622 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27624 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27626 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27627 the allowed size before making programmatic size changes
27629 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27631 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
27632 set, metacity is broken and will still use the emty sizes in
27633 the struct. (Fix for #77089)
27635 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27637 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
27638 WindowExStyles and marked both enums as Flags
27639 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27640 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27641 to match WindowStyles split
27643 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27644 - Updated to match WindowStyles split
27646 - Fixed FosterParent creation, was using ExStyle on the Style field
27647 (This should help with Popup focus issues)
27648 - Updated to match WindowStyles split
27650 2006-03-13 Jackson Harper <jackson@ximian.com>
27652 * MdiWindowManager.cs: Use the system menu height. Fixes some
27653 strange sizing issues.
27655 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27657 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
27659 - Scroll to caret after inserting text (#77672)
27660 - Make scroll range one pixel higher, fixes off-by-one error (and
27661 makes underlines visible on the last line)
27663 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27665 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
27666 the keyboard state from being stuck with keys in 'pressed' state when
27667 focus is switched away via keyboard
27668 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
27669 reset the keyboard if no X11 KeyUp events are expected to come
27670 * X11Structs.cs: Switched type of Visible to bool to match driver
27672 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
27675 - Switched caret to be just 1 pixel wide, matches MS and looks less
27677 - Moved caret display 1 pixel down from the top of the control
27679 - InsertCharAtCharet: Update the selection start if moving the caret
27680 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
27681 - No longer always creating the caret when the caret methods are
27682 called. Only the actual ShowCaret/HideCaret will do that now
27683 - Only setting caret visible if the owner control has focus
27684 - UpdateView: Added invalidation-shortcut logic for center and right
27685 aligned text. Previously we'd update all according to the left
27686 logic which caused drawing errors. Also fixed height of invalidated
27687 areas, now properly invalidating the whole area (was off-by-one)
27688 - owner_HandleCreated: Always generate the document when the
27689 handle is created; this ensures that
27691 - Fixed situation where caret would disappear under the right
27692 window border, also improved scrolling behaviour on left-
27694 - Fixed right-aligned textboxes to have a border to the
27695 right instead of the caret being under the right border
27697 - Switched from 'nested' to simple visible/not visible tracking
27698 for caret (part of fix for #77671)
27699 - No longer passing through translated FocusIn/FocusOut messages
27700 since we were notifying too often and the wrong windows. Instead
27701 we just notify our focussed window of receiving or loosing focus
27702 * XplatUIWin32.cs: Switched from 'nested' show/hide
27703 counting for caret to simple visible yes/no behaviour (part of
27706 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27708 * Mime.cs: Remove debug code...
27710 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
27712 * MimeGenerated.cs: Removed
27713 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
27714 and subclasses) from /usr/(local/)share/mime and
27715 $HOME/.local/share/mime.
27717 2006-03-10 Jackson Harper <jackson@ximian.com>
27719 * MdiWindowManager.cs: Recalc the NC area when a window is
27720 maximized/restored so that the menu area is drawn on forms that
27723 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27725 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27726 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
27727 us to force a WM_NCCALCRESIZE message being sent. This is needed
27728 for MDI maximizing.
27730 2006-03-10 Jackson Harper <jackson@ximian.com>
27732 * Form.cs: We need to use the ActiveMenu when calculating menu
27734 - Fix nullref when the window manager hasn't been created yet.
27735 * Control.cs: Fix nullref when we try to bring a control to the
27736 front that has no parent.
27737 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
27739 - Add a dummy item to the maximized menu so it always has the
27740 correct height. Otherwise when there are no menus we don't get our
27744 2006-03-10 Jackson Harper <jackson@ximian.com>
27746 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
27748 * Form.cs: Make the window_state internal so the window managers
27750 - When an MDI child is maximized let its window manager create the
27751 main menu (so it can add its icon).
27752 - Notify the window managers of state changes
27753 - Let the window manager paint its buttons and handle button
27754 clicks on the menu when it is maximized.
27755 * InternalWindowManager.cs: Move the prev_bounds into the mdi
27756 window manager, since tool windows don't use it, only mdi windows.
27757 - Tell the main form that we don't want it to handle NCPAINT
27758 itself to avoid extra painting.
27759 - Handle clicks on a maximized windows menu.
27760 - Handle window state changes
27761 - Handle minimize/maximize clicks correctly by setting the window state.
27762 * MdiWindowManager.cs: Add an icon menu that (the menu you get
27763 when clicking on the forms icon).
27764 - New method to create a forms maximized menu. This is its normal
27766 - Handle window state changes.
27767 - Handle sizing of maximized windows. Maximized windows are just
27768 drawn bigger then the parent visible area. All controls are still
27769 there, they are just outside the visible area (this matches windows).
27770 * MdiClient.cs: No scrollbars when a child window is maximized.
27771 - Let the children windows figure out how big they should be when
27772 sizing maximized windows.
27773 - Implement a version of ArrangeIconicWindows somewhat similar to
27774 Windows version. There are some little differences, but I don't
27775 think any app will rely on the layout of minimized mdi windows.
27777 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27779 * Padding.cs: Several fixes to allow compiling with csc 2.0
27781 2006-03-09 Jackson Harper <jackson@ximian.com>
27784 * MenuItem.cs: Cheap hack so we can add items to the list without
27785 the events being raised. This allows adding mdi items during
27786 drawing. TODO: Should probably find a better time to add the items.
27788 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27790 * ThemeWin32Classic.cs:
27791 - CheckBox_DrawText: Added logic to not wrap if not enough space
27792 is available (Fix for bug #77727)
27793 - RadioButton_DrawText: Added logic not to wrap if not enough
27794 space is available (Fix for bug #77727). Also removed some
27795 duplicate code, DrawString always drawing the regular text
27796 before hitting the if statement.
27798 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27800 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
27802 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
27804 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
27805 * ContainerControl.cs: Partial implementation of some 2.0 scaling
27806 methods. Moved the new 2.0 properties into alphabetical order with
27807 other properties and added MonoTODO tags
27809 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27811 * AutoScaleMode.cs: Added. Fix build.
27813 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27815 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27816 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
27817 and was requiring premature handle creation for calls from above
27818 * Form.cs, Control.cs: Removed handle arguments from calls to
27819 CalculateClientRect()
27821 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27823 * ListView.cs (HeaderMouseMove): Fix csc compilation.
27824 drag_column.column_rect is MarshalByRef and can't be used that way
27826 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27828 * AxHost.cs: Added deserialization constructor for
27829 AxHost+State (fixes 77743)
27831 2006-03-09 Mike Kestner <mkestner@novell.com>
27834 - Added column drag reordering for details view.
27835 - fixed behavior when mouse is dragged off column and
27836 AllowColumnReorder is false.
27837 * ColumnHeader.cs: clone the format too in Clone.
27838 * Theme.cs: add DrawListViewHeaderDragDetails method.
27839 * ThemeWin32Classic.cs:
27840 - impl new method for drawing drag column shadows and targets.
27841 - support column offset for details mode in DrawListViewItem.
27843 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27845 * TextControl.cs: Reset the char_count when the document is cleared
27846 (Fixes bug reported on mono-winforms mailing list)
27848 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27850 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
27851 of calling base we simply process the key ourselves, since both
27852 DefWindowProc and the handled method would set m.Result.
27855 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
27857 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
27858 method also moves the window; instead implemented a copy of
27859 Control.ScaleCore (Part of fix for #77456)
27861 - Created new CreateGraphicsInternal method to allow providing
27862 a graphics context when no handle is created without triggering
27863 handle creation. (Part of fix for #77456)
27864 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27866 - Switched Constructor to require TextBoxBase instead of Control (to
27867 allow uncast access to CreateGraphicsInternal)
27868 - Safeguarded use of owner.Handle property. No longer accessing it
27869 unless the handle is already created.
27870 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
27871 - Now triggering a recalc when owning control becomes visible
27872 * TextBox.cs, RichTextBox.cs: Switched to use new internal
27873 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
27874 premature handle creation (Part of fix for #77456)
27876 - We now only destroy our double-buffering buffers when the
27877 control is resized or disposed, but not when visibility
27878 changes. (The code even re-created them twice every time)
27879 - Now requiring a redraw of the buffer on visibility changes
27880 (fixes bug 77654 part 2)
27881 - Not passing OnParentVisibleChanged up unless the control
27883 - CanFocus: Fixed to match MS documentation
27884 - Focus: Fixed to return actual focus state and to check if
27885 setting focus is legal before setting it
27887 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
27889 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
27890 when to draw focus rectangle by looking at parent focus and
27891 selected state instead. This fixes TabPages on Linux sometimes
27892 having none or multiple focus rectangles.
27893 * XplatUIX11.cs (SetFocus):
27894 - Don't set the focus if the same window already has focus
27895 - Use SendMessage instead of PostMessage (like it's Win32
27896 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
27897 to match MS behaviour
27898 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
27899 are not selectable.
27901 2006-03-07 Jackson Harper <jackson@ximian.com>
27903 * PictureBox.cs: Revert line I accidently committed last week.
27905 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
27908 - Added new IsRecreating and ParentIsRecreating properties to
27909 allow testing if RecreateHandle has been called on ourselves
27910 or one of our parents
27911 - WndProc(WM_DESTROY): If our control handle is being recreated
27912 we immediately need to create the handle when receiving the
27913 destroy, that way our child windows find a valid parent handle
27914 when they themselves are being recreated upon WM_DESTROY receipt
27915 (fix for bug #77654 part 1)
27917 - DestroyWindow: WM_DESTROY must be sent to our own window before
27918 notifying any child windows. MS documents that child windows
27919 are still valid when WM_DESTROY is received. (Control now relies on
27921 - Added some fine-grain debug options
27923 2006-03-06 Jackson Harper <jackson@ximian.com>
27925 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
27926 box and base calculations off this.
27927 * MdiChildContext.cs:
27928 * MdiWindowManager.cs: Don't need to ensure scrollbars here
27931 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
27933 * Splitter.cs: In situations where the affected control is added
27934 to the parent's control list after the splitter, we would not
27935 populate affected. Now we try populating it on mousedown, if
27936 it's not already set, and force it to be re-set whenever our
27939 2006-03-03 Matt Hargett <matt@use.net>
27941 * Control.cs: implement Control.Padding
27942 * Padding.cs: -Padding.All returns -1 when constructing with the
27943 implicit default ctor
27944 -Padding.ToString() matches MS.NET
27945 * ContainerControl.cs: implement
27946 ContainerControl.AutoScaleDimensions
27947 * ListControl.cs: implement ListControl.FormattingEnabled
27948 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
27950 * TabPage.cs: Implement UseVisualStyleBackColor.
27951 * PictureBox.cs: Implement PictureBox.InitialImage.
27953 2006-03-03 Mike Kestner <mkestner@novell.com>
27955 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
27956 event declarations to proxy to base event.
27957 * ListViewItem.cs: update to use ItemControl.
27958 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
27959 * ThemeWin32Classic.cs: update to new ListView theme API and fix
27960 column header label rendering for 0 width columns.
27962 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
27964 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
27965 that causes the control to be created. Fixes #77476.
27967 2006-03-02 Jackson Harper <jackson@ximian.com>
27969 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
27972 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
27974 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
27975 passed in for the EventArgs (fixes #77690)
27977 2006-03-01 Jackson Harper <jackson@ximian.com>
27979 * ScrollBar.cs: Refresh afterbeing resized.
27981 2006-02-28 Mike Kestner <mkestner@novell.com>
27983 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
27984 Clean up a tracker compile warning.
27985 * MenuItem.cs: add internal PerformPopup method.
27988 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27990 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
27991 implicit expose) when the text is set to null
27993 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
27995 * RichTextBox.cs (FlushText): When newline is true, we always
27996 need to split the line, even if no text is on it and we may
27997 never eat newlines. (Fixes #77669)
27999 2006-02-28 Mike Kestner <mkestner@novell.com>
28001 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
28002 and set Selected instead.
28003 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
28006 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28008 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28010 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
28013 - Got rid of the panel. All controls are now directly added to
28015 - It is now possible to set a font with the Font property
28016 - MinSize and MaxSize property do now what they should
28017 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28018 - Searching and selecting a font with the font textbox works now,
28019 the same applies to the style and size textbox
28020 - Draw the correct 3D border in the example panel
28021 - Fixed a little mem leak (unused fonts didn't get disposed)
28022 - Many other internal updates/rewrites...
28025 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28028 - InsertRTFFromStream: Added 'number of characters inserted' argument
28029 - set_SelectedRTF: Now using the number of characters to calculate
28030 the new location for the selection and cursor (x/y cannot be used
28031 due to potentially already wrapped text)
28033 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28035 * TextControl.cs: Added property and implemented means to allow
28036 disabling recalculation of a document (can be used to speed up
28037 multiple inserts and is needed to make RTF inserts predictable, see
28039 * RichTextBox.cs: Using the new NoRecalc property of Document to
28040 keep x/y insert locations predictable. Also makes it faster inserting
28041 large chunks of RTF
28043 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28045 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28046 it's easier for a child control to handle the other messages without
28047 having to duplicate the special functionality
28049 - WndProc: Removed calling base handler for WM_KEYDOWN and added
28050 code to handle processing the key ourselves, in order to get
28051 access to the result of KeyEventArgs.Handled. We now only call
28052 ProcessKey if they key hasn't been handled already. Fixes #77526.
28053 - set_Text: If null or empty string is given, just clear the
28054 document. Fixes part of #77526
28056 2006-02-27 Jackson Harper <jackson@ximian.com>
28058 * SizeGrip.cs: Paint the background color before painting the grip
28059 so things look right.
28060 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28062 2006-02-27 Mike Kestner <mkestner@novell.com>
28065 - Restructure layout and invalidation model to remove a ton of
28066 flicker from the control and speed up performance in general.
28067 - Add manual column resize, flickers like crazy, but I already have
28068 some ideas on how I'll fix that. (#76822)
28069 - Merge the three Icon-based views into a single layout method.
28070 - Move item selection interaction logic from the item since
28071 interaction with the collections is more appropriate to the view.
28072 - Deselection on non-item clicks.
28074 - Encapsulate most of the layout. Add some internal props to trigger
28075 layout. Move to a model where Items invalidate themselves instead
28076 of just invalidating the whole control every time something changes.
28077 - Invalidate on Text/Caption changes.
28078 - switch to an offset based layout model to avoid having to absolute
28079 position every element on item moves.
28080 - correct checkbox layout to conform to MS layout.
28081 * ThemeWin32Classic.cs:
28082 - refactor some column header drawing code.
28083 - fix string justification for column headers (#76821)
28084 - make SmallIcon labels top justified for compat with MS impl.
28085 * ThemeClearlooks.cs:
28086 - adjust to new ListViewItem internal checkbox bounds api.
28088 2006-02-27 Jackson Harper <jackson@ximian.com>
28090 * Control.cs: Change where implicit controls fall in the zorder.
28091 They are now on top of all children.
28092 - Synced AddImplicit code with Add
28093 - Removed unused enumerator.
28094 * SizeGrip.cs: Remove the TODO as its been TODONE.
28096 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28098 * TextControl.cs(Insert): Combine the last lines unless the insertion
28099 string ends with \n\n, otherwise we leave one line too many (Fixes
28100 something I noticed with the testapp for #77526; the bug itself was
28101 already fixed in the previous checkin)
28103 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28106 - SelectionColor and SelectionFont methods no longer set absolute
28107 styles. Instead, the keep font or color respectively (This
28108 resolves a long-standing FIXME in the code)
28109 - When flushing RTF text, the insert code now considers text trailing
28110 behind the insertion point (Fixes the bug where when replacing
28111 the selected text via SelectedRTF the remainder of the line behind
28112 the selection would stay on the first insertion line)
28114 - AppendText now updates the selection points after inserting text
28115 - AppendText now ensures that the last tag (sometimes 0-length) of
28116 the document is used for the style information (Fixes part of
28119 - Created new FontDefiniton class to allow describing partial style
28121 - StreamLine() now takes a lines argument, to allow it to decide
28122 whether an encountered zero-length tag is the last in the document
28123 (which must be kept to not loose the font/color contained in it,
28125 - Created Combine() and Split() methods for Marker structs, to
28126 support marker updates due to reformatted documents (soft line
28128 - Implemented Document.CaretTag setter
28129 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28130 of the last line (Not the cause, but also exposed by bug #77220)
28131 - Added LineTag argument to InsertString method, to allow callers
28132 to force a certain tag to be used (required to force use of the
28133 trailing zero-length tag of a document)
28134 - Now updating markers in Combine(), to avoid stale tag markers
28135 - Added some method descriptions to aid maintenance
28136 - Implemented new FormatText concept, allowing additive/subtractive
28137 formatting by only specifying the components that are to be
28138 changed. This was needed for resolving the RTB.SelectedColor/
28139 RTB.SelectedFont fixmes
28140 - Added Break() support method to allow breaking up linetags (used
28141 for partial formatting)
28142 - Added GenerateTextFormat() method. It is used for partial
28143 formatting and allows to generate a full font/color from given
28144 attributes and an existing tag.
28146 2006-02-26 Jackson Harper <jackson@ximian.com>
28148 * XplatUIX11.cs: Use the correct caption height.
28149 - Translate hittest coordinates to screen coords to match MS.
28150 * XplatUIWin32.cs: When we create MDI windows we need to reset
28151 some of the style flags, so we get a nice blank window, and can
28152 draw all the decorations ourselves.
28153 - Set a clipping rectangle on the non client paint event, the
28154 window manager drawing code needs one.
28155 * Form.cs: The window manager needs to know when the window state
28157 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28158 don't need to factor in border and title sizes in these
28159 methods. TODO: Remove the args and fix the call points.
28160 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28162 - Let the driver set the cursors.
28163 - Improve active window handling
28164 - Correct sizes for title bars and buttons.
28165 - Match MS drawing better
28166 * MdiWindowManager.cs: We don't need to handle border style
28167 updates specially anymore.
28168 - Check for scrollbars when windows are done moving
28169 - Handle Active properly.
28170 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28171 correctly. I am spewing the exception though, so we don't hide the
28174 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
28176 * DataGridViewRowPostPaintEventArgs.cs,
28177 DataGridViewCellPaintingEventArgs.cs,
28178 DataGridViewRowCollection.cs,
28179 DataGridViewRowPrePaintEventArgs.cs,
28180 DataGridViewCell.cs: Clear a few warnings and implement a few
28181 exceptions that should be thrown.
28183 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28185 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28186 'inheriting' our parent's (non-default) cursor. (Part of
28187 the fix for #77479)
28189 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28191 * XplatUIX11.cs: Fixed cast to make csc happy
28193 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28195 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28196 it's for the client area (part of fix for #77479 and needed
28197 for MDI window cursor handling)
28199 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28200 the appropriate default cursors and also passing the message
28201 up the parent chain
28202 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28203 for non-client areas
28205 2006-02-15 Jackson Harper <jackson@ximian.com>
28207 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28208 is a real MDI window
28210 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
28212 * X11DesktopColors.cs: Instead of checking the desktop session
28213 string for "KDE" check if it starts with "KDE"
28215 2006-02-10 Jackson Harper <jackson@ximian.com>
28217 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28220 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28222 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28225 - Got rid of the panel. All controls are now directly added to
28227 - Changed to mono coding style
28229 2006-02-10 Jackson Harper <jackson@ximian.com>
28231 * InternalWindowManager.cs: We don't need the set visibility to
28232 false hack anymore now that peter has written beautiful shutdown
28235 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
28237 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28238 where already explicitly destroyed
28240 2006-02-10 Jackson Harper <jackson@ximian.com>
28242 * MdiClient.cs: Handle the case where windows are too high or to
28243 the left and we need scrollbars.
28245 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28247 * MimeIcon.cs: Added some icons
28250 - Got rid of the panel. All controls are now directly added to
28252 - Changed to mono coding style
28253 - On Linux "My Computer" and "My Network" will now show some
28254 more usefull information. A new class, MasterMount, gathers
28255 this information from /proc/mount. Updated MWFFileView to make
28256 use of this information
28257 - Fixed a bug that caused FileDialog to crash when
28258 ".recently_used" file had a zero size
28259 - FilterIndex does now what it should
28261 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28264 2006-02-09 Jackson Harper <jackson@ximian.com>
28266 * ComboBox.cs: Don't touch if null.
28268 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
28270 * Cursor.cs: 64bit safeness fix
28271 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28273 2006-02-09 Jackson Harper <jackson@ximian.com>
28275 * Form.cs: If a form is made into an MDI form update the styles so
28276 all the props can get set correctly.
28277 - Kill the mdi_container when we dont need it anymore.
28278 * InternalWindowManager.cs: Add missing NOT
28280 2006-02-08 Jackson Harper <jackson@ximian.com>
28282 * InternalWindowManager.cs: Respek clipping when drawing MDi
28285 2006-02-08 Jackson Harper <jackson@ximian.com>
28287 * Hwnd.cs: Add bits to track non client expose events.
28288 * XplatUIX11.cs: Track non client expose events on the hwnd. This
28289 gives us a proper invalid rect and will allow for some nice
28290 optimizations with NC client drawing
28291 - MDI windows are children windows, so move their style handling
28292 into the child window block.
28293 * InternalWindowManager.cs: Remove a state reset that was
28294 getting invoked at the wrong time. Fixes managed windows getting
28295 into a 'stuck' captured state.
28297 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28299 * TextControl.cs (Document.ctor): Now initializing
28300 selection_anchor. Fixes #77493
28302 2006-02-07 Jackson Harper <jackson@ximian.com>
28304 * TrackBar.cs: The increment/decrements were backwards.
28306 2006-02-07 Mike Kestner <mkestner@novell.com>
28308 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28309 to the instance itself.
28311 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28313 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28314 on ulongs and pointers, the size differs between 32bit and 64bit
28317 2006-02-07 Mike Kestner <mkestner@novell.com>
28319 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28320 for 64 bit platforms to work around a metacity bug.
28322 2006-02-07 Jackson Harper <jackson@ximian.com>
28324 * TrackBar.cs: Process the input keys we need, and hookup to
28325 KeyDown instead of using WndProc, so we get key messages.
28327 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28329 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28331 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28332 we need to translate the XdndVersion atoms array before sending it
28334 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28337 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28338 number of bits for the property, not the number of bytes. The
28339 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28340 but would not crash since it specified 8 bits instead of 4 bits)
28341 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28342 defined as XID -> long in the C headers)
28343 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
28344 references since those are now IntPtr to begin with
28345 - Switched all Atom.XXX 'int' casts to IntPtr casts
28346 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28347 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28348 - Added XChangeActivePointerGrab DllImport (for X11DnD)
28350 - Changed 'int' type for Atoms in XEvent structures to IntPtr
28351 - Changed atom in HoverStruct to be IntPtr
28353 - Removed local DllImports, switched code to use those from XplatUIX11
28354 - Removed/fixed casts related to the switch of Atom to be a IntPtr
28356 2006-02-06 Mike Kestner <mkestner@novell.com>
28358 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
28359 method signatures in the import region. There may still be some
28360 lingering struct marshaling issues, as I didn't drill down into those.
28363 2006-02-06 Jackson Harper <jackson@ximian.com>
28365 * ComboBox.cs: Dont manually set the top_item, this is computed
28366 when the scrollbar position is set.
28368 2006-02-06 Mike Kestner <mkestner@novell.com>
28370 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28371 startup crashes on amd64. There's other fixes needed. All pinvoke
28372 usage of Atom needs to be mapped to IntPtr for example. And there are
28373 likely other int/long issues to be addressed.
28375 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
28377 * FileDialog.cs: One more...
28379 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28381 * FileDialog.cs: Next try
28383 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28385 * FileDialog.cs: First part of fix for #77464
28387 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28389 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28390 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28391 AcceptButton border drawing.
28393 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28395 * Form.cs: Moved positioning of form after auto scaling is applied,
28396 otherwise it would possibly use wrong form size.
28398 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28400 * Control.cs (RecreateHandle): No need to re-create any child
28401 controls, the child windows will get destroyed automatically by
28402 the windowing system or driver, and re-created when the handle
28403 is being accessed the first time. Fixes #77456
28404 * Form.cs: No longer setting the form to closing if the handle is
28405 being recreated. This seems like the right thing to do, don't
28406 have a bug or testcase for this, though.
28408 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28410 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28411 controls to avoid unwanted side effects
28413 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28416 - ScaleCore needs to scale the bounds, not the ClientSize of the
28417 control. Fixes #77416.
28418 - DefaultSize is 0,0 for control
28420 - DefaultSize is 100, 20
28421 - SetBoundsCore: Now enforcing the height, no matter if the provided
28422 height is more or less than the preferred one, as long as AutoSize
28424 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28426 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28429 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28430 call unless both performLayout is true *and* we have a pending
28432 - ResumeLayout: MS does not completely nest Suspend and Resume,
28433 they bottom out at 0, fixed our code to match that.
28434 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28435 SetBoundsCore, we were updating even when we shouldn't. This fixes
28436 swf-anchors mis-anchoring when resizing the app fast and lots.
28437 - UpdateDistances: Now only setting the left and top distance if
28438 we have a parent and are not suspended, this is based on
28439 a suggestion by Don Edvaldson in bug #77355.
28440 - OnVisibleChanged: Fixed logic when to create the control. We may
28441 not create the control if we have no parent or if it's not visible;
28442 switched to using Visible property instead of is_visible field
28443 since the property also considers parent states. This fixes a bug
28444 when starting Paint.Net
28446 2006-02-02 Jackson Harper <jackson@ximian.com>
28448 * Form.cs: If the forms handle hasn't been created yet don't call
28449 into xplatui to make it top most, just set the topmost flag on the
28450 form in CreateParams
28451 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28453 2006-02-01 Jackson Harper <jackson@ximian.com>
28455 * ScrollableControl.cs: Refactored the Recalculate method a
28456 little, this wasn't handling all the variants of bottom and right
28457 bars needed to be added and added/removed based on their
28458 counterparts being added/removed (which changes the drawable
28459 size). Also we special case client widths and heights of 0 and
28460 don't add the scrollbar for those.
28462 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
28465 - Added method to get AbsoluteGeometry(); currently unused, but might
28466 be used in the future, if we try again to figure out toplevel
28467 coordinates with some more crappy window managers
28468 - Added FrameExtents() method to retrieve the WM set decoration size
28469 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
28470 to deal with at least KDE, FVWM and metacity (Fixes #77092)
28472 - Added whacky_wm tracking var for metacity
28473 - Added logic to have default menu height if the actual menu height
28474 has not yet been calculated (part of fix for #77426)
28475 * Form.cs: Keep track whether client size has been set and re-set
28476 it if a menu is added/removed afterwards (Fixes #77426)
28478 2006-01-31 Jackson Harper <jackson@ximian.com>
28480 * Control.cs: When a new Site is set on the component attempt to
28481 pull the AmbientProperties from it.
28483 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
28485 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28486 in the background of the owning form. Fixes #77332
28488 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28490 * MimeIcon.cs: Fix for #77409
28492 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28494 * XplatUIX11GTK.cs: Initial import
28496 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
28498 * FixedSizeTextBox: fixes class signature
28500 2006-01-30 Jackson Harper <jackson@ximian.com>
28502 * FixedSizeTextBox.cs: New internal class that represents a
28503 textBox that will not be scaled.
28506 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28509 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28511 * XplatUIX11.cs: Retrieve default screen number instead of
28512 assuming 0. Attempted fix for #77318
28514 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28517 - GetWindowPos: When a window is parented by FosterParent, use
28518 the desktop instead of FosterParent as the base to get coordinates
28519 - CreateWindow: Don't make FosterParent the parent window for Popups
28520 if we don't want a taskbar entry, Popups automatically don't get one
28521 * Hwnd.cs: Need to call remove to actually remove the key from the
28524 2006-01-30 Mike Kestner <mkestner@novell.com>
28526 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28528 2006-01-30 Jackson Harper <jackson@ximian.com>
28531 * TreeNode.cs: Raise events no matter how the treenode is
28532 checked. Patch by Don Edvalson.
28534 2006-01-30 Jackson Harper <jackson@ximian.com>
28536 * TreeNode.cs: Signature fix.
28538 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
28540 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28542 2006-01-20 Mike Kestner <mkestner@novell.com>
28544 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28545 event forwarding when menus are active.
28546 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
28547 Most of the patch is pdb's with a little rework.
28549 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28551 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
28552 Removed GetMenuDC and ReleaseMenuDC methods; replaced
28553 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28554 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28555 * InternalWindowManager.cs: Added use of PaintEventStart/End to
28556 handling of WM_NCPAINT message, now passing the PaintEventArgs to
28557 the PaintWindowDecorations method
28558 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28559 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28560 * MenuAPI.cs: Made tracker window invisible
28562 - Removed GetMenuDC and ReleaseMenuDC methods
28563 - Implemented the client=false path for PaintEventStart and
28566 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28568 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28569 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28572 - MaximizeBox, MinimizeBox: Recreate the handle when setting
28574 - CreateParams: Reworked the styles to match MS look'n'feel,
28575 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28576 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28578 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28580 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
28581 window is not mapped, since otherwise every form that's being
28582 created is considered minimized, which is wrong.
28583 * Form.cs: Catching the exception and returning our internal value
28586 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28588 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28589 SetWindowMinMax() to have means to tell the driver about the minimum,
28590 maximum and maximized state window sizes. (Part of the fix for #76485)
28592 - Implemented tracking of minimum and maximum window size, now calling
28593 new SetWindowMinMax() driver method to tell the driver (Part of the
28595 - Finished handling of WM_GETMINMAXINFO method, now setting all values
28596 (Completes fix for #76485)
28597 - Calling new SetWindowMinMax driver method when the handle for a
28598 form is created, to make sure the driver knows about it even if
28599 the values have been set before the window was created
28600 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28601 to avoid messing up our anchoring calculations (partial fix
28603 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28605 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28606 - Improved GetWindowState() to detect 'Minimized' state on Metacity
28607 (and presumably other freedesktop.org compliant WMs). Left the
28608 assumption unmapped=minimized, needed for SetVisible to work.
28609 - Now setting the window state when creating windows
28610 - Fixed SetVisible to consider/set the window state when mapping
28611 a Form. We cannot set the state before it's mapped, and we cannot
28612 use Form.WindowState once it's mapped (since it would ask the
28613 driver and get 'normal'. Therefore, we grab the state before
28614 mapping, map, and then set state.
28615 - Implmemented SetWindowMinMax method; Metacity does not seem to
28616 honor the ZoomHints, though.
28618 - Removed MINMAXINFO (moved to XplatUIStructs)
28619 - Added SetWindowMinMax stub (on Win32 the only way to set that
28620 information is in response to the WM_GETMINMAXINFO message, which
28621 is handled in Form.cs)
28622 - Added logic to SetVisible to set the proper window state when a
28623 form is made visible (fixes #75720)
28625 2006-01-26 Jackson Harper <jackson@ximian.com>
28627 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28628 same way we handle them with Invoke.
28630 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
28633 - Added tracking of window state so CreateParams can return
28634 the appropriate style
28635 - Moved setting of WS_CAPTION style in CreateParams to allow
28636 styles without caption
28637 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
28638 control if the TextBox property is accessed. Fixes #77345
28640 - get_Created: now uses is_disposed and is_created to determine
28641 return value (suggested by Jackson)
28642 - CreateHandle: No longer exits if the handle is being recreated
28643 - RecreateHandle: If the handle is not yet created call the
28644 appropriate method to create either control or handle. If the
28645 control is already created CreateHandle will simply exit instead
28646 of just creating the handle
28647 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
28648 now SendMessage WM_DESTROY directly to the control when DestroyWindow
28651 - When DestroyWindow is called, instead of waiting for the
28652 DestroyNotification from X11, we directly post it to the WndProc
28653 and immediately dispose the hwnd object.
28654 Same applies to DestroyChildWindows, and this obsoletes the
28655 expose_pending tracking. Contrary to Win32 behaviour we destroy our
28656 child windows before our own, to avoid X11 errors.
28657 - Removed the direct sending of WM_PAINT on UpdateWindow
28659 - Reworked DoEvents and GetMessage to allow access to internal queue
28660 even when trying non-blocking access to the queue. Fixes #77335.
28661 Based on a patch suggestion by Don Edvalson. The new private
28662 GetMessage can now also be used as a backend for a PeekMessage
28664 * XplatUI.cs: Improved debug output for CreateWindow
28666 2006-01-25 Jackson Harper <jackson@ximian.com>
28668 * Help.cs: Allow param to be null. Patch by Don Edvalson.
28670 2006-01-24 Jackson Harper <jackson@ximian.com>
28672 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
28673 when we have a MaxDropItems lower then the selected index.
28675 2006-01-24 Jackson Harper <jackson@ximian.com>
28677 * Control.cs: Don't allow selection of non visible controls, allow
28678 selection of controls without parents.
28680 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28682 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
28683 * DataGridDrawingLogic.cs: Add editing row only when is necessary
28685 2006-01-23 Jackson Harper <jackson@ximian.com>
28687 * UpDownBase.cs: Make the textbox handle all the selection and
28688 tabbing. This fixes tabing to updown controls.
28690 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
28692 * TextBoxBase.cs: fixes exception thown the object was null
28694 2006-01-23 Jackson Harper <jackson@ximian.com>
28696 * ButtonBase.cs: Just use the base CreateParams. They set
28697 visibility and enabled correctly.
28700 * MonthCalendar.cs: Lets let the base set as much of the
28701 createparams as possible so we don't have duplicate code all over
28704 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
28706 * ThemeGtk.cs: Added TrackBar and some experimental code to
28707 get double buffering back
28709 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
28711 * DataGrid.cs: Allows row number set internally higher than the last
28712 when creating a new row. Restores the editing functionality.
28714 2006-01-20 Mike Kestner <mkestner@novell.com>
28716 * MimeIcon.cs: delay Image creation until the icons are accessed
28717 instead of creating 190 scaled images on GnomeHandler startup.
28719 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28721 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
28722 first call base before processing the event. Fixes #77279
28724 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
28726 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
28727 that the stride for the GDI bitmap would match the stride of
28730 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
28732 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
28734 2006-01-19 Jackson Harper <jackson@ximian.com>
28736 * ComboBox.cs: Hookup the text controls keydown event so we get
28737 those when the text control has the focus.
28739 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28741 * Label.cs: Now using the base events instead of defining new ones;
28742 this allows us to just call the base properties without having to
28743 duplicate all base property logic
28745 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28747 * Label.cs: A label by default is not a tabstop (Fixes one of our
28748 failing nunit tests)
28750 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28752 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
28753 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
28755 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
28757 * Cursor.cs: Reimplemented creating cursor bitmaps without using
28758 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
28761 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
28762 constructor creates images that can't be saved. Part of the fix
28764 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
28765 - SetWindowState: Switched ShowWindow flags (part of an upcoming
28766 bug fix for handling window state in forms properly)
28768 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28770 * ThemeGtk.cs: Simplify ScrollBar drawing
28772 2006-01-18 Jackson Harper <jackson@ximian.com>
28774 * Splitter.cs: Set the default dock style for the splitter control
28775 in the constructor.
28777 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28779 * ThemeGtk.cs: Corrected StateType and ShadowType for
28782 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28784 * Control.cs: Make use of Theme.DoubleBufferingSupported
28786 - Added drawing for flat style buttons
28787 - Added ScrollBar drawing
28789 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
28791 * ThemeClearlooks.cs: Removed some unneeded code.
28792 * ThemeGtk.cs: First part of ThemeGtk enhancements.
28794 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28796 * LinkLabel.cs: We need to update the hover drawing when
28797 leaving the control as well.
28799 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
28801 * DataGrid.cs: Clicking on non empty areas in the columns
28802 area was giving an exception
28804 2006-01-17 Jackson Harper <jackson@ximian.com>
28806 * ThemeWin32Classic.cs:
28807 * ListView.cs: Do not draw/clip the headers when the header style
28810 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28812 * DataGrid.cs: Fixes 77260
28814 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
28816 * DataGrid.cs: Clicking on a column on a empty grid was giving
28819 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
28821 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
28822 or any keypress will crash the grid.
28824 2006-01-17 Mike Kestner <mkestner@novell.com>
28826 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
28827 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
28828 invisible/previously-visible items.
28831 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
28833 * ThemeClearlooks.cs:
28834 - Added CL_Draw_Button method; now other theme controls that are
28835 not derived from button or do not have a button can draw buttons
28837 - Updated ComboBox drawing
28838 - Beautified RadioButton drawing
28839 - Corrected drawing of bottom and left tabs
28840 - Beautified DateTimePicker and MonthCalendar
28841 - Added CPDrawButton and CPDrawRadioButton
28843 2006-01-16 Jackson Harper <jackson@ximian.com>
28845 * ComboBox.cs: Set the initial value of the scrollbar to the
28846 current index. Reduce the numbers of refreshs and IndexOfs called.
28848 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
28850 * FileDialog.cs: When the file listview is focused hitting the
28851 backspace key moves the fileview to the parent directory
28853 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28856 - Added RecreateHandle call when changing taskbar visibility to
28857 trigger reparenting in Win32 driver (Fixes #75719)
28858 - If a window has minimize or maximize buttons, it cannot have
28861 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
28862 the toplevel form with FosterParent (A toolwindow not on the
28863 taskbar) (Fixes #75719)
28864 - Made FosterParent a toolwindow
28866 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28868 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
28870 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28872 * ToolTip.cs: If SetToolTip is called from a control and the mouse
28873 is currently over that control, make sure that tooltip_window.Text
28876 2006-01-13 Mike Kestner <mkestner@novell.com>
28878 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
28880 2006-01-13 Jackson Harper <jackson@ximian.com>
28882 * TreeView.cs: On MS GetNodeAt never actually factors in the X
28883 value passed. Also redraw the selected node when we recieve
28884 focus, so tabbing between trees works correctly.
28886 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
28888 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
28889 ~/.gconf/%gconf-tree.xml, so use
28890 .gconf/desktop/gnome/interface/%gconf.xml
28892 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28894 * TextControl.cs: Draw text in gray if control is disabled
28896 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28898 * TreeView.cs: Draw the focus rectangle outside the highlight, to
28899 make sure it's always visible. Fixes #76680.
28901 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
28903 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
28905 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
28907 * PageSetupDialog.cs: Added.
28908 * PrintDialog.cs: Attributes.
28909 * PrintPreviewControl.cs: Updates.
28910 * PrintPreviewDialog.cs: Updates.
28912 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28914 * Control.cs: Undid my selection check fix, since it's not needed
28916 - Now considering the presence of hscroll/vscroll when sizing
28917 vscroll/hscroll respectively. Fixed bug #77077
28918 - Added Left/Up/Down/Right to IsInputKey list to prevent
28919 ContainerControl from stealing them. This fixes what I broke
28920 with my last checkin.
28922 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28924 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
28925 I finally understand how the property can be set without a setter :-)
28927 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28930 - Switched RunLoop to use static Message.Create to create a
28932 - Added PreProcessMessage call in runloop for keyboard events; this
28933 is part of the fix for #77219, I overlooked this originally in the
28934 MSDN doc for PreProcessMessage
28936 - Removed call to PreProcessMessage from handling of keyboard
28937 messages; it's supposed to be done in the message pump
28938 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
28939 per MSDN documentation.
28940 - IsInputChar: All chars are input chars by default; removed the
28941 parent calling chain, MS does not document that
28942 - PreProcessMessage: If IsInputChar is true, we want to return false
28943 to allow dispatching of the message
28944 - When selecting the next control, now also check that we're not
28945 selecting ourselves again and therefore return a false positive.
28947 - Tried to match return values for IsInputKey and ProcessDialogKey
28948 to what MS returns; moved processing of our special keys outside
28949 ProcessDialogKey since MS does not seem to return true on those.
28950 - Moved code that previously was in ProcessDialogKey into new private
28951 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
28952 - Reworked handling of WM_CHAR to not have to duplicate code from
28953 Control.cs anymore, instead we simply call down to base.
28955 2006-01-12 Jackson Harper <jackson@ximian.com>
28957 * ComboBox.cs: We always need to refresh the text area when
28958 EndUpdate is called. Fixes the combobox in the file dialog.
28959 * Control.cs: Don't create the creator_thread until the controls
28960 handle is created. Also in InvokeRequired we check if the
28961 creator_thread is null. This gives the effect of InvokeRequired
28962 returning true if the controls handle is not created yet, and
28965 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
28968 - Added StartLoop() driver method. This is used to allow drivers to
28969 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
28970 loop for a particular thread
28971 - Added EndLoop() driver method. This is called once the message
28972 pump for the thread is shut down
28973 - Added SupportsTransparency method to allow the driver to indicate
28974 opacity support for windows
28976 - Removed TODO attribute, completed AllowTransparency property
28977 - Added documented logic to Opacity
28978 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
28979 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
28980 versions of CompatibleTextRendering
28981 * X11Structs.cs: Added opacity atom to our atom enumeration
28982 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
28983 of a form might be set before it's reparented by the WM, and we need
28984 the opacity value without calling up to Form)
28985 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
28986 SupportsTransparency() driver methods
28987 * Application.cs: Now calling StartLoop and EndLoop driver methods
28989 - Added opacity atom registration
28990 - Added StartLoop()/EndLoop() methods. They're empty right now but
28991 will need to get implemented when we switch to a per-thread queue
28992 - Implemented SupportsTransparency() method
28993 - Implemented SetWindowTransparency() method
28994 - Added support for setting the opacity value when a window is
28995 reparented (since the opacity needs to be set on the WM frame)
28996 * XplatUIOSX.cs, XplatUIWin32.cs:
28997 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
28999 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
29001 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29003 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
29005 * FileDialog.cs: Added ToolTip for MWFFileView
29006 * MimeIcon.cs: Rewrote GnomeHandler.
29007 - Get currently used gnome icon theme from
29008 ($HOME)/.gconf/%gconf-tree.xml
29009 - Make use of inherited icon themes
29010 - Support SVG icon themes like Tango via librsvg
29012 2006-01-12 Miguel de Icaza <miguel@novell.com>
29014 Revert's Jackson's revert which broke 2.0 builds. Fix both
29017 * Application.cs: Move the use_compatible_text_rendering outside
29018 the NET_2_0 define. If we ever need to use the
29019 use_compatible_text_rendering on the individual controls they will
29020 access the variable from the common shared code paths.
29022 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29025 - Added more granular debug options
29026 - Added method to print both window text and id
29027 - Switched debug output to use new Window() debug method
29028 - Added IsEnabled() driver method
29029 - Added EnableWindow() driver method
29031 - Removed end_modal; no longer needed, new loop handles termination
29032 via 'closing' variable
29033 - If form is modal, setting DialogResult will now initiate loop
29034 termination via 'closing' variable
29035 - Added support for is_enabled/WS_DISABLED to CreateParams
29036 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29038 - Removed code that's now in RunLoop from ShowDialog()
29039 - Added various documented sanity checks to ShowDialog()
29040 - Added handling of WM_DESTROY message; we set 'closing' on getting
29041 the message to indicate the message pump to terminate
29042 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29043 send by the Application.ExitThread method. (We send the message
29044 to destroy the window after all other events have been
29045 processed through the queue, instead of destroying the handle
29047 - Moved code from Close() method to WM_CLOSE handler; added logic
29048 to only send close-related events if the form is not displayed
29050 * Splitter.cs (..ctor): Fixed typo in resource name
29052 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29054 - set_Cursor: Now only setting calling into XplatUI if the handle for
29055 the control is already created; this avoids implict handle creation
29056 or crashes if it's not created
29057 - set_Enabled: Now setting the enabled state via the new driver method
29058 instead of just tracking it
29059 - CreateParams: Added logic to set WS_DISABLED based on enabled state
29060 - CreateControl: Reordered event firing and method calls to more
29061 closely fire events in the order MS does. Now setting the
29062 enabled state in the driver when creating the control.
29063 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29065 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29066 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
29067 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29069 - Added tracking of window enabled state (get_Enabled/set_Enabled)
29070 - Added EnabledHwnd property to easily allow a driver to find the
29071 handle of the first enabled window in the parent chain (this is
29072 used by drivers to pass up input events of disabled windows)
29073 * XplatUIDriver.cs: Added IsEnabled() method
29075 - Removed crude and obsolete exiting tracking variable
29076 - Removed internal ModalRun(); replaced by RunLoop()
29077 - Implemented private CloseForms() method to allow closing all
29078 windows owned by a particular (or all) threads
29079 - Exit() now properly closes all windows without forcing the message
29081 - Removed obsolete InternalExit() method
29082 - Changed Run() methods to use new RunLoop() message pump
29083 - Implemented new RunLoop() method for both modal and non-modal forms
29085 - get_CreateParams: Added setting of WS_DISABLED
29086 - Simplified ShowDialog(); now all the work is done in RunLoop(),
29087 invoked via Form.ShowDialog()
29088 * NativeWindow.cs: We don't remove the window from the collection when
29089 the handle is destroyed; there might still be messages for it in the
29090 queue (mainly the resulting WM_DESTROY); instead it will be removed
29091 when Control calls InvalidateHandle in the WM_DESTROY handler
29093 - CreateWindow: Added logic to handle the WS_DISABLED window style
29094 - EnableWindow: Implemented based on Hwnd.Enabled
29095 - GetMessage: Reset PostQuitState so the method can be called again
29096 - Implemented support for disabled windows (passing messages to the
29097 first enabled parent) in handling all input messages
29098 - Added optimizations for handling Expose events
29099 - Implemeted new driver method IsEnabled()
29100 - Now always resetting paint pending tracking vars when we start paint
29101 - Re-implemented UpdateWindow via just sending a WM_PAINT message
29102 * XplatUIOSX.cs: Added IsEnabled method stub
29103 * XplatUIWin32.cs: Implemented new IsEnabled() method
29105 2006-01-11 Jackson Harper <jackson@ximian.com>
29107 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29108 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29109 variables a little.
29110 * ColorDialog.cs: Clear out the old form before adding the new
29113 2006-01-11 Jackson Harper <jackson@ximian.com>
29115 * X11Dnd.cs: Make sure to add all the text formats when adding
29116 strings to the data object.
29117 * TreeNodeCollection.cs: When adding to a sorted tree we need to
29118 do some redrawing too. Also change the UpdateNode to an
29119 UpdateBelow so the newly added node gets painted.
29121 2006-01-11 Miguel de Icaza <miguel@novell.com>
29123 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29124 LinkLabel.cs, PropertyGrid.cs: Implement the
29125 UseCompatibleTextRendering property for 2.x
29127 * Application.cs (SetCompatibleTextRenderingDefault): Add.
29129 2006-01-11 Jackson Harper <jackson@ximian.com>
29131 * TreeView.cs: Use the property for setting the selected node so
29132 the correct events get raised.
29133 * TreeNode.cs: Update the tree when the fore/back colours of a
29136 2006-01-10 Jackson Harper <jackson@ximian.com>
29138 * TreeView.cs: Allow setting SelectedNode to null.
29140 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29142 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29144 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29146 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29148 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29150 * PrintDialog.cs: Added attributes and set default property values.
29152 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29154 * PrintControllerWithStatusDialog.cs:
29155 Added PrintControllerWithStatusDialog.
29157 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29159 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29160 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29162 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29164 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29166 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29168 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29169 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29171 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29173 * MimeIcon.cs: Added internal class SVGUtil.
29175 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29177 * FileDialog.cs: Don't crash if there are two files with the
29178 same name but different locations.
29180 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
29182 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29183 dates across multiple month grids. Used to not highlight entire
29184 month, but does now.
29186 2006-01-06 Jackson Harper <jackson@ximian.com>
29188 * MonthCalendar.cs: Removed DoEvents call to prevent a running
29189 message loop. Change timer intervals to numbers that seem more
29192 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
29194 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29195 object for location info since screen object is now implemented.
29197 2006-01-05 Jackson Harper <jackson@ximian.com>
29199 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29200 * AsyncMethodResult.cs: We no longer use a WeakReference for the
29201 AsyncMethodResult, this is because we ALWAYS want the
29202 ManualResetEvent to get set.
29203 * Control.cs: When disposing use an async invoke to call shutdown
29204 code, so that thigns don't block on the finalizer thread. Also
29205 check if we even have a message loop before trying to send
29206 messages, if we don't then don't bother sending messages.
29207 - No more weak references for async methods
29208 * XplatUIDriver.cs: No more weak references for async methods.
29210 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29212 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29213 returns two FontFamily with the same name
29215 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29217 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
29218 drawing disabled text. Instead using the ColorGrayText color
29220 2006-01-04 Jackson Harper <jackson@ximian.com>
29222 * TreeNode.cs: redraw the node when its image index is changed.
29224 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29226 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29227 time I checked there are no others like it.
29229 2006-01-04 Jackson Harper <jackson@ximian.com>
29231 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29232 this gives the behavoir I was looking for.
29233 * Control.cs: Special case Invoking EventHandlers, this matches MS
29234 and fixes part of bug #76326.
29236 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29238 * ThemeClearlooks.cs, FileDialog.cs:
29239 - Reflect the latest Theme class changes
29240 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
29243 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29245 * Theme.cs: Cache UI resource images and resize them if needed
29247 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29249 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29250 is called. This fixes the crash in Nexxia when setting the font
29251 attributes in the chat. [However, RTF needs a look-over to make sure
29252 that all SelectionXXX methods handle the special case that selection
29253 is empty and therefore the change must be applied to all text starting
29254 at the cursor/selection start]
29256 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29258 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29259 XplatUIOSX.cs: Added SendMessage and PostMessage methods
29260 * X11Keyboard.cs: Switched to new way of calling PostMessage
29262 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29264 * Theme.cs: Added theme interface for images to allow the theme to
29265 control what images are used for things like FileDialog, MessageBox
29267 * MessageBox.cs: Now uses the new Theme icon/image interfaces
29269 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
29272 - Removed some dead code
29273 - Opening a recently used file does work now
29274 - Small UI enhancements
29277 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29279 * FileDialog.cs: Forgot too add __MonoCS__
29281 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29283 * FileDialog.cs: We are able to read recently used files now let's
29284 go on and write them.
29286 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
29288 * FileDialog.cs: Breathe some life into "last open"/"recently used"
29290 * MimeIcon.cs: Do a check for the top level media type also
29292 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29294 * ThemeClearlooks.cs:
29295 - Added CPDrawStringDisabled
29296 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29297 some chars if the text doesn't fit into text_rect
29298 - DrawListViewItem: If View = View.LargeIcon center the image;
29299 rewrote the drawing of ListViewItem.Text if View =
29302 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29304 * MimeIcon.cs: Use default KDE icon theme if there is no
29305 "48x48" directory for the current icon theme, fixes #77114
29306 * Mime.cs: Disable not working and actually not used code.
29307 * ThemeWin32Classic.cs:
29308 - Replace "new SolidBrush" in GetControlBackBrush and
29309 GetControlForeBrush with ResPool.GetSolidBrush
29310 - Changed DrawListViewItem from private to protected virtual
29312 - Added form.MaximizeBox = true
29313 - Don't throw an exception if there is a broken symbolic link
29315 2005-12-23 Jackson Harper <jackson@ximian.com>
29317 * TabControl.cs: Give the panels focus, keyboard navigation is
29318 fixed so this works correctly now.
29319 - We need these key events also.
29320 * ToolBar.cs: Remove some of the poor mans double buffering.
29322 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
29324 * ComboBox.cs: The internal TextBox now returns the focus.
29326 2005-12-23 Jackson Harper <jackson@ximian.com>
29328 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
29330 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29332 * Control.cs: Removed debug code
29333 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29336 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29338 * Control.cs: When creating the control, update the Z-order after
29339 all it's children are created, too. (Fixes nexxia not showing
29342 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29344 * Control.cs: Do not update the anchoring distances if layout is
29345 suspended, instead do it once layout is resumed
29347 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29350 - After many hours of debugging, for both Jackson and
29351 myself, it turns out that it helps to set the parent of a control
29352 if you want to actually see it onscreen. In the spirit of that
29353 discovery, we're now setting the parent of the control and
29354 it's children when the control's handle is created. This fix
29355 will make Lutz Roeder's Reflector run happily.
29356 - now just creating the handle instead of the whole control when
29357 getting a graphics context for the control.
29359 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29361 * ScrollableControl.cs: When calculating the canvas, don't consider
29362 the scrollbar widths. Instead, predict if horizontal scrollbar
29363 will affect canvas when deciding on vertical display and vice versa.
29365 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29367 * RichTextBox.cs: Set default RTF font for documents that don't
29368 have a font table (Fixes #77076)
29370 2005-12-22 Jackson Harper <jackson@ximian.com>
29372 * TextBoxBase.cs: It's difficult to do, but you can have an empty
29373 clipboard. This prevents a NullRef in that case.
29374 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29375 clipboard. PRIMARY is for the currently selected text only. (We
29376 should implement PRIMARY at some point.
29378 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29380 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29381 a Unicode function with a structure that was defined in Ansi way.
29384 2005-12-21 Jackson Harper <jackson@ximian.com>
29386 * StatusBar.cs: Statusbar handles its fore/back colours on it's
29387 on. Because thats how it rolls. (and this avoids it using ambient
29389 * ThemeWin32Classic.cs: Use the proper back color for filling.
29390 * Menu.cs: Use the system menu bar color for drawing menu
29391 bars. Using the window back color will bring ambient colours into
29394 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
29396 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29397 Bitmaps were created and not disposed.
29399 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29401 * Control.cs (CreateControl): Don't do anything if the control is
29402 already created, otherwise we'd fire the OnCreated event more than
29405 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29407 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29408 will always match. Instead return -1. Fixes #76464.
29410 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29412 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29413 neither the beginning nor the end of the line (Fixes bug #76479)
29415 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29418 - ControlNativeWindow.ControlFromHandle(): Now handling situation
29419 where handle is invalid
29420 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29421 instead of slower linear search
29422 * NativeWindow.cs: Don't remove the window from the hashtable until
29423 after the driver has destroyed it (since the driver might use
29424 Control.FromHandle to lookup the control object
29425 * Hwnd.cs: Added DestroyPending property to track if a window is
29426 already destroyed as far as the driver is concerned and only hasn't
29427 yet notified the control
29429 - Activate(): Check if the window is still valid before using the
29431 - Implemented DestroyChildWindow() method to mark child windows as
29432 destroyed when a window is destroyed. This prevents situations
29433 where we might call an X method based on queued events for a
29434 window that already has been destroyed but we haven't yet pulled
29435 the destroy method from the queue.
29436 - Added a call to the new DestroyChildWindow() method to the drivers
29437 DestroyWindow code. Also now marking the destroyed window itself
29440 2005-12-20 Jackson Harper <jackson@ximian.com>
29443 * StatusBarPanel.cs: Don't calculate panel sizes on draw
29444 anymore. Just do them when needed, also track the rects of panels
29445 so that we can optimize refreshing more in the future.
29447 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
29449 * ColorDialog.cs: Fixed focus drawing in small color controls
29451 2005-12-19 Jackson Harper <jackson@ximian.com>
29453 * InternalWindowManager.cs:
29454 * MdiWindowManager.cs: Cleanup some coordinate system changes so
29455 moving windows works properly.
29457 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
29460 - Removed call to InitLayout() from SetBoundsCore(); doc says
29461 it's only called when a control is added to a container
29462 - Split InitLayout logic, moved to separate UpdateDistances() method
29463 since we need to perform those calculations more often than just
29464 when adding the control to a container. (Needed to fix #77022)
29465 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29466 - Reduced the OnBindingContextChanged events count, don't send them
29467 unless the control is created, we still aren't totally matching
29468 MS, but I can't quite figure out some of their rules
29470 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29472 * ThemeClearlooks.cs: Corrected distance between ProgressBar
29475 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29477 * ThemeClearlooks.cs:
29478 - Updated ProgressBar drawing
29479 - Corrected drawing of ScrollBars and scroll buttons
29480 - Some temporary fixes for minor pixel artefacts
29482 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
29485 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29486 cause events to be sent in the same order as MS does.
29487 - Added ChangeParent() method to trigger various OnXXXChanged events
29488 that need to be fired when a parent changes (This is a reworking
29489 of the patch from r54254, with the X11 errors fixed)
29490 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29491 since on MS we get OnLayoutChanged events when calling Clear()
29492 - Changed Enabled property to consider parent state as well, if a
29493 parent is not enabled, the control will not be either
29494 - Changed Parent property to simply call Controls.Add() since that
29495 now does all the work required, this way we avoid code duplication
29496 - Threw in a few OnBindingsContextChanged calls to try and match
29497 when MS sends them. We seem to send a few too many, though.
29498 - Added call to CreateControl when adding the control to a parent.
29499 We were never calling CreateControl. Still needs some work, in
29500 some places we treat HandleCreated and ControlCreated as equal,
29502 - Removed obsolete commented out code from UpdateZOrder()
29504 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29506 * ThemeClearlooks.cs: Updated TrackBar drawing.
29508 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29510 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29512 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29514 * FileDialog.cs: Add the Help button and the open readonly
29515 checkbox only if needed
29517 2005-12-16 Jackson Harper <jackson@ximian.com>
29519 * Control.cs: Make sure we have an active menu before trying to
29520 process commands on it. Prevents menu-less forms from crashing
29521 when Alt is pressed.
29522 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29524 * RichTextBox.cs: Expand statement to help out gmcs and fix the
29527 2005-12-16 Jackson Harper <jackson@ximian.com>
29529 * InternalWindowManager.cs: Don't translate tool windows screen
29530 coordinates. This fixes windows 'bouncing' around when being moved.
29532 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29535 - MaxLength now treats 2^31-1 equal to unlimited length (this is
29536 not quite MS compatible, MS uses that number only for single line
29537 and 2^32-1 for multi-line, but I figure it won't hurt keeping
29539 - Now enforcing the MaxLength limit when entering characters
29540 - Added argument to internal Paste() method to track if it's called
29541 from programatically or via keyboard, since keyboard driven pastes
29542 need to enforce max-length
29543 - Added logic to Paste to only paste as many chars as MaxLength
29545 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29547 - Added Length property to return number of characters in document
29548 - Added private CharCount property which only tracks actual chars
29549 in the document (no linefeeds) and fires event when CharCount
29551 - Added tracking of character count to all methods that alter it
29552 - Added LengthChanged event to allow applications to subscribe
29553 to any changes to the document
29555 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29558 - Removed local password_char field (moved to TextBoxBase)
29559 - Now setting the document's password var when password is
29562 - Added password_char field (needed here so MultiLine can
29564 - Added logic to MultiLine property setter to set the document's
29565 variable when password display is allowed
29566 - Removed debug code and made some debug code conditional
29568 - Added RecalculatePasswordLine() method to handle special password
29570 - Added PasswordChar property, also added related tracking vars
29571 - Draw() method now uses local text var for grabbing text to draw,
29572 this var is set to line.text unless we're doing password display,
29573 then it is set to the pre-generated all-password-chars line
29574 - Added calling RecalculatePasswordLine() method for password lines
29576 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29579 - Added Reparented property to allow tracking of Window Manager
29580 reparenting actions (which affect X/Y calculations of toplevel
29582 - Made ToString() print window handles in hex
29584 - AddConfigureNotify(): Now uses reparented state off Hwnd to
29585 determine if X/Y needs offsetting
29586 - AddConfigureNotify(): Fixed offset calculations
29587 - Now adds ReparentNotify messages into the queue
29588 - Now processes ReparentNotify messages and causes a
29589 WM_WINDOWPOSCHANGED message to be sent upstream if a window
29590 is reparented (as most likely it's X/Y coordinates are changed
29593 2005-12-14 Jackson Harper <jackson@ximian.com>
29595 * XplatUIX11.cs: Tool windows still need to respek focus.
29597 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29599 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29600 have a working release
29602 2005-12-13 Jackson Harper <jackson@ximian.com>
29604 * Form.cs: Update styles after setting the border style regardless
29605 of whether or not the window is using a window manager.
29607 2005-12-13 Jackson Harper <jackson@ximian.com>
29609 * Form.cs: We now hook into an internal window manager instead of just an
29610 MDI subsystem, this is so we can have properly behaving tool windows.
29611 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29612 * InternalWindowManager.cs: New internal class that acts as a
29613 window manager for tool windows and as a base for mdi windows.
29614 * MdiWindowManager.cs: New class that acts as a window manager for
29617 2005-12-12 Jackson Harper <jackson@ximian.com>
29619 * Control.cs: Updates so we match behavoir for for implicit
29620 controls. Fixes explosions in MDI.
29622 2005-12-12 Jackson Harper <jackson@ximian.com>
29624 * Control.cs: Implement Invalidate (Region).
29626 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
29629 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
29630 the same events as MS does. MS fires events for each property
29631 except, for unknown reasons, Cursor, when the control is reparented.
29632 I can't seem to totally match add/remove since MS also fires some
29633 VisibleChanged events, which makes no sense. Consolidated the
29634 parenting code into a separate method so it can be called from
29635 both Add and Remove. set_Parent no longer needs any special logic
29636 as it calls the parent's add method which implicitly fires
29638 - Removed some obsolete code and debug output
29639 - Enabled state is inherited from parents, if this is enabled
29641 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29643 * Form.cs: Removed commented out code
29645 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29648 - Added internal version of Invoke, with additional argument
29649 indicating if we're calling it from a Dispose() handler. That
29650 way we can avoid BeginInvoke throwing an exception if we're
29651 calling for an already destroyed window.
29652 - Added a dispose argument to BeginInvokeInternal, and made the
29653 check if a valid window handle chain exists conditional on
29654 it not being a dispose call
29655 - Removed code in DestroyHandle to destroy our children. Since we
29656 now handle the WM_DESTROY message we will catch all our children
29658 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
29660 - Added a field to track the application context of the form.
29661 - No need to set closing variable as response to WM_CLOSE, instead
29662 we destroy the window. We also call PostQuitMessage if the form
29663 has an application context (which makes it the main app form,
29664 which, when closed terminates the app)
29666 - Dropped Exit() method, it's naming was confusing
29667 - Added PostQuitMessage() which causes GetMessage to return false
29668 once the message queue is empty
29669 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
29671 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
29672 no longer a valid XplatUI method, but left it in since it's used
29673 internally. Added empty PostQuitMessage() method.
29674 * MenuAPI.cs: Replaced call to Exit() with call to
29675 PostQuitMessage, even though this is probably no longer needed.
29676 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
29677 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
29679 - Replaced call to XplatUI.Exit() with PostQuitMessage()
29680 - Removed old debug code that would call XplatUI for exception
29681 display, enabled standard exception handling (Still not enabled
29682 though, until NativeWindow's ExternalExceptionHandler define
29685 - Added internal method to allow control to update NativeWindow
29686 after a window has been destroyed
29687 - Added handling of already destroyed windows when calling i
29689 - Added removal of handle from list on ReleaseHandle
29691 - Dropped GetMessageResult var and related code
29692 - Added PostQuitState to field to track if PostQuitMessage has been
29694 - Dropped Exit() method
29695 - Added PostQuitMessage() method
29696 - GetMessage now will return false if PostQuitState is set and no
29697 more messages are in the queue.
29698 - Expose handler will no longer generate WM_PAINT messages if we are
29699 in PostQuitState since it's very likely any windows have already
29700 been destroyed, and since Hwnd won't get updated until we have
29701 processed the DestroyNotify we'd be causing X errors.
29703 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29705 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
29706 Thanks to Mike for pointing out the err of my ways.
29708 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29710 * Control.cs(PreProcessMessage): Moved menu handling back, but
29711 after all other key handling, to match MS (who handles Menu in
29713 * Menu.cs (WndProc): Removed my brainfart
29715 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29717 * Control.cs(PreProcessMessage): Removed special menu handling
29718 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
29720 2005-12-07 Mike Kestner <mkestner@novell.com>
29722 * Control.cs : special case SYSKEYUP so that we can adjust keynav
29723 state according in tracker.
29724 * Menu.cs : promote tracker field to base class and provide a tracker
29725 lookup capability. Add/Remove shortcuts dynamically if the top menu
29726 has a tracker. Unparent items that are removed from the collection.
29727 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
29728 * Theme*.cs: add always_show_hotkeys field to support configurability
29729 of mnemonic display. win32 doesn't show mnemonics until Alt is
29732 2005-12-07 Jackson Harper <jackson@ximian.com>
29734 * MdiChildContext.cs: Use Control.ResetCursor.
29735 * Control.cs: ResetCursor needs to set the property so that the
29736 correct XplatUI call gets made.
29738 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29740 * Control.cs: More fixes to make our key events match MS. We
29741 were not setting the modifier state on KeyData, and we were
29742 not generating any events when Alt was pressed with a key
29743 since handling of WM_SYSxxx was missing for the OnKey methods.
29745 2005-12-07 Jackson Harper <jackson@ximian.com>
29747 * MdiChildContext.cs: reenable the sizing code.
29748 - When the mouse leaves a window reset its cursor.
29750 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29752 * ThemeClearlooks.cs: Reflect latest Hwnd changes
29754 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
29756 * Hwnd.cs: Now using the theme 3d bordersize to calculate
29757 widths of Fixed3D borders
29759 2005-12-07 Jackson Harper <jackson@ximian.com>
29761 * MdiClient.cs: Fix warnings. Earn Mike's love.
29763 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
29765 * ThemeClearlooks.cs:
29766 - Adjusted mouse over button color
29767 - Added first parts of CheckBox drawing
29768 - Added correct color for selected text background
29769 - Fixed ComboBox drawing
29770 - Added CPDrawBorder3D and CPDrawBorder
29772 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29774 * XplatUIX11.cs: Added call to XBell for AudibleAlert
29776 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29778 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29779 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
29780 alert users via sound. We could add an enum arg with different
29781 types of alerts in the future
29783 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
29785 * Control.cs: Fix behaviour problems pointed out by Mike
29787 2005-12-05 Mike Kestner <mkestner@novell.com>
29789 * StatusBarPanel.cs: add Invalidate method and hook it into all the
29790 prop setters. Calls parent.Refresh for now, but could be maybe be
29791 optimized with an internal method on StatusBar at some point.
29794 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
29796 * RichTextBox.cs: Implemented get_SelectionColor
29798 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
29800 * ThemeClearlooks.cs:
29801 - Removed dead code
29802 - Draw black button border only if button is Form.AcceptButton
29803 - Draw correct button color for pressed RadioButton if the mouse
29804 has entered the button
29805 - Updated ProgressBar drawing!
29806 - Updated CPDrawSizeGrip drawing
29807 - Updated StatusBarPanel drawing
29809 2005-12-05 Mike Kestner <mkestner@novell.com>
29811 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
29812 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
29814 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
29816 * ThemeClearlooks.cs: Initial check-in, activate with
29817 export MONO_THEME=clearlooks
29818 * ThemeEngine.cs: Added ThemeClearlooks
29820 2005-12-03 Mike Kestner <mkestner@novell.com>
29822 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
29825 2005-12-02 Jackson Harper <jackson@ximian.com>
29827 * Form.cs: If the child form has no menu the default main menu is
29828 used as the active menu.
29830 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29832 * ListBox.cs: Check if any items exist before trying to resolve
29833 coordinates into items
29835 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29837 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
29838 as the second color for the background hatch
29840 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
29842 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
29843 * RichTextBox.cs: FormatText position arguments are 1-based, now making
29844 sure that what we pass to FormatText is always 1-based. Fixes #76885
29846 2005-11-29 Miguel de Icaza <miguel@novell.com>
29848 * NumericUpDown.cs (EndInit): When we are done initializing,
29849 reflect any updates on the UI.
29851 2005-12-02 Jackson Harper <jackson@ximian.com>
29853 * ImplicitHScrollBar.cs:
29854 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
29855 their container controls.
29856 * TreeView.cs: Use the new implicit scrollbars.
29858 2005-12-02 Jackson Harper <jackson@ximian.com>
29860 * TreeView.cs: Make top_node internal so the TreeNodeCollections
29862 * TreeNodeCollection.cs: If we remove the topnode we need to
29863 update topnode to the next node in line.
29864 - When clearing nodes go through the same process as removing
29865 them, so they get depareneted and checked if they are top node.
29867 2005-12-01 Jackson Harper <jackson@ximian.com>
29869 * TreeView.cs: When imagelists are used the image area is
29870 selectable as well as the text.
29871 - If there are no selected nodes select the first one.
29872 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
29873 so don't do it more then we need to.
29875 2005-12-01 Jackson Harper <jackson@ximian.com>
29877 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
29878 that arrows can be scaled.
29880 2005-12-01 Jackson Harper <jackson@ximian.com>
29882 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
29883 fail. Patch by Dieter Bremes
29885 2005-11-30 Jackson Harper <jackson@ximian.com>
29887 * Form.cs: Property is 2.0 only
29888 * PrintDialog.cs: Signature fix.
29890 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29893 - No longer artificially moves text 2 pixels down (now that we have
29894 borders this is no longer needed)
29895 - Added calcs for left, hanging and right indent
29897 2005-11-23 Mike Kestner <mkestner@novell.com>
29899 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
29901 2005-11-30 Jackson Harper <jackson@ximian.com>
29903 * MdiChildContext.cs: Set the cloned menus forms, as these don't
29904 get cloned as part of CloneMenu ().
29905 * Menu.cs: Make sure the parent of the items get set correctly
29906 when they are added. And the owners are notified of the changes.
29907 * Form.cs: Create an ActiveMenu property, so that when MDI is used
29908 we can change the menu being displayed/handled by the form without
29909 changing the menu assosciated with the form.
29910 - Don't let Mdi children draw/handle menus.
29912 2005-11-30 Jackson Harper <jackson@ximian.com>
29914 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
29915 a MenuChanged event. Just to make the API a little more
29918 * MenuItem.cs: Use the new OnMenuChanged
29919 * MdiChildContext.cs: Handle menu merging.
29920 * Form.cs: Implement MergedMenu.
29922 2005-11-30 Jackson Harper <jackson@ximian.com>
29924 * Menu.cs: We were misusing Add. Add goes behind the specified
29925 index according to the docs, and does not replace the specified
29926 index. So I added an Insert method.
29928 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
29930 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
29931 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
29933 * RichTextBox.cs: Added calls to base for DnD events
29935 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
29938 - Fixed drag-selection related crash; style fixes
29939 - Implemented undo class
29940 o Implemented method to capture document state for specified
29941 range in document tree
29942 o Implemented method to restore captured document state
29943 o Implemented cursor tracking
29944 o Implemented basic undo stack
29945 - Added undo cursor tracking to methods altering cursor location
29946 - Added undo tracking to selection deletion (still missing
29947 other text-altering hookups)
29949 - Added SelectionLength property
29950 - Implemented CanPaste()
29951 - Implemented Paste()
29952 - Added missing protected methods
29953 - Fixed RTF->Document conversion; now uses font index 0 and color
29954 index 0 as the default font for the parsed text
29955 - Fixed RTF<->Document font size translation
29956 - Fixed RTF generation, now properly handles cross-tag boundaries
29957 for single line selection
29958 - No longer always appends blank line to generated RTF
29960 - Added missing attributes
29961 - Hooked up undo-related methods
29963 - Implemented Copy()
29964 - Implemented Paste()
29965 - Implemented Cut()
29966 - Fixed caret mis-behaviour on backspace across line-boundaries
29968 2005-11-29 Jackson Harper <jackson@ximian.com>
29970 * MdiClient.cs: Add a method for activating mdi children. Very
29971 basic right now. I imagine someday it might need more girth.
29972 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
29973 children windows names are added to the menu item.
29974 * ThemeWin32Classic.cs: Draw the arrow if the item is an
29975 mdilist. This happens regardless of whether or not there are any
29976 mdi windows to see in the list, and according to my tests happens
29977 before the items are even added. Also happens if there isn't even
29978 an mdi client to get windows from.
29980 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
29982 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
29983 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
29985 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
29987 * DataGridTableStyle.cs:
29988 - Create always the styles for the missing columns even if they are
29989 provided by the user (not default table style)
29992 - Fixes SetDataBinding (always re-attach source)
29993 - Fixes SetNewDataSource (only clear styles if they are not for
29995 - Expands OnTableStylesCollectionChanged to handle style refresh
29996 and remove properly
29998 2005-11-29 Jackson Harper <jackson@ximian.com>
30000 * FileDialog.cs: Implement missing bits, remove some dead
30002 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30003 creation of the panel so that the options set on the dialog are
30004 seen when the panel is created.
30005 * TreeView.cs: raise a click when items are clicked.
30007 2005-11-29 Jackson Harper <jackson@ximian.com>
30009 * MdiClient.cs: Pass some signature methods through to base.
30011 2005-11-28 Jackson Harper <jackson@ximian.com>
30013 * ListView.cs: Raise the click event when items are clicked.
30015 2005-11-28 Jackson Harper <jackson@ximian.com>
30017 * MdiClient.cs: Make this algorithm even more beautiful. And fix
30020 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
30022 * ThemeNice.cs: - Removed 1 pixel bitmaps
30023 - Use SmoothingMode.AntiAlias where it makes sense
30024 (ScrollButton arrow for example)
30025 - Enhanced Button focus drawing
30026 - Fixed ComboBox drawing (no artefacts anymore, focus
30027 rectangle is back again, reduced size of ComboButton, etc.)
30028 - Fixed RadioButton focus drawing for Appearence.Button
30029 - Slight ScrollButton redesign
30030 - Some LinearGradientBrush size fixes
30031 - GroupBoxes have now rounded edges
30032 - Fixed StatusBar drawing
30034 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
30036 * ThemeNice.cs: - Remove dead code
30037 - use correct background colors for menus, etc.
30038 - Fake pixel drawing with 1 pixel bitmaps
30040 2005-11-24 Jackson Harper <jackson@ximian.com>
30042 * MdiClient.cs: Size the scrollbars when resizing the window.
30043 - Resize the maximized windows when the client is resized
30044 * Form.cs: Make the child context available
30046 2005-11-23 Jackson Harper <jackson@ximian.com>
30048 * MdiChildContext.cs: Don't size windows if they are maximized.
30050 2005-11-23 Mike Kestner <mkestner@novell.com>
30052 * ContextMenu.cs: use MenuTracker.
30053 * Control.cs: remove menu handle usage.
30054 * Form.cs: remove menu handle usage.
30055 * Hwnd.cs: remove menu handle usage.
30056 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30057 motion and clicks to the new Tracker handlers.
30058 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30060 * MenuAPI.cs: refactored to combine popup and menubar event handling.
30061 Killed the MENU and MENUITEM data types and associated collections
30062 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30063 MenuTracker class that exposes the leftovers from the old MenuAPI
30064 static methods. Restructured Capture handling so that only one grab is
30065 done for the entire menu hierarchy instead of handing off grabs to
30066 submenus. Tracker now has an invisible control to Capture when active.
30067 * MenuItem.cs: add sizing accessors, kill Create
30069 * Theme.cs: remove menu handle and MENU(ITEM) usage.
30070 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30071 MENU(ITEM). remove menu handle usage, use Menu directly.
30072 * XplatUIDriver.cs: remove menu handle usage.
30073 * XplatUIOSX.cs: remove menu handle usage.
30074 * XplatUIWin32.cs: remove menu handle usage.
30075 * XplatUIX11.cs: remove menu handle usage.
30077 2005-11-22 Jackson Harper <jackson@ximian.com>
30079 * Hwnd.cs: Don't compute the menu size for
30080 DefaultClientRectangle.
30081 - Reenable menu sizes being computed for GetClienRectangle.
30082 * Form.cs: Remove comment of trechery
30084 2005-11-22 Jackson Harper <jackson@ximian.com>
30086 * Hwnd.cs: The adjustments for the menu bar are made when it is
30087 attached to the form.
30089 2005-11-19 Jackson Harper <jackson@ximian.com>
30091 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30092 (just like on windows).
30094 2005-11-19 Jackson Harper <jackson@ximian.com>
30096 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30097 use real buttons anymore because they are in non client area. The
30098 one TODO here is that I need to somehow invalidate a section of
30099 the non client area.
30101 2005-11-18 Jackson Harper <jackson@ximian.com>
30103 * Control.cs: Put the enum check back in now that MDI doesnt have
30104 to use this to set border styles.
30105 * Form.cs: Only set mdi child windows borders if the handle has
30107 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30108 this directly on to the driver.
30109 - Get the move start position before adjusting for the titlebar
30110 height, this fixes the windows "skipping" when they are first
30113 2005-11-18 Jackson Harper <jackson@ximian.com>
30115 * XplatUIX11.cs: Just compute the mdi borders separately as they
30116 don't totally match up with normal form borders.
30118 2005-11-18 Jackson Harper <jackson@ximian.com>
30120 * Control.cs: Set WS_ styles for borders, so that the driver does
30121 not have to retrieve the control instance to figure out what kind
30122 of borders it should have.
30123 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30124 driver can know its an mdi child easily.
30125 * XplatUIX11.cs: Get the border styles and whether the window is
30126 MDI from the Styles and ExStyles params instead of having to get a
30127 control. This prevents a chicken and egg problem.
30129 2005-11-18 Jackson Harper <jackson@ximian.com>
30131 * MdiClient.cs: Fix typo so scrollbars show up correctly.
30133 2005-11-18 Jackson Harper <jackson@ximian.com>
30135 * MdiClient.cs: Calculate when to add and remove scrollbars
30137 * MdiChildContext.cs: Adjust the y position to take the titlebar
30139 - No height for FormBorderStyle.None
30141 2005-11-18 Jackson Harper <jackson@ximian.com>
30143 * Control.cs: Allow non enum values to be used for
30144 InternalBorderStyle. MDI does this to set a special border style.
30145 - New utility methods for converting points to/from client coords
30146 - Add the newly created control to the Controls collection before
30147 updating its style. This way UpdateStyle can walk the control
30148 heirarchy to find the control if needed.
30149 so I don't need to create a new Point object all the time.
30150 * Form.cs: Let MDI windows handle their border styles.
30151 - Set styles on MDI windows so the correct title style is derived.
30152 * MdiChildContext.cs: Move all the painting and window handling
30153 into the non client area.
30154 - Use correct sizing and put correct buttons on frames based on
30155 the FormBorderStyle.
30156 - Notify the mdi client about scrolling
30157 - Need to handle the buttons ourselves now, because they are all
30158 in non client areas and we can't add controls there.
30159 * MdiClient.cs: Halfway to scrolling, this implementation is
30160 somewhat broken though, we need to check to make sure other
30161 windows aren't causing scrolling before removing the bars. Also
30162 the bars need to be drawn on top, maybe I can switch implicit
30163 controls to be on top.
30164 * Hwnd.cs: caption_height and tool_caption_height are now
30165 properties of an hwnd, this way they can be set by the driver
30166 based on the type of window they are. In X11 the window manager
30167 handles the decorations so caption_height is zero unless its an
30169 - Add 3 pixel borders for MDI windows (0xFFFF).
30170 - Get rid of some code duplication, have DefaultClientRectanle
30171 just call GetClientRectangle.
30172 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30174 - Set border styles differently for mdi windows.
30175 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30178 2005-11-15 Mike Kestner <mkestner@novell.com>
30180 * Menu.cs: when adding an item to the collection, if item is already
30181 parented, remove it from the parent.
30183 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
30185 * X11DesktopColors.cs: Added KDE support
30187 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
30190 - Clipboard methods now can translate Rtf format
30191 - No longer removes clipboard contents whenever a new format is added
30192 to allow placing multiple formats on the clipboard
30193 * Clipboard.cs: Clipboard now supports getting a IDataObject and
30194 will place all formats contained in it onto the clipboard. Also
30195 now cleans the clipboard before placing a new object onto it
30197 - Implemented set_Rtf
30198 - Implemented set_SelectedRtf
30199 - Created InsertRTFFromStream() method to allow single code base
30200 for all properties and methods that insert RTF into document
30201 - Removed debug output
30203 - Fixed Delete(int) to fix up line numbers
30204 - Fixed ReplaceSelection to combine start and end line
30205 - Fixed serious DeleteChars bug that would leave the document tree
30207 - Improved DumpTree with several logic checks to detect broken
30209 - Removed debug lines
30210 - Fixed Caret.WordForward/WordBack moving code, now always also
30211 updates caret.tag (fixes crash when word-selecting across tag
30212 boundaries via keyboard)
30213 - Added Insert() method for inserting multiline text into documents
30214 - Fixed DeleteChars() calculation errors that would cause a broken
30215 tag chain with multiple tag lines
30216 - DeleteChars() no longer crashes on multi-tag lines if not all tags
30217 - Split() no longer moves caret if split is at caret location
30218 - ReplaceSelection() now updates the cursor and re-displays it
30219 - ReplaceSelection() now uses new Insert() method to avoid code
30221 - FormatText() can now handle formatting partial lines
30223 - Append now uses new TextControl.Insert() method (this avoids
30225 - Implemented Ctrl-X (Cut) (
30226 - Implemented Ctrl-C (Copy)
30227 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
30228 regeneration when pasting text; roundtripping Copy&Paste within
30229 edit control still fails due to some calculation bugs in GenerateRTF)
30230 - The Delete key will now remove the current selection if it is visible
30231 * TextBox.cs: Removed debug lines
30232 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30233 driver to be initialized and can't therefore be done via a static ctor)
30235 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
30237 * TextControl.cs: Added backend code for finding char arrays and strings
30239 - Added mouse wheel scroll support
30240 - Added support for VScroll and HScroll events
30242 - Implemented all seven Find() variants
30243 - Implemented GetCharFromPosition()
30244 - Implemented GetCharIndexFromPosition()
30245 - Implemented GetLineFromIndex()
30246 - Implemented GetPositionFromCharIndex();
30247 - Implemented SaveFile for PlainText and UnicodeText
30248 - Fixed set_Font, now setting a new font applies that font to
30250 - Implemented generic Document to RTF converter
30251 - Implemented SaveFile for RichText format (still missing unicode
30252 conversion for non-ansi chars)
30253 - Implemented get_Rtf
30254 - Implemented get_SelectedRtf
30256 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
30258 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30259 to allow any captures to be released before triggering OnClick. This
30260 way a click handler may capture the mouse without interference.
30261 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30262 This way we send them even though X may not allow a grab (if the window
30263 isn't visible, for example)
30265 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
30267 * DataGridViewRowEventArgs.cs: DataGridView implementation
30268 * DataGridViewElement.cs: DataGridView implementation
30269 * DataGridViewComboBoxCell.cs: DataGridView implementation
30270 * DataGridViewDataErrorContexts.cs: DataGridView implementation
30271 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30272 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30273 * ImageLayout.cs: DataGridView implementation
30274 * DataGridViewComboBoxColumn.cs: DataGridView implementation
30275 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30276 * DataGridViewSelectionMode.cs: DataGridView implementation
30277 * IDataGridViewEditingControl.cs: DataGridView implementation
30278 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30279 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30280 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30281 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30282 * DataGridViewColumnSortMode.cs: DataGridView implementation
30283 * DataGridView.cs: DataGridView implementation
30284 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30285 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30286 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30287 * Padding.cs: DataGridView implementation
30288 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30289 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30290 * DataGridViewRowEventHandler.cs: DataGridView implementation
30291 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30292 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30293 * DataGridViewButtonCell.cs: DataGridView implementation
30294 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30295 * DataGridViewEditMode.cs: DataGridView implementation
30296 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30297 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30298 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30299 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30300 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30301 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30302 * DataGridViewCellEventHandler.cs: DataGridView implementation
30303 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30304 * DataGridViewCellStyleConverter.cs: DataGridView implementation
30305 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30306 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30307 * DataGridViewColumnEventArgs.cs: DataGridView implementation
30308 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30309 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30310 * QuestionEventArgs.cs: DataGridView implementation
30311 * IDataGridViewEditingCell.cs: DataGridView implementation
30312 * DataGridViewTriState.cs: DataGridView implementation
30313 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30314 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30315 * DataGridViewColumnCollection.cs: DataGridView implementation
30316 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30317 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30318 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30319 * DataGridViewColumn.cs: DataGridView implementation
30320 * DataGridViewCellBorderStyle.cs: DataGridView implementation
30321 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30322 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30323 * DataGridViewRow.cs: DataGridView implementation
30324 * DataGridViewImageCellLayout.cs: DataGridView implementation
30325 * DataGridViewImageCell.cs: DataGridView implementation
30326 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30327 * DataGridViewCheckBoxCell.cs: DataGridView implementation
30328 * DataGridViewHeaderCell.cs: DataGridView implementation
30329 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30330 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30331 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30332 * DataGridViewTextBoxColumn.cs: DataGridView implementation
30333 * QuestionEventHandler.cs: DataGridView implementation
30334 * DataGridViewCellStyleScopes.cs: DataGridView implementation
30335 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30336 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30337 * DataGridViewCell.cs: DataGridView implementation
30338 * DataGridViewCellEventArgs.cs: DataGridView implementation
30339 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30340 * DataGridViewCellStyle.cs: DataGridView implementation
30341 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30342 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30343 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30344 * TextFormatFlags.cs: DataGridView implementation
30345 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30346 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30347 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30348 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30349 * DataGridViewButtonColumn.cs: DataGridView implementation
30350 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30351 * HandledMouseEventArgs.cs: DataGridView implementation
30352 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30353 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30354 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30355 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30356 * DataGridViewRowCollection.cs: DataGridView implementation
30357 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30358 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30359 * DataGridViewHitTestType.cs: DataGridView implementation
30360 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30361 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30362 * DataGridViewColumnEventHandler.cs: DataGridView implementation
30363 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30364 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30365 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30366 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30367 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30368 * DataGridViewContentAlignment.cs: DataGridView implementation
30369 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30370 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30371 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30372 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30373 * DataGridViewPaintParts.cs: DataGridView implementation
30374 * DataGridViewCellCollection.cs: DataGridView implementation
30375 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30376 * DataGridViewImageColumn.cs: DataGridView implementation
30377 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30378 * DataGridViewElementStates.cs: DataGridView implementation
30379 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30380 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30381 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30382 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30383 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30384 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30385 * DataGridViewRowHeaderCell.cs: DataGridView implementation
30386 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30387 * DataGridViewTextBoxCell.cs: DataGridView implementation
30388 * DataGridViewBand.cs: DataGridView implementation
30389 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30390 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30391 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30392 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30393 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30394 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30395 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30396 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30397 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30398 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30399 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30401 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
30403 * ThemeWin32Classic.cs:
30404 - Draw the outside focus rectangle around buttons
30405 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30406 doesn't use end caps for every dash of a line anymore. This
30407 workaround ignores the forecolor.
30409 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
30411 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30414 2005-11-07 Jackson Harper <jackson@ximian.com>
30416 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30418 2005-11-07 Jackson Harper <jackson@ximian.com>
30420 * ScrollableControl.cs: Calculate the maximum and change vars
30421 (more) correctly so that scrollbars appear as a sensible size.
30423 2005-11-04 Jackson Harper <jackson@ximian.com>
30425 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30427 * TreeView.cs: When the tree is sorted null out the top_node so
30428 that it is recalculated.
30429 - Use dotted lines instead of dashed lines to match MS better.
30431 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
30434 - Implements key search for items. Useful when browsing files with FileDialog
30435 - When changing view mode or when clear the items reset scrollbar positions
30437 2005-11-04 Jackson Harper <jackson@ximian.com>
30439 * CurrencyManager.cs: Implement the MetaDataChanged event, the
30440 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30441 as to what the method may do as there is no real way of creating a
30442 derived CurrencyManager and calling the method.
30444 2005-11-03 Jackson Harper <jackson@ximian.com>
30446 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30447 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30448 method which seems to just be used internally to refresh the tabs.
30450 2005-11-03 Jackson Harper <jackson@ximian.com>
30452 * TabControl.cs: Implement the remove method. Fix some broken
30455 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30457 * DateTimePicker.cs:
30458 - Added missing DateTimePickerAccessibleObject class
30459 - Added missing events
30460 - Added OnFontChanged method
30461 * Form.cs: Added missing attributes
30462 * TreeView.cs: Added missing attributes
30464 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30466 * GridItemCollection.cs: Fix signatures
30468 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30470 * XplatUI.cs: Updated build rev/date
30471 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
30472 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30473 * Application.cs: Trigger context-specific ExitThread events
30475 2005-11-03 Jackson Harper <jackson@ximian.com>
30479 * GridTableStylesCollection.cs:
30484 * MonthCalendar.cs: Signature fixes
30486 2005-11-03 Jackson Harper <jackson@ximian.com>
30488 * TreeNodeCollection.cs: Remove should not be virtual.
30489 * TreeView.cs: Implement the last of the missing methods.
30491 2005-11-03 Jackson Harper <jackson@ximian.com>
30493 * TreeNodeConverter.cs: Implement to get off my class-status back.
30495 2005-11-03 Jackson Harper <jackson@ximian.com>
30497 * TreeView.cs: Hookup the bits for drag and drop.
30498 * TreeNode.cs: Don't cache the tree_view or index anymore, now
30499 that nodes can be moved from tree to tree easily this just causes
30500 all sorts of problems.
30501 * TreeNodeCollection: Don't need to give treenodes an index and
30502 treeview anymore when they are added, these are computed on the
30503 fly. Also make sure to remove a node before its added.
30505 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30508 - Added CaretSelection enum
30509 - Added comparison methods to Marker struct, makes selection code
30511 - Added SelectionStart and SelectionEnd as 'moveable' location for
30512 the CaretDirection enum and handler
30513 - Added selection_prev variable to track optimized invalidation for
30514 word and line selection
30515 - Added SelectionVisible property (returns true if there is a valid
30517 - Switched CaretHasFocus to only display the caret if there is no
30519 - Avoiding StringBuilder.ToString to retrieve a single char, instead
30520 using the direct character index; should be much faster
30521 - Added various conditional debug statements
30522 - Fixed invalidation calculation for selection ranges
30523 - Added ExpandSelection() method to support word and line selection
30524 - Switched SetSelectionToCaret to use new Marker compare overloads
30525 - Added central IsWordSeparator() method to determine word
30526 separators/whitespace and FindWordSeparator() to streamline common
30527 usage of IsWordSeparator()
30529 - Removed unneeded grabbed variable, it was just mirroring
30531 - No longer firing OnTextChanged event when Text setter is called,
30532 since the base will fire the event for us
30533 - Added handling of Ctrl-Up/Down selection
30534 - Added handling of Shift-Cursorkey selection
30535 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30537 - Added handling of Shift and Ctrl-Shift-Home/End selection
30538 - Removed some debug output
30539 - Added handling for single/double/tripple-click to place caret/
30540 select word/select line respectively (Fixes bug #76031)
30541 - Added support for drag expansion of word/line selection
30542 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30545 2005-11-02 Jackson Harper <jackson@ximian.com>
30547 * X11Dnd.cs: If the drag is going to and from a MWF window just
30548 copy the data instead of sending it out through the X Selection
30551 2005-11-02 Jackson Harper <jackson@ximian.com>
30554 * XplatUIX11.cs: When in a drag we don't want motion notify
30555 messages to get passed on to the other controls. This prevents
30556 mouse move messages from showing up in the drag source.
30558 2005-11-02 Jackson Harper <jackson@ximian.com>
30560 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
30561 the correct button is release to end a drag.
30562 * XplatUIX11.cs: Make the button state internal so the drag system
30563 can access it. Dragging needs to know about all button releases,
30564 not just left button.
30566 2005-11-02 Miguel de Icaza <miguel@novell.com>
30568 * Form.cs (Icon): If the icon is null, reset the icon to the
30571 * Cursor.cs: When writing the AND-mask bitmap do not include the
30572 number of colors, but hardcode those to two (black and white),
30573 fixes the loading of color cursors (Paint Dot Net).
30575 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30576 turn off autoscaling.
30578 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30580 2005-11-02 Jackson Harper <jackson@ximian.com>
30582 * X11Dnd.cs: Make sure to send a status message if the pointer
30583 enters a control that can not accept a drop, otherwise the cursor
30584 isn't updated correctly. Also tried to compress the lines of code
30587 2005-11-02 Jackson Harper <jackson@ximian.com>
30589 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30590 set actions correctly. This isn't perfect as XDND and win32 have
30591 some differences on how you allow actions. I'll clear this up by
30592 adding a path for drag from MWF to MWF windows.
30593 * XplatUIX11.cs: Hook into the dnd system.
30595 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
30597 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30598 previously shown but they are no longer need it. Very obvious when
30599 browsing files with FileDialog.
30601 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
30603 * Control.cs: We always need to call OnPaintBackground. We pretty much
30604 ignore AllPaintingInWmPaint and always do the painting there, whether
30605 it's set or not, since we always ignore the WM_ERASEBKGND message
30606 (which we don't generate on X11). This fixes #76616.
30607 * Panel.cs: Removed unneeded background painting. This happens properly
30608 in Control.cs already
30610 2005-10-31 Mike Kestner <mkestner@novell.com>
30612 * Menu.cs: Add items to collection before setting their index.
30613 * MenuItem.cs : add range checking with ArgumentException like MS.
30616 2005-10-31 Jackson Harper <jackson@ximian.com>
30618 * ListBox.cs: Invalidate if the area is visible at all not just
30619 contained in the visible rect. Fixes unselection of semi visible
30622 2005-10-31 Jackson Harper <jackson@ximian.com>
30624 * Control.cs: Consistently name the dnd methods. Make them
30625 internal so we can override them to match some MS behavoir
30627 * Win32DnD.cs: Use the new consistent names.
30629 2005-10-31 Jackson Harper <jackson@ximian.com>
30631 * TreeView.cs: Don't draw the selected node when we lose focus.
30633 2005-10-31 Jackson Harper <jackson@ximian.com>
30635 * X11Dnd.cs: We still need to reset the state even though a full
30636 reset isn't being done, otherwise status's still get sent all over
30639 2005-10-31 Jackson Harper <jackson@ximian.com>
30641 * Control.cs: Make the dnd_aware flag internal so the dnd
30642 subsystem can check it. Catch exceptions thrown in dnd handlers to
30644 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
30645 * X11Dnd.cs: Handle null data in the converters. Set the XDND
30646 version when sending a XdndEnter. Use the control/hwnd dnd_aware
30647 flags to reduce the number of dnd enters/status's sent.
30649 2005-10-31 Jackson Harper <jackson@ximian.com>
30651 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
30653 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
30655 * PictureBox.cs: Fixes 76512
30657 2005-10-28 Jackson Harper <jackson@ximian.com>
30659 * X11Dnd.cs: Early implementation to support winforms being a drag
30660 source for data on X11. Also restructured the converters so they
30661 can go both ways now.
30662 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
30664 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
30666 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
30669 2005-10-27 Jackson Harper <jackson@ximian.com>
30671 * TreeNode.cs: Implement serialization so my DnD examples will work.
30673 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
30675 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
30676 TreeView.cs: Don't dispose objects that are not owned.
30678 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
30680 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
30681 should retrieve the current cursor and report that, but XplatUI
30682 doesn't (yet) have an interface for that (and I'm not sure I even
30684 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
30685 until any message loop processing is done (and the WM_SETCURSOR
30686 replaces the cursor to the proper one)
30688 - Fixed override behaviour, we can't set the cursor globally on X11,
30689 just for our windows.
30690 - Invalidating the System.Drawing X11 display handle when we are
30692 * Control.cs: Fix to make csc happy
30694 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
30697 - get_Text: Add last line (without trailing newline) to returned
30698 value (Fixes 76212)
30699 - get_TextLength: Count last line in returned length
30700 - ToString: Call Text property instead of duplicating code
30702 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
30704 * ImageList.cs: Dispose ImageAttributes objects.
30706 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30708 * ImageList.cs: Use attribute constructors with less arguments where
30711 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
30713 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
30714 Use typeof instead of strings when assembly is referenced. Added
30715 some more comments.
30717 2005-10-21 Jackson Harper <jackson@ximian.com>
30719 * ListView.cs: Raise a double click event. Also tried to somewhat
30720 fix when the selectedindexchanged event is raised. Its still
30723 2005-10-21 Jackson Harper <jackson@ximian.com>
30725 * TreeView.cs: New method to invalidate the plus minus area of a
30726 node without invalidating the whole node (maybe this can be used
30727 in some more places).
30728 * TreeNodeCollection.cs: When adding to an empty node we need to
30729 invalidate its plus minus area so the little block shows up.
30731 2005-10-21 Jackson Harper <jackson@ximian.com>
30733 * TreeView.cs: Make sure that when we invalidate a node the bounds
30734 are big enough to cover the selected box and the focus
30735 rectangle. Use a different colour for the lines connecting nodes
30736 so they show up with all themes.
30738 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30740 * NativeWindow.cs: Don't call anything that could call into the driver,
30741 we might be on a different thread.
30743 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30745 * Control.cs(Dispose): Since Dispose might run on a different thread,
30746 make sure that we call methods that could call into the driver via
30747 invoke, to avoid thread issues
30749 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
30751 * XplatUI.cs: Removed finalizer
30752 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
30753 not allowing to be called on the finalizer thread.
30755 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
30758 - Reverted r51889 and r51891.
30759 - Added ImageListItem class that stores unmodified image items and image
30760 properties required to create list images until handle is created.
30761 - Added AddItem and moved image creation logic to AddItemInternal.
30762 - Added CreateHandle method that creates images based on unmodified items.
30763 - Added DestroyHandle that changes state to store unmodified items.
30764 - Add and AddStrip methods no more create handle.
30765 - ReduceColorDepth has no return value.
30766 - Dispose destroys handle.
30767 - Modified other methods to reflect the above changes.
30768 - Implemented key support.
30769 - Added profile 2.0 members and attributes.
30770 - Added private Reset and ShouldSerialize methods that provide the same
30771 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
30772 them as they are private.
30773 - Added some more comments about implementation details.
30775 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30777 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
30779 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30781 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
30783 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
30785 * DataGridDrawingLogic.cs: Fixes column hit calcultation
30786 * DataGridColumnStyle.cs: Remove debug message
30788 2005-10-20 Jackson Harper <jackson@ximian.com>
30790 * TreeView.cs: We can always get input keys regardless of whether
30791 or not editing is enabled. They are used for navigation.
30793 2005-10-20 Jackson Harper <jackson@ximian.com>
30795 * TreeNode.cs: Use the viewport rect for determining if a node
30796 needs to be moved for visibility. Don't use Begin/End edit. This
30797 calls a full refresh when its done.
30798 * TreeView.cs: New SetBottom works correctly. Make the viewport
30799 rect property internal so the treenodes can see it. When clicking
30800 on a node we need to ensure that its visible because it might just
30801 be partly visible when clicked.
30803 2005-10-20 Jackson Harper <jackson@ximian.com>
30805 * TreeNodeCollection.cs: Remove debug code.
30807 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30809 * Datagrid.cs: Implements column sorting in Datagrid
30810 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
30812 2005-10-20 Jackson Harper <jackson@ximian.com>
30814 * TreeNodeCollection.cs: Remove items properly. Update the correct
30815 area after removing them.
30817 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
30819 * Datagrid.cs: Should not call base.OnPaintBackground
30821 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30823 * XplatUIX11.cs (GetMessage):
30824 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
30825 window instead of client window
30826 - Now properly calculates NC_xBUTTONUP message coordinates
30827 - ScreenToMenu now properly calculates it's coordinates of whole
30828 window, since menus are in the whole window, not in the client
30830 - Added WholeToScreen coordinate translation method
30832 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30834 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
30835 want to return a message, loop back to the beginning of the function
30836 and grab the next real message to process instead.
30838 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
30840 * Splitter.cs: Properly set limits if no filler control is used
30842 2005-10-19 Jackson Harper <jackson@ximian.com>
30844 * ColorDialog.cs: Don't show the help button if it is not enabled
30845 instead of disabling it (this is what MS does). Don't create the
30846 panel until the dialog is run, otherwise the vars (such as
30847 ShowHelp) are not set yet.
30849 2005-10-19 Jackson Harper <jackson@ximian.com>
30851 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
30852 are reduced when adding nodes.
30854 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
30857 2005-10-19 Jackson Harper <jackson@ximian.com>
30859 * FolderBrowserDialog.cs: End editing our treeview so the window
30860 actually gets refreshed.
30862 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30864 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
30865 Obsoleted handling of WM_ERASEBKGND, now always draws our background
30868 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30870 * MenuAPI.cs: Returns after Hidding window
30871 * XplatUIX11.cs: Added TODO found while debugging menu issues
30873 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
30875 * XplatUIX11.cs: Do not re-map the whole window when it's size
30876 becomes non-zero unless it's supposed to be actually visible
30878 2005-10-18 Jackson Harper <jackson@ximian.com>
30880 * TreeView.cs: We don't need to keep a count anymore.
30881 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
30882 use the Grow method.
30884 2005-10-18 Jackson Harper <jackson@ximian.com>
30886 * TreeNodeCollection.cs: Insert is not supported on arrays, so
30887 implement it manually here.
30889 2005-10-18 Jackson Harper <jackson@ximian.com>
30891 * ImageList.cs: Dont kill the list when the colour depth is
30892 changed, just change the colour depth of all the images.
30893 - Same goes for setting the image size. Just resize them all
30894 instead of killing the list softly.
30896 2005-10-18 Jackson Harper <jackson@ximian.com>
30898 * Control.cs: Don't invalidate empty rectangles.
30900 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30903 - Adds checked item to the Checked/Item lists (where empty before)
30904 - Do not add items to the Selected lists if they are already present
30906 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
30907 - When deleting items make sure that we delete them for the Selected
30908 and Checked list also.
30910 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
30912 * Label.cs: Dispose objects no longer used
30913 * ThemeWin32Classic.cs: Dispose objects no longer used
30915 2005-10-18 Jackson Harper <jackson@ximian.com>
30917 * TabControl.cs: Don't refresh the whole control when the tabs are
30918 scrolled, we just need to refresh the tab area.
30920 2005-10-17 Jackson Harper <jackson@ximian.com>
30922 * XplatUIX11.cs: Compress code a little bit. Only calculate the
30923 after handle when we need it.
30925 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30927 * Control.cs: When the parent size changes, recalculate anchor
30928 positions. Partial fix for #76462
30930 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
30932 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
30933 drawn. Fixes #76462
30935 2005-10-17 Jackson Harper <jackson@ximian.com>
30937 * MonthCalendar.cs: Don't create the numeric up down until our
30938 handle is created. Otherwise our handle is created in the
30939 constructor and we don't know if we are a WS_CHILD or WS_POPUP
30942 2005-10-17 Jackson Harper <jackson@ximian.com>
30944 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
30947 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30948 * TreeNode.cs : small logical fix (was using local var instead of field)
30950 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30952 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
30954 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
30956 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
30958 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
30961 - Re-implemented anchoring code. My first version was really broken.
30962 This fixes bug #76033. Unlike the previous implementation we will
30963 no longer have round errors since all numbers are calculated from
30964 scratch every time. Removed various anchor-related obsolete vars.
30965 - InitLayout no longer causes layout event firing and layout to be
30968 2005-10-16 Jackson Harper <jackson@ximian.com>
30970 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
30973 2005-10-16 Jackson Harper <jackson@ximian.com>
30975 * TabControl.cs: Remove debug code.
30977 2005-10-16 Jackson Harper <jackson@ximian.com>
30979 * XEventQueue.cs: Increase the default queue size (very simple
30980 apps needed to grow the queue).
30981 * Hwnd.cs: No finalizer so we don't need to suppress
30982 finalization. Compute the invalid area manually so a new rectangle
30983 does not newto be created.
30984 * ScrollableControl.cs: Don't set any params (otherwise visibility
30985 isn't set correctly).
30986 * MdiChildContext.cs: New constructor takes the mdi parent so it
30987 doesn't have to be computed and avoids a crash on windows. Draw
30988 the window icon properly, and allow the text to be seen.
30989 * Form.cs: Use new MdiChildContext constructor. Make sure the
30990 child context isn't null in wndproc.
30991 * TabControl.cs: Don't set focus, this is muddling keyboard
30992 behavoir. Expand the tab rows when a window size increase will
30993 allow extra tabs to be seen. Don't allow tabs smaller than the
30994 width of a window to be scrolled out of view.
30996 * TreeView.cs: Use measure string to calculate a nodes width, the
30997 width is cached and only updated when the text or the font is
30998 changed. Don't check for expand/collapse clicks on the first level
30999 nodes if root lines are disabled.
31001 2005-10-16 Ritvik Mayank <mritvik@novell.com>
31003 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31005 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
31007 * DataGridBoolColumn.cs: fixes warning
31009 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
31011 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31012 to match more to match more precisely the MS Net behavior
31014 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31016 * Hwnd.cs: Added field to track if window is mapped
31018 - Unmap windows if they become 0-size, re-map when
31019 they are >0 again; fixes #76035
31020 - Re-set our error handler after initializing X11Desktop
31021 to override any error handlers Gtk or whatever was called
31024 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31026 * CheckedListBox.cs: Removed unused vars
31027 * ListView.cs: Fixed signatures
31028 * RichTextBox.cs: Removed unused vars
31029 * TextBoxBase.cs: Removed unused vars
31030 * XplatUIWin32.cs: Removed unused vars
31031 * XplatUIX11.cs: Removed unused vars
31032 * XplatUI.cs: Updated version and date to latest published
31034 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31036 * Cursor.cs: Added private .ctor to work around a bug in
31037 resourceset (Thanks to Geoff Norton for the help on this)
31038 * SplitterEventArgs.cs: Made fields accessible so we don't
31039 waste boatloads of objects and can reuse the same one
31041 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31042 any captions and borders when generating screen coordinates
31043 * Splitter.cs: Reimplemented control, now fully complete, uses
31044 rubberband drawing, supports and obeys all properties, has
31047 2005-10-13 Miguel de Icaza <miguel@novell.com>
31049 * Form.cs (Form): Setup default values for autoscale and
31050 autoscale_base_size; Make these instance variables, not static
31053 (OnLoad): on the first load, adjust the size of the form.
31055 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31057 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
31058 width argument to DrawReversibleRectangle()
31059 * XplatUIWin32.cs, XplatUIX11.cs:
31060 - Implemented width for DrawReversibleRectangle()
31061 - Added logic to DrawReversibleRectangle that recognizes a zero
31062 width or height and only draws a line in that situation
31064 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31066 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31067 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31068 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31069 method (it uses our FosterParent window to get a graphics context)
31071 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31073 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
31074 and SetWindowBackground methods
31076 - Setting proper ControlStyles
31077 - We no longer call XplatUI.SetWindowBackground and XplatUI.
31078 EraseWindowBackground, instead we draw the window background
31079 ourselves in PaintControlBackground. This behaviour is
31080 required to match MS, where, when OnPaintBackground is not
31081 called, the background is not drawn.
31082 - Removed unneeded Refresh() in set_Text
31083 * Hwnd.cs: Dropped the ErasePending support. No longer needed
31085 - Created DeriveStyles method to translate from CreateParams to
31086 FormBorderStyle and TitleStyle, also handles BorderStyle (which
31087 matches FormBorderStyle enum values)
31088 - Consolidated SetHwndStyles and CalculateWindowRect border/title
31089 style calculations into single DeriveStyles method
31090 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31091 from redrawing the whole window on any resize or expose.
31092 - Fixed CreateWindow usage of SetWindowValuemask. Before not
31093 all styles were applied to our whole/client window appropriately
31094 - Removed EraseWindowBackground() and SetWindowBackground() methods
31095 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31096 no longer clear/redraw the background through X
31097 - Removed handling of erase_pending bit, we have no use for it (or
31100 - Removed generation and handling of WM_ERASEBKGND message
31101 - Removed EraseWindowBackground() and SetWindowBackground() methods
31102 - Removed handling of hwnd.ErasePending flag
31104 - Removed EraseWindowBackground() and SetWindowBackground() methods
31105 - We no longer call EraseWindowBackground on PaintEventStart, we
31106 ignore the fErase flag, erasing is handled in Control in the
31108 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31109 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31110 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
31111 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
31112 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
31113 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31114 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31116 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
31118 * PropertyGrids.cs: Get sub properties
31119 * PropertyGridView.cs: Fix drawing code
31121 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31123 * ListBox.cs: Fixes 76383
31125 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31127 * DataGridTextBoxColumn.cs: Sets location and size before attachment
31128 * ThemeWin32Classic.cs: Fixes border drawing and calculations
31129 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31132 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31134 * ComboBox.cs: Fixes border drawing
31136 2005-10-10 Miguel de Icaza <miguel@novell.com>
31138 * MimeIcon.cs: Ignore errors if the file can not be read.
31140 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31142 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31143 - Fixed border calculations
31144 - Fixed horizontal scrolling in single column listboxes
31145 - Fixed drawing issues
31147 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
31149 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
31150 FormBorderStyle enum
31151 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
31152 code to determine FormBorderStyles from CreateParams
31154 - Fixed bug where we'd set the wrong window styles if we were
31155 not creating an MDI window
31156 - Added call to XplatUI.SetBorderStyle when form borders are set
31157 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31159 - Removed obsolete edge style
31160 - Switched from BorderStyle to FormBorderStyle
31162 2005-10-10 Jackson Harper <jackson@ximian.com>
31164 * Form.cs: Use the property to get the window handle instead of
31165 accessing it directly. Prevents a null reference exception.
31167 2005-10-10 Jackson Harper <jackson@ximian.com>
31169 * TreeView.cs: Don't adjust the rect given to DrawString now that
31170 our libgdiplus draws correctly.
31172 2005-10-08 Jackson Harper <jackson@ximian.com>
31174 * TreeView.cs: Don't try to find the clicked on node if there are
31175 no nodes in the tree.
31177 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31183 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31185 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31186 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31188 Use ResPool for brushes and dispose System.Drawing objects that
31189 are not used anymore.
31191 2005-10-07 Jackson Harper <jackson@ximian.com>
31193 * MdiChildContext.cs: Use the new borders instead of drawing them
31196 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31198 * Calling UpdateBounds after changing the window's BorderStyle
31199 since the style can change the ClientSize
31201 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31203 * Control.cs: Made PaintControlBackground virtual
31204 * Panel.cs: Overriding PaintControlBackground instead of using paint
31205 event; paint event method was interfering with 'real' users of the
31208 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31210 * ThemeWin32Classic.cs: remove border drawing since it is handled
31211 by the base control class now and was causing double border drawing.
31213 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31215 * Panel.cs: Redraw our background on paint. Not a pretty solution,
31216 but it does seem to match MS behaviour. This fixes bug #75324
31218 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31220 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31221 somewhat hackish looking
31223 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31226 - We now accept Enter even if AcceptEnter is false, if the containing
31227 form does not have an AcceptButton configured (fixes bug #76355)
31228 - Calculations are now fixed to no longer use Width/Height, but
31229 ClientSize.Width/Height, since we now support borders (this was
31230 a result of fixing borders and therefore bug #76166)
31231 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
31232 true (fixes bug #76354)
31234 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31237 - Defaulting BorderStyle and setting it in XplatUI when our window
31239 - Added enum check to InternalBorderStyle setter
31241 - Added drawing of window borders
31242 - Now properly calculates WM decorations offset for toplevel
31243 windows (fixes bug #74763)
31245 - Implemented BorderStyles for windows (we're letting win32 draw
31247 - Fixed the signature for SetWindowLong
31248 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31249 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
31251 * UpDownBase.cs: Remove drawing of borders, this is handled by
31252 the driver, outside the client area
31253 * ListView.cs: Removed bogus border calculations. The control should
31254 be oblivious to borders, since those are not part of the client
31256 * X11DesktopColors.cs: Commented out (currently) unneeded variables
31257 * ThemeWin32Classic.cs: Removed border calculations from ListView
31260 2005-10-06 Jackson Harper <jackson@ximian.com>
31262 * MdiChildContext.cs: Clear out the old virtual position remove
31263 all the unneeded calls to CreateGraphics.
31265 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31267 * TextControl.cs: Use proper color for highlighted text; fixes #76350
31269 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31272 - Added loading and setting of our new default icon
31273 - Only set icon if window is already created
31275 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31278 - Do not explicitly set the foreground and background colors, to
31279 allow inheriting from parents (fixes #76302)
31280 - Use Control's InternalBorderStyle property to deal with borders
31282 2005-10-06 Jackson Harper <jackson@ximian.com>
31284 * MdiChildContext.cs: Use the new xplatui function to draw a
31287 2005-10-06 Jackson Harper <jackson@ximian.com>
31289 * Form.cs: Add the parent before creating the child context cause
31290 we need the parent when setting up the child.
31292 2005-10-06 Jackson Harper <jackson@ximian.com>
31294 * FolderBrowserDialog.cs: redo the tree population code so a
31295 second thread isn't used. Should be a lot faster and more stable
31298 2005-10-05 Jackson Harper <jackson@ximian.com>
31300 * TreeView.cs: There are no expand/collapse boxes if the node has
31303 2005-10-05 Jackson Harper <jackson@ximian.com>
31305 * X11DesktopColors.cs: Get menu colours for the gtk theme.
31307 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
31309 * FileDialog.cs: Fix InitialDirectory
31311 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31314 - Fixes changing between styles
31315 - Fixes simple mode
31316 - Fixes last item crashing when navigating with keyboard
31318 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31320 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31322 2005-10-05 Jackson Harper <jackson@ximian.com>
31324 * TreeView.cs: If updating the root node do a full refresh.
31325 * TreeNode.cs: The root node should be expanded by default. Also
31326 added a utility prop to tell if we are the root node.
31327 * TreeNodeCollection.cs: Only refresh if the node we are being
31328 added to is expanded. Also added a comment on a potential
31331 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
31333 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
31334 in dispose method. Fixes #76330
31336 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
31338 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31340 - Implements vertical and horizontal scrolling using XplatUI
31341 - Fixes keyboard navagation
31342 - Fixes EnsureVisible
31344 - Handles and draws focus properly
31347 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
31349 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31350 Create handle. NET_2_0: Destroy handle when value is null.
31352 2005-10-03 Jackson Harper <jackson@ximian.com>
31354 * ScrollBar.cs: My last scrollbar patch was broken. This is a
31355 revert and a new patch to prevent the thumb from refreshing so
31358 2005-10-02 Jackson Harper <jackson@ximian.com>
31360 * ScrollBar.cs: Don't update position if it hasn't actually
31361 changed. This occurs when you hold down the increment/decrement
31362 buttons and the thumb gets to the max/min.
31364 2005-10-01 Jackson Harper <jackson@ximian.com>
31367 * MdiChildContext.cs:
31368 * MdiClient.cs: Implement ActiveMdiChild in Form.
31370 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
31372 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31374 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
31376 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31379 2005-09-30 Jackson Harper <jackson@ximian.com>
31381 * ListBox.cs: Don't do a full refresh unless some data has
31384 2005-09-30 Jackson Harper <jackson@ximian.com>
31386 * TreeView.cs: Make sure that the checkboxes size is factored in
31387 even when not visible.
31389 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31391 * FileDialog.cs: Fix Jordi's build break
31393 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31396 - Use standard the Windows colours for the combobox as espected
31397 - Dispose objects that use resouces when no longer need them
31399 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31401 * X11DesktopColors.cs: Initial incomplete implementation
31402 * XplatUIX11.cs: Added call to initialize X11DesktopColors
31404 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31407 - Switched Theme color names to match the names defined in
31408 System.Drawing.KnownColors. Life's hard enough, no need to make
31410 - Added setters to all theme color properties so themes can set
31411 their color schemes. The setters also propagate the color changes
31412 to System.Drawing.KnownColors via reflection
31413 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31414 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31415 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31416 use the new, more logical theme color names
31417 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31419 * ThemeWin32Classic.cs:
31420 - Removed code to set the old classic Windows colors. Instead it
31421 now relies on the colors returned by System.Drawing.KnownColors
31422 which will be either modern static colors (Unix) or colors
31423 read from the user's configuration (Win32)
31424 - Updated to use the new, more logical theme color names
31425 - Switched DataGrid drawing code to use only Theme colors instead of
31426 a mix of System.Drawing.KnownColors and Theme colors
31427 - DrawFrameControl(): Removed code that fills the button area, the
31428 fill would overwrite any previous fill done by a control. This
31430 - Added DrawReversibleRectangle() stub
31431 * ScrollableControl.cs: Set visible state to false when scrollbars
31432 are removed (pdn fix)
31433 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
31434 DrawReversibleRectangle() method to allow drawing primitive
31436 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31438 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31440 * ImageList.cs: Add(Icon): Create handle.
31442 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31445 * ThemeWin32Classic.cs:
31446 - Fixes detail mode
31448 - Issues with drawing
31450 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31452 * ImageList.cs: Moved RecreateHandle back to ImageList as event
31453 source has to be the ImageList.
31455 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31457 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31459 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31461 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31463 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31465 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31467 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
31468 * GridItem.cs: Fixed TODOs
31469 * GridItemCollection.cs: Added ICollection interface
31471 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31473 * ImageList.cs: Resize icons when needed.
31475 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
31478 - Fixes GetBounds and returns on screen rects
31480 - Fixes vertical and horzintal scrolling of items
31481 * ThemeWin32Classic.cs:
31484 2005-09-29 Raja R Harinath <harinath@gmail.com>
31486 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31488 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
31490 * ImageList.cs: Added comments about handle creation. Moved Handle,
31491 HandleCreated and OnRecreateHandle implementations to ImageCollection.
31492 Handle is created in Add methods.
31494 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31496 * DataGridDrawingLogic.cs:
31497 - Takes rows into account on Colum calculations
31498 - Returns the column when clickig
31500 - Fixes default HitTestInfo values
31501 - Fixes HitTestInfo.ToString
31502 - Fixes ResetBackColor
31504 2005-09-28 Jackson Harper <jackson@ximian.com>
31506 * MdiChildContext.cs: Obey rules for fixed sized windows (no
31507 sizing or cursor changes). Also added some temp code to draw the
31508 titlebars text (Makes dev a little easier).
31510 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31512 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31514 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31516 * ListBox.cs: Fixes bug 76253
31518 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31520 * ImageList.cs: Added comments about the current implementation. Added
31521 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31522 Format32bppArgb to preserve transparency and can use Graphics.FromImage
31523 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31524 with Bitmap.LockBits for better performance. Revised the whole file to
31525 match MS.NET behaviour and provide better performance. Non-public
31526 interface members are calling public members even when they throw
31527 NotSupportedException for better maintainability. Moved ColorDepth,
31528 ImageSize, ImageStream and TransparentColor implementations to
31529 ImageCollection for better performance as these properties are not used
31531 * ImageListStreamer.cs: Added a new internal constructor that takes an
31532 ImageList.ImageCollection and serializes Images based on
31533 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31534 match ImageList property name.
31536 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
31538 * ListBox.cs: Fixes IndexFromPoint for last item
31540 2005-09-27 Jackson Harper <jackson@ximian.com>
31542 * Form.cs: Set the position of new mdi children correctly.
31544 2005-09-27 Jackson Harper <jackson@ximian.com>
31546 * MdiClient.cs: New mdi children need to be added to the back of
31547 the controls collection so the zorder is set correctly. Also add a
31548 count of all the child windows that have been created.
31550 2005-09-27 Jackson Harper <jackson@ximian.com>
31552 * Form.cs (CreateParams): Setup MDI forms correctly.
31554 2005-09-27 Jackson Harper <jackson@ximian.com>
31556 * MdiChildContext.cs:
31557 * MonthCalendar.cs:
31563 * ScrollableControl.cs:
31564 * ComboBox.cs: Add implicit controls using the new implict control
31565 functionality in ControlCollection. Also try to block multiple
31566 control add in a suspend/resume layout to save some cycles.
31568 2005-09-27 Jackson Harper <jackson@ximian.com>
31570 * Control.cs: Add functionality to the controls collection to add
31571 'implicit controls' these are controls that are created by the
31572 containing control but should not be exposed to the user. Such as
31573 scrollbars in the treeview.
31574 * Form.cs: The list var of the ControlsCollection is no longer
31575 available because of the potential of implicit controls getting
31576 ignored by someone accessing the list directly.
31578 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
31580 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31581 loose it's parent. (Fixed bug introduced in r49103 when we added
31582 setting the child parent to null on Remove)
31584 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
31586 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31587 * Splitter.cs: Added missing attributes for BorderStyle property.
31588 * TextBoxBase.cs: Marked Calculate* methods internal.
31589 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31592 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
31594 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31596 2005-09-25 Jackson Harper <jackson@ximian.com>
31598 * TreeView.cs: Update the node bounds correctly regardless of
31599 whether the node is visible.
31601 2005-09-25 Jackson Harper <jackson@ximian.com>
31603 * ImageList.cs: Don't dispose the image after it is added to the
31604 image list. Only reformat images that need to be resized.
31606 2005-09-25 Jackson Harper <jackson@ximian.com>
31608 * ImageList.cs: Don't set the format when changing the image.
31610 2005-09-25 Jackson Harper <jackson@ximian.com>
31612 * TreeView.cs: We can't just assume the node has a font. Use the
31613 treeviews font if no node font is available.
31615 2005-09-25 Jackson Harper <jackson@ximian.com>
31617 * TreeView.cs: Allow the scrollbars to be reset with negative
31619 - Don't add scrollbars to negative sized windows.
31621 2005-09-23 Jackson Harper <jackson@ximian.com>
31623 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31624 old Mono.Posix. Also remove some stray code that shouldn't have
31627 2005-09-23 Jackson Harper <jackson@ximian.com>
31629 * TreeView.cs: Attempt at proper sizing of the horizontal
31630 scrollbar. Also don't resize the scrollbars unless they are
31633 2005-09-23 Jackson Harper <jackson@ximian.com>
31635 * TreeView.cs: We don't need to expand the invalid area when the
31636 selection changes, as this is all drawn in the node's bounding
31637 box. The area needs to be expanded (previous typo was contracting
31638 it) when the focus rect moves.
31640 2005-09-23 Jackson Harper <jackson@ximian.com>
31642 * TreeView.cs: Display the selection box under the correct
31643 circumstances. We were rendering white text with no selection box
31646 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
31648 * TextControl.cs(Split): Now updates selection start/end if it points
31649 into a line that's being split. Fixes a FIXME and bug #75258
31651 2005-09-23 Jackson Harper <jackson@ximian.com>
31654 * ListControl.cs: Don't use the path when retrieving binding
31655 managers from the binding context. My bat sense tells me that the
31656 path is only used on insertion.
31658 2005-09-22 Jackson Harper <jackson@ximian.com>
31660 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
31662 2005-09-22 Jackson Harper <jackson@ximian.com>
31664 * Splitter.cs: There are special cursors used for splitting.
31665 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
31667 2005-09-22 Jackson Harper <jackson@ximian.com>
31669 * Splitter.cs: Change the cursor appropriately when the splitter
31670 is moused over, so the user actually knows there is a splitter
31673 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31675 * Label.cs : Fix ToString method to give same output as MS.NET
31677 2005-09-22 Jackson Harper <jackson@ximian.com>
31679 * TreeView.cs: Create the scrollbars when the handle is created
31680 and add them right away, just make them invisble. Also account for
31681 the window being shrunk vertically to the point that the vert
31682 scrollbar needs to be added.
31683 - Remove some 0.5 adjustments to get around anti aliasing issues.
31685 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
31687 * MainMenu.cs: Fixes default value
31688 * MenuItem.cs: Fixes default value
31690 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
31692 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
31694 2005-09-21 Jackson Harper <jackson@ximian.com>
31696 * Control.cs: Don't try to set the border style on the window if
31697 it hasn't been created. When the window is created the border
31698 style will be used.
31700 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31702 * Control.cs (Update): Don't call XplatUI if we don't have a
31705 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31707 * ContainerControl.cs: Instead of throwing an exception, print
31708 a one-time warning about Validate not being implemented
31709 * XplatUIWin32.cs: Removed debug output
31711 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31713 * Control.cs: Only set XplatUI background if we expect the windowing
31714 system to handle the background. This stops controls that draw their
31715 own background from flickering
31717 * XplatUIX11.cs: Support custom visuals and colormaps for window
31718 creation. This allows, amongst other things, using MWF X11 windows
31721 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
31723 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
31724 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
31725 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
31726 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
31727 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
31728 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
31729 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
31730 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
31731 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
31732 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
31733 GridColumnStylesCollection.cs,
31734 IDataGridColumnStyleEditingNotificationService.cs,
31735 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
31736 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
31737 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
31738 TreeNodeCollection.cs, AmbientProperties.cs,
31739 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31740 DataObject.cs, ErrorProvider.cs, Splitter.cs,
31741 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
31742 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
31743 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
31744 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
31745 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
31746 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
31747 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
31748 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
31749 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
31750 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
31751 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
31752 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
31753 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
31754 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
31755 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
31756 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
31757 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
31758 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
31759 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
31760 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
31761 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
31762 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
31763 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
31764 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
31765 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
31766 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
31767 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
31768 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
31769 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
31770 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
31771 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
31772 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
31773 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
31774 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
31775 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
31777 2005-09-21 Jackson Harper <jackson@ximian.com>
31779 * TreeNode.cs: Call Before/After Expand not Collapse when
31782 2005-09-20 Jackson Harper <jackson@ximian.com>
31784 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
31786 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31790 - Fixes proper storing of subitems
31791 - Fixes not updated items
31793 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31795 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
31796 things if our window handle isn't created yet. Also disabled
31797 debug for TextBoxBase
31799 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
31801 * MenuAPI.cs: Remove filtering of events to allow menu usage
31803 2005-09-20 Miguel de Icaza <miguel@novell.com>
31805 * Cursor.cs: Allow null to be passed to Cursor.Current.
31807 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
31809 * ThemeWin32Classic.cs:
31810 - Change some private methods/fields to protected virtual so that
31811 they can be accessed and overriden in derived classes
31812 - First refactoring of some methods. Derived themes now don't
31813 need to duplicate the complete code from ThemeWin32Classic
31815 - Added nice StatusBar
31816 - Derive from ThemeWin32Classic and not Theme
31817 - Removed duplicate ThemeWin32Classic code
31819 2005-09-20 Miguel de Icaza <miguel@novell.com>
31821 * Control.cs (ControlCollection.Add): If the value null is passed
31822 the control is ignored.
31824 Optimize this loop.
31826 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31828 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
31829 PostQuitMessage state.
31830 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
31832 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
31834 * Application.cs: Our constructor will never get called, move
31835 initialization to fields; fixes bug #75933
31837 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
31840 - Allow files to be selected properly using file name
31842 - Add ability to change diretory (absolute / relative)
31843 using file name combo box.
31845 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
31848 - Fixes Multicolumn listboxes item wrong calculations
31849 - Allows to click when only one item is in the listbox
31850 - Fixes crash when no items using keyboard navigation
31852 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
31854 * ComboBox.cs: Reverted almost everything from the latest patch which
31857 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
31860 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
31862 - When DropDownStyle is Simple, it does not show scrollbar
31863 to the last item of the list.
31864 - When DropDownStyle is Simple, it crashed when the list was
31865 scrolled down with the down cursor key.
31866 - Fixed a bug that when DropDownStyle is DropDownList, the
31867 selected item was not shown.
31868 - The position of the selected item was not preserved when
31869 the next dropdown happened.
31870 * ThemeWin32Classic.cs:
31871 - Items were wrapped at the right end.
31872 * CheckedListBox.cs:
31875 - Items should be fully shown.
31876 - When resizing and vertical scrollbar disappeared, the item
31877 of index 0 should be on the top of the list.
31878 - GetItemRectangle should consider the size of ver. scrollbar
31880 - SizingGrip area should not be allocated when it is not
31882 - Now it reflects MinWidth of the containing panel and
31883 fixed a crash that happens when its width becomes so small.
31885 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31887 * CheckedListBox.cs: Fixes bug 76028
31888 * ListBox.cs: Fixes bug 76028
31890 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
31892 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
31893 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
31895 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
31897 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
31899 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31901 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
31903 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
31905 * IRootGridEntry.cs: Added
31906 * PropertyGridCommands.cs: Added
31907 * PropertiesTab.cs: Added missing methods and property
31908 * PropertyGridView.cs: Made class internal
31909 * PropertyGridTextBox.cs: Made class internal
31911 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31913 * MimeIcon.cs: Try to check some other environment variables
31914 if "DESKTOP_SESSION" returns "default"
31916 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31918 * ThemeNice.cs: Corrected background colors (e.g. menus)
31919 * ColorDialog.cs: Use correct background colors for controls
31921 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
31923 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
31925 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
31927 * RichTextBox.cs: Added initial implementation
31928 * lang.cs: Removed. Was accidentally checked in long time ago
31929 * TODO: Removed. Contents were obsolete
31931 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31933 * PropertiesTab.cs : Added
31935 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
31937 * PropertyGrid.cs : Update
31938 * PropertyGridView.cs : Update
31939 * System.Windows.Forms.resx : Added images and strings
31941 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31943 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
31945 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
31947 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
31948 a busy loop right after the Ungrab the X11 display is otherwise
31951 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
31953 * ThemeWin32Classic.cs: Optimise the use of clipping
31955 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
31957 * DataGrid.cs: fixes recursion bug
31959 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
31962 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
31965 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
31967 * ThemeNice.cs: Draw nice ProgressBars
31969 2005-09-01 Miguel de Icaza <miguel@novell.com>
31971 * VScrollBar.cs: Another buglet found by Aaron's tool.
31973 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
31976 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
31979 - Added nicer menu drawing
31983 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31985 * CreateParams.cs (ToString): Made output match MS
31986 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
31987 handle is already created (to avoid forcing window creation)
31988 * XplatUIX11.cs: Set window text to caption after creating window,
31989 in case Text was set before window was created
31990 * Form.cs: Use this.Text instead of a static string as caption
31992 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
31994 * NotifyIcon.cs: Don't set the window to visible; this screws
31995 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
31996 OnPaint without a bitmap)
31997 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
31998 happen very often anyway; we could add the check to the WM_PAINT
31999 event generation code
32001 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32003 * NotifyIcon.cs: Fill the icon area with a background color, to
32004 avoid 'residue' when transparent icons are drawn
32006 - Handle whole_window == client_window when destroying windows
32007 - SystrayAdd(): Set client_window to whole_window value to
32008 get mouse and other events passed to NotifyIcon
32010 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32012 * Form.cs: Set proper default for Opacity property
32014 - ShowSystray(): Don't bother creating telling the OS
32015 about the systray item if no icon is provided
32016 - Now handles WM_NCPAINT message to deal with whole/client window
32018 - Create window as visible to not get caught by Expose optimization
32019 * Hwnd.cs: Removed debug message
32020 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32021 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
32022 PaintEventStart/End to use new client argument
32024 - Commented out debug messages
32025 - Switched PaintEventStart/End to use new client argument
32026 * XplatUI.cs: Added client window bool to PaintEventStart()/
32027 PaintEventEnd() calls, to support drawing in non-client areas
32028 * XplatUIDriver.cs:
32029 - Added client window bool to PaintEventStart()/PaintEventEnd()
32030 calls, to support drawing in non-client areas
32031 - Added conditional compile to allow using MWF BeginInvoke
32034 - Added some conditional debug output
32035 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32036 whole/client window split
32037 - Implemented handling of client argument to PaintEventStart()/End()
32039 - Throw exception if BeginInvoke() is called and the window handle
32040 or one of the window's parent handles is not created
32041 - Added conditional compile to allow using MWF BeginInvoke on
32043 - get_Parent(): Only sets parent if handle is created. This avoids
32044 forcing window handle creation when parent is set.
32045 - Now fires Layout and Parent changed events in proper order
32046 - Switched to use Handle instead of window.Handle for Z-Order setting,
32047 the get_Parent() patch above causes us to possibly get null for 'window'
32048 - Implemented handling of client argument to PaintEventStart()/End()
32049 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32051 - Now sends a Refresh() to all child windows when Refresh() is called
32053 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
32055 * Form.cs: Added (non-functional) Opacity property
32056 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32058 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
32059 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32060 use export MONO_THEME=nice to activate it.
32061 Currently supported controls:
32065 - TabControl (TabAlignment.Top only, other will follow)
32066 * ThemeEngine.cs: Add theme nice
32067 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32070 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
32072 * Splitter.cs: Resize docked control and its neighbor.
32074 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32075 -- Making Windows with Menus layout correctly --
32076 * Form.cs : The first leg of the fix
32077 Menu setter - adjust Client Size as needed to make space for the menu
32078 SetClientSizeCore - doesn't call base version to be able to pass the
32079 menu handle to XplatUI.CalculateWindowRect
32080 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32081 * XplatUIX11.cs: The critical second leg of the fix
32082 GetWindowPos needs to use a recalculated client_rect
32083 so that resizing the window doesn't break layout of child controls.
32084 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32085 Lots of \t\n killed
32087 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
32089 * Label.cs: Now properly recalculates width and height on Font and Text
32090 changes if AutoSize is set
32092 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32093 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32095 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
32097 * ImageList.cs: Makes ToString method compatible with MS
32099 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
32101 * MenuAPI.cs: fixes bug 75716
32103 2005-08-11 Umadevi S <sumadevi@novell.com>
32104 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32106 2005-08-11 Umadevi S <sumadevi@novell.com>
32107 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32109 2005-08-10 Umadevi S <sumadevi@novell.com>
32110 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32112 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
32114 * Menu.cs: fixes bug 75700
32115 * MenuAPI.cs: fixes navigation issues
32117 2005-08-09 Umadevi S <sumadevi@novell.com>
32118 * CheckedListBox.cs - simple fix for GetItemChecked.
32120 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
32122 * ComboBox.cs: Serveral fixes
32123 * ListBox.cs: Serveral fixes
32125 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32127 * ComboBox.cs: Fixes FindString methods and GetItemHeight
32128 * ListBox.cs: Fixes FindString methods
32130 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32132 * DataGrid.cs: fixes bugs exposed by new tests
32134 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
32136 * Mime.cs: Compile Mono assembly references only if compiling
32137 with Mono (Allows to build with VS.Net again)
32139 2005-07-28 Marek Safar <marek.safar@seznam.cz>
32141 * Control.cs (PaintControlBackground): Draw background image
32143 (CheckForIllegalCrossThreadCalls): Stubbed.
32145 * Form.cs (OnCreateControl): Center when should be centered.
32147 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32149 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
32151 * Binding.cs: Binding to properties should be case unsensitive
32153 2005-07-18 vlindos@nucleusys.com
32155 * DataGrid.cs: fixes setmember order
32157 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
32159 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32160 * FileDialog.cs: FileDialog is now resizable and uses the new
32163 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
32165 * DataGridTextBoxColumn.cs: default value
32166 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32167 * GridTableStylesCollection.cs: fixes checking MappingName
32168 * DataGridDrawingLogic.cs: fixes drawing logic issues
32169 * DataSourceHelper.cs: rewritten to make compatible with more data sources
32170 * DataGrid.cs: fixes
32172 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
32174 * MimeGenerated.cs: Use case sensitive comparer for
32175 NameValueCollections
32177 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
32179 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
32180 * ThemeWin32Classic.cs: bug fixes, code refactoring
32181 * DataGridDrawingLogic.cs: bug fixes, code refactoring
32182 * DataGrid.cs: bug fixes, code refactoring
32183 * DataGridTextBox.cs: bug fixes, code refactoring
32184 * DataGridColumnStyle.cs: bug fixes, code refactoring
32185 * Theme.cs: bug fixes, code refactoring
32187 2005-07-01 Peter Bartok <pbartok@novell.com>
32189 * TextControl.cs: Quick fix for the reported crash on ColorDialog
32190 and other text box usage
32192 2005-07-01 Jackson Harper <jackson@ximian.com>
32194 * TabControl.cs: Make sure the bottom of the tab covers the pages
32197 2005-06-30 Peter Bartok <pbartok@novell.com>
32199 * Form.cs (ShowDialog): Assign owner of the dialog
32200 * TextBoxBase.cs: Always refresh caret size when deleting, caret
32201 might have been moved to a tag with different height
32203 2005-06-30 Jackson Harper <jackson@ximian.com>
32205 * Form.cs: Don't create an infinite loop when setting focus
32206 * MenuItem.cs: Don't dirty the parents if we don't have any
32208 2005-06-29 Ben Maurer <bmaurer@ximian.com>
32210 * LibSupport.cs: Rename
32212 2005-06-29 Peter Bartok <pbartok@novell.com>
32214 * TextBoxBase.cs: Re-align caret after deleting a character
32216 - DeleteChars(): Ensure that tag covers the provided position
32217 - StreamLine(): Drop reference for dropped tag
32219 2005-06-29 Peter Bartok <pbartok@novell.com>
32222 - Selections now work properly, anchoring at the initial location
32223 and properly extending in either direction (SetSelectionToCaret(),
32224 SetSelectionStart() and SetSelectionEnd())
32225 - No longer redraws the whole control on selection change, now
32226 calculates delta between previous and new selection and only
32227 invalidates/redraws that area
32228 - Fixed FindPos() math off-by-one errors
32229 - Changed DeleteChars() to verify the provided tag covers the
32230 provided position, selections may have a tag that doesn't cover
32231 the position if the selection is at a tag border
32232 - Fixed off-by-one errors in DeleteChars()
32233 - Added missing streamlining check in DeleteChars() to remove
32235 - Implemented Invalidate() method, now properly calculates exposures
32236 between two given lines/positions
32237 - Implemented SetSelection()
32238 - Obsoleted and removed FixupSelection()
32239 - Improved RecalculateDocument() logic, removing code duplication
32241 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32243 * LibSupport.cs: changes to match different input/output arguments.
32245 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32247 * LibSupport.cs: added libsupport.so init routine.
32249 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
32251 * ControlBindingsCollection.cs
32252 - Throws an exception on null datasource when adding
32253 - Checks for duplicated bindings when adding
32255 2005-06-28 Jackson Harper <jackson@ximian.com>
32257 * TreeView.cs (OnKeyDown): Support left and right properly
32258 (navigates as well as expanding and collapsing.
32259 - Add support for Multiply, this expands all the selected nodes
32261 - Fix some tabbing.
32263 2005-06-28 Jackson Harper <jackson@ximian.com>
32265 * TreeView.cs: Implement keyboard navigation, currently supports,
32266 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32267 support for toggling checkboxes with the space bar.
32269 2005-06-28 Jackson Harper <jackson@ximian.com>
32271 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32274 2005-06-28 Jackson Harper <jackson@ximian.com>
32276 * TreeView.cs: Add missing event.
32278 2005-06-27 Peter Bartok <pbartok@novell.com>
32281 - Made line ending size configurable (now allows for counting
32282 lineendings as \n or \r\n)
32283 - Added margin to viewport to keep caret visible on right side
32284 - Fixed translation routines for line/pos to documentpos to consider
32285 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32286 - Fixed some line-endings to be unix style
32287 - Fixed Document.FormatText to perform it's calculations 1-based
32288 - Added descriptions for a few methods that might otherwise get
32290 - Added NOTE section with some basic conventions to remember at
32291 the top of the file
32292 - Major fixup for RichTextBox selection drawing:
32293 * Fixed crashes when multiple tags on a single line were selected
32294 * fixed selection box drawing not overlaying text
32295 * fixed bogus offset calculation for tags not starting at index 1
32296 * Switched behaviour from using multiple Substrings of a
32297 StringBuilder.ToString() to using multiple
32298 StringBuilder.ToString(start, length) statements, hoping this is
32299 faster (kept original version commented out in the code, in case
32300 original version was faster)
32301 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
32303 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32306 2005-06-27 Jackson Harper <jackson@ximian.com>
32308 * TabControl.cs: Move to the left and right with the arrow
32309 keys. These keys don't cycle beyond first and last like
32310 tab. Refresh all the tabs when scrolling them to the left or
32313 2005-06-27 Jackson Harper <jackson@ximian.com>
32316 - ToString: Added method
32317 - CreateParams: Remove TODO and comment
32318 - OnKeyDown: Cycle through bounds properly.
32319 - SelectedIndex: Scroll to the right or left if we need to
32320 display the newly selected tab.
32322 2005-06-23 Jackson Harper <jackson@ximian.com>
32324 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32327 2005-06-23 Jackson Harper <jackson@ximian.com>
32329 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32330 CTRL-SHIFT-TAB, and HOME, END are there any others?
32332 2005-06-23 Jackson Harper <jackson@ximian.com>
32334 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32336 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32338 * DataGridTextBoxColumn.cs: fixes and enhancements
32339 * ThemeWin32Classic.cs: fixes and enhancements
32340 * DataGridBoolColumn.cs: fixes and enhancements
32341 * DataGridDrawingLogic.cs: fixes and enhancements
32342 * CurrencyManager.cs: fixes and enhancements
32343 * DataGrid.cs: fixes and enhancements
32344 * DataGridColumnStyle.cs: fixes and enhancements
32346 2005-06-22 Jackson Harper <jackson@ximian.com>
32348 * TabControl.cs: Add some missing methods that just call into the
32349 base. Make the TabPageCollection's IList interface behave in the
32350 same manner as the MS implementation.
32352 2005-06-22 Peter Bartok <pbartok@novell.com>
32354 * TextControl.cs: Added sanity check
32356 - Fixed wrapping behaviour, don't set wrap on single line controls
32357 (this fixes the breakage of colordialog introduced in an earlier
32359 - Added rudimentary support for autoscrolling right-aligned controls
32360 (still needs fixing, also, center alignment scroll is missing)
32362 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32364 * ScrollBar.cs: Fixes thumbpos on Maximum values
32366 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
32368 * PropertyGridView.cs: Pass context information to UITypeEditors
32370 2005-06-21 Peter Bartok <pbartok@novell.com>
32373 - Now calling PositionCaret with absolute space coordinates
32374 - Enabled vertical scrolling
32375 - Better tracking of scrollbar changes, tied into WidthChange
32377 - Improved cursor tracking
32378 - Removed debug output
32380 - PositionCaret coordinates are now works in absolute space, not
32382 - Improved tracking of document size
32383 - Added events for width and height changes
32385 2005-06-21 Peter Bartok <pbartok@novell.com>
32387 * Form.cs: Set focus to active control when form is activated
32389 - Added word-wrap functionality to RecalculateLine()
32390 - Added some short function descriptions for VS.Net to aid in
32391 writing dependent controls
32392 - Added Caret property, returning the current coords of the caret
32393 - Added ViewPortWidth and ViewPortHeight properties
32394 - Added Wrap property
32395 - Added CaretMoved event
32396 - Removed some old debug code
32397 - Split() can now create soft splits
32398 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32399 - Added method to format existing text
32400 - Fixed size/alignment calculations to use viewport
32401 - RecalculateDocument now can handle changing line-numbers while
32405 - Added some wrap logic, we don't wrap if alignment is not left
32406 - Added casts for scrollbar var, base class switched types to
32407 also support RichTextBoxA
32408 - Implemented handling of scrollbar visibility flags
32411 - Switched scrollbars type to RichTextBoxScrollBars to support
32413 - Added tracking of canvas width/height
32414 - Switched scrollbars to be not selectable (to keep focus on text)
32415 - Added central CalculateDocument() method to handle all redraw
32417 - Added ReadOnly support
32418 - Added WordWrap support
32419 - Fixed handling of Enter key (we now treat it as a DialogKey)
32420 - Fixed caret positioning when h or v scroll is not zero
32421 - Fixed placing/generation of vertical scrollbar
32422 - Added CalculateScrollBars() method to allow updating scrollbar
32423 limits and visibility
32424 - Fixed handling of horizontal scroll
32425 - Added handling of vertical scroll
32426 - Implemented auto-'jump' when caret moves to close to a left or
32427 right border and there is text to be scrolled into view (currently
32428 there's the potential for a stack overflow, until a bug in
32429 scrollbar is fixed)
32431 2005-06-21 Geoff Norton <gnorton@customerdna.com>
32433 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32435 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
32439 - return application/x-zerosize for files with size zero
32440 (if no extension pattern matches).
32441 - check matches collection for strings too.
32442 - return only the first mime type if the name value
32443 collection has more than one mime type.
32445 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
32447 * PropertyGrid.cs: Cleaned up some TODOs
32448 * PropertyGridView.cs: Added support for UITypeEditors
32450 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32452 * DataGrid.cs: clears cached value
32454 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32456 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32457 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32458 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32459 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32461 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
32463 * ThemeWin32Classic.cs: fixes colour
32465 2005-06-15 Peter Bartok <pbartok@novell.com>
32467 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32468 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32469 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32470 * Control.cs: Added some MWFCategory and MWFDescription attributes
32471 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32473 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
32475 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32478 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
32480 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32481 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32482 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32483 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32484 * DataGrid.cs: default datagrid settings for Default Styles, fixes
32485 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32487 2005-06-13 Jackson Harper <jackson@ximian.com>
32489 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32490 isn't printed when the user enables dropping. (X11 does accept
32493 2005-06-13 Jackson Harper <jackson@ximian.com>
32495 * TreeView.cs: Remove some TODOS.
32497 2005-06-13 Jackson Harper <jackson@ximian.com>
32499 * Form.cs: Hook into the mdi framework.
32500 * MdiClient.cs: Use the base control collections add method so
32501 parents get setup correctly. Set the default back colour and dock
32503 * MdiChildContext.cs: New class, this bad actor handles an
32504 instance of an MDI window. Right now there is only basic
32505 support. You can drag, close, and resize windows. Minimize and
32506 Maximize are partially implemented.
32508 2005-06-13 Jackson Harper <jackson@ximian.com>
32510 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32511 freaky when both vals are negative. NOTE: There are probably other
32512 places in XplatUIX11 that this needs to be done.
32514 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
32516 * DataGrid.cs: implement missing methods, move KeyboardNavigation
32517 * DataGridColumnStyle.cs: fixes signature
32519 2005-06-12 Jackson Harper <jackson@ximian.com>
32521 * XplatUIX11.cs: Use sizing cursors similar to the ones on
32524 2005-06-11 Jackson Harper <jackson@ximian.com>
32526 * StatusBarPanel.cs: Signature cleanups. Implement
32529 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
32531 * DataGridTextBoxColumn.cs: Honors aligment
32532 * GridColumnStylesCollection.cs: Contains is case unsensitive
32533 * GridTableStylesCollection.cs: several fixes
32534 * DataGridTableStyle.cs: default column creation
32535 * DataGridDrawingLogic.cs: fixes
32536 * CurrencyManager.cs: ListName property
32537 * DataGrid.cs: multiple styles support
32538 * DataGridColumnStyle.cs: fixes
32541 2005-06-10 Peter Bartok <pbartok@novell.com>
32543 * Control.cs(Select): Moved SetFocus call to avoid potential
32544 loops if controls change the active control when getting focus
32545 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32546 the up/down buttons
32548 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
32550 * ImageListConverter.cs: Implemented
32552 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32554 * MonthCalendar.cs: Wired in NumericUpDown control for year
32556 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32558 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32559 DoubleClick events, since they are not meant to be fired.
32561 2005-06-09 Peter Bartok <pbartok@novell.com>
32563 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32564 Jonathan's standalone controls into MWF, implemented missing
32565 events, attributes and methods; added xxxAccessible classes
32566 * AccessibleObject.cs: Made fields internal so other classes
32567 can change them if needed
32569 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
32571 * UpDownBase.cs: Complete implementation
32572 * NumericUpDown.cs: Complete implementation
32573 * DomainUpDown.cs: Complete implementation
32575 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
32577 * DataGridTextBoxColumn.cs: drawing fixes
32578 * DataGridCell.cs: fixes ToString method to match MSNet
32579 * DataGridTableStyle.cs: fixes
32580 * DataGridBoolColumn.cs: fixes, drawing
32581 * DataGridDrawingLogic.cs: fixes, new methods
32582 * DataGridTextBox.cs: Keyboard and fixes
32584 - Keyboard navigation
32586 - Row selection (single, multiple, deletion, etc)
32589 2005-06-07 Jackson Harper <jackson@ximian.com>
32591 * ThemeWin32Classic.cs: Clear the background area when drawing
32594 2005-06-06 Peter Bartok <pbartok@novell.com>
32596 * ImageListStreamer.cs: Fixed signature for GetData
32597 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32599 - Added missing ChildAccessibleObject class
32600 - Added missing OnXXXFocus overrides, switched to using those
32601 instead of the event handler
32603 - Added Parent property for ControlAccessibleObject
32606 - Added ResetBindings()
32607 * ListBindingConverter.cs: Implemented some methods
32608 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32609 * ImageList.cs: Implemented basic handle scheme, removed TODOs
32610 * ContainerControl.cs: Fixed signature, now subscribing to the
32611 ControlRemoved event instead of overriding the handler, LAMESPEC
32612 * CurrencyManager.cs: Added missing attribute
32613 * MonthCalendar.cs: Added missing properties
32615 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32617 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32619 2005-06-06 Gaurav Vaish and Ankit Jain
32621 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32622 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32624 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32626 * Control.cs: fixes CreateParams Width / Height.
32628 2005-06-05 Peter Bartok <pbartok@novell.com>
32630 * Win32DnD.cs: Removed compilation warnings
32632 2005-06-05 Peter Bartok <pbartok@novell.com>
32634 * Control.cs (CreateParams): Since we don't know if one of the
32635 properties we use is overridden, lets make sure if we fail accessing
32636 we continue with a backup plan
32638 2005-06-05 Peter Bartok <pbartok@novell.com>
32641 - Removed debug output
32642 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32644 - Plugged resource leak
32645 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
32648 2005-06-05 Peter Bartok <pbartok@novell.com>
32650 * XplatUIWin32.cs: Removed DnD code
32651 * Win32DnD.cs: Implemented drop source and drop target functionality
32653 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32655 * UpDownBase.cs: remove duplicate addition of event, enable some code
32656 that was commented out.
32657 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
32658 Validate input when a key is pressed. It works fine now for every
32659 combination of Hexadecimal. Only missing some drawing love when sharing
32660 space with other controls.
32662 2005-06-04 Peter Bartok <pbartok@novell.com>
32665 - We need to pass a window for DragDrop, so enable callback events
32666 - Added DnD callback events when being a DragSource
32667 * XplatUI.cs (StartDrag): Added window handle argument
32668 * XplatUIDriver.cs (StartDrag): Added window handle argument
32669 * QueryContinueDragEventArgs: Made fields internally accessible so
32670 drivers can set them
32671 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
32674 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
32676 * DataGridTextBoxColumn.cs: column text editing
32677 * DataGridTableStyle.cs: Respect columns styles created by the user
32678 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
32679 * DataGridBoolColumn.cs: bool column editing
32680 * DataGrid.cs: fixes to scrolling, properties, etc
32681 * DataGridTextBox.cs: handle keyboard
32682 * DataGridColumnStyle.cs: fixes
32684 2005-06-02 Jackson Harper <jackson@ximian.com>
32686 * ImageListStreamer.cs: Somewhat broken implementation of
32687 GetObjectData. The RLE needs some work to match MS properly.
32689 2005-06-02 Jackson Harper <jackson@ximian.com>
32691 * X11Dnd.cs: Attempting to keep at least one file in MWF
32694 2005-06-02 Peter Bartok <pbartok@novell.com>
32696 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
32699 2005-06-02 Peter Bartok <pbartok@novell.com>
32701 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
32702 * XplatUI.cs: Added DoDragDrop() method
32703 * XplatUIDriver.cs: Added DoDragDrop() method
32705 2005-06-02 Jackson Harper <jackson@ximian.com>
32707 * Splitter.cs: Implement BorderStyle.
32709 2005-06-02 Jackson Harper <jackson@ximian.com>
32711 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
32712 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
32715 2005-06-02 Peter Bartok <pbartok@novell.com>
32718 - Added Data setter
32719 - Fixed broken insertion code for SetData, now also
32720 overwrites any existing entry of the same format name
32721 * Hwnd.cs: Added list of pointers that automatically gets
32722 freed when the window is disposed
32723 * XplatUI.cs: Call driver initialization method when loading
32726 - OnDragLeave takes EventArgs, not DragEventArgs
32727 - Added setting of WS_EX_ACCEPTFILES style when dropping is
32729 - Forces style update when drop state changes
32730 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
32731 not perfect since we cannot (yet) call the IDataObject.GetData()
32732 method, we keep getting 0x80004005 error, dunno why)
32734 2005-06-02 Peter Bartok <pbartok@novell.com>
32736 * DragEventArgs.cs: Make fields internal so we can cache the
32737 object and re-set the fields from XplatUI
32739 2005-06-02 Jackson Harper <jackson@ximian.com>
32741 * Control.cs: Add some internal methods so the DnD subsystem can
32742 raise DnD events. Also call into the driver when AllowDrop is set.
32744 * XplatUIDriver.cs: New method for setting whether or not a window
32745 is allowed to accept drag and drop messages.
32747 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
32749 * ScrollBar.cs: Make sure that values sent in Scroll events
32750 are always between Maximum and Minimum.
32752 2005-06-01 Marek Safar <marek.safar@seznam.cz>
32754 * Menu.cs: Call MenuChanged when menuitem visibility has been
32756 * MenuItem.cs: Rebuild menu when item is (not) visible.
32757 * MainMenu.cs: MainMenu has special MenuChanged.
32758 * Theme.cs: Caption and FrameBorderSize are not fixed.
32759 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
32760 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
32762 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
32763 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
32765 2005-05-30 Jackson Harper <jackson@ximian.com>
32767 * DataFormat.cs: We can't statically initialize this stuff because
32768 it calls into the xplatui and could create a loop. So we lazy init
32771 2005-05-28 Jackson Harper <jackson@ximian.com>
32773 * Control.cs: Proper implementation of Product(Name/Version).
32775 2005-05-27 Jackson Harper <jackson@ximian.com>
32777 * DataObject.cs: Dont crash if no data is found.
32779 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32780 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
32781 as per status page, guessing it should be set to true
32783 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
32785 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
32786 * DataGridTableStyle.cs: set proper formatting text, def header text
32787 * ThemeWin32Classic.cs: new themable paramaters
32788 * DataGridBoolColumn.cs: paint check box, get data, fixes
32789 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
32790 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
32791 * DataGridColumnStyle.cs: fixes
32792 * Theme.cs: new themable paramaters
32794 2005-05-26 Peter Bartok <pbartok@novell.com>
32796 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
32798 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32799 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
32801 2005-05-24 Peter Bartok <pbartok@novell.com>
32803 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
32804 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
32805 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
32806 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
32807 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
32808 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
32809 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
32810 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
32811 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
32812 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
32813 missing attributes, etc
32814 * DataGridPreferredColumnWidthTypeConverter.cs: Added
32816 2005-05-24 Peter Bartok <pbartok@novell.com>
32818 * Help.cs: Added, implemented trivial functions, throws up MessageBox
32819 when user tries to get help
32820 * DataObject.cs, DataFormats.cs, LinkArea.cs,
32821 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
32822 to suppress warnings
32823 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
32824 avoid unreachable code warning
32826 2005-05-20 Peter Bartok <pbartok@novell.com>
32828 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
32830 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32832 * DataGridTextBoxColumn.cs: Basic painting methods
32833 * DataGridTableStyle.cs: Set table style in the column
32834 * ThemeWin32Classic.cs: Use Theme for colors
32835 * DataGridDrawingLogic.cs: Implement more drawing
32836 * DataGrid.cs: drawing, theming, enhacements, fixes
32837 * DataGridColumnStyle.cs: fixes, drawing
32838 * Theme.cs: theming for Datagrid
32840 2005-05-20 Peter Bartok <pbartok@novell.com>
32842 * Cursor.cs: Implemented GetObjectData() method
32844 2005-05-20 Peter Bartok <pbartok@novell.com>
32846 * Cursors.cs: Added setting of cursor name
32848 - Implemented constructors
32849 - Implemented Draw and DrawStretched
32850 - Implemented Current property
32851 - Implemented == and != operators
32852 - Implemented Dispose()
32853 - Implemented ToString
32854 - Added missing attributes
32856 - Added missing reset for OverrideCursor when DoEvents is called
32857 - Fixed creation of cursor, logic was wrong
32859 - Added missing reset for OverrideCursor when DoEvents is called
32860 - Fixed creation of cursor, bit arrays were swapped
32861 * Clipboard.cs: Removed obsolete MonoTODO attribute
32863 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32865 * ComboBox.cs: fixes OnSelectedItemChanged
32866 * ControlBindingsCollection.cs: fixes item range check
32868 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
32871 - Calc preferred height properly
32872 - Implement missing properties
32874 * NumericUpDown.cs: Implement missing events
32876 2005-05-19 Jackson Harper <jackson@ximian.com>
32878 * TabControl.cs: New method that resizes the tab pages before
32879 redrawing them. This as needed as the control is double buffered
32880 and sizing will not be recalculated unless ResizeTabPages is
32882 * TabPage.cs: Set base.Text instead of Text in the constructor so
32883 that UpdateOwner does not get called. Use the new Redraw method of
32884 TabControl instead of Refresh so the sizing is recalculated.
32885 * ThemeWin32Classic.cs: Draw the text for button tabs.
32887 2005-05-19 Jackson Harper <jackson@ximian.com>
32889 * Control.cs: Paint control background images. Fix typo where
32890 PaintControlBackground was not getting called correctly.
32892 2005-05-19 Peter Bartok <pbartok@novell.com>
32894 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
32895 I can investigate, apparently I broke FileDialog
32897 2005-05-19 Marek Safar <marek.safar@seznam.cz>
32899 * AxHost.cs: Some simple properties.
32900 * Control.cs: window must be accessible after ctor.
32901 * Form.cs: Added TransparencyKey property.
32902 * TextBoxBase.cs: Implemented Clear. Text property can be null.
32903 * XplatUIWin32.cs: SetBorderStyle implemented.
32905 2005-05-18 Peter Bartok <pbartok@novell.com>
32907 * DataObject.cs: Entries are not global but particular to the
32908 DataObject, now it behaves that way
32909 * XplatUIWin32.cs: Implemented Clipboard methods
32910 * Clipboard.cs: Implemented
32911 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
32912 * XplatUIOSX.cs: Updated to final clipboard prototypes
32913 * XplatUIX11.cs: Implemented Clipboard methods
32914 * XplatUIDriver.cs: Updated to final clipboard prototypes
32915 * XplatUIStructs.cs:
32916 - Added BITMAPINFOHEADER struct
32917 - Added ClipboardFormats enum
32919 - Added ClipboardStruct
32920 - Added Atom enum items for clipboard types
32921 - Fixed atom types for Selection event structures
32923 - Added internal properties and methods for drivers to enumerate
32925 - Switched initialization method to allow drivers to assign their
32926 own IDs even for the MS predefined clipboard IDs
32927 * XplatUI.cs: Updated to final clipboard interface
32929 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32930 * PropertyGridView.cs: Fixed compiler warnings.
32932 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
32933 * PropertyGrid.cs: Added some event calls
32934 * PropertyGridView.cs: Change drawing code to use double buffering
32935 * PropertyGridTextBox.cs: Changed Text property name
32936 * GridItem.cs: Added Bounds property.
32937 * GridEntry.cs: Added Bounds property.
32939 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
32941 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
32942 since GetType() may not return the correct type if the object is
32945 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
32947 * TreeNodeCollection.cs: fixes get/set item ranges
32949 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32951 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
32953 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
32955 * ComboBox.cs: Fix item range comparation
32956 * ListView.cs: Fix item range comparation
32958 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
32961 - Clear example panel when OnPaint is called
32962 - Better solution for displaying the example panel text
32963 - Select default indexes in the ListBoxes
32965 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32967 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
32969 2005-05-11 Peter Bartok <pbartok@novell.com>
32971 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
32972 * SelectionRangeConverter.cs: Implemented
32973 * PropertyGrid.cs: Fixed attribute value
32975 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
32976 - Added Sebastien Pouliot's CAS Stack Propagation fixes
32977 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
32978 that's common to all drivers. First methods to go there are
32979 Sebastien Pouliot's CAS Stack Propagation helper methods
32980 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
32981 Sebastien Pouliot for CAS Stack Propagation
32983 2005-05-11 Geoff Norton <gnorton@customerdna.com>
32986 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
32988 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
32990 * DataGridTextBoxColumn.cs: fixed some members
32991 * GridColumnStylesCollection.cs: indexed column is case insensitive
32992 * DataGridTableStyle.cs: fixes
32993 * ThemeWin32Classic.cs: add new theme parameter
32994 * Theme.cs: add new theme parameter
32995 * DataGridDrawingLogic.cs: Datagrid's drawing logic
32996 * DataGrid.cs: fixes, new internal properties, etc.
32997 * DataGridColumnStyle.cs: allows to set grid value
33000 2005-05-10 Peter Bartok <pbartok@novell.com>
33002 * AccessibleObject.cs:
33003 - Removed MonoTODO attribute on help, method is correct
33004 - Fixed Bounds property
33005 * AxHost.cs: Moved MonoTODO
33006 * ButtonBase.cs: Now setting AccessibleObject properties
33007 * RadioButton.cs: Setting proper AccessibleObject role
33008 * CheckBox.cs: Setting proper AccessibleObject role
33009 * ControlBindingsCollection.cs: Added properties, methods and attributes
33010 * DataFormats.cs: Fixed awkward internal API, and changed to enable
33011 userdefined DataFormats.Format items as well
33012 * ListControl.cs: Removed data_member from the public eye
33013 * OpenFileDialog.cs:
33014 - Made class sealed
33015 - Added missing attributes
33016 * SaveFileDialog.cs: Added missing attributes
33017 * ImageListStreamer.cs: Fixed code that caused warnings
33018 * LinkLabel.cs: Removed unreachable code
33019 * TreeView.cs: Fixed code that caused warnings
33020 * PropertyGridView.cs: Fixed code that caused warnings
33021 * GridColumnStylesCollection.cs: Added missing attributes
33022 * GridTableStylesCollection: Added missing attribute
33023 * PropertyManager: Added .ctor
33024 * SecurityIDType: Added
33025 * DataObject.cs: Implemented class
33026 * LinkArea.cs: Added missing attribute
33028 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
33030 * RadioButton.cs: call base method to allow to fire OnClick event
33031 * UpDownBase.cs: OnMouseUp call base method
33032 * CheckedListBox.cs: call base method before returning
33033 * TrackBar.cs: call base method before returning
33036 2005-05-10 Peter Bartok <pbartok@novell.com>
33038 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33041 2005-05-10 Peter Bartok <pbartok@novell.com>
33043 * DataFormats.cs: Implemented
33044 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33045 XplatUIX11.cs: Added Clipboard APIs
33046 * XplatUIWin32.cs: Implemented Clipboard APIs
33047 * FolderBrowserDialog.cs: Added missing event, attributes
33049 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
33051 * CheckBox.cs: call base method to allow to fire OnClick event
33053 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
33055 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33057 2005-05-06 Peter Bartok <pbartok@novell.com>
33059 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33060 * Screen.cs: Implemented
33061 * HelpNavigator.cs: Added
33062 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33064 * HelpProvider.cs: Implemented all we can do until we have a CHM
33065 help library (which means that "What's This" does work now)
33067 2005-05-06 Jackson Harper <jackson@ximian.com>
33069 * XplatUIX11.cs: Fix waking up the main loop.
33071 2005-05-05 Peter Bartok <pbartok@novell.com>
33073 * XplatUI.cs: Updated revision
33074 * Form.cs: Removed enless loop
33075 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33076 * Label.cs (OnPaint): Added call to base.OnPaint()
33077 * ToolTip.cs: Made ToolTipWindow reusable for other controls
33078 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33079 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33081 * ButtonBase.cs: Moved base.OnPaint() call to end of method
33082 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33083 to ToolTip.ToolTipWindow for drawing and size methods; this allows
33084 reuse of ToolTipWindow by other controls
33085 * SizeGrip.cs: Moved base.OnPaint() call to end of method
33086 * XplatUIX11.cs: Now clipping drawing area (experimental)
33087 * PictureBox.cs: Moved base.OnPaint() call to end of method
33088 * Theme.cs: Fixed ToolTip abstracts to match new format
33089 * ErrorProvider.cs: Implemented
33091 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
33093 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33097 - Implements LinkBehavior
33098 - Fixes many issues
33100 2005-05-03 Jackson Harper <jackson@ximian.com>
33102 * ListView.cs: Calculate the scrollbar positioning on resize and
33103 paint, so they get put in the correct place.
33105 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
33107 * ColorDialogs.cs: The small color panels are now handled by
33108 SmallColorControl. This fixes drawing of the focus rectangle
33109 and adds a 3D border.
33111 2005-05-03 Peter Bartok <pbartok@novell.com>
33113 * Control.cs: Modified version of Jonathan Chamber's fix for
33116 2005-05-03 Jackson Harper <jackson@ximian.com>
33118 * ListView.cs: Remove redraw variable. Control now handles whether
33119 or not a redraw needs to be done, and will only raise the paint
33120 event if redrawing is needed.
33122 2005-05-03 Jackson Harper <jackson@ximian.com>
33124 * Splitter.cs: No decorations for the splitter form. Cache the
33127 2005-05-03 Jackson Harper <jackson@ximian.com>
33129 * TreeView.cs: Use dashed lines to connect nodes. Use the
33130 ControlPaint method for drawing the focus rect instead of doing
33133 2005-05-02 Peter Bartok <pbartok@novell.com>
33135 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33137 2005-04-29 Jackson Harper <jackson@ximian.com>
33139 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33140 entire image buffer. Just clear the clipping rectangle.
33142 2005-04-29 Jackson Harper <jackson@ximian.com>
33144 * ThemeWin32Classic.cs: Don't draw list view items that are
33145 outside the clipping rectangle.
33147 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
33149 * ListBox.cs: added horizontal item scroll
33151 2005-04-29 Jackson Harper <jackson@ximian.com>
33153 * ThemeWin32Classic.cs: Remove some old debug code that was
33154 causing flicker with the new double buffering code.
33156 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
33158 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33159 behave like combobox and comboboxlist (still not sure if this is
33162 2005-04-28 Jackson Harper <jackson@ximian.com>
33164 * ThemeWin32Classic.cs: Don't fill the middle of progress
33165 bars. This fills areas outside of the clip bounds that don't need
33168 2005-04-28 Jackson Harper <jackson@ximian.com>
33170 * Control.cs: Don't expose functionality to touch the image buffers.
33172 * ListView.cs: We do not need to (and no longer can) manipulate
33173 the image buffers directly. All of this is handled by Control.
33175 2005-04-28 Peter Bartok <pbartok@novell.com>
33177 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33178 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33179 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33181 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33184 - Adjust control's height for non-simple comboboxes (bug fix)
33186 * MenuAPI.cs: remove unused var
33187 * ScrollBar.cs: remove unsed var
33189 * ListBox.cs: unselect items when clearing
33191 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33193 * ListControl.cs: honors OnPositionChanged and default Selected Item
33194 * ListBox.cs: unselect items when clearing
33196 2005-04-27 Jackson Harper <jackson@ximian.com>
33198 * X11Keyboard.cs: Initialize a default keyboard and give a warning
33199 if a "correct" keyboard is not found. This will make us not crash,
33200 but might give some users bad keyboard layouts...seems to be the
33201 same thing rewind does.
33203 2005-04-27 Jackson Harper <jackson@ximian.com>
33205 * BindingManagerBase.cs: Attach the current/position changed
33206 handlers to their respective events.
33208 2005-04-27 Jackson Harper <jackson@ximian.com>
33210 * Control.cs: Make sure that the first WM_PAINT does a full draw,
33212 * ThemeWin32Classic.cs: Don't fill the background for picture
33213 boxes. This could overright user drawing.
33214 * ComboBox.cs: Just fill the clipping rect not the entire client
33215 rect when drawing the background. This prevents pieces of the
33216 image buffer from getting overwritten and is theoretically faster.
33218 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
33220 * ComboBox.cs: Databinding support fixes, fire missing events
33221 * ListControl.cs: implement missing methods and properties, fixes
33222 * ThemeWin32Classic.cs: Databiding support on Drawing
33223 * CheckedListBox.cs: Databinding support fixes, fire missing events
33224 * ListBox.cs: Databinding support fixes, fire missing events
33226 2005-04-25 Peter Bartok <pbartok@novell.com>
33228 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33230 2005-04-25 Jackson Harper <jackson@ximian.com>
33232 * TreeView.cs: Use the horizontal scrollbars height not width when
33233 determining how much of the client area is available.
33235 2005-04-25 Jackson Harper <jackson@ximian.com>
33237 * Control.cs: Double buffering is handled differently now. As per
33238 the spec, the extra buffer is created in the WM_PAINT message and
33239 passed down to the control's drawing code.
33247 * PropertyGridView.cs:
33259 * DateTimePicker.cs:
33261 * TreeView.cs: Update to new double buffering system.
33262 * MonthCalendar.cs: Uncomment block, as Capture is now
33263 working. Update to new double buffering
33264 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33265 * PaintEventArgs.cs: New internal method allows us to set the
33266 graphics object. This is used for double buffering.
33267 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33268 rectangle. The internal paint_area var has been removed from
33269 StatusBar. The clipping rect should be used instead.
33270 * Theme.cs: Give the PictureBox drawing method a clipping rect.
33271 * TabPage.cs: The RefreshTabs method was removed, so just call the
33272 tab controls Refresh method now.
33273 * TabControl.cs: Update to new double buffering. Make sure the
33274 handle is created before sizing the tab pages, otherwise we will
33275 get stuck in a loop.
33277 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
33279 * LinkLabel.cs: Fix typo, bug #74719; patch
33280 from Borja Sanchez Zamorano
33282 2005-04-22 Jackson Harper <jackson@ximian.com>
33284 * TreeNode.cs: Implement Handle stuff.
33285 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33287 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
33289 * DataGridTextBoxColumn.cs: call base constructors, fixes
33290 * GridColumnStylesCollection.cs: missing events, methods, and functionality
33291 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33292 * DataGridTableStyle.cs: implements create default column styles
33293 * DataGridBoolColumn.cs: which types can handle
33294 * DataGrid.cs: missing methods, fixes, new functionality
33295 * DataGridColumnStyle.cs: fixes
33297 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
33298 * FolderBrowserDialog.cs:
33299 - Use a thread to fill the TreeView
33300 - Adjusted some sizes
33302 2005-04-19 Peter Bartok <pbartok@novell.com>
33304 * LinkLabel.cs: (Re-)create the pieces when setting the Text
33305 property. Fixes #74360.
33307 2005-04-19 Jackson Harper <jackson@ximian.com>
33309 * XEventQueue.cs: Lock when getting the lockqueue size.
33310 * PictureBox.cs: Call base OnPaint
33312 2005-04-19 Peter Bartok <pbartok@novell.com>
33314 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33315 messages were no longer being processed (this broke BeginInvoke)
33318 2005-04-18 Jackson Harper <jackson@ximian.com>
33320 * TreeView.cs: buglet that caused node images to get drawn
33321 regardless of whether or not they were in the clipping rectangle.
33323 2005-04-18 Jackson Harper <jackson@ximian.com>
33325 * CurrencyManager.cs: There are four rules for GetItemProperties:
33326 - If the type is an array use the element type of the array
33327 - If the type is a typed list, use the type
33328 - If the list contains an Item property that is not an object, use
33330 - use the first element of the list if there are any elements in
33333 2005-04-17 Jackson Harper <jackson@ximian.oom>
33335 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33336 click. This handles offsets for scrolling properly and reduces
33337 memory. Also fixed GetNode to not offset now that TopNode works
33339 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33341 2005-04-17 Jackson Harper <jackson@ximian.com>
33343 * CursorConverter.cs: Initial implementation.
33345 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33347 * ListControl.cs: work towards complex data binding support on ListControl
33348 * CurrencyManager.cs: work towards complex data binding support on ListControl
33349 * ListBox.cs: work towards complex data binding support on ListControl
33352 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33354 * GridTableStylesCollection.cs: fixes name and constructor
33355 * DataGridTableStyle.cs: fixes
33356 * DataGridBoolColumn.cs: fixes names and constructors
33357 * DataGrid.cs: define methods and properties. Some init implementations
33358 * DataGridCell.cs: define methods and properties. Some init implementations
33359 * GridTablesFactory.cs: Define methods and properties
33361 2005-04-15 Geoff Norton <gnorton@customerdna.com>
33363 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
33364 graphics port changes. We still want the coordinates in global screen
33367 2005-04-14 Jackson Harper <jackson@ximian.com>
33369 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33370 check plus minus or checkbox clicks unless those features are enabled.
33372 2005-04-14 Jackson Harper <jackson@ximian.com>
33374 * TreeView.cs: Add methods for setting the top and bottom visible
33375 nodes. TreeNode::EnsureVisible uses these methods.
33376 * TreeNode.cs: Implement EnsureVisible
33378 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
33380 * Form.cs: Pospone menu assignation if the window has not been created yet
33381 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33384 2005-04-12 Jackson Harper <jackson@ximian.com>
33386 * TreeView.cs: Set the TopNode properly when scrolling
33387 occurs. This has the added benifit of reducing the amount of
33388 walking that needs to be done when drawing. Also removed an old
33390 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33392 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
33394 * Timer.cs: fixes interval setting when the timer is already enabled
33396 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
33398 * FolderBrowserDialog.cs: First approach
33400 2005-04-09 Peter Bartok <pbartok@novell.com>
33402 * FolderBrowserDialog: Added
33404 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
33406 * LinkLabel.cs: move drawing code into the theme
33407 * ThemeWin32Classic.cs: drawing code and painting background bugfix
33408 * Theme.cs: define DrawLinkLabel method
33410 2005-04-05 Jackson Harper <jackson@ximian.com>
33412 * BindingContext.cs: Use weak references so these bad actors don't
33413 stay alive longer then they need to.
33415 2005-04-05 Jackson Harper <jackson@ximian.com>
33417 * ListControl.cs: Basic implementation of complex databinding.
33419 * ListBox.cs: Add calls to ListControl databinding methods.
33421 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
33424 - Don't change PopupButtonState to Normal when the
33425 PopupButton gets pressed several times.
33426 - Renamed ButtonPanel to PopupButtonPanel
33428 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
33430 * ColorDialog.cs: Use cached objects instead of creating them
33431 * LinkLabel.cs: Use cached objects instead of creating them
33432 * Splitter.cs: Use cached objects instead of creating them
33433 * FontDialog.cs: Use cached objects instead of creating them
33434 * PropertyGridView.cs: Use cached objects instead of creating them
33435 * MessageBox.cs: Use cached objects instead of creating them
33436 * FileDialog.cs: Use cached objects instead of creating them
33437 * ThemeWin32Classic.cs: Use cached objects instead of creating them
33438 * TreeView.cs: Use cached objects instead of creating them
33440 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
33442 * Control.cs: use Equals to compare the font since no == op
33443 * ScrollBar.cs: use Equals to compare the font since no == op
33445 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
33447 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33449 2005-04-01 Jackson Harper <jackson@ximian.com>
33451 * Binding.cs: Implement IsBinding.
33452 * BindingManagerBase.cs:
33453 * PropertyManager.cs:
33454 * CurrencyManager.cs: Add IsSuspended property.
33456 2005-04-01 Jackson Harper <jackson@ximian.com>
33458 * Binding.cs: Had some IsAssignableFrom calls backwards.
33460 2005-04-01 Jackson Harper <jackson@ximian.com>
33462 * Binding.cs: Handle null data members when pulling data.
33463 * PropertyManager.cs: Handle the data member being a property that
33466 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33468 * DataGridTextBoxColumn.cs: fixes signature
33469 * DataGrid.cs: calls right constructor
33471 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33473 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33474 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33475 * GridTableStylesCollection.cs: implements GridTableStylesCollection
33476 * DataGridTableStyle.cs: implements DataGridTableStyle
33477 * DataGridBoolColumn.cs: implements DataGridBoolColumn
33478 * DataGridTextBox.cs: implements DataGridTextBox
33479 * DataGridColumnStyle.cs: implements DataGridColumnStyle
33481 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
33483 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33485 2005-03-29 Peter Bartok <pbartok@novell.com>
33488 - Properly implemented CompanyName property
33489 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33490 returns a path that includes CompanyName, ProductName and
33491 Version (fixes bug #70330)
33493 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
33495 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33498 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33500 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33502 - Added ReadOnly CheckBox
33503 - Further refactoring: moved some code from Open-/SaveFileDialog
33506 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33508 * OpenFileDialog.cs: Fixed CheckFileExists
33510 Moved FileView and DirComboBox outside FileDialog class.
33511 They can now be used outside FileDialog
33513 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33515 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33516 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33518 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33520 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33521 - Added missing CreatePrompt property in SaveDialog
33522 - Overall SaveDialog handling should be better now
33523 - Added non standard ShowHiddenFiles property
33524 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33525 - Added InitialDirectory and RestoreDirectory support
33527 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
33529 * FileDialog.cs: Made dirComboBox usable
33531 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
33533 * FileDialog.cs: Added Filter support (case sensitiv)
33535 2005-03-24 Jackson Harper <jackson@ximian.com>
33537 * TabControl.cs: Need a couple more pixels for the lines.
33539 2005-03-23 Jackson Harper <jackson@ximian.com>
33541 * TabControl.cs: Give the tab page focus when it is selected.
33543 2005-03-23 Jackson Harper <jackson@ximian.com>
33545 * TabControl.cs: Account for the drawing of tabs borders when
33546 invalidating. If the slider was clicked dont do click detection on
33549 2005-03-23 Jackson Harper <jackson@ximian.com>
33551 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33553 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
33555 * CategoryGridEntry.cs: Added
33556 * GridItem.cs: Added helper properties
33557 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33558 * GridEntry.cs: Updated code for collection
33559 * PropertyGrid.cs: Cleaned up some formatting
33560 * PropertyGridView.cs: Added drop down functionality for enums.
33561 * GridItemCollection.cs: Added enumerator logic
33562 * PropertyGridEntry.cs: Added
33564 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33567 - Removed unnecessary commented code
33568 - Fixed handling for entering the filename manually in the combobox
33570 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33572 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33574 2005-03-18 Peter Bartok <pbartok@novell.com>
33576 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33577 them being touching the border
33579 2005-03-18 Peter Bartok <pbartok@novell.com>
33581 * TextControl.cs: Quick hack to center text better
33583 2005-03-18 Peter Bartok <pbartok@novell.com>
33586 - Don't throw NotImplemented exceptions, just print a notice once
33587 instead (requested by Miguel). This makes running existing SWF
33590 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33591 - Added context menu trigger on right click
33592 * Panel.cs: Trigger invalidate on resize
33594 - Removed old double-buffer drawing
33595 - Added ResizeRedraw style to force proper update of statusbar
33597 - Removed debug output
33598 * ThemeWin32Classic.cs:
33599 - Fixed drawing of status bar, now draws Text property if there
33600 are no defined panels
33602 2005-03-18 Jackson Harper <jackson@ximian.com>
33604 * ImageList.cs: When the image stream is set pull all the images
33606 * ImageListStreamer.cs: Implement reading image list streams.
33608 2005-03-18 Peter Bartok <pbartok@novell.com>
33610 * ThemeWin32Classic.cs (DrawPictureBox):
33611 - Fixed calculations for centered drawing
33612 - Fixed drawing for normal mode, not scaling the image on normal
33614 2005-03-18 Peter Bartok <pbartok@novell.com>
33616 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33619 - Made Open/Save button the accept button for FileDialog
33620 - Tied the cancel button to the IButtonControl cancel button
33621 - Save/Open now properly builds the pathname
33622 - Now handles user-entered text
33623 - Preventing crash on right-click if no item is selected
33624 - Fixed Text property, now uses contents of textbox
33625 - Fixed SelectedText property, now just returns the text part that
33626 is selected in the text box
33628 2005-03-18 Jackson Harper <jackson@ximian.com>
33630 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33631 rect, make sure to de-adjust the interior rect after drawing the
33634 2005-03-18 Peter Bartok <pbartok@novell.com>
33636 * MenuAPI.cs: Remove menu *before* executing selected action to
33637 prevent the menu from 'hanging around'
33639 2005-03-17 Geoff Norton <gnorton@customerdna.com>
33641 * XplatUIOSX.cs: Implemented WorkingArea property
33643 2005-03-17 Peter Bartok <pbartok@novell.com>
33645 * XplatUIX11.cs: Fixed menu coord calculations
33646 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
33647 for calculating offsets
33649 2005-03-17 Peter Bartok <pbartok@novell.com>
33651 * Hwnd.cs: Do not consider menu presence for default client
33652 rectangle location/size
33653 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
33654 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
33655 translation functions
33656 * FileDialog.cs: Fixed (what I presume is a) typo
33658 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
33660 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
33661 X access (avoids X-Async errors)
33663 2005-03-16 Jackson Harper <jackson@ximian.com>
33665 * TabControl.cs: Raise the SelectedIndexChanged event.
33667 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
33669 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33670 - Removed vertical ToolBar and replaced it with a custom panel
33671 (desktop and home button already work)
33672 - Added Help button (some controls get resized or relocated then)
33673 - Draw correct text depending on Open or Save.
33674 - Fixed some typos...
33676 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
33679 - Only change Maximum and Minimum when need it (bug fix)
33681 2005-03-15 Peter Bartok <pbartok@novell.com>
33683 * Form.cs: Use Handle for icon, to trigger creation if
33684 the window does not yet exist
33686 - CanSelect: Slight performance improvement
33687 - Focus(): Preventing possible recursion
33688 - Invalidate(): Removed ControlStyle based clear flag setting
33689 - WM_PAINT: fixed logic for calling OnPaintBackground
33690 - WM_ERASEBKGND: Fixed logic, added call to new driver method
33691 EraseWindowBackground if the control doesn't paint background
33693 - Moved EraseWindowBackground() method to internal methods
33694 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
33695 is sent via SendMessage on BeginPaint call on Win32
33697 - Added EraseWindowBackground() method
33698 - No longer sends WM_ERASEBKGND on .Expose, but on call to
33699 PaintEventStart, which more closely matches Win32 behaviour
33700 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
33701 - Fixed SetFocus() to properly deal with client and whole windows
33702 * Hwnd.cs: Added ErasePending property
33703 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
33704 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
33706 2005-03-12 Geoff Norton <gnorton@customerdna.com>
33709 - Fix hard loop when timers exist.
33710 - Fix bugs with middle and right click for 3 button mice.
33712 2005-03-11 Peter Bartok <pbartok@novell.com>
33715 - get_WorkingArea: Need to call X directly, GetWindowPos only
33716 returns cached data now
33717 - Added sanity check to GetWindowPos hwnd usage
33719 2005-03-11 Jackson Harper <jackson@ximian.com>
33721 * BindingManagerBase.cs: This method isn't used anymore as
33722 PullData now updates the data in the control.
33724 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
33726 * Form.cs: fixes menu drawing on X11
33727 * MenuAPI.cs: fixes menu drawing on X11
33729 2005-03-11 Peter Bartok <pbartok@novell.com>
33731 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
33732 from Jonathan Gilbert; should fix bug #73606
33733 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
33734 in Screen coordinates. Thanks, Jordi.
33735 * Form.cs: Added missing attribute
33737 2005-03-11 Peter Bartok <pbartok@novell.com>
33740 - Rudimentary Mdi support
33741 - Removed outdated FormParent code
33742 - Implemented lots of missing properties and methods, still missing
33743 transparency support
33744 - Added missing attributes
33745 - Implemented support for MaximumBounds
33746 - Added firing of various events
33747 * XplatUI.cs: Added SetIcon() method
33748 * XplatUIDriver.cs: Added SetIcon() abstract
33749 * XplatUIOSX.cs: Stubbed out SetIcon() method
33751 - Implemented SetIcon() support
33752 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
33753 - Switched to unix line endings
33755 - Made POINT internal so for can access it as part of MINMAX
33756 - Implemented SetIcon() support
33757 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
33758 native Mdi support again, might have to go managed)
33759 * Control.cs: Now fires the StyleChanged event
33760 * MdiClient.cs: Added; still mostly empty
33762 2005-03-10 Peter Bartok <pbartok@novell.com>
33764 * SaveFileDialog.cs: Added emtpy file
33766 2005-03-08 Peter Bartok <pbartok@novell.com>
33768 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
33769 in turn triggers OnCreateContro) when creating a handle for the
33771 * TextControl.cs: Fixed endless loop in certain cases when
33772 replacing the current selection
33774 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
33777 - Honors NewValue changes in Scroll events allowing apps to change it
33778 - Adds First and Last Scroll events
33779 - Fixes Thumb events
33781 2005-03-07 Peter Bartok <pbartok@novell.com>
33783 * Hwnd.cs: Added DefaultClientRectangle property
33784 * XplatUI.cs: Now using the X11 driver Where() method, which provides
33785 more detailed debug information
33787 - Fixed size-change feedback loop, where we would pull an old size
33788 off the queue and mistakenly change our window's size to an
33790 - Now compressing ConfigureNotify events, to reduce looping and
33792 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
33795 2005-03-07 Jackson Harper <jackson@ximian.com>
33797 * Binding.cs: Push data pushes from data -> property. Check if the
33798 property is readonly when attempting to set it.
33800 2005-03-07 Jackson Harper <jackson@ximian.com>
33802 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
33803 instead of IsSubclassOf. Pulling data now sets the value on the
33805 * PropertyManager.cs:
33806 * CurrencyManager.cs: Just need to pull data when updating now,
33807 because PullData will set the value on the control.
33809 2005-03-04 Jackson Harper <jackson@ximian.com>
33811 * Binding.cs: Implement data type parsing and converting on pulled
33812 data. TODO: Are there more ways the data can be converted?
33814 2005-03-04 Jackson Harper <jackson@ximian.com>
33816 * Binding.cs: Support <Property>IsNull checks. Also bind to the
33817 controls Validating method so we can repull the data when the
33818 control loses focus.
33820 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
33823 - Fixes null string format
33826 - Adds enum type checks
33827 - Fixes redrawing and recalc need after changing some properties
33828 - Fixes on focus_item set after the event
33829 - Fixes adding columns after the control has been created
33831 * ThemeWin32Classic.cs:
33832 - Fixes CheckBox focus rectangle
33833 - Fixes ColumnHeader drawing
33836 2005-03-03 Jackson Harper <jackson@ximian.com>
33838 * Binding.cs: Bind to <Property>Changed events so we can detect
33839 when properties are changed and update the data.
33841 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
33844 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
33845 - Fixes ImageList constructor with ImageList container
33846 - Fixes image scaling (wrong parameters at DrawImage)
33848 2005-02-02 Jackson Harper <jackson@ximian.com>
33850 * Binding.cs: Make property searches case-insensitive. Eliminate
33851 some duplicated code.
33853 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
33856 - Handle focus event
33857 - Fix scrollbar events
33858 - Discard highlighted item if remove it
33859 - Fixes SelectedItem with strings
33861 2005-03-01 Peter Bartok <pbartok@novell.com>
33864 - Fixed Visible property, now follows (once again) parent chain
33865 to return false if any control in the chain is visible=false
33866 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
33867 - Fixed several places where is_visible instead of Visible was used
33868 - Implemented FIXME related to focus selection when setting focused
33869 control to be invisible
33871 * XplatUIWin32.cs: Now using proper method to find out if window is
33872 visible. Thanks to Jordi for pointing it out
33874 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
33876 * ComboBox.cs: show/hide scrollbar instead of creating it
33878 2005-02-27 Jackson Harper <jackson@ximian.com>
33880 * CurrencyManager.cs: Add PositionChanged stuff.
33882 2005-02-27 Peter Bartok <pbartok@novell.com>
33884 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
33885 * XplatUIOSX.cs: Added GetMenuOrigin() stub
33886 * XplatUIWin32.cs: Implemented GetMenuOrigin()
33888 - Implemented GetMenuDC()
33889 - Implemented GetMenuOrigin()
33890 - Implemented ReleaseMenuDC()
33891 - Implemented generation of WM_NCPAINT message
33892 - Implemented generation and handling of WM_NCCALCSIZE message
33893 * Form.cs: Added debug helper message for Jordi's menu work
33895 - Modified ClientRect property; added setter, fixed getter to handle
33896 setting of ClientRect
33897 - Added MenuOrigin property
33899 2005-02-26 Peter Bartok <pbartok@novell.com>
33902 - Destroys the caret if a window that's being destroyed contains it
33903 - Ignores expose events coming from the X11 queue for windows that
33904 already are destroyed
33905 - Now uses the proper variable for handling DestroyNotify, before we
33906 marked the wrong window as destroyed
33907 - Improved/added some debug output
33909 2005-02-26 Peter Bartok <pbartok@novell.com>
33911 * X11Keyboard.cs: Fixes to work on 64bit systems
33913 2005-02-26 Peter Bartok <pbartok@novell.com>
33916 - Now calling OnHandleDestroyed from DestroyHandle()
33917 instead of Dispose()
33918 - Removed bogus call to controls.Remove() from DestroyHandle()
33920 2005-02-26 Peter Bartok <pbartok@novell.com>
33922 * Control.cs: Properly destroy child windows when our handle is
33925 2005-02-25 Peter Bartok <pbartok@novell.com>
33928 - Added 'DriverDebug' define to allow tracing XplatUI API calls
33929 - Alphabetized Static Methods and Subclasses
33932 - Added XException class to allow custom handling of X11 exceptions
33933 - Created custom X11 error handler, tied into XException class
33934 - Added support for MONO_XEXCEPTIONS env var to allow the user
33935 to either throw an exception on X errors or continue running
33936 after displaying the error
33937 - Added handling of DestroyNotify message
33938 - Added handler for CreateNotify message (still disabled)
33939 - Improved (tried to at least) Where method to provide file and lineno
33941 - Added XErrorHandler delegate
33942 - Added XRequest enumeration (to suppor translation of errors)
33944 2005-02-25 Jackson Harper <jackson@ximian.com>
33946 * PropertyManager.cs: Implement editing features
33947 * CurrencyManager.cs:
33948 * Binding.cs: First attempt at UpdateIsBinding
33949 * BindingManagerBase.cs: Call UpdateIsBinding before
33950 pushing/pulling data.
33952 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
33954 * MenuAPI.cs: Respect disabled items
33955 * ThemeWin32Classic.cs
33956 - Caches ImageAttributes creation for DrawImageDisabled
33957 - Fixes vertical menu line drawing
33958 - Draws disabled arrows in disable menu items
33960 2005-02-24 Peter Bartok <pbartok@novell.com>
33963 - Added UserData property to allow associating arbitrary objects
33965 - Fixed leak; now removing Hwnd references from static windows array
33967 - Fixed Graphics leak in PaintEventEnd
33968 - Removed usage of HandleData, switched over to Hwnd class
33969 * HandleData.cs: Removed, obsoleted by Hwnd.cs
33971 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33973 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
33974 * ScrollBar.cs: Fixes bug
33975 * TrackBar.cs: removes death code, clipping, mimize refreshes,
33976 keyboard navigation enhancements
33978 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
33980 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
33981 * GroupBox.cs: Add control styles
33982 * Label.cs: Add control styles
33983 * UpDownBase.cs: Add control styles
33984 * ListBox.cs: Add control styles
33985 * XplatUIWin32.cs: Fixes wrong parameter order
33988 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
33990 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
33992 2005-02-23 Jackson Harper <jackson@ximian.com>
33994 * PropertyManager.cs: Implement property binding. This doesn't
33995 seem to work yet though as (I think) there are some bugs in
33996 System.ComponentModel.PropertyDescriptor.
33997 * BindingContext.cs: Use new PropertyManager constructor.
33999 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
34001 * ProgressBar.cs: use clip region in ProgressBar
34002 * ThemeWin32Classic.cs: use clip region in ProgressBar
34004 2004-02-22 Jackson Harper <jackson@ximian.com>
34006 * BindingsCollection.cs: Remove some debug code.
34008 2005-02-22 Jackson Harper <jackson@ximian.com>
34010 * BindingContext.cs:
34011 * ControlBindingsCollection.cs:
34012 * CurrencyManager.cs:
34014 * BindingManagerBase.cs: Initial implementation
34015 * BindingsCollection.cs: Add an internal contains method that the
34016 BindingManagerBase uses to ensure bindings aren't added twice to
34018 * PropertyManager.cs: Stubbed out.
34020 * ContainerControl.cs: Hook up databinding
34022 2005-02-22 Geoff Norton <gnorton@customerdna.com>
34025 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34026 Fixed Invalidate/Update chain.
34027 Fixed tons of other minor bugs (this is almost a complete rewrite).
34029 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
34031 * ComboBox.cs: do subcontrol creation when the control is created
34033 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34035 * Label.cs: fixes image drawing (image and imagelist)
34036 * ThemeWin32Classic.cs: cache brushes
34038 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34040 * Form.cs: Move menu drawing code to Theme class
34041 * ComboBox.cs: Move ComboBox drawing code to Theme class
34042 * MenuItem.cs: Move menu drawing code to Theme class
34043 * MenuAPI.cs: Move menu drawing code to Theme class
34044 * ThemeWin32Classic.cs: New methods
34045 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34046 * ListBox.cs: Move Listbox drawing code to Theme class
34047 * Theme.cs: New methods
34049 2005-02-20 Peter Bartok <pbartok@novell.com>
34052 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34053 only process mnemonics on those)
34054 - Fixed event sequence for key handling; first calling
34055 ProcessKeyEventArgs now
34057 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34058 for processing non-character keys
34059 - Fixed WM_CHAR to generate proper event sequence before processing
34060 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34063 2005-02-19 Peter Bartok <pbartok@novell.com>
34065 * UserControl.cs: Added TextChanged event; added attributes
34066 * SizeGrip.cs: Implemented resizing and optional display of grip
34067 * Form.cs: Fixed attribute
34068 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34069 Changed meaning of ScrollWindow bool argument; instead of the
34070 clear attribute (which will be true usually anyway), it gives the
34071 option of moving child controls as well.
34073 - Changed to match new ScrollWindow argument
34074 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34075 now handles the implicit parent window a WM puts around us
34076 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34078 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34079 * TreeView.cs: Adjusted to new ScrollWindow arguments
34081 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34083 * Form.cs: Menu integration with non-client area
34084 * MenuItem.cs: Menu integration with non-client area
34085 * MenuAPI.cs: Menu integration with non-client area
34087 2005-02-18 Peter Bartok <pbartok@novell.com>
34089 * MethodInvoker.cs: Added
34090 * MdiLayout.cs: Added
34091 * SendKeys.cs: Started implementation
34092 * ErrorIconAlignment.cs: Added
34094 2005-02-18 Peter Bartok <pbartok@novell.com>
34096 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34097 * Form.cs: Added handling for Menu-related Non-client messages
34099 2005-02-17 Peter Bartok <pbartok@novell.com>
34101 * UpDownBase.cs: Fixed typo, compilation errors
34102 * DomainUpDown.cs: Fixed attribute value
34104 2005-02-16 Miguel de Icaza <miguel@novell.com>
34106 * UpDownBase.cs: Attach entry events.
34108 Add ForeColor property, Focused, InterceptArrowKeys (interception
34109 does not work yet).
34111 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
34114 - Redraw non client are on Setmenu
34115 - Calc proper menu starting point
34117 2005-02-17 Peter Bartok <pbartok@novell.com>
34119 * Application.cs: Fixed message_filter check
34121 2005-02-17 Peter Bartok <pbartok@novell.com>
34123 * Application.cs: Now calls registered message filters
34124 * DockStyle.cs: Fixed attribute
34125 * Form.cs: Fixed attribute
34126 * Menu.cs: Fixed attribute
34127 * ToolTip.cs: Fixed attribute
34128 * TreeNode.cs: Added missing attributes and arranged in regions
34129 * PropertyGrid.cs: Fixed signatures
34130 * TreeNodeCollection.cs: Added attributes
34131 * Splitter.cs: Added missing attributes; arranged into regions
34132 * TabPage.cs: Added missing attributes; arranged into regions
34133 * TextBoxBase.cs: Added missing attributes
34134 * TextBox.cs: Added missing attributes
34135 * ArrangeDirection.cs: Added missing attributes
34136 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34137 * ToolBarButton.cs: Fixed attributes
34138 * AnchorStyles.cs: Fixed attribute
34139 * TrackBar.cs: Fixed attributes
34140 * TabControl.cs: Added missing attributes and arranged into regions
34141 * ToolBar.cs: Fixed attribute
34142 * StatusBar.cs: Fixed signature, organized into regions and added
34144 * StatusBarPanel.cs: Fixed attributes
34145 * ContentsResizedEventArgs.cs: Implemented
34146 * ContentsResizedEventHandler.cs: Implemented
34147 * DateBoldEventArgs.cs: Implemented
34148 * DateBoldEventHandler.cs: Implemented
34149 * UpDownEventArgs.cs: Implemented
34150 * UpDownEventHandler.cs: Implemented
34152 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
34154 * Form.cs: first Menu NC refactoring
34155 * MenuAPI.cs: first Menu NC refactoring
34157 2005-02-16 Peter Bartok <pbartok@novell.com>
34159 * ImeMode.cs: Added missing attributes
34160 * Menu.cs: Fixed attribute
34161 * GroupBox.cs: Fixed attribute
34162 * Label.cs: Fixed attribute
34163 * ColorDialog.cs (RunDialog): Removed TODO attribute
34164 * ComboBox.cs: Fixed attributes
34165 * ListControl.cs: Added missing attributes
34166 * PropertyGrid.cs: Fixed attributes
34167 * Control.cs: Fixed attributes
34168 * ListViewItem.cs: Added TypeConverter attribute
34169 * NotifyIcon.cs: Fixed attributes
34170 * ListView.cs: Fixed attributes
34171 * ButtonBase.cs: Fixed attribute
34172 * ImageList.cs: Added missing attributes
34173 * ContainerControl.cs: Fixed signature
34174 * CheckedListBox.cs: Fixed attribute; added missing attributes
34175 * Panel.cs: Fixed attributes
34176 * PropertyTabChangedEventArgs.cs: Added missing attribute
34177 * PropertyValueChangedEventArgs.cs: Added missing attribute
34178 * Binding.cs: Fixed attribute
34179 * ListViewItemConverter: Implemented ListViewSubItemConverter class
34180 * ListBox.cs: Fixed attribute; added missing attributes;
34181 * ScrollableControl.cs: Added missing attributes
34182 * PictureBox.cs: Added missing attributes; implemented missing property
34183 * DateTimePicker.cs: Added missing attributes
34184 * Theme.cs (ToolWindowCaptionHeight): Fixed type
34185 * MonthCalendar.cs: Fixed attributes
34186 * StatusBarPanel.cs: Added missing attributes
34187 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34189 2005-02-16 Peter Bartok <pbartok@novell.com>
34191 * TextBoxBase.cs: The previous method to enforce height yet remember
34192 the requested high was less than ideal, this is an attempt to do
34194 * Control.cs: Added comment about possible problem
34195 * Copyright: Updated format
34196 * GridItemType.cs: Fixed swapped values
34198 2005-02-15 Jackson Harper <jackson@ximian.com>
34200 * BaseCollection.cs: Use property so we never access an
34201 uninitialized list. Also initialize the list in the property.
34203 2005-02-15 Peter Bartok <pbartok@novell.com>
34205 * GroupBox.cs (ProcessMnemonic): Implemented
34206 * Label.cs (ProcessMnemonic): Implemented
34207 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34210 2005-02-15 Peter Bartok <pbartok@novell.com>
34212 * RadioButton.cs (ProcessMnemonic): Implemented
34213 * CheckBox.cs (ProcessMnemonic): Implemented
34215 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34217 - Added internal method to allow calling ProcessMnemonic from other
34219 * ContainerControl.cs:
34220 - Started support for handling validation chain handling
34221 - Implemented ProcessMnemonic support
34222 - Added Select() call to Active, to make sure the active control
34224 * Form.cs: Setting toplevel flag for Forms (this was lost in the
34225 FormParent rewrite)
34226 * ThemeWin32Classic.cs:
34227 - DrawCheckBox(): Fixed stringformat to show hotkeys
34228 - DrawRadioButton(): Fixed stringformat to show hotkeys
34229 * CommonDialog.cs: Removed WndProc override, not needed
34231 2005-02-14 Peter Bartok <pbartok@novell.com>
34233 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34234 missed those in the rewrite
34236 2005-02-14 Miguel de Icaza <miguel@novell.com>
34238 * NumericUpDown.cs (Increment, ToString): Add.
34239 (DecimalPlaces): implement.
34243 * UpDownBase.cs: Add the designer attributes.
34245 2005-02-13 Peter Bartok <pbartok@novell.com>
34247 * Panel.cs: Removed border_style, now in Control
34248 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34249 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34251 2005-02-13 Peter Bartok <pbartok@novell.com>
34253 * MouseButtons.cs: Added missing attributes
34254 * XplatUIStructs.cs: Added enumeration for title styles
34255 * LeftRightAlignment.cs: Added missing attributes
34256 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34257 it compatible with Graphics.FromHwnd()
34258 * SelectedGridItemChangedEventArgs.cs: Fixed property type
34259 * Keys.cs: Added missing attributes
34260 * SelectionRange.cs: Added missing attributes
34261 * SelectionRangeConverter.cs: Added
34263 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34264 ReleaseMenuDC methods
34265 - Renamed ReleaseWindow to UngrabWindow
34266 - Added proper startup notice to allow version identification
34268 - Added missing attributes
34269 - Removed FormParent concept
34270 * Label.cs: Removed border_style field, now in Control
34271 * RadioButton.cs: Now properly selects RadioButton when focus is
34273 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34275 - Added missing attributes
34276 - Added borderstyle handling
34277 - Removed FormParent concept support
34278 - Fixed calls to XplatUI to match changed APIs
34279 - Fixed bug that would case us to use disposed Graphics objects
34280 - Removed unneeded internal methods
34281 - PerformLayout(): Fixed to handle DockStyle.Fill properly
34282 - SelectNextControl(): Fixed to properly check common parents
34283 * TextBoxBase.cs: Removed border_style field (now in Control)
34285 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34286 fixed calculations for form size
34287 - Added support for localized strings and icons
34288 - Improved form size calculations, added border
34289 * ListView.cs: Removed border_style field (now in Control)
34290 * X11Structs.cs: Moved several structs from X11 driver here
34291 * X11Keyboard.cs: Changed debug message
34292 * Application.cs: Removed FormParent concept support
34294 - Resetting end_modal flag
34295 - Removed FormParent concept support
34296 * NativeWindow.cs: Removed FormParent concept support
34297 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34298 Client area and Non-Client whole window to allow support for WM_NC
34300 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34301 prevent using it until it supports Hwnd as per Geoff Norton's request
34302 * ToolBar.cs: Fixed drawing, was not doing proper drawing
34303 * PictureBox.cs: Removed border_style field, now in Control
34304 * XplatUIWin32.cs: Added new driver methods
34306 2005-02-12 Peter Bartok <pbartok@novell.com>
34308 * OpacityConverter.cs: Implemented
34309 * Hwnd.cs: Internal class to support drivers that need to emulate
34310 client area/non-client area window behaviour
34312 2005-02-11 Peter Bartok <pbartok@novell.com>
34314 * KeysConverter.cs: Implemented
34316 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
34318 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34319 * LinkLabel: Added missing attributes
34320 * MainMenu.cs: fixes ToString
34321 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34322 * ListBox.cs: fixes event position
34323 * TrackBar.cs: adds missing attributes and events
34325 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
34327 * MenuItem.cs: Use SystemInformation and bug fixes
34328 * MenuAPI.cs: Use SystemInformation and bug fixes
34330 2005-02-09 Jackson Harper <jackson@ximian.com>
34332 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34333 their keystate otherwise things like VK_MENU get stuck "on".
34335 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
34337 * ListBox.cs: Fixes AddRange bug
34339 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
34342 - Add missing attributes
34343 - Add missing method
34345 * CheckedListBox.cs: Added missing attributes
34346 - Add missing attributes
34347 - Remove extra method
34349 * ComboBox.cs: Added missing attributes
34350 * VScrollBar.cs: Added missing attributes
34351 * ScrollBar.cs: Added missing attributes
34352 * ListBox.cs: Fixes signature, add missing consts
34353 * LinkArea.cs: Added missing attributes
34356 2005-02-08 Peter Bartok <pbartok@novell.com>
34358 * Menu.cs: Added missing attributes
34359 * MainMenu.cs: Added missing attributes
34360 * GroupBox.cs: Added missing attributes
34361 * Label.cs: Added missing attributes
34362 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34364 - Added Instance and Options properties
34365 - Added missing attributes
34366 * Cursor.cs: Made Serializable
34367 * NotifyIcon: Added missing attributes
34368 * MenuItem.cs: Added missing attributes
34369 * TextBoxBase.cs: Implemented AppendText() and Select() methods
34370 * Panel.cs: Added Missing attributes
34371 * MonthCalendar.cs: Fixed CreateParams
34373 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34377 - Fixes issues with links
34378 - Adds the class attributes
34380 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34383 - Fixes button when no items available in dropdown
34384 - Fixes repainting problems
34385 - Adds the class attributes
34387 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34389 * XplatUIOSX.cs: Detect the menu bar and title bar height from
34390 the current theme. Cache these on startup.
34392 2005-02-07 Jackson Harper <jackson@ximian.com>
34394 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34395 the scrollbar buttons when they are depressed.
34397 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34399 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34400 Get the display size from the main displayid. We currently dont
34401 support multiple display configurations.
34403 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34405 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34407 2005-02-07 Miguel de Icaza <miguel@novell.com>
34409 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34411 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
34413 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34415 2005-02-04 Jackson Harper <jackson@ximian.com>
34417 * ThemeWin32Classic.cs: Respect the clipping rect when
34418 drawing. Only fill the intersection of clips and rects so there
34419 isn't a lot of large fills.
34420 * ScrollBar.cs: Pass the correct clipping rect to the theme
34421 engine. Remove some debug code.
34423 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
34425 * DateTimePicker.cs:
34426 - Fixed crash on DateTime.Parse, use Constructor instead
34428 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34432 - Owner draw support (MeasureItem and DrawItem)
34434 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34437 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34438 - Fixes MenuItems.Add range
34440 - MergeMenu and Clone and CloneMenu functions
34442 2005-02-03 Jackson Harper <jackson@ximian.com>
34444 * ScrollBar.cs: Make abstract
34445 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34448 2005-02-03 Jackson Harper <jackson@ximian.com>
34450 * ScrollBar.cs: First part of my scrollbar fixups. This removes
34451 all the unneeded refreshes and uses invalidates with properly
34454 2005-02-03 Peter Bartok <pbartok@novell.com>
34456 * ComponentModel.cs: Added
34457 * IDataGridEditingService.cs: Added
34458 * Timer.cs: Added missing attributes
34459 * ToolTip.cs: Added missing attributes
34461 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
34463 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34465 2005-02-03 Peter Bartok <pbartok@novell.com>
34467 * ListBox.cs: Added missing attributes
34469 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
34472 - Fixes font height after font change
34473 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34475 2005-02-02 Peter Bartok <pbartok@novell.com>
34477 * HandleData.cs: Introduced static methods to allow class
34478 to be more self-contained and track it's own HandleData objects
34479 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34480 HandleData to use new static methods
34482 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
34485 - Fixes default size and PreferredHeight
34487 - ObjectCollection.Insert implementation
34493 - ObjectCollection.Insert implementation
34494 - No selection after clean
34497 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34499 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34501 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
34504 - Caches ItemHeight calculation for OwnerDrawVariable
34505 - Handles dropdown properly
34506 - Fixes several minor bugs
34508 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34511 - Fixes 71946 and 71950
34512 - Fixes changing Multicolumn on the fly
34513 - Fixes keyboard navigation on Multicolumn listboxes
34515 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34517 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34518 crash reporter log.
34520 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34522 * XplatUIOSX.cs: Allow applications to actually exit.
34524 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34526 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
34527 their parent at creation time rather than lazily later. Fixes a major
34528 regression we were experiencing.
34530 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34532 * ThemeWin32Classic.cs: more date time picker painting fixes
34533 * DateTimePicker.cs: more monthcalendar drop down fixes
34534 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34536 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34539 - When moving the thumb going outside the control should stop the moving
34540 - Adds the firing of missing events
34541 - Fixes no button show if Size is not specified
34542 - End / Home keys for keyboard navigation
34544 2005-01-30 Peter Bartok <pbartok@novell.com>
34546 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34547 sanity check to prevent theoretical loop
34548 * XplatUIWin32.cs (SetVisible): Removed debug output
34549 * XplatUIX11.cs (SystrayChange): Added sanity check
34550 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34551 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34552 behaviour, valid until the X11 client window rewrite is done
34553 * TextBox.cs (ctor): Setting proper default foreground and background
34556 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
34558 * Theme: Added DrawDateTimePicker to interface
34559 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34560 * DateTimePicker.cs: Created (still needs keys and painting code)
34561 * DateTimePickerFormat.cs: added
34562 * MonthCalendar.cs: fixed CreateParams for popup window mode
34564 2005-01-29 Peter Bartok <pbartok@novell.com>
34566 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34567 this should also the calculations for ligher/darker
34568 * Theme.cs: Fixed defaults for ScrollBar widths/heights
34570 2005-01-29 Peter Bartok <pbartok@novell.com>
34572 * ArrangeDirection.cs: Added
34573 * ArrangeStartingPositon.cs: Added
34574 * SystemInformation.cs: Implemented
34575 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34576 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34577 used by SystemInformation class
34578 * X11Strucs.cs: Added XSizeHints structure
34580 - Fixed CreateParams to make sure the menu window is always visible
34581 - TrackPopupMenu: Added check to make sure we don't draw the
34584 2005-01-29 Peter Bartok <pbartok@novell.com>
34586 * HandleData.cs: Added method for altering invalid area
34587 * TextBoxBase.cs: Implemented TextLength
34589 2005-01-28 Peter Bartok <pbartok@novell.com>
34591 * XplatUIX11.cs: Improvement over last patch, not sending
34592 the WM_PAINT directly anymore, instead we scroll any pending
34593 exposed areas and let the system pick out the WM_PAINT later
34595 2005-01-28 Peter Bartok <pbartok@novell.com>
34597 * SWF.csproj: Deleted, no longer used. Instead,
34598 Managed.Windows.Forms/SWF.csproj should be used
34599 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34600 directly, to avoid a potential race condition with the next
34603 2005-01-28 Peter Bartok <pbartok@novell.com>
34605 * XplatUI.cs: Made class internal
34607 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
34609 * CheckedListBox.cs:
34612 - Missing methods and events
34614 2005-01-27 Peter Bartok <pbartok@novell.com>
34616 * Application.cs (Run): Don't use form if we don't have one
34618 2005-01-27 Peter Bartok <pbartok@novell.com>
34620 * TextBoxBase.cs (get_Lines): Fixed index off by one error
34622 2005-01-27 Peter Bartok <pbartok@novell.com>
34624 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34625 * GridItem.cs: Added; Patch by Jonathan S. Chambers
34626 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34627 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34628 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34629 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34630 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34631 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34632 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34633 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34634 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34635 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34637 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34640 - Draw focus on Simple Combobox
34641 - Fixes drawing issues
34644 2005-01-27 Peter Bartok <pbartok@novell.com>
34647 - Place window in default location, instead of hardcoded 0/0
34648 - Send initial LocationChanged event
34650 - UpdateBounds after creation to find out where the WM placed us
34651 - Make sure that if the ParentForm changes location the Form
34653 * XplatUIX11.cs: XGetGeometry will not return the coords relative
34654 to the root, but to whatever the WM placed around us.
34655 Translate to root coordinates before returning toplevel
34657 * XplatUIWin32.cs: Removed debug output
34658 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
34659 flag to GetWindowPos, to allow translation of coordinates on X11
34661 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34663 * ListBox.cs: connect LostFocus Event
34665 2005-01-27 Peter Bartok <pbartok@novell.com>
34667 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
34668 XplatUIX11.cs: Extended the Systray API
34669 * Form.cs: Removed debug output
34670 * Application.cs: Fixed focus assignment, always need to call
34671 XplatUI.Activate() since Form.Activate() has rules that may
34673 * NotifyIcon.cs: Should be complete now
34674 * ToolTip.cs: Worked around possible timer bug
34676 2005-01-27 Jackson Harper <jackson@ximian.com>
34679 - Only invalidate the effected tabs when the
34680 selected index changes. This reduces drawing and gets rid of some
34682 - Only refresh if the tabs need to be shifted, otherwise only
34683 invalidate the slider button.
34684 - On windows the tabs are not filled to right if the slider is
34687 2005-01-27 Jackson Harper <jackson@ximian.com>
34689 * TabControl.cs: Only refresh on mouseup if we are showing the
34690 slider. Also only invalidate the button whose state has changed.
34692 2005-01-26 Peter Bartok <pbartok@novell.com>
34694 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
34695 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
34696 and SystrayRemove() methods
34697 * XplatUIOSX.cs: Stubbed Systray methods
34699 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
34701 - Fixed broken XChangeProperty calls (marshalling messed up things)
34702 * X11Structs.cs: Added enums and structs required for Size hinting
34703 * NotifyIcon.cs: Added & implemented
34705 2005-01-26 Jackson Harper <jackson@ximian.com>
34707 * TabControl.cs: Space vertically layed out tabs properly.
34709 2005-01-26 Peter Bartok <pbartok@novell.com>
34711 * Form.cs (CreateClientParams): Always set the location to 0,0
34712 since we're a child window.
34714 * Control.cs (SetVisibleCore): Always explicitly setting the location
34715 of a toplevel window, apparently X11 doesn't like to move windows
34716 while they're not mapped.
34718 2005-01-26 Jackson Harper <jackson@ximian.com>
34720 * TabControl.cs: Implement FillToRight size mode with vertically
34723 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34725 * ControlPaint.cs, ThemeWin32Classic.cs
34726 - Fixes DrawFocusRectangle
34728 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
34731 - MenuBar tracking only starts when item is first clicked
34732 - Fixes menu hidding for multiple subitems
34733 - Unselect item in MenuBar when item Executed
34736 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
34739 - IsInputKey for ListBox
34742 - Shift and Control item selection
34743 - Implement SelectionMode.MultiExtended
34744 - Fixes RightToLeft
34746 - IsInputKey implemented
34747 - Do not generate OnTextChangedEdit on internal txt changes
34749 2005-01-23 Peter Bartok <pbartok@novell.com>
34751 * AccessibleObject.cs: Partially implemented Select()
34752 * MonthCalendar.cs: Added missing attributes and events
34753 * Form.cs: Fixed CreateParams behaviour, now controls derived from
34754 form can properly override CreateParams.
34755 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34756 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
34757 Control performs Invalidate & Update
34758 * NativeWindow (CreateHandle): Added special handling for Form
34759 and Form.FormParent classes to allow overriding of From.CreateParams
34761 - ControlNativeWindow: Renamed 'control' variable to more intuitive
34763 - ControlNativeWindow: Added Owner property
34764 - Removed usage of Refresh() on property changes, changed into
34765 Invalidate(), we need to wait until the queue is processed for
34766 updates, direct calls might cause problems if not all vars for
34767 Paint are initialized
34768 - Added call to UpdateStyles() when creating the window, to set any
34769 styles that CreateWindow might have ignored.
34770 - Added support for Form CreateParent overrides to UpdateStyles()
34771 * MessageBox.cs: Removed no longer needed FormParent override stuff,
34772 CreateParams are now properly overridable
34773 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
34774 CreateParams are now properly overridable
34776 2005-01-23 Miguel de Icaza <miguel@ximian.com>
34778 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
34781 Capture LostFocus and OnTextBoxChanged. The later introduces a
34782 recursive invocation that I have not figured out yet.
34784 Reset the timer when not using (it was accumulating).
34787 (OnTextBoxChanged): Set UserEdit to true here to track whether the
34788 user has made changes that require validation.
34790 Reset changing to avoid loops.
34792 2005-01-22 Miguel de Icaza <miguel@ximian.com>
34794 * NumericUpDown.cs: Display value at startup.
34796 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
34799 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
34800 filled in. Added some basic parsing of text.
34802 Still missing the OnXXX method overrides, and figuring out the
34803 events that must be emitted.
34805 * UpDownBase.cs: Handle UserEdit on the Text property.
34807 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
34810 - Fixes IntegralHeight
34813 2005-01-21 Jackson Harper <jackson@ximian.com>
34815 * TabControl.cs: Set the SelectedIndex property when SelectedTab
34816 is set so that the page visibility is updated and the tabs are
34819 2005-01-21 Jackson Harper <jackson@ximian.com>
34821 * TabControl.cs: Use cliping rectangle for blitting. Give the
34822 theme the clipping rect so we can do clipping while
34823 drawing. Remove some debug code.
34825 2005-01-21 Jackson Harper <jackson@ximian.com>
34827 * TabPage.cs: Add a new method so tab pages can force the tab
34828 control to recalculate the tab page sizes.
34829 * TabControl.cs: UpdateOwner needs to make the tab control recalc
34832 2005-01-20 Jackson Harper <jackson@ximian.com>
34834 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
34836 2005-01-20 Jackson Harper <jackson@ximian.com>
34838 * TreeView.cs: Set the bounds for nodes properly. They were
34839 getting screwed up when checkboxes were not enabled, but images
34842 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
34845 - Owner draw support
34848 2005-01-20 Jackson Harper <jackson@ximian.com>
34850 * XplatUIStructs.cs: More misc keys
34851 * X11Keyboard.cs: Ignore some control keys.
34853 2005-01-20 Jackson Harper <jackson@ximian.com>
34855 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
34856 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
34858 2005-01-19 Peter Bartok <pbartok@novell.com>
34860 * Control.cs: Un-selecting the control when it is loosing focus
34862 2005-01-19 Jackson Harper <jackson@ximian.com>
34864 * TreeView.cs: Hook up to the text controls leave event so we can
34865 end editing when the users clicks outside the text box.
34867 2005-01-19 Jackson Harper <jackson@ximian.com>
34869 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
34870 get set in the conversion array.
34872 2005-01-19 Peter Bartok <pbartok@novell.com>
34874 * Application.cs (ModalRun): Added a call to CreateControl to ensure
34875 focus is properly set
34877 - Added missing attributes
34878 - removed styles, those are already set in the base class
34880 - Added missing attributes
34881 - Added clip window styles
34882 * CheckBox.cs: Added missing attributes
34884 - FormParentWindow.CreateParams: Added required clip styles
34885 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
34886 also filters modifier keys
34888 - Added assignment of Accept and Cancel button to enable Enter
34889 and Esc keys in MessageBox dialogs
34890 - FormParentWindow.CreateParams: Added required clip styles
34891 * RadioButton.cs: Added missing attributes
34892 * TextControl.cs: No longer draws selection if control does not
34895 - Now draws simple rectangle around test area to make it obvious
34896 there's a control. This is a hack until we properly support borders
34897 - A few simple fixes to support selections better, now erases selected
34898 text when typing, and resets selection when using movement keys
34900 2005-01-19 Miguel de Icaza <miguel@ximian.com>
34902 * UpDownBase.cs: Added some new properties.
34904 * DomainUpDown.cs: Implement a lot to get my test working.
34906 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34908 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
34910 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34912 * OSXStructs (WindowAttributes): Fixed csc complaints
34914 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34917 OSXStructs.cs: Initial refactor to move enums and consts into
34918 OSXStructs and use them in the driver for greater readability.
34920 2005-01-19 Geoff Norton <gnorton@customerdna.com>
34922 * XplatUIOSX.cs: Initial support for Standard Cursors.
34923 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
34925 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
34927 * ComboBox.cs: ability to change style when the ctrl is already
34928 created, missing methods and events, bug fixes, signature fixes
34930 2005-01-19 Peter Bartok <pbartok@novell.com>
34932 * Cursors.cs (ctor): Added ctor to fix signature
34934 2005-01-18 Peter Bartok <pbartok@novell.com>
34936 * Button.cs: Implemented DoubleClick event
34938 - Fixed keyboard handling to behave like MS, where the press of
34939 Spacebar is equivalent to a mousedown, and the key release is
34940 equivalent to mouseup. Now a spacebar push will give the same
34941 visual feedback like a mouse click.
34942 - Added missing attributes
34943 - Added ImeModeChanged event
34944 - Added support for generating DoubleClick event for derived classes
34946 - Implemented DoubleClick event
34947 - Added missing attributes
34948 * CommonDialog.cs: Added missing attribute
34949 * ContextMenu.cs: Added missing attributes
34951 - AutoChecked buttons do not allow to be unselected when clicked
34952 (otherwise we might end up with no selected buttons in a group)
34953 - Added missing attributes
34954 - Implemented DoubleClickEvent
34955 * ThreadExceptionDialog.cs: Enabled TextBox code
34957 2005-01-18 Peter Bartok <pbartok@novell.com>
34959 * Form.cs: Removed debug output
34960 * Button.cs: Added support for DoubleClick method
34962 2005-01-18 Peter Bartok <pbartok@novell.com>
34965 - Added method to parent window that allows triggering size
34966 calculations when a menu is added/removed
34967 - set_Menu: Cleaned up mess from early days of Form and Control,
34968 now properly triggers a recalc when a menu is added/removed
34969 - Added case to select form itself as focused form if no child
34971 - Added PerformLayout call when showing dialog, to ensure properly
34974 - Select(): Made internal so Form can access it
34975 - Focus(): Only call Xplat layer if required (avoids loop), and sets
34977 * Application.cs (Run): Removed hack and calls PerformLayout instead
34978 to trigger calculation when Form becomes visible
34980 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
34982 * ComboBox.cs: fixes for ownerdraw
34984 2005-01-18 Peter Bartok <pbartok@novell.com>
34987 - Sentinel is no longer static, each Document gets it's own, this
34988 avoids locking or alternatively overwrite problems when more
34989 than one text control is used simultaneously.
34990 - Switched to use Hilight and HilightText brushes for text selection
34992 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
34994 2005-01-18 Peter Bartok <pbartok@novell.com>
34997 - Hooked up the following events:
35005 o SystemColorsChanged
35006 o ParentFontChanged
35008 - Removed debug output
35009 - Added a call to the current theme's ResetDefaults when a color change
35011 * Form.cs: Now setting the proper ImeMode
35012 * Theme.cs: Defined a method to force recreation of cached resources
35013 and rereading of system defaults (ResetDefaults())
35014 * ThemeWin32Classic.cs: Added ResetDefaults() stub
35016 2005-01-17 Peter Bartok <pbartok@novell.com>
35018 * Control.cs: Added missing attributes
35020 2005-01-17 Jackson Harper <jackson@ximian.com>
35022 * TreeNode.cs: Implement editing. Add missing properties selected
35024 * TreeView.cs: Implement node editing. Also some fixes to use
35025 Invalidate (invalid area) instead of Refresh when selecting.
35027 2005-01-17 Peter Bartok <pbartok@novell.com>
35030 - Implemented InvokeGotFocus() method
35031 - Implemented InvokeLostFocus() method
35032 - Implemented InvokePaint() method
35033 - Implemented InvokePaintBackground() method
35034 - Implemented InvokeClick() method
35035 - Implemented FindForm() method
35036 - Implemented RectangleToClient() method
35037 - Implemented ClientToRectangle() method
35038 - Implemented ResetBackColor() method
35039 - Implemented ResetCursor() method
35040 - Implemented ResetFont() method
35041 - Implemented ResteForeColor() method
35042 - Implemented ResetImeMode() method
35043 - Implemented ResetLeftToRight() method
35044 - Implemented ResetText() method
35045 - Implemented Scale() methods
35046 - Implemented ScaleCore() method
35047 - Implemented Update() method
35048 - Removed unused variables
35049 - Stubbed AccessibilityNotifyClients and
35050 ControlAccessibleObject.NotifyClients() methods (dunno what to do
35052 - Now setting proper default for RightToLeft property
35053 - Fixed bug in SetClientSizeCore that would cause windows to get
35055 - Now sending Click/DoubleClick events
35056 - Now selecting controls when left mouse button is clicked on
35058 * AccessibleEvents.cs: Added
35059 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35060 * XplatUIOSX.cs: Stubbed UpdateWindow() method
35061 * XplatUIWin32.cs: Implemented UpdateWindow() method
35062 * XplatUIX11.cs: Implemented UpdateWindow() method
35063 * Form.cs: Removed stray semicolon causing CS0162 warning
35064 * ThemeWin32Classic.cs: Fixed unused variable warnings
35065 * ScrollableControl.cs: Now calls base method for ScaleCore
35066 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35067 style to avoid interference with internal click handler (which is
35068 different than standard Control click handling)
35070 - Now unchecks all sibling radio buttons when control is
35071 selected (Fixes #68756)
35072 - Removed internal tabstop variable, using the one inherited from
35075 2005-01-17 Jackson Harper <jackson@ximian.com>
35077 * NavigateEventArgs.cs: Fix base type.
35078 * LinkLabel.cs: Sig fix
35080 2005-01-17 Jackson Harper <jackson@ximian.com>
35082 * TreeView.cs: Only invalidate the effected nodes bounds when
35085 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35087 * XplatUIWin32.cs: fixes Win32 marshaling
35088 * XplatUIX11.cs: fixes method signature
35090 2005-01-17 Peter Bartok <pbartok@novell.com>
35092 * XplatUIX11.cs: Clean up resources when we no longer need them
35094 2005-01-17 Peter Bartok <pbartok@novell.com>
35096 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35097 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35098 and DestroyCursor() methods.
35099 * Cursor.cs: Partially implemented, now supports standard cursors;
35100 still contains some debug code
35101 * Cursors.cs: Implemented class
35103 - WndProc(): Added handling of WM_SETCURSOR message, setting the
35105 - Implemented Cursor property
35106 - Replaced break; with return; more straightforwar and possibly
35108 - Now properly setting the result for WM_HELP
35109 * X11Structs.cs: Added CursorFontShape enum
35110 * XplatUIStructs.cs:
35111 - Added StdCursor enum (to support DefineStdCursor() method)
35112 - Added HitTest enum (to support sending WM_SETCURSOR message)
35114 - Now sends the WM_SETCURSOR message
35115 - Implemented new cursor methods
35116 * XplatUIOSX.cs: Stubbed new cursor methods
35118 - Implemented new cursor methods
35119 - Added GetSystemMetrics function and associated enumeration
35121 2005-01-15 Peter Bartok <pbartok@novell.com>
35124 - WndProc(): Now handles EnableNotifyMessage
35125 - SelectNextControl(): Fixed bug where if no child or sibling
35126 controls exist we looped endlessly
35128 2005-01-14 Jackson Harper <jackson@ximian.com>
35130 * TreeView.cs: Recalculate the tab pages when a new one is added
35131 so that the proper bounding rects are created.
35133 2005-01-14 Jackson Harper <jackson@ximian.com>
35135 * TreeView.cs: Draw a gray box instead of a grip in the lower
35136 right hand corner when there are both horizontal and vertical
35139 2005-01-14 Jackson Harper <jackson@ximian.com>
35141 * Control.cs: When erasing backgrounds use FromHwnd instead of
35142 FromHdc when there is a NULL wparam. This occurs on the X driver.
35143 * XplatUIX11.cs: Set the wparam to NULL.
35145 2005-01-13 Jackson Harper <jackson@ximian.com>
35147 * PictureBox.cs: Implement missing methods (except ToString, need
35148 to test that on windows) and events. When visibility is changed we
35149 need to redraw the image because the buffers are killed. When size
35150 is changed refresh if the sizemode needs it.
35152 2005-01-13 Peter Bartok <pbartok@novell.com>
35154 * Control.cs (SelectNextControl): Was using wrong method to select
35157 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35159 * ComboBox.cs: fixes dropstyle
35161 2005-01-13 Peter Bartok <pbartok@novell.com>
35164 - Implemented Select() override
35165 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35166 - Now sets keyboard focus on startup
35167 * Control.cs (SelectNextControl): Now properly handles directed=true
35169 - WndProc: Now passes tab key on to base if AcceptTabChar=false
35170 - Added (really bad) focus rectangle (mostly for testing)
35171 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35172 to enforce redraw on focus changes
35173 * ContainerControl.cs:
35174 - Fixed detection of Shift-Tab key presses
35175 - Fixed traversal with arrow keys
35176 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35177 gonna keep this or if it's complete yet
35179 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35181 * ComboBox.cs: missing properties, fixes
35183 2005-01-13 Peter Bartok <pbartok@novell.com>
35185 * Panel.cs (ctor): Setting Selectable window style to off
35186 * Splitter.cs (ctor): Setting Selectable window style to off
35187 * GroupBox.cs (ctor): Setting Selectable window style to off
35188 * Label.cs (ctor): Setting Selectable window style to off
35190 2005-01-12 Miguel de Icaza <miguel@ximian.com>
35192 * UpDownBase.cs (InitTimer): If the timer has been already
35193 created, enable it.
35195 Use a TextBox instead of a Label.
35197 2005-01-12 Jackson Harper <jackson@ximian.com>
35199 * TreeView.cs: Refresh the tree after sorting the nodes. Always
35200 draw the connecting node lines (when ShowLines is true).
35201 * TreeNode.cs: The nodes index can now be updated. This is used
35202 when a node collection is sorted.
35203 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35204 insert or an existing unsorted node collection can be sorted.
35206 2005-01-12 Peter Bartok <pbartok@novell.com>
35208 * ContainerControl.cs: Implemented ProcessDialogKeys()
35210 2005-01-12 Peter Bartok <pbartok@novell.com>
35213 - Implemented SelectNextControl() method
35214 - Several focus related bug fixes
35215 - Fixed Docking calculations to match MS documentation and
35218 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
35220 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35223 2005-01-12 Peter Bartok <pbartok@novell.com>
35226 - Fixed broken Contains() method
35227 - Implemented GetNextControl() method. Finally. This is the pre-
35228 requisite for focus handling.
35230 2005-01-12 Peter Bartok <pbartok@novell.com>
35232 * OSXStrucs.cs: Added
35234 2005-01-12 Peter Bartok <pbartok@novell.com>
35237 - Removed PeekMessageFlags
35238 - Implemented SetWindowStyle() method
35239 * XplatUIStructs.cs: Added PeekMessageFlags
35240 * X11Structs: Added missing border_width field to XWindowChanges struct
35242 - PeekMessage: Now throws exception if flags which are not yet
35243 supported are passed
35244 - Implemented SetWindowStyle() method
35245 - Fixed SetZOrder to handle AfterHwnd properly
35246 * XplatUI.cs: Added SetWindowStyle() method
35247 * XplatUIDriver.cs: Added SetWindowStyle() abstract
35249 - Implemented UpdateStyles() method
35250 - Implemented UpdateZOrder() method
35251 * XplatUIOSX.cs: Added SetWindowStyle() stub
35253 2005-01-12 Geoff Norton <gnorton@customerdna.com>
35255 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35259 2005-01-11 Jackson Harper <jackson@ximian.com>
35261 * TreeView.cs: Still need to draw lines to siblings even if out of
35262 the current node is out of the clip.
35264 2005-01-11 Jackson Harper <jackson@ximian.com>
35266 * TreeView.cs: When setting the hbar/vbar/grip position use
35267 SetBounds so that perform layout is only called once. Also suspend
35268 and resume layout so layout is only done once for all controls.
35269 - Removed some debug fluff
35270 * SizeGrip.cs: Call base implmentation in overriding methods.
35271 - When visibility is changed the drawing buffers are killed so we
35274 2005-01-11 Jackson Harper <jackson@ximian.com>
35276 * TreeView.cs: Calculate the open node count while drawing. This
35277 saves us an entire tree traversal for every paint operation. Use
35278 a member var for the open node count so less vars are passed around.
35280 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
35282 * MonthCalendar.cs:
35283 - fixed selection to use mousemove, not mouse polling on timer
35284 * ThemeWin32Classic.cs
35285 - removed redundant unused variable "no_more_content"
35287 2005-01-11 Peter Bartok <pbartok@novell.com>
35289 * XplatUIX11.cs (DoEvents): Needs to return when no more events
35290 are pending, so it now calls PeekMessage instead of GetMessage;
35291 implemented a incomplete version of PeekMessage
35293 2005-01-11 Peter Bartok <pbartok@novell.com>
35295 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35297 * TextBoxBase.cs: Added sending of TextChanged event
35299 2005-01-10 Jackson Harper <jackson@ximian.com>
35301 * TreeView.cs: Try not to draw outside the clipping rectangle on
35304 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
35306 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35308 2005-01-10 Jackson Harper <jackson@ximian.com>
35311 - Implement fast scrolling. Now only the newly
35312 exposed nodes are drawn and the old image is moved using the
35313 XplatUI::ScrollWindow method.
35314 - Factor in height of nodes when calculating whether or not the
35315 node is in the clipping rect.
35317 2005-01-10 Jackson Harper <jackson@ximian.com>
35319 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35321 2005-01-10 Peter Bartok <pbartok@novell.com>
35323 * Application.cs: Added temporary hack to resolve all our resize
35324 required issues on startup. This will get fixed properly at
35325 some point in the future
35327 2005-01-10 Jackson Harper <jackson@ximian.com>
35329 * SizeGrip.cs: New internal class that is used as a sizing
35330 grip control...hence the name.
35332 2005-01-10 Peter Bartok <pbartok@novell.com>
35334 * Control.cs: Implemented proper TabIndex handling, now assigning
35335 a tabindex when a control is added to a container
35336 * GroupBox.cs (ctor): Now sets the Container style bit, required
35337 for Control.GetNextControl()
35339 2005-01-09 Jackson Harper <jackson@ximian.com>
35341 * TextBoxBase.cs: Clear window when scrolling (fixes build).
35343 2005-01-09 Peter Bartok <pbartok@novell.com>
35345 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35346 XplatUIX11.cs: Added ability to control ScrollWindow expose and
35347 an overload for ScrollWindow to allow only scrolling a rectangle
35349 2005-01-09 Peter Bartok <pbartok@novell.com>
35352 - Implemented SetDesktopBounds method
35353 - Implemented SetDesktopLocation method
35355 2005-01-08 Jackson Harper <jackson@ximian.com>
35357 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35358 the node count has changed, this removes to VScroll::Refresh calls
35361 2005-01-08 Geoff Norton <gnorton@customerdna.com>
35363 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35365 2005-01-07 Jackson Harper <jackson@ximian.com>
35367 * TreeNode.cs: Just update the single node when it is
35368 checked. Don't refresh after toggling, the Expand/Collapse already
35370 * TreeView.cs: Respect clipping a little more when drawing. Try
35371 not to redraw things that don't need to be redrawn. Just hide the
35372 scrollbars when they are no longer needed instead of removing
35373 them, so they don't have to be created again and again.
35375 2005-01-07 Geoff Norton <gnorton@customerdna.com>
35377 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
35378 coordinates to window space to place the caret properly, FIXED.
35379 Implement GetWindowState & SetWindowState
35381 2005-01-06 Peter Bartok <pbartok@novell.com>
35384 - Implemented ClientSize property
35385 - Implemented DesktopBounds property
35386 - Implemented DesktopLocation property
35387 - Implemented IsRestrictedWindow property
35388 - Implemented Size property
35389 - Implemented TopLevel property
35390 - Implemented FormWindowState property
35392 - Implemented GetTopLevel() method
35393 - Implemented SetTopLevel() method
35394 * X11Structs.cs (Atom):
35395 - Added AnyPropertyType definition
35396 - Added MapState definiton and updated XWindowAttribute struct
35397 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35398 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35399 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35401 - Implemented GetWindowState() and SetWindowState() methods
35402 - Fixed Win32GetWindowLong return type
35404 - Introduced central function for sending NET_WM messages
35405 - Implemented GetWindowState() and SetWindowState() methods
35406 * TextBoxBase.cs (set_Lines):
35407 - Now uses Foreground color for text added via Text property (Duh!)
35408 - Added code to remember programmatically requested size (fixes
35409 behaviour when Multiline is set after Size)
35410 - Added AutoSize logic
35412 2005-01-06 Jackson Harper <jackson@ximian.com>
35414 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35416 2005-01-06 Jackson Harper <jackson@ximian.com>
35418 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35419 set to less then 0.
35421 2005-01-06 Jackson Harper <jackson@ximian.com>
35423 * ScrollableControl.cs: Lazy init the scrollbars.
35425 2005-01-06 Jackson Harper <jackson@ximian.com>
35427 * Theme.cs: Speed up getting pens and solid brushes, by using
35428 their ARGB as a hash instead of tostring and not calling Contains.
35430 2005-01-06 Peter Bartok <pbartok@novell.com>
35433 - Implemented OnActivated and OnDeactivate event trigger
35434 - Implemented Activate() method
35435 - Fixed ShowDialog() to activate the form that was active before
35436 the dialog was shown
35438 - Added global active_window var that tracks the currently active
35440 - Now always grabs Property changes from the root window to always
35441 catch changes on the active window property
35442 - Added code to PropertyNotify handler to send Active/Inactive
35443 messages when state changes. This puts X11 and Win32 en par on
35444 WM_ACTIVATE notifications (except for double notifications when
35445 the user clicks away from our modal window to another one of our
35448 2005-01-05 Jackson Harper <jackson@ximian.com>
35450 * ImageList.cs: Implment ctor
35452 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35454 * XplatUIOSX.cs: Implement Activate/SetTopmost
35456 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35458 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35460 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35462 * XplatUIOSX.cs: Implement GetActive/SetFocus.
35464 2005-01-05 Peter Bartok <pbartok@novell.com>
35466 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35467 XplatUIOSX.cs: Added GetActive method to return the currently
35468 active window for the application (or null, if none is active)
35470 - Implemented ActiveForm
35471 - Commented out owner assignment for modal dialogs (causes problems
35472 on Win32, since the owner will be disabled)
35473 - Reworked some Active/Focus handling (still incomplete)
35474 * CommonDialog.cs: Commented out owner assignment for modal dialogs
35475 (causes problems on Win32, since the owner will be disabled)
35476 * IWin32Window: Added ComVisible attribute
35478 2005-01-05 Peter Bartok <pbartok@novell.com>
35480 * ToolTip.cs (WndProc): Enable setting focus now that we have the
35481 required XplatUI functions.
35483 2005-01-05 Peter Bartok <pbartok@novell.com>
35485 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35486 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35487 to implement focus and activation handling; still incomplete and
35490 2005-01-04 Peter Bartok <pbartok@novell.com>
35492 * TextBoxBase.cs: Changed access level for Document property to
35493 match switch to internal for TextControl
35495 2005-01-04 Peter Bartok <pbartok@novell.com>
35497 * AccessibleObject: Added ComVisible attribute
35499 2005-01-04 Jackson Harper <jackson@ximian.com>
35501 * X11Keyboard.cs: Remove unneeded var.
35503 2005-01-04 Jackson Harper <jackson@ximian.com>
35505 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35507 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35508 ClientMessage. This makes apps exit cleanly (more often).
35510 2005-01-04 Jackson Harper <jackson@ximian.com>
35512 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35513 handling focus, return correct colors and fonts,
35514 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35515 handle selection, horizontal scrolling, and mouse interaction.
35517 2005-01-04 Peter Bartok <pbartok@novell.com>
35519 * ICommandExecutor.cs: Added
35520 * IDataGridColumnStyleEditingNotificationService.cs: Added
35521 * IFeatureSupport.cs: Added
35522 * IFileReaderService.cs: Added
35523 * IDataObject.cs: Added ComVisible attribute
35524 * AmbientProperties.cs: Added
35525 * BaseCollection.cs: Added missing attributes
35526 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35527 * BaseCollection.cs: Added missing attributes
35528 * Binding.cs: Added TypeConverter attribute
35529 * BindingContext.cs: Added DefaultEvent attribute
35530 * BindingsCollection.cs: Added DefaultEvent attribute
35531 * Button.cs: Added DefaultValue attribute
35532 * DragEventArgs.cs: Added ComVisible attribute
35533 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35534 * KeyEventArgs.cs: Added ComVisible attribute
35535 * KeyPressEventArgs.cs: Added ComVisible attribute
35536 * MouseEventArgs.cs: Added ComVisible attribute
35537 * NavigateEventArgs.cs: Added
35538 * NavigateEventHandler.cs: Added
35539 * FeatureSupport.cs: Added
35540 * OSFeature.cs: Added
35541 * Theme.cs: Added abstract Version property to support OSFeature
35542 * ThemeWin32Classic.cs: Added Version property to
35543 support OSFeature.Themes
35544 * ProgressBar.cs: Removed OnPaintBackground override, not required since
35545 the proper styles to avoid background drawing are set, also doesn't
35547 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35548 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35549 * ScrollEventArgs.cs: Added ComVisible attribute
35550 * SplitterEventArgs.cs: Added ComVisible attribute
35551 * AccessibleSelection.cs: Added Flags attribute
35552 * Appearance.cs: Added ComVisible attribute
35553 * Border3DSide.cs: Added ComVisible attribute
35554 * Border3DStyle.cs: Added ComVisible attribute
35555 * BorderStyle.cs: Added ComVisible attribute
35556 * DragAction.cs: Added ComVisible attribute
35557 * ErrorBlinkStyle.cs: Added
35558 * ScrollEventType.cs: Added ComVisible attribute
35559 * AnchorStyles.cs: Added Editor attribute
35560 * DockStyle.cs: Added Editor attribute
35561 * HorizontalAlignment.cs: Added ComVisible attribute
35562 * HelpEventArgs.cs: Added ComVisible attribute
35563 * PaintEventArgs.cs: Added IDisposable
35565 2005-01-04 Peter Bartok <pbartok@novell.com>
35567 * TextControl.cs: Switched Line, LineTag and Document classes to
35570 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35572 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35573 Simple mode, fixes, IntegralHeight, etc.
35575 2005-01-04 Peter Bartok <pbartok@novell.com>
35577 * TextBoxBase.cs: Using proper font variable now
35579 2005-01-04 Peter Bartok <pbartok@novell.com>
35581 * Form.cs (ShowDialog): Set parent to owner, if provided
35582 * GroupBox.cs: Removed unused vars
35584 - Added GetHashCode() for Document and LineTag classes
35585 - Removed unused variables
35586 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35587 to allow translation between continuous char position and line/pos
35588 * CheckBox.cs: Removed vars that are provided by base class
35589 * RadioButton.cs: Removed vars that are provided by base class, added
35590 new keyword where required
35591 * LinkLabel.cs: Added new keyword where required
35592 * Control.cs (WndProc): Removed unused variable
35594 - Finished SelectionLength property
35595 - Implemented SelectionStart property
35596 - Implemented Text property
35597 - Removed unused vars
35598 * MessageBox.cs: Added new keyword where required
35599 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35601 * MenuAPI.cs: Added new keyword where required
35602 * ButtonBase.cs: Removed vars that are provided by base class, added
35603 new keyword where required
35604 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35605 argument to double, to allow compiling with csc 2.0 (Atsushi ran
35607 * Application.cs (Run): Now triggers the ThreadExit event
35608 * CommonDialog.cs: Added new keyword where required; now properly sets
35609 parent (owner) for dialog
35610 * XplatUIX11.cs: Commented out unused vars
35611 * StatusBar.cs: Fixed signature for Text property
35612 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35614 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35616 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35617 TrackBar.cs, MonthCalendar.cs: remove unused vars
35619 2005-01-03 Jackson Harper <jackson@ximian.com>
35621 * ThemeWin32Classic.cs:
35622 * X11Keyboard.cs: Remove unused vars.
35624 2005-01-03 Peter Bartok <pbartok@novell.com>
35627 - set_Text: Tied into TextControl
35628 - set_TextAlignment: Tied into TextControl
35630 - Added alignment properties and implemented alignment handling
35631 and drawing (still has a bug, not generating proper expose events)
35632 - Added new Line() constructor to allow passing the line alignment
35633 - Fixed selection setting, properly handling end<start now
35634 - Added aligment considerations to RecalculateDocument()
35636 - Now properly enforces control height for single line controls
35637 - Added support for CharacterCasing
35638 - Added IsInputKey override
35639 - Fixed Keys.Enter logic
35640 - Added SetBoundsCore override
35641 - Fixed mouse selection handling
35643 2005-01-03 Jackson Harper <jackson@ximian.com>
35646 - Collapse and uncheck all nodes when CheckBoxes is disabled.
35647 - Checkboxes are always aligned to the bottom of the node,
35648 regardless of item height.
35649 - Use the node bounds to draw the text so we can center it when
35650 the item height is greater then the font height.
35651 - Node::Bounds are only the text part of the node.
35652 * TreeNode.cs: New method to combine collapsing and unchecking all
35655 2005-01-02 Jackson Harper <jackson@ximian.com>
35657 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
35658 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
35659 tree when a check is changed. TODO: Only refresh the checked node.
35661 2004-12-30 Jackson Harper <jackson@ximian.com>
35663 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
35664 * TreeNode.cs: When collapsing make sure to never collapse the
35667 2004-12-29 Jackson Harper <jackson@ximian.com>
35669 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
35671 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
35673 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
35675 2004-12-28 Peter Bartok <pbartok@novell.com>
35677 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
35680 2004-12-28 Peter Bartok <pbartok@novell.com>
35682 * Control.cs (WndProc): Added WM_HELP handler, now generates
35683 HelpRequested event
35684 * Form.cs: Added HelpButton property and required support code
35685 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
35687 2004-12-28 Peter Bartok <pbartok@novell.com>
35690 - Made DialogForm.owner variable internal
35691 - Added check to ensure owner form is set before setting
35692 owner properties in CreateParams
35694 2004-12-28 Geoff Norton <gnorton@customerdna.com>
35696 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
35697 swizzling. Implement ClientToScreen and ScreenToClient. Implement
35698 GetCursorPos. Fix major visibility issues. Rework the windowing
35699 system to support borderless/titleless windows (implements menus).
35700 Fix GetWindowPos. Implement initial background color support for
35703 2004-12-28 Peter Bartok <pbartok@novell.com>
35705 * Form.cs (get_CreateParams): Make sure we have an owner before using
35706 the owner variable. Implement proper default if no owner exists
35708 2004-12-28 Peter Bartok <pbartok@novell.com>
35710 * In preparation for making Managed.Windows.Forms the default build target
35711 for System.Windows.Forms, the following stubbed files were added.
35712 Dialogs are currently being implemented by contributors and are only
35713 short-term place holders.
35714 * ColorDialog.cs: Initial check-in (minmal stub)
35715 * DataGrid.cs: Initial check-in (minimal stub)
35716 * DataGridLineStyle.cs: Initial check-in (minimal stub)
35717 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
35718 * DataGridTableStyle.cs: Initial check-in (minimal stub)
35719 * FontDialog.cs: Initial check-in (minimal stub)
35720 * FileDialog.cs: Initial check-in (minimal stub)
35721 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
35722 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
35723 * OpenFileDialog: Initial check-in (minimal stub)
35724 * IComponentEditorPageSite.cs: Initial check-in
35725 * Splitter.cs: Initial check-in (for Jackson)
35726 * SplitterEventArgs.cs: Initial check-in (for Jackson)
35727 * SplitterEventHandler.cs: Initial check-in (for Jackson)
35728 * TextBox.cs: Initial check-in; still needs some wiring to
35729 TextControl backend
35730 * Form.cs: Implemented ControlBox property
35731 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
35732 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
35733 * TextControl.cs: Added selection functionality; added todo header
35735 - Implemented Lines property
35736 - Implemented TextHeight property
35737 - Implemented SelectedText property
35738 - Implemented SelectionLength property
35739 - Implemented SelectAll method
35740 - Implemented ToString method
35741 - Removed and cleaned up some debug code
35742 - Implemented (still buggy) mouse text selection
35744 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
35746 * ComboBox.cs: Complete DropDownList implementation, fixes.
35748 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
35750 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
35751 * ComboBoxStyle.cs: ComboBoxStyle enum
35752 * ComboBox.cs: Initial work on ComboBox control
35754 2004-12-21 Peter Bartok <pbartok@novell.com>
35756 * Control.cs (ctor, CreateParams): Moved setting of is_visible
35757 forward so that anything that creates a window gets the default,
35758 also no longer uses Visible property in CreateParams to avoid
35759 walking up the parent chain and possibly get the wrong visible
35760 status. Fixed IsVisible to no longer walk up to the parent.
35762 2004-12-21 Peter Bartok <pbartok@novell.com>
35764 * Form.cs (ShowDialog): Unset modality for the proper window
35766 2004-12-20 Peter Bartok <pbartok@novell.com>
35768 * CommonDialog.cs: Initial check-in
35770 2004-12-20 Peter Bartok <pbartok@novell.com>
35772 * Control.cs (Visible): Now uses the parent window instead of the
35773 client area window for the property
35776 - ShowDialog(): Now uses the proper window for modality
35777 - The default visibility state for the form parent is now false. This
35778 will prevent the user from seeing all the changes to the form and
35779 its controls before the application hits Application.Run()
35780 - Removed some stale commented out code
35783 - Added FindWindow() method to have a method to check for existence
35785 - Added ability to override default exception handling (for example
35786 when debugging with VS.Net; to do this the ExternalExceptionHandler
35788 - Removed some useless debug output
35791 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
35792 not working as expected
35793 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
35794 property to allow switching back to the modal window if focus is
35795 given to another one of our windows (Application Modal)
35796 - Now only sets override_redirect if we create a window
35798 - Moved EventMask selection before mapping of newly created window
35799 so we can catch the map event as well
35800 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
35801 - Added various Atom related DllImports
35802 - Implemented Exit() method
35803 - .ctor() : No longer shows window if WS_VISIBLE is not defined
35804 in the CreateParams
35806 * MessageBox.cs: Now properly deals with the FormParent window by
35807 providing an override the FormParent CreateParams property to
35808 set as POPUP instead of OVERLAPPED window.
35810 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35812 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
35813 Minor code cleanup.
35815 2004-12-19 Geoff Norton <gnorton@customerdna.com>
35817 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
35819 2004-12-18 Peter Bartok <pbartok@novell.com>
35821 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
35822 implementing SetModal() method
35824 2004-12-18 Peter Bartok <pbartok@novell.com>
35826 * X11Structs.cs (XGCValues): Fixed type of function element
35827 * XplatUI.cs: Added ScrollWindow() method
35828 * XplatUIDriver.cs: Added ScrollWindow() abstract
35829 * XplatUIWin32.cs: Implemented ScrollWindow() method
35830 * XplatUIX11.cs: Implemented ScrollWindow() method
35831 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
35833 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35835 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
35836 Some more keyboard support (INCOMPLETE)
35838 2004-12-17 Peter Bartok <pbartok@novell.com>
35841 - Added color attribute to line tags.
35842 - Added color argument to all functions dealing with tags
35843 - Added color argument support to various functions
35844 - Fixed miss-calculation of baseline/shift in certain circumstances
35846 * TextBoxBase.cs: Added new color option to test code
35848 2004-12-17 Jackson Harper <jackson@ximian.com>
35851 * MonthCalendar.cs: Signature fixes
35853 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35855 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
35856 keyboard event moved it. Create a new graphics context for each paint resolves this
35858 2004-12-17 Geoff Norton <gnorton@customerdna.com>
35860 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
35861 Make caret exist and go blink blink. Initial keyboard support.
35862 Fix exception handler, Add Invalidate support. Change way RefreshWindow
35865 2004-12-17 Jackson Harper <jackson@ximian.com>
35867 * XplatUIStructs.cs: Updated set of virtual keycodes.
35868 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
35870 2004-12-17 Jackson Harper <jackson@ximian.com>
35872 * XplatUIX11.cs: Prune old keyboard code.
35874 2004-12-17 Jackson Harper <jackson@ximian.com>
35876 * XplatUIX11.cs: When generating mouse wparams get the modifier
35877 keys from the ModifierKeys property.
35879 2004-12-17 Jackson Harper <jackson@ximian.com>
35881 * X11Keyboard.cs: Send up/down input when generating
35882 messages. Remove some unused vars.
35884 2004-12-17 Jackson Harper <jackson@ximian.com>
35887 * TreeView.cs: get rid of warnings.
35889 2004-12-17 Jackson Harper <jackson@ximian.com>
35891 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
35893 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
35895 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
35896 CheckedListBox.cs: Implementation
35898 2004-12-17 Peter Bartok <pbartok@novell.com>
35900 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
35902 2004-12-16 Peter Bartok <pbartok@novell.com>
35905 - InsertCharAtCaret(): Fixed start pos fixup
35906 - CaretLine_get: No longer derives the line from the tag, the tag
35907 could be stale if lines in the document have been added or deleted
35908 - RebalanceAfterDelete(): Fixed bug in balancing code
35909 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
35910 - Line.Streamline(): Now can also elminate leading empty tags
35911 - DumpTree(): Added a few more tests and prevented exception on
35913 - Added Debug section for Combining lines
35914 - Delete(): Now copies all remaining properties of a line
35917 - Left mousebutton now sets the caret (and middle button still acts
35918 as formatting tester, which must go away soon)
35919 - Added Debug section for Deleting/Combining lines
35920 - Fixed calculations for UpdateView after Combining lines
35922 2004-12-16 Peter Bartok <pbartok@novell.com>
35924 * TextControl.cs: Now properly aligns text on a baseline, using the
35925 new XplatUI.GetFontMetrics() method. Simplified several calculations
35926 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
35929 2004-12-16 Peter Bartok <pbartok@novell.com>
35931 * XplatUI.cs: Added GetFontMetrics() method
35932 * XplatUIDriver.cs: Added GetFontMetrics() abstract
35933 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
35934 into libgdiplus, our private GetFontMetrics function
35935 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
35936 * XplatUIWin32.cs: Implemented GetFontMetrics() method
35938 2004-12-16 Jackson Harper <jackson@ximain.com>
35940 * XplatUIStruct.cs: Add enum for dead keys
35941 * X11Keyboard.cs: Map and unmap dead keys.
35943 2004-12-16 Jackson Harper <jackson@ximian.com>
35945 * X11Keyboard.cs: Detect and use the num lock mask.
35947 2004-12-16 Peter Bartok <pbartok@novell.com>
35949 * Control.cs (CreateGraphics): Added check to make sure the
35950 handle of the window exists before calling Graphics.FromHwnd()
35952 2004-12-16 Peter Bartok <pbartok@novell.com>
35954 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
35955 contains a lot of code that's not supposed to be there for the
35956 real thing, but required for developing/testing the textbox
35959 2004-12-16 Peter Bartok <pbartok@novell.com>
35962 - Fixed Streamline method
35963 - Added FindTag method to Line
35964 - Added DumpTree method for debugging
35965 - Added DecrementLines() method for deleting lines
35966 - Fixed UpdateView to update the cursor to end-of-line on single-line
35968 - Added PositionCaret() method
35969 - Fixed MoveCaret(LineDown) to move into the last line, too
35970 - Added InsertChar overload
35971 - Fixed InsertChar tag offset calculations
35972 - Added DeleteChar() method
35973 - Added Combine() method for folding lines
35974 - Fixed Delete() method, no longer allocates wasted Line object and
35975 now copies all properties when swapping nodes
35976 - Delete() method now updates document line counter
35978 2004-12-15 Jackson Harper <jackson@ximian.com>
35980 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
35981 * X11Keyboard.cs: Expose the currently selected modifier keys
35982 through a property.
35984 2004-12-15 Peter Bartok <pbartok@novell.com>
35986 * TextControl.cs: Initial check-in. Still incomplete
35988 2004-12-15 Jackson Harper <jackson@ximian.com>
35991 * TreeView.cs: Fix build on csc (second time today ;-))
35993 2004-12-15 Jackson Harper <jackson@ximian.com>
35995 * TreeView.cs: Store the treenodes plus/minus box bounds when it
35996 is calculated and use this for click testing.
35997 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
35999 2004-12-15 Jackson Harper <jackson@ximian.com>
36001 * TreeView.cs: Pass the nodes image index to the image list when
36002 drawing that image.
36004 2004-12-15 Jackson Harper <jackson@ximian.com>
36006 * X11Keyboard.cs: Set messages hwnd.
36007 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36008 post_message calls.
36010 2004-12-15 Jackson Harper <jackson@ximian.com>
36012 * X11Keyboard.cs: Fix to compile with csc.
36014 2004-12-15 Jackson Harper <jackson@ximian.com>
36016 * X11Structs.cs: Add key mask values
36017 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36018 * X11Keyboard.cs: New file - Extrapolates and interpolates key
36019 down/up foo into WM_CHAR foo
36020 * KeyboardLayouts.cs: Common keyboard layouts
36021 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36022 post messages into the main queue.
36024 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
36026 * Button.cs: implement ProcessMnemonic
36027 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36029 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36030 * ButtonBase.cs: Show HotkeyPrefix (not the &)
36032 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
36034 * MonthCalendar.cs: Implemented click-hold for next/previous month
36037 2004-12-11 Peter Bartok <pbartok@novell.com>
36040 - Added XKeyboardState (moved from XplatUIX11.cs)
36041 - Added XCreateGC related enums and structures
36042 - Added GXFunction for XSetFunction
36044 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36046 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36047 CaretVisible() calls
36049 * ToolTip.cs: Added code to prevent stealing focus from app windows
36051 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36052 DestroyCaret, SetCaretPos and CaretVisible)
36055 - Added implementation for caret functions
36056 - Moved hover variables into a struct, to make it a bit easier
36057 on the eyes and to debug
36058 - Removed XKeyboardState (moved to XplatUIX11.cs)
36059 - Moved Keyboard properties into the properties region
36061 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36062 call to get a graphics context for our control
36064 * XplatUIOSX.cs: Added empty overrides for the new caret functions
36066 * TreeView.cs: Fixed bug. No matter what color was set it would always
36067 return SystemColors.Window
36069 * XplatUIWin32.cs: Implemented caret overrides
36071 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
36073 * ListBox.cs: fire events, implement missing methods and properties,
36076 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
36078 * MonthCalendar.cs: invalidation bug fixing
36079 * ThemeWin32Classic.cs: paint fixing
36081 2004-12-09 Geoff Norton <gnorton@customerdna.com>
36083 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36084 prepare the CGContextRef there now.
36086 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
36088 * MonthCalendar.cs:
36089 - optimisationL only invalidate areas that have changed
36090 * ThemeWin32Classic.cs:
36091 - only paint parts that intersect with clip_area
36093 2004-12-09 Peter Bartok <pbartok@novell.com>
36095 * Application.cs: Undid changes from r37004 which cause problems
36098 2004-12-09 Ravindra <rkumar@novell.com>
36100 * ToolBar.cs: Added support for displaying ContextMenu
36101 attached to a button on ToolBar.
36102 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36105 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36107 * Label.cs: autosize works in text change and removes unnecessary
36110 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36112 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36115 2004-12-08 Geoff Norton <gnorton@customerdna.com>
36117 * XplatUIOSX.cs: Added mouse move/click/grab support
36118 Remove some debugging WriteLines not needed anymore.
36119 Add window resizing/positioning.
36120 Fix visibility on reparenting.
36122 2004-12-08 Peter Bartok <pbartok@novell.com>
36124 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36126 2004-12-07 Geoff Norton <gnorton@customerdna.com>
36128 * XplatUIOSX.cs: Initial checkin
36129 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36131 2004-12-03 Ravindra <rkumar@novell.com>
36133 * ListView.cs: Added some keybindings and fixed scrolling.
36134 ScrollBars listen to ValueChanged event instead of Scroll
36135 Event. This would let us take care of all changes being
36136 done in the scrollbars' values programmatically or manually.
36137 * ListView.cs (CanMultiselect): Added a check for shift key.
36138 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36139 * ListViewItem.cs (Clone): Fixed. We need to make a copy
36140 of ListViewSubItemCollection as well.
36142 2004-12-06 Peter Bartok <pbartok@novell.com>
36144 * Control.cs (Parent): Added check and exception to prevent
36147 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
36149 * ListBox.cs: implemented clipping, selection single and multiple,
36152 2004-12-03 Ravindra <rkumar@novell.com>
36154 * ListView.cs (ListView_KeyDown):
36155 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36156 when CTRL key is pressed.
36157 * ListViewItem.cs (Selected): Fixed setting the property.
36159 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36161 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36163 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36164 MinimizeBox, ShowInTaskbar, TopMost properties.
36166 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36167 will be implemented).
36169 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36171 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36173 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36176 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36178 * TreeView.cs: BackColor is Colors.Window.
36180 2004-12-01 Jackson Harper <jackson@ximian.com>
36182 * TreeView.cs: When resizing the tree if the user is making it
36183 smaller we don't get expose events, so we need to handle adding
36184 the horizontal scrollbar in the size changed handler as well as
36185 the expose handler.
36187 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
36189 * DrawItemState.cs: fixes wrong enum values
36191 2004-12-01 Jackson Harper <jackson@ximian.com>
36193 * TreeView.cs: Resize the hbar as well as the vbar on resize.
36195 2004-12-01 Jackson Harper <jackson@ximian.com>
36197 * NodeLabelEditEventArgs.cs:
36198 * NodeLabelEditEventHandler.cs:
36199 * OpenTreeNodeEnumerator.cs:
36201 * TreeNodeCollection.cs:
36203 * TreeViewAction.cs:
36204 * TreeViewCancelEventArgs.cs:
36205 * TreeViewCancelEventHandler.cs:
36206 * TreeViewEventArgs.cs:
36207 * TreeViewEventHandler.cs: Initial implementation.
36209 2004-12-01 Ravindra <rkumar@novell.com>
36211 * ListView.cs (CalculateListView): Fixed scrolling related
36212 calculations. Also, removed some debug statements from other
36214 * ListViewItem.cs: Changed access to 'selected' instance variable
36215 from private to internal.
36216 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36218 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
36220 * ThemeWin32Classic.cs: remove cache of brush and pens for
36221 specific controls and use the global system, fixes scrollbutton
36222 bugs (for small sizes, disabled, etc)
36224 * ScrollBar.cs: does not show the thumb for very small controls
36225 (as MS) and allow smaller buttons that the regular size
36227 2004-12-01 Miguel de Icaza <miguel@ximian.com>
36229 * UpDownBase.cs: Add abstract methods for the interface.
36230 Add new virtual methods (need to be hooked up to TextEntry when it
36232 Add override methods for most features.
36233 Computes the size, forces the height of the text entry.
36235 * NumericUpDown.cs: Put here the current testing code.
36237 * Set eol-style property on all files that do not have mixed line
36238 endings, to minimize the future problems. There are still a few
36239 files with mixed endings, and someone should choose whether they
36240 want to move it or not.
36242 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
36244 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36247 2004-11-30 Ravindra <rkumar@novell.com>
36249 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36250 drawing and replaced use of SystemColors by theme colors.
36251 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36252 * ListView.cs (ListViewItemCollection.Add): Throw exception when
36253 same ListViewItem is being added more than once.
36255 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
36257 * MonthCalendar.cs:
36258 - ControlStyles love to make the control not flicker
36260 2004-11-30 Peter Bartok <pbartok@novell.com>
36262 * CharacterCasing.cs: Added
36264 2004-11-29 Peter Bartok <pbartok@novell.com>
36266 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36267 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36268 I am removing these files as they conflict with already completed
36269 work. While it is fantastic to get contributions to MWF, I
36270 respectfully ask that everyone please coordinate their contributions
36271 through mono-winforms-list or #mono-winforms at this time. We're
36272 explicitly avoiding stubbing and don't want controls that don't have
36273 their basic functionality implemented in svn. Please also see
36274 http://www.mono-project.com/contributing/winforms.html
36277 2004-11-29 Marek Safar <marek.safar@seznam.cz>
36279 * Application.cs (ModalRun): Don't hang after exit.
36281 * Theme.cs: New TreeViewDefaultSize property.
36283 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36284 with less hardcoded SystemColors constant.
36285 Implemented TreeViewDefaultSize.
36287 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36288 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36291 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
36293 * MonthCalendar.cs:
36294 - Fix NextMonthDate and PrevMonthDate click moving calendar
36296 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36298 * MonthCalendar.cs:
36299 - Fix usage of ScrollChange Property when scrolling months
36301 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
36303 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36304 - Fixes menu destroying
36305 - Support adding and removing items on already created menus
36307 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36309 * MonthCalendar.cs:
36310 - Re-worked all bolded dates handling to match win32
36311 * ThemeWin32Classic.cs:
36312 - Fixed rendering with bolded dates
36314 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
36316 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36317 - Horizontal scroolbar
36322 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
36324 * MonthCalendar.cs:
36325 - Fix Usage of MaxSelectionCount from SelectionRange
36326 - Fixed Shift + Cursor Selection
36327 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36328 - Fixed normal cursor selection to be compat with win32
36329 - Fixed Shift + Mouse Click selection
36331 2004-11-24 Peter Bartok <pbartok@novell.com>
36333 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36334 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36336 - CreatedKeyBoardMsg now updates keystate with Alt key
36337 - Added workaround for timer crash to CheckTimers, Jackson will
36338 develop a proper fix and check in later
36339 - Implemented DispatchMessage
36340 - Removed calling the native window proc from GetMessage (call
36341 now moved to DispatchMessage)
36343 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36344 the keydata (Fixes bug #69831)
36347 - (DispatchMessage): Switched to return IntPtr
36348 - Added DllImport for SetFocus
36350 2004-11-24 Ravindra <rkumar@novell.com>
36352 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36353 background drawing.
36354 * ListViewItem.cs: Fixed various properties, calculations
36355 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36356 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36357 and some internal properties. Fixed MouseDown handler and Paint
36360 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36362 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36364 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36366 * ContainerControl.cs: correct accidental check in of local changes
36368 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36370 * ThemeWin32Classic.cs:
36371 - Fixed Drawing Last month in grid (sometimes not showing)
36372 * MonthCalendar.cs:
36373 - Fixed title width calculation bug (makeing title small)
36375 2004-11-23 Peter Bartok <pbartok@novell.com>
36378 - Added generation of WM_MOUSEHOVER event
36379 - Added missing assignment of async_method atom
36380 - Fixed WM_ERASEBKGND; now only redraws the exposed area
36382 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36384 * ThemeWin32Classic.cs:
36385 - Fixed Drawing of today circle when showtodaycircle not set
36386 - fixed drawing of first and last month in the grid (gay dates)
36387 * MonthCalendar.cs:
36388 - Fixed Drawing of today circle
36389 - Fixed drawing of grady dates
36390 - Fixed HitTest for today link when ShowToday set to false
36391 - Fixed DefaultSize to obey ShowToday
36393 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36395 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36396 * System.Windows.Forms/Theme.cs
36397 * MonthCalendar.cs: added for MonthCalendar
36398 * SelectionRange.cs: added for MonthCalendar
36399 * Day.cs: added for MonthCalendar: added for MonthCalendar
36400 * DateRangeEventArgs.cs: added for MonthCalendar
36401 * DateRangeEventHandler.cs: added for MonthCalendar
36403 2004-11-22 Ravindra <rkumar@novell.com>
36405 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36408 2004-11-22 Miguel de Icaza <miguel@ximian.com>
36410 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36413 * NumericUpDown.cs: Added new implementation.
36414 * UpDownBase.cs: Added new implementation.
36416 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36419 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36422 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36425 2004-11-21 Miguel de Icaza <miguel@ximian.com>
36427 * Timer.cs (Dispose): Should call the base dispose when
36430 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36432 * ScrollBar.cs: updates thumb position when max, min or increment
36435 2004-11-21 Ravindra <rkumar@novell.com>
36437 * ListView.cs: Implemented item selection, activation and
36438 column header style. Fixed properties to do a redraw, if
36439 required. Added support for MouseHover, DoubleClick, KeyDown
36440 and KeyUp event handling and some minor fixes.
36441 * ListViewItem.cs: Fixed constructor.
36442 * ThemeWin32Classic.cs: Improved drawing for ListView.
36444 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36446 * ThemeWin32Classic.cs: initial listbox drawing code
36447 * DrawMode.cs: new enumerator
36448 * ListControl.cs: stubbed class
36449 * ListBox.cs: initial implementation
36450 * Theme.cs: new methods definitions
36451 * SelectionMode.cs: new enumerator
36453 2004-11-17 Peter Bartok <pbartok@novell.com>
36455 * XplatUIWin32.cs: Added double-click events to the class style
36456 * Control.cs (WndProc):
36457 - Added handling of click-count to MouseDown/ MouseUp events.
36458 - Added handling of middle and right mouse buttons
36459 - Removed old debug code
36461 2004-11-17 Jackson Harper <jackson@ximian.com>
36463 * XplatUIX11.cs: Use the new Mono.Unix namespace.
36465 2004-11-17 Ravindra <rkumar@novell.com>
36467 * ListView.cs: Added event handling for MouseMove/Up/Down.
36468 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36469 * ThemeWin32Classic.cs: We need to clear the graphics context and
36470 draw column header in a proper state.
36473 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
36475 * Menu.cs: fixes signature
36477 2004-11-16 Peter Bartok <pbartok@novell.com>
36479 * XplatUIX11.cs (GetMessage): Implemented generation of
36480 double click mouse messages
36482 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
36484 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36487 2004-11-11 Peter Bartok <pbartok@novell.com>
36489 * HandleData.cs: Added Visible property
36490 * XplatUIX11.cs (IsVisible): Now uses Visible property from
36492 * XplatUIX11.cs: Removed old debug leftovers
36493 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36494 * Control.cs (WndProc): Removed old debug leftovers,
36495 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36496 needed WM_SIZE handling
36498 2004-11-11 Jackson Harper <jackson@ximian.com>
36500 * OwnerDrawPropertyBag.cs:
36501 * TreeViewImageIndexConverter.cs: Initial implementation
36503 2004-11-10 Jackson Harper <jackson@ximian.com>
36505 * ThemeWin32Classic.cs:
36506 * TabControl.cs: instead of moving tabs by the slider pos just
36507 start drawing at the tab that is offset by the slider. This way
36508 scrolling always moves by exactly one tab.
36510 2004-11-10 Jackson Harper <jackson@ximian.com>
36512 * TabControl.cs: You can only scroll left when the slider has
36513 already ben moved right.
36515 2004-11-10 Jackson Harper <jackson@ximian.com>
36517 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36520 2004-11-10 Jackson Harper <jackson@ximian.com>
36522 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36525 2004-11-09 Jackson Harper <jackson@ximian.com>
36527 * TabControl.cs (CalcXPos): New helper method so we can determine
36528 the proper place to start drawing vertical tabs.
36529 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36531 2004-11-09 Jackson Harper <jackson@ximian.com>
36533 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36534 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36535 and Bottom, left and right are illegal values for this and
36536 multiline is enabled when the alignment is set to left or right.
36537 (DrawTab): Each alignment block should draw the text itself now
36538 because Left requires special love. Also add rendering for Left
36541 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
36543 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36544 does not destroy the windows, removes debugging messages
36546 2004-11-09 jba <jba-mono@optusnet.com.au>
36548 * ThemeWin32Classic.cs
36549 (DrawButtonBase): Fix verticle text rect clipping in windows
36550 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36551 rendering and incorrect text rect clipping
36552 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36553 rendering and incorrect text rect clipping
36555 2004-11-08 Jackson Harper <jackson@ximian.com>
36557 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36558 bottom when they are bottom aligned so the bottoms of the tabs get
36560 * TabControl.cs (DropRow): Move rows up instead of down when the
36561 tab control is bottom aligned.
36563 2004-11-08 13:59 pbartok
36566 - Added handling for various window styles
36567 - Added handling for popup windows
36568 - Added SetTopmost handling
36570 2004-11-08 13:55 pbartok
36573 - Added argument to SetTopmost method
36574 - Fixed broken ClientToScreen function
36576 2004-11-08 13:53 pbartok
36578 * XplatUIStructs.cs:
36579 - Added missing WS_EX styles
36581 2004-11-08 13:53 pbartok
36583 * XplatUI.cs, XplatUIDriver.cs:
36584 - Added argument to SetTopmost
36586 2004-11-08 13:52 pbartok
36589 - Added XSetWindowAttributes structure
36590 - Improved XWindowAttributes structure
36591 - Added SetWindowValuemask enum
36592 - Added window creation arguments enum
36593 - Added gravity enum
36594 - Added Motif hints structure
36595 - Added various Motif flags and enums
36596 - Added PropertyMode enum for property functions
36598 2004-11-08 13:50 pbartok
36601 - Fixed arguments for updated SetTopmost method
36603 2004-11-08 13:49 pbartok
36606 - Fixed arguments for updated SetTopmost function
36607 - Fixed usage of PointToClient
36609 2004-11-08 13:44 pbartok
36612 - Added Clipping of children and siblings
36614 2004-11-08 13:41 pbartok
36617 - Removed SetMenuBarWindow call. We do this in Form.cs
36619 2004-11-08 13:40 jackson
36621 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36622 scrolling jimmi in the correct location with bottom aligned tabs
36624 2004-11-08 13:36 pbartok
36626 * ContainerControl.cs:
36627 - Implemented BindingContext
36628 - Implemented ParentForm
36630 2004-11-08 12:46 jackson
36632 * TabControl.cs: Put bottom rendered tabs in the right location
36634 2004-11-08 07:15 jordi
36636 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36639 2004-11-05 17:30 jackson
36641 * TabControl.cs: When selected tabs are expanded make sure they
36642 don't go beyond the edges of the tab control
36644 2004-11-05 14:57 jackson
36646 * TabControl.cs: Reset show_slider so if the control is resized to
36647 a size where it is no longer needed it's not displayed anymore
36649 2004-11-05 13:16 jackson
36651 * TabControl.cs: Make tab pages non visible when added to the
36654 2004-11-05 12:42 jackson
36656 * TabControl.cs: Implement SizeMode.FillToRight
36658 2004-11-05 12:16 jackson
36660 * Control.cs: Do not call CreateHandle if the handle is already
36663 2004-11-05 11:46 jackson
36665 * TabControl.cs: Remove superflous call to CalcTabRows
36667 2004-11-05 09:07 jackson
36669 * XplatUIX11.cs: Update for Mono.Posix changes
36671 2004-11-05 07:00 ravindra
36673 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
36676 2004-11-04 22:47 jba
36678 * ThemeWin32Classic.cs:
36679 - Fix Button rendering for FlatStyle = Flat or Popup
36680 - Fix RadioButton and CheckBox rendering when Appearance = Button
36681 (normal and flatstyle).
36682 - Correct outer rectangle color when drawing focus rectangle
36683 - Adjust button bounds to be 1 px smaller when focused
36684 - Make button not draw sunken 3d border when pushed (windows compat)
36685 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
36686 - Offset the text in RadioButton and Checkbox when being rendered as
36688 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
36690 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
36691 - Fixed disabled text rendering for normally rendered radiobuttons
36693 2004-11-04 10:26 jackson
36695 * TabControl.cs: Recalculate tab rows when resizing
36697 2004-11-04 07:47 jordi
36699 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
36700 collection completion, drawing issues, missing features
36702 2004-11-04 05:03 ravindra
36705 - We need to recalculate the Thumb area when
36706 LargeChange/maximum/minimum values are changed.
36707 - We set the 'pos' in UpdatePos() method to minimum, if it's less
36708 than minimum. This is required to handle the case if large_change is
36709 more than max, and use LargeChange property instead of large_change
36711 - We return max+1 when large_change is more than max, like MS does.
36713 2004-11-04 04:29 ravindra
36715 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
36716 - Changed default value signatures (prefixed all with ListView).
36717 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
36719 - Fixed calculations for ListViewItem and implemented Clone()
36722 2004-11-04 04:26 ravindra
36724 * Theme.cs, ThemeWin32Classic.cs:
36725 - Changed default ListView values signatures (prefixed all with
36727 - Fixed default size values for VScrollBar and HScrollBar.
36728 - Fixed DrawListViewItem method.
36730 2004-11-04 04:05 ravindra
36732 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
36734 2004-11-04 04:04 ravindra
36736 * ImageList.cs: Implemented the missing overload for Draw method.
36738 2004-11-03 19:29 jackson
36740 * TabControl.cs: Handle dropping rows on selection properly
36742 2004-11-03 11:59 jackson
36744 * TabControl.cs: remove debug code
36746 2004-11-03 11:52 jackson
36748 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
36749 the scrolly widgerywoo
36751 2004-11-02 13:52 jackson
36753 * TabControl.cs: Resize the tab pages and tabs when the tab control
36756 2004-11-02 13:40 jackson
36758 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
36759 selected tab to the bottom
36761 2004-11-02 13:39 jackson
36763 * TabPage.cs: Store the tab pages row
36765 2004-11-02 12:33 jordi
36767 * MenuItem.cs: fixes handle creation
36769 2004-11-02 11:42 jackson
36771 * TabControl.cs: signature fix
36773 2004-11-02 08:56 jackson
36775 * TabControl.cs: Calculate whether the tab is on an edge properly.
36776 Remove top secret debugging code
36778 2004-11-01 19:57 jackson
36780 * TabControl.cs: Add click handling, and proper sizing
36782 2004-11-01 19:47 jackson
36784 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
36787 2004-11-01 19:39 jackson
36789 * TabPage.cs: add internal property to store the bounds of a tab
36792 2004-10-30 04:23 ravindra
36794 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
36797 2004-10-30 04:21 ravindra
36799 * ListView.cs, ListViewItem.cs: Added support for scrolling and
36800 fixed calculations.
36802 2004-10-30 03:06 pbartok
36805 - Removed extension of DllImported libs
36807 2004-10-29 09:55 jordi
36809 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
36810 navigation, itemcollection completion, menu fixes
36812 2004-10-27 22:58 pbartok
36815 - Now throws a nice error message when no X display could be opened
36817 2004-10-26 13:51 jordi
36819 * ListView.cs: removes warning
36821 2004-10-26 03:55 ravindra
36823 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
36824 ThemeWin32Classic.cs: Some formatting for my last checkins.
36826 2004-10-26 03:36 ravindra
36828 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
36829 control and default values.
36831 2004-10-26 03:35 ravindra
36833 * Theme.cs: Added some default values for ListView control.
36835 2004-10-26 03:33 ravindra
36837 * ToolBar.cs: ToolBar should use the user specified button size, if
36838 there is any. Added a size_specified flag for the same.
36840 2004-10-26 03:33 ravindra
36842 * ColumnHeader.cs: Added some internal members and calculations for
36845 2004-10-26 03:32 ravindra
36847 * ListViewItem.cs: Calculations for ListViewItem.
36849 2004-10-26 03:31 ravindra
36851 * ListView.cs: Added some internal members and calculations for
36854 2004-10-22 13:31 jordi
36856 * MenuAPI.cs: speedup menus drawing
36858 2004-10-22 13:16 jackson
36860 * XplatUIX11.cs: Make sure to update exposed regions when adding an
36863 2004-10-22 11:49 jackson
36867 2004-10-22 11:41 jackson
36869 * Control.cs: Check to see if the window should have its background
36870 repainted by X when drawing.
36872 2004-10-22 11:31 jackson
36874 * XplatUIX11.cs: When invalidating areas only use XClearArea if
36875 clear is true, this way we do not get flicker from X repainting the
36878 2004-10-22 11:28 jackson
36880 * XEventQueue.cs: Queue properly
36882 2004-10-21 09:38 jackson
36884 * XEventQueue.cs: Fix access modifier
36886 2004-10-21 09:36 jackson
36888 * XEventQueue.cs: Don't loose messages
36890 2004-10-21 09:22 jackson
36892 * XEventQueue.cs: Don't loose messages
36894 2004-10-20 04:15 jordi
36896 * BootMode.cs: enum need it by SystemInfo
36898 2004-10-19 21:58 pbartok
36901 - Small sanity check
36903 2004-10-19 21:56 pbartok
36906 - Added private FormParentWindow class which acts as the container
36907 for our form and as the non-client area where menus are drawn
36908 - Added/Moved required tie-ins to Jordi's menus
36909 - Fixed/Implemented the FormStartPosition functionality
36911 2004-10-19 21:52 pbartok
36914 - Removed unneeded locals
36915 - Added code to all size and location properties to understand and
36916 deal with the parent container of Form
36918 2004-10-19 21:33 pbartok
36921 - Fixed to deal with new Form subclasses for menus
36923 2004-10-19 17:48 jackson
36925 * XEventQueue.cs: commit correct version of file
36927 2004-10-19 16:50 jackson
36929 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
36931 2004-10-19 16:15 jordi
36933 * MenuAPI.cs: MenuBarCalcSize returns the height
36935 2004-10-19 08:31 pbartok
36938 - Added missing call to PreProcessMessage before calling OnXXXKey
36941 2004-10-19 00:04 ravindra
36943 * ToolTip.cs: Fixed constructor.
36945 2004-10-18 09:31 jordi
36947 * MenuAPI.cs: menuitems in menubars do not have shortcuts
36949 2004-10-18 09:26 jordi
36951 * MenuItem.cs: fixes MenuItem class signature
36953 2004-10-18 08:56 jordi
36955 * MenuAPI.cs: prevents windows from showing in the taskbar
36957 2004-10-18 00:28 ravindra
36959 * ToolTip.cs: Suppressed a warning message.
36961 2004-10-18 00:27 ravindra
36963 * Control.cs: Default value of visible property must be true.
36965 2004-10-17 23:19 pbartok
36968 - Complete implementation
36970 2004-10-17 23:19 pbartok
36973 - Added EnableWindow method
36974 - Added SetModal stub
36975 - Added generation of WM_ACTIVATE message (still needs testing)
36976 - Added SetTopMost stub
36977 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
36979 2004-10-17 23:17 pbartok
36982 - Removed VirtualKeys to XplatUIStructs
36983 - Implemented SetTopMost method
36984 - Implemented EnableWindow method
36985 - Bugfix in ScreenToClient()
36986 - Bugfixes in ClientToScreen()
36988 2004-10-17 22:51 pbartok
36990 * XplatUIStructs.cs:
36991 - Added WS_EX styles to WindowStyles enumeration
36993 2004-10-17 22:50 pbartok
36995 * XplatUI.cs, XplatUIDriver.cs:
36996 - Added method for enabling/disabling windows
36997 - Added method for setting window modality
36998 - Added method for setting topmost window
37000 2004-10-17 22:49 pbartok
37002 * ThemeWin32Classic.cs:
37003 - Added ToolTip drawing code
37005 2004-10-17 22:49 pbartok
37008 - Added ToolTip abstracts
37010 2004-10-17 22:47 pbartok
37013 - Fixed Form.ControlCollection to handle owner relations
37014 - Added Owner/OwnedForms handling
37015 - Implemented Z-Ordering for owned forms
37016 - Removed unneeded private overload of ShowDialog
37017 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37019 - Fixed Close(), had wrong default
37020 - Added firing of OnLoad event
37021 - Added some commented out debug code for Ownership handling
37023 2004-10-17 22:16 pbartok
37026 - Fixed/implemented flat list of controls
37028 2004-10-17 22:14 pbartok
37031 - Added code to simulate modal dialogs on Win32
37033 2004-10-17 16:11 jordi
37035 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37038 2004-10-17 13:39 jordi
37040 * MenuAPI.cs: menu drawing fixes
37042 2004-10-15 09:10 ravindra
37044 * StructFormat.cs: General Enum.
37046 2004-10-15 09:09 ravindra
37048 * SizeGripStyle.cs: Enum for Form.
37050 2004-10-15 09:08 ravindra
37052 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37053 in Theme for ListView.
37055 2004-10-15 09:06 ravindra
37057 * ColumnHeader.cs: Flushing some formatting changes.
37059 2004-10-15 09:05 ravindra
37061 * ListViewItem.cs: Implemented GetBounds method and fixed coding
37064 2004-10-15 09:03 ravindra
37066 * ListView.cs: Implemented Paint method and fixed coding style.
37068 2004-10-15 07:34 jordi
37070 * MenuAPI.cs: fix for X11
37072 2004-10-15 07:32 ravindra
37074 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37075 - Renamed Paint() method to Draw() for clarity. Also, moved
37076 DrawImage() to OnPaint().
37078 2004-10-15 07:25 ravindra
37080 * CheckBox.cs, RadioButton.cs:
37081 - Removed Redraw (), we get it from ButtonBase.
37082 - Implemented Paint (), to do class specific painting.
37084 2004-10-15 07:16 ravindra
37087 - Redraw () is not virtual now.
37088 - Added an internal virtual method Paint (), so that
37089 derived classes can do their painting on their own.
37090 - Modified OnPaint () to call Paint ().
37092 2004-10-15 06:43 jordi
37094 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37095 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37097 2004-10-15 00:30 ravindra
37100 - MessageBox on windows does not have min/max buttons.
37101 This change in CreateParams fixes this on Windows. We
37102 still need to implement this windowstyle behavior in
37105 2004-10-14 05:14 ravindra
37108 - Changed Redraw () to do a Refresh () always.
37109 - Fixed the MouseMove event handling when mouse is pressed,
37110 ie drag event handling.
37111 - Replaced the usage of ToolBarButton.Pressed property to
37112 ToolBarButton.pressed internal variable.
37114 2004-10-14 05:10 ravindra
37116 * ToolBarButton.cs:
37117 - Added an internal member 'inside' to handle mouse move
37118 with mouse pressed ie mouse drag event.
37119 - Changed 'Pressed' property to return true only when
37120 'inside' and 'pressed' are both true.
37121 - Some coding style love.
37123 2004-10-14 00:17 ravindra
37125 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37128 2004-10-14 00:15 ravindra
37130 * ButtonBase.cs: Redraw () related improvements.
37132 2004-10-14 00:14 ravindra
37134 * MessageBox.cs: Moved InitFormSize () out of Paint method and
37135 removed unnecessary calls to Button.Show () method.
37137 2004-10-13 17:50 pbartok
37141 - Removed destroying of window until we solve the problem of X
37142 destroying the window before us on shutdown
37144 2004-10-13 16:32 pbartok
37147 - Now Redraws on MouseUp for FlatStyle Flat and Popup
37149 2004-10-13 14:18 pbartok
37152 - Added code to destroy the X window
37154 2004-10-13 14:18 pbartok
37157 - Added code to destroy a window
37159 2004-10-13 14:12 pbartok
37162 - Added the Redraw on Resize that got dropped in the last rev
37164 2004-10-13 09:06 pbartok
37166 * ThemeWin32Classic.cs:
37167 - Path from John BouAntoun:
37168 * Fix check rendering (centre correctly for normal style, offset
37169 correctly for FlatStyle).
37170 * Fix border color usage (use backcolor) for FlatStyle.Popup
37171 * Use checkbox.Capture instead of checkbox.is_pressed when
37172 rendering flatstyle states.
37174 2004-10-12 21:48 pbartok
37176 * ThemeWin32Classic.cs:
37177 - Removed all occurences of SystemColors and replaced them with the
37178 matching theme color
37180 2004-10-12 21:41 pbartok
37182 * ThemeWin32Classic.cs:
37183 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37184 him using the function for flatstyle drawing
37185 - Changed functions to use the new version of CPDrawBorder3D
37187 2004-10-12 21:15 pbartok
37190 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37191 match MS documentation. They need to return defined colors if the
37192 passed color matches the configured control color. Thanks to John
37193 BouAntoun for pointing this out.
37195 2004-10-12 20:57 pbartok
37198 - Fix from John BouAntoun: Raise ForeColorChanged event when text
37201 2004-10-12 20:46 pbartok
37204 - Fix from John BouAntoun: Now properly sets the Appearance property
37206 2004-10-12 20:45 pbartok
37208 * ThemeWin32Classic.cs:
37209 - Fixes from John BouAntoun: now handles forecolors and backcolors
37210 for flatstyle rendered controls much better; It also fixes normal
37211 checkbox rendering when pushed or disabled.
37213 2004-10-08 02:50 jordi
37215 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37218 2004-10-07 08:56 jordi
37220 * ThemeWin32Classic.cs: Removes deletion of cached brushes
37222 2004-10-06 03:59 jordi
37224 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37225 XplatUIWin32.cs: removes warnings from compilation
37227 2004-10-05 12:23 jackson
37229 * RadioButton.cs: Fix ctor
37231 2004-10-05 11:10 pbartok
37234 - Partial implementation by Benjamin Dasnois
37236 2004-10-05 10:15 jackson
37238 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37241 2004-10-05 03:07 ravindra
37244 - Removed a private method, Draw ().
37245 - Fixed the ButtonDropDown event handling.
37246 - Fixed MouseMove event handling.
37248 2004-10-05 03:04 ravindra
37250 * ThemeWin32Classic.cs:
37251 - Added DrawListView method and ListViewDefaultSize property.
37252 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37253 - Changed DOS style CRLF to Unix format (dos2unix).
37255 2004-10-05 03:03 ravindra
37258 - Added DrawListView method and ListViewDefaultSize property.
37260 2004-10-05 02:42 ravindra
37262 * ToolBarButton.cs: Added an internal member dd_pressed to handle
37263 clicks on DropDown arrow.
37265 2004-10-04 22:56 jackson
37267 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37268 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37269 Control handle the buffers, derived classes should not have to
37270 CreateBuffers themselves.
37272 2004-10-04 21:20 jackson
37274 * StatusBar.cs: The control handles resizing the buffers now.
37276 2004-10-04 21:18 jackson
37278 * Control.cs: When resizing the buffers should be invalidated. This
37279 should be handled in Control not in derived classes.
37281 2004-10-04 14:45 jackson
37285 2004-10-04 02:14 pbartok
37287 * LeftRightAlignment.cs:
37290 2004-10-04 01:09 jordi
37292 * ThemeWin32Classic.cs: fixes right button position causing right
37293 button not showing on horizontal scrollbars
37295 2004-10-02 13:12 pbartok
37298 - Simplified the Invalidate method by using an X call instead of
37299 generating the expose ourselves
37300 - Added an expose when the window background is changed
37301 - Implemented ClientToScreen method
37303 2004-10-02 13:08 pbartok
37306 - Added Win32EnableWindow method (test for implementing modal
37308 - Added ClientToScreen method and imports
37310 2004-10-02 13:07 pbartok
37312 * XplatUI.cs, XplatUIDriver.cs:
37313 - Added ClientToScreen coordinate translation method
37315 2004-10-02 13:06 pbartok
37317 * KeyPressEventArgs.cs:
37318 - Fixed access level for constructor
37320 2004-10-02 13:06 pbartok
37323 - Changed access level for the window_collection hash table
37325 2004-10-02 13:05 pbartok
37328 - Added KeyPreview property
37329 - Added Menu property (still incomplete, pending Jordi's menu work)
37330 - Implemented ProcessCmdKey
37331 - Implemented ProcessDialogKey
37332 - Implemented ProcessKeyPreview
37334 2004-10-02 13:02 pbartok
37337 - Added private method to get the Control object from the window
37339 - Implemented ContextMenu property
37340 - Implemented PointToScreen
37341 - Implemented PreProcessMessage
37342 - Implemented IsInputChar
37343 - Implemented IsInputKey
37344 - Implemented ProcessCmdKey
37345 - Completed ProcessKeyEventArgs
37346 - Fixed message loop to call the proper chain of functions on key
37348 - Implemented ProcessDialogChar
37349 - Implemented ProcessDialogKey
37350 - Implemented ProcessKeyMessage
37351 - Implemented ProcessKeyPreview
37352 - Added RaiseDragEvent stub (MS internal method)
37353 - Added RaiseKeyEvent stub (MS internal method)
37354 - Added RaiseMouseEvent stub (MS Internal method)
37355 - Added RaisePaintEvent stub (MS Internal method)
37356 - Added ResetMouseEventArgs stub (MS Internal method)
37357 - Implemented RtlTranslateAlignment
37358 - Implemented RtlTranslateContent
37359 - Implemented RtlTranslateHorizontal
37360 - Implemented RtlTranslateLeftRight
37361 - Added generation of KeyPress event
37363 2004-10-02 05:57 ravindra
37365 * ListViewItem.cs: Added attributes.
37367 2004-10-02 05:32 ravindra
37369 * ListView.cs: Added attributes.
37371 2004-10-01 11:53 jackson
37373 * Form.cs: Implement the Close method so work on MessageBox can
37376 2004-09-30 14:06 pbartok
37381 2004-09-30 11:34 jackson
37383 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37385 2004-09-30 07:26 ravindra
37387 * ListViewItemConverter.cs: Converter for ListViewItem.
37389 2004-09-30 07:26 ravindra
37391 * SortOrder.cs: Enum for ListView control.
37393 2004-09-30 07:25 ravindra
37395 * ColumnHeader.cs: Supporting class for ListView control.
37397 2004-09-30 07:24 ravindra
37399 * ListView.cs, ListViewItem.cs: Initial implementation.
37401 2004-09-30 07:20 ravindra
37403 * ItemActivation.cs: Enum for ListView Control.
37405 2004-09-29 20:29 pbartok
37408 - Added lookup of pixel value for background color; tries to get a
37409 color 'close' to the requested color, it avoids having to create a
37410 colormap. Depending on the display this could mean the used color
37411 is slightly off the desired color. Might have to change it to a more
37412 resource intensive colormap approach, but it will work as a
37413 workaround to avoid red screens.
37415 2004-09-29 14:27 jackson
37417 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37419 2004-09-28 12:44 pbartok
37421 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37422 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37423 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37424 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37425 TrackBar.cs, VScrollBar.cs:
37426 - Streamlined Theme interfaces:
37427 * Each DrawXXX method for a control now is passed the object for
37428 the control to be drawn in order to allow accessing any state the
37429 theme might require
37431 * ControlPaint methods for the theme now have a CP prefix to avoid
37432 name clashes with the Draw methods for controls
37434 * Every control now retrieves it's DefaultSize from the current
37437 2004-09-28 12:17 jackson
37439 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37442 2004-09-24 14:57 jackson
37444 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37445 Gives us a nice little performance boost.
37447 2004-09-24 12:02 jackson
37449 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37450 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37451 Control and supporting classes. Initial checkin
37453 2004-09-23 13:08 jackson
37455 * Form.cs: Temp build fixage
37457 2004-09-23 01:39 ravindra
37459 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37460 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37461 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37462 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37463 EventHandlers needed by ListView Control.
37465 2004-09-22 14:12 pbartok
37467 * ScrollableControl.cs:
37468 - Implemented DockPadding property
37469 - Implemented AutoScroll property
37470 - Implemented AutoScrollMargin property
37471 - Implemented AutoScrollMinSize property
37472 - Implemented AutoScrollPosition property
37473 - Implemented DisplayRectangle property (still incomplete)
37474 - Implemented CreateParams property
37475 - Implemented HScroll property
37476 - Implemented VScroll property
37477 - Implemented OnVisibleChanged property
37479 2004-09-22 14:09 pbartok
37482 - Added Form.ControllCollection class
37483 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37484 RemoveOwnedForm (still incomplete, missing on-top and common
37485 minimize/maximize behaviour)
37486 - Added StartPosition property (still incomplete, does not use when
37488 - Added ShowDialog() methods (still incomplete, missing forcing the
37491 2004-09-22 14:05 pbartok
37494 - Added message loop for modal dialogs
37496 2004-09-22 14:02 pbartok
37499 - Fixed wrong types for events
37501 2004-09-22 14:00 pbartok
37503 * Shortcut.cs, FormWindowState.cs:
37504 - Fixed wrong values
37506 2004-09-22 12:01 jackson
37508 * Control.cs: Text is never null
37510 2004-09-20 22:14 pbartok
37513 - Fixed accessibility level for Idle handler
37515 2004-09-20 18:54 jackson
37517 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37518 XplatUIX11.cs: New message loop that uses poll so we don't get a
37521 2004-09-17 10:43 pbartok
37524 - Fixed behaviour of arrow buttons. Now properly behaves like
37525 Buttons (and like Microsoft's scrollbar arrow buttons)
37527 2004-09-17 10:14 pbartok
37530 - Added missing release of keyboard/mouse capture
37532 2004-09-17 06:18 jordi
37534 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37535 Theme.cs: Very early menu support
37537 2004-09-16 17:45 pbartok
37540 - Fixed sending a window to the front
37541 - Added overload for SetWindowPos to avoid casting
37543 2004-09-16 17:44 pbartok
37546 - Added SendToBack and BringToFront methods
37548 2004-09-16 07:00 ravindra
37550 * Copyright: Added Novell URL.
37552 2004-09-16 07:00 ravindra
37554 * ToolBar.cs: Invalidate should be done before redrawing.
37556 2004-09-15 21:19 ravindra
37558 * ColumnHeaderStyle.cs: Enum for ListView Control.
37560 2004-09-15 21:18 ravindra
37562 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37565 2004-09-13 18:26 jackson
37567 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37570 2004-09-13 18:13 jackson
37572 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37573 a second thread and post messages into the main threads message
37574 queue. This makes timing much more consistent. Both win2K and XP
37575 have a minimum timer value of 15 milliseconds, so we now do this
37578 2004-09-13 15:18 pbartok
37580 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37582 - Added Z-Ordering methods
37584 2004-09-13 10:56 pbartok
37587 - Fixed #region names
37588 - Moved properties and methods into their proper #regions
37590 2004-09-13 10:51 pbartok
37593 - Added Accept and CancelButton properties
37594 - Added ProcessDialogKey() method
37596 2004-09-13 08:18 pbartok
37598 * IWindowTarget.cs:
37601 2004-09-10 21:50 pbartok
37604 - Added DoDragDrop() [incomplete]
37605 - Properly implemented 'Visible' handling
37606 - Added SetVisibleCore()
37607 - Implemented FindChildAtPoint()
37608 - Implemented GetContainerControl()
37609 - Implemented Hide()
37611 2004-09-10 19:28 pbartok
37614 - Moved methods into their appropriate #regions
37615 - Reordered methods within regions alphabetically
37617 2004-09-10 18:57 pbartok
37619 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37620 - Added method to retrieve text from window
37622 2004-09-10 18:56 pbartok
37625 - Moved some internal functions into the internal region
37626 - Implemented FontHeight
37627 - Implemented RenderRightToLeft
37628 - Implemented ResizeRedraw
37629 - Implemented ShowFocusCues
37630 - Implemented ShowKeyboardCues
37631 - Implemented FromChildHandle
37632 - Implemented FromHandle
37633 - Implemented IsMnemonic
37634 - Implemented ReflectMessage
37635 - All public and protected Static Methods are now complete
37637 2004-09-10 16:54 pbartok
37640 - Implemented remaining missing public instance properties
37641 - Alphabetized some out of order properties
37643 2004-09-10 05:51 ravindra
37645 * PictureBox.cs: Added a check for null image.
37647 2004-09-10 00:59 jordi
37649 * GroupBox.cs: remove cvs tag
37651 2004-09-09 05:25 ravindra
37653 * ToolBar.cs: Make redraw accessible from ToolBarButton.
37655 2004-09-09 05:23 ravindra
37657 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
37660 2004-09-09 02:28 pbartok
37662 * ThemeWin32Classic.cs:
37663 - Improve disabled string look
37665 2004-09-09 01:15 jordi
37667 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
37670 2004-09-08 23:56 ravindra
37672 * ItemBoundsPortion.cs: It's enum, not a class!
37674 2004-09-08 23:47 ravindra
37676 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
37679 2004-09-08 21:13 ravindra
37681 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
37684 2004-09-08 21:03 ravindra
37686 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
37689 2004-09-08 21:01 ravindra
37691 * ScrollableControl.cs: Removed unreachable code.
37693 2004-09-08 06:45 jordi
37695 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
37697 2004-09-08 01:00 jackson
37699 * XplatUIX11.cs: Only run the timers when updating the message
37700 queue. This effectively gives X messages a higher priority then
37701 timer messages. Timers still need love though
37703 2004-09-07 14:01 jackson
37705 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
37706 this for us and the handle is no longer valid.
37708 2004-09-07 13:59 jackson
37710 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
37711 loop that manages to not crash. TODO: Add poll and cleanup timers
37713 2004-09-07 11:12 jordi
37715 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
37717 2004-09-07 03:40 jordi
37719 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
37720 fixes, methods, multiple links
37722 2004-09-06 06:55 jordi
37724 * Control.cs: Caches ClientRectangle rectangle value
37726 2004-09-05 02:03 jordi
37728 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
37731 2004-09-04 11:10 jordi
37733 * Label.cs: Refresh when font changed
37735 2004-09-02 16:24 pbartok
37738 - Added sanity check to creation of double buffer bitmap
37740 2004-09-02 16:24 pbartok
37743 - Fixed selection of text color
37744 - Fixed handling of resize event; now properly recreates double
37746 - Added missing assignment of TextAlignment
37747 - Added proper default for TextAlignment
37749 2004-09-02 14:26 pbartok
37752 - Added missing RadioButton.RadioButtonAccessibleObject class
37754 2004-09-02 14:26 pbartok
37757 - Added missing Control.ControlAccessibleObject class
37758 - Started to implement Select()ion mechanisms, still very incomplete
37760 2004-09-02 14:25 pbartok
37762 * AccessibleObject.cs:
37763 - Added missing methods
37765 2004-09-02 14:23 pbartok
37767 * AccessibleNavigation.cs, AccessibleSelection.cs:
37770 2004-09-02 10:32 jordi
37772 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
37773 pool for pens, brushes, and hatchbruses
37775 2004-09-01 15:30 jackson
37777 * StatusBar.cs: Fix typo
37779 2004-09-01 14:44 pbartok
37784 2004-09-01 14:39 pbartok
37786 * Button.cs, RadioButton.cs:
37787 - Functional initial check-in
37789 2004-09-01 14:01 pbartok
37792 - Added missing default
37793 - Added missing region mark
37795 2004-09-01 09:10 jordi
37797 * Label.cs: fixes method signatures, new methods, events, fixes
37800 2004-09-01 07:19 jordi
37802 * Control.cs: Init string variables with an empty object
37804 2004-09-01 04:20 jordi
37806 * Control.cs: fires OnFontChanged event
37808 2004-08-31 20:07 pbartok
37811 - Enabled display of strings
37813 2004-08-31 20:05 pbartok
37816 - Added (partial) implementation of DialogResult; rest needs to be
37817 implemented when the modal loop code is done
37819 2004-08-31 19:55 pbartok
37822 - Fixed to match the removal of the needs_redraw concept
37824 2004-08-31 19:55 pbartok
37827 - Removed the rather odd split between 'needs redraw' and redrawing
37828 - Now handles the events that require regeneration (ambient
37829 properties and size)
37831 2004-08-31 19:41 pbartok
37834 - Added firing of BackColorChanged event
37835 - Added TopLevelControl property
37836 - Fixed handling of WM_ERASEBKGRND message
37838 2004-08-31 12:49 pbartok
37844 2004-08-31 12:48 pbartok
37847 - Finished (famous last words)
37849 2004-08-31 04:35 jordi
37851 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
37852 scrolling bugs, adds new methods
37854 2004-08-30 14:42 pbartok
37857 - Implemented CheckBox drawing code
37859 2004-08-30 14:42 pbartok
37862 - Made Redraw() and CheckRedraw() virtual
37863 - Improved mouse up/down/move logic to properly track buttons
37865 2004-08-30 09:44 pbartok
37868 - Updated to fix broken build. Not complete yet.
37870 2004-08-30 09:28 pbartok
37875 2004-08-30 09:17 pbartok
37880 2004-08-27 16:12 ravindra
37882 * ToolBarButton.cs: Added TypeConverter attribute.
37884 2004-08-27 16:07 ravindra
37886 * ImageIndexConverter.cs: Implemented.
37888 2004-08-27 14:17 pbartok
37891 - Removed unneeded stack vars
37892 - First attempt to fix sizing issues when layout is suspended
37894 2004-08-25 15:35 jordi
37896 * ScrollBar.cs: more fixes to scrollbar
37898 2004-08-25 14:04 ravindra
37900 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
37901 Added the missing divider code and grip for ToolBar Control.
37903 2004-08-25 13:20 pbartok
37906 - Control now properly passes the ambient background color to child
37909 2004-08-25 13:20 jordi
37911 * ScrollBar.cs: small bug fix regarding bar position
37913 2004-08-25 12:33 pbartok
37916 - Now only calls SetTimer or KillTimer if the enabled state has
37919 2004-08-25 12:33 pbartok
37922 - Fixed timer handling, now seems to work
37923 - Improved error message for window creation
37925 2004-08-25 12:32 pbartok
37928 - Fixed generation of MouseUp message
37930 2004-08-25 12:29 jordi
37932 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
37933 and fixes for progressbar
37935 2004-08-24 18:43 ravindra
37937 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
37938 in ToolBar control.
37940 2004-08-24 17:15 pbartok
37944 - Added missing events
37947 2004-08-24 17:14 pbartok
37949 * StatusBar.cs, PictureBox.cs:
37950 - Now uses Control's CreateParams
37952 2004-08-24 16:36 pbartok
37955 - Fixed background color handling
37956 - Fixed sending of enter/leave events on a grab
37958 2004-08-24 16:35 pbartok
37961 - Refined definitions for CrossingEvent
37963 2004-08-24 12:37 jordi
37965 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
37966 formmating, methods signature, and adds missing events
37968 2004-08-24 12:24 jordi
37970 * Control.cs: fire OnEnabledChanged event
37972 2004-08-24 11:17 pbartok
37975 - Implemented SetTimer() and KillTimer()
37977 2004-08-24 11:16 pbartok
37980 - Now uses Remove instead of Add to kill the timer
37982 2004-08-24 10:16 jackson
37984 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
37985 picture boxes in the theme now. Draw picture box borders and obey
37988 2004-08-24 05:49 jackson
37990 * Timer.cs: Remove top secret debugging code
37992 2004-08-24 05:34 jackson
37994 * PictureBox.cs: Temp hack to make picture boxes draw their full
37997 2004-08-24 05:29 jackson
37999 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38000 XplatUIX11.cs: Move timers to the driver level. On X they are
38001 queued by the driver and checked on idle.
38003 2004-08-24 01:07 jackson
38005 * XplatUIX11.cs: Use a queue for async messages instead of passing
38006 them as ClientMessages since that was totally broken. Also simply
38007 check for events and return an idle message if none are found. This
38008 gives us an idle handler, and prevents deadlocking when no messages
38011 2004-08-23 18:19 ravindra
38013 * XplatUIWin32.cs: Removed the unwanted destructor.
38015 2004-08-23 17:27 pbartok
38018 - Finishing touches. Works now, just needs some optimizations.
38020 2004-08-23 16:53 jordi
38022 * ScrollBar.cs: small fix
38024 2004-08-23 16:45 pbartok
38027 - Removed debug output
38030 2004-08-23 16:43 jordi
38032 * ScrollBar.cs: [no log message]
38034 2004-08-23 16:10 pbartok
38037 - Fixed handling of WM_CLOSE message
38038 - Removed debug output
38040 2004-08-23 16:09 pbartok
38043 - Added handling of Idle event
38044 - Added handling of form closing
38045 - Fixed reporting of MessageLoop property
38046 - Removed some unneeded code, should provide a bit of a speedup
38048 2004-08-23 15:22 pbartok
38051 - Added InitLayout() method
38052 - Added code to properly perform layout when Anchor or Dock property
38054 - Changed 'interpretation' of ResumeLayout. MS seems to have a
38055 LAMESPEC, tried to do it in a way that makes sense
38057 2004-08-23 14:10 jordi
38059 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38060 properties and methods
38062 2004-08-23 13:55 pbartok
38065 - Properly fixed Jordi's last fix
38066 - Now uses Cursor's Position property instead of calling XplatUI
38069 2004-08-23 13:44 jordi
38071 * PaintEventHandler.cs: Adding missing attribute
38073 2004-08-23 13:39 pbartok
38076 - Implemented Position property
38078 2004-08-23 13:39 pbartok
38080 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38081 - Added method to move mouse cursor
38083 2004-08-23 13:39 pbartok
38086 - Fixed setting of background color
38087 - Added method to move mouse cursor
38089 2004-08-23 13:16 jordi
38091 * Control.cs: avoids null exception
38093 2004-08-22 17:46 jackson
38095 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38098 2004-08-22 17:40 jackson
38100 * XplatUIX11.cs: Add some missing locks
38102 2004-08-22 15:10 pbartok
38104 * Control.cs, Form.cs:
38105 - Removed OverlappedWindow style from Control, instead it's default
38107 - Made form windows OverlappedWindow by default
38109 2004-08-22 13:34 jackson
38111 * ScrollBar.cs: Update the position through the Value property so
38112 the OnValueChanged event is raised.
38114 2004-08-22 12:04 pbartok
38117 - Added Cursor.cs and UserControl.cs
38119 2004-08-22 12:03 pbartok
38122 - Started implementation, not usable yet
38124 2004-08-22 12:00 pbartok
38127 - Implemented UserControl (complete)
38129 2004-08-21 19:20 ravindra
38131 * ToolBar.cs: Correcting the formatting mess of VS.NET.
38133 2004-08-21 18:49 ravindra
38135 * ToolBar.cs: Probably this completes the missing attributes in
38138 2004-08-21 18:03 ravindra
38140 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38141 Fixed toolbar control signatures.
38143 2004-08-21 16:32 pbartok
38148 2004-08-21 16:30 pbartok
38153 2004-08-21 16:19 pbartok
38155 * Control.cs, Label.cs:
38158 2004-08-21 15:57 pbartok
38161 - Added loads of debug output for development
38162 - Fixed typo in method name
38164 2004-08-21 15:52 pbartok
38166 * ToolBarButtonClickEventArgs.cs:
38167 - Added missing base class
38169 2004-08-21 14:53 pbartok
38172 - Updated to match new GrabWindow signature
38174 2004-08-21 14:51 pbartok
38176 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38177 - Added method to get default display size
38179 2004-08-21 14:23 pbartok
38181 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38182 - Added method to query current grab state
38183 - Added argument to allow confining a grab to a window
38185 2004-08-21 14:22 pbartok
38188 - Added [Flags] attribute so that modifiers can be used in bitwise
38191 2004-08-21 14:21 pbartok
38193 * TrackBar.cs, ScrollBar.cs:
38194 - Replaced direct XplatUI calls with their Control counterpart
38196 2004-08-21 13:32 pbartok
38199 - Implemented Created property
38201 2004-08-21 13:28 pbartok
38204 - Implemented ContainsFocus
38206 2004-08-21 13:26 pbartok
38209 - Implemented CausesValidation
38211 2004-08-21 13:21 pbartok
38214 - Implemented CanFocus
38215 - Implemented CanSelect
38216 - Implemented Capture
38218 2004-08-21 12:35 pbartok
38221 - Fixed bug with Async message handling
38222 - Implemented getting the ModifierKeys
38224 2004-08-21 12:32 jackson
38226 * AsyncMethodResult.cs: Make sure we have the mutex before we
38227 release it. Fixes BeginInvoke on windows
38229 2004-08-21 11:31 pbartok
38231 * XplatUIWin32.cs, XplatUIX11.cs:
38232 - Drivers now return proper mouse state
38234 2004-08-21 10:54 jackson
38236 * Control.cs: Implement EndInvoke
38238 2004-08-21 10:48 jackson
38240 * Timer.cs: Remove unneeded finalizer
38242 2004-08-20 19:52 ravindra
38244 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38245 in mouse event handling in the ToolBar control.
38247 2004-08-20 19:50 ravindra
38249 * ImageList.cs: Changed draw method to use the arguments passed in
38252 2004-08-20 18:58 pbartok
38254 * XplatUIStructs.cs:
38255 - Added private message for async communication
38257 2004-08-20 17:38 ravindra
38259 * Control.cs: Made RightToLeft property virtual and removed a
38262 2004-08-20 14:39 jordi
38264 * ThemeGtk.cs: use style_attach
38266 2004-08-20 14:39 pbartok
38269 - Added jackson's Async code from X11 to Win32
38271 2004-08-20 14:09 pbartok
38274 - Added all new files
38276 2004-08-20 14:09 pbartok
38279 - Added call to set window background color
38281 2004-08-20 14:03 pbartok
38283 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38284 - Added method for setting the window background
38286 2004-08-20 14:02 pbartok
38289 - Added method for setting the background color
38290 - Added handling for erasing the window background
38292 2004-08-20 13:45 jordi
38294 * TrackBar.cs: fixes timer, new properties and methods
38296 2004-08-20 13:34 jackson
38298 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38301 2004-08-20 13:22 jackson
38303 * Timer.cs: Timer Tick events are now handed through Controls Async
38304 mechanism so the callbacks are executed in the same thread as X
38306 2004-08-20 13:19 jackson
38308 * XplatUIDriver.cs: Expose functionality to send async messages
38311 2004-08-20 13:18 jackson
38313 * Control.cs: Implement Begininvoke
38315 2004-08-20 13:14 jackson
38317 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38318 messages through the driver
38320 2004-08-20 13:12 jackson
38322 * XplatUIX11.cs: Lock before all X operations. Also added Async
38323 method functionality through XSendEvent
38325 2004-08-20 13:11 jackson
38327 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38328 This will screw up on 64 bit systems)
38330 2004-08-20 13:10 jackson
38332 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38333 Async messages through X/Win32
38335 2004-08-19 19:39 pbartok
38338 - Updated code to match new HandleData.DeviceContext type
38340 2004-08-19 19:38 pbartok
38343 - Made DeviceContext a generic object to allow usage from various
38345 - Added support for queueing Windows messages
38347 2004-08-19 19:37 pbartok
38350 - Added generation of MouseEnter, MouseLeave and MouseHover events
38351 - Added cleanup on EndPaint
38353 2004-08-19 19:17 pbartok
38356 - Added handling of WM_MOUSEHOVER
38357 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38360 2004-08-19 18:55 jordi
38362 * ThemeGtk.cs: fixes button order
38364 2004-08-19 18:12 jordi
38366 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38368 2004-08-19 17:09 pbartok
38371 - Added Right property
38372 - Added RightToLeft property
38374 2004-08-19 16:27 jordi
38376 * ThemeGtk.cs: experimental GTK theme support
38378 2004-08-19 16:26 jordi
38380 * ITheme.cs, Theme.cs: move themes from an interface to a class
38382 2004-08-19 16:25 jordi
38384 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38387 2004-08-19 16:04 pbartok
38390 - Added colormap basics
38391 - Added a way to re-initialize with a different display handle
38392 - Fixed setting of the window background color
38393 - Added various X11 imports related to colors and colormaps
38395 2004-08-19 15:51 pbartok
38398 - Removed packing hints (Paolo suggested this a while back)
38399 - fixed colormap type
38400 - Added default Atom types
38401 - Added Screen and color structs and enums
38403 2004-08-19 15:39 pbartok
38406 - Added missing Draw() method
38407 - Added missing RecreateHandle event
38409 2004-08-19 15:30 pbartok
38412 - Added handling of WM_CLOSE
38414 2004-08-18 13:16 jordi
38416 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38419 2004-08-18 09:56 jordi
38421 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38423 2004-08-17 15:31 ravindra
38425 * SWF.csproj: Updated project.
38427 2004-08-17 15:25 pbartok
38430 - Drawing improvement; don't call UpdateBounds if we are not visible
38431 (or have been minimized)
38433 2004-08-17 15:24 pbartok
38436 - Finished IsVisible
38437 - Added Win32GetWindowPlacement
38439 2004-08-17 15:08 jackson
38441 * Panel.cs: Initial checkin of the Panel
38443 2004-08-17 14:25 pbartok
38446 - Fixed broken handling of default window sizes
38448 2004-08-17 13:29 jackson
38450 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38451 has a large startup time.
38453 2004-08-17 10:25 jackson
38455 * HandleData.cs: union areas properly
38457 2004-08-17 10:12 jackson
38459 * HandleData.cs: union areas properly
38461 2004-08-16 20:00 ravindra
38463 * ToolBar.cs, ToolBarButton.cs: Added attributes.
38465 2004-08-16 18:48 ravindra
38467 * ToolBar.cs: Added attributes.
38469 2004-08-16 17:17 ravindra
38471 * SWF.csproj: Updated project.
38473 2004-08-16 17:16 jackson
38475 * XplatUIX11.cs: Check for more expose events before sending a
38476 WM_PAINT so they can all be grouped together. This makes dragging a
38477 window across another window redraw in a sane way.
38479 2004-08-16 15:47 pbartok
38482 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38483 support OnMouseEnter/Leave()
38484 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38487 2004-08-16 15:46 pbartok
38489 * XplatUIStructs.cs, XplatUIX11.cs:
38490 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38491 OnMouseEnter/Leave()
38493 2004-08-16 15:34 jackson
38495 * XplatUIX11.cs: Group multiple expose events in HandleData, make
38496 sure messages get the message field set to WM_NULL if they are not
38499 2004-08-16 15:24 jackson
38501 * HandleData.cs: HandleData is used for storing message information
38504 2004-08-15 17:23 ravindra
38506 * ColorDepth.cs: Added attribute.
38508 2004-08-15 17:23 ravindra
38510 * SWF.csproj: Updated project for ToolBar Control.
38512 2004-08-15 17:20 ravindra
38514 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38515 control and also dos2unix format.
38517 2004-08-15 17:13 ravindra
38519 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38520 ToolBarButtonClickEventArgs.cs,
38521 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38522 ToolBarTextAlign.cs: First Implementation of ToolBar control.
38524 2004-08-15 15:31 pbartok
38527 - First (mostly) working version
38529 2004-08-13 16:15 pbartok
38532 - Fixed Anchor default
38534 2004-08-13 15:43 pbartok
38537 - Changed GetCursorPos signature
38539 2004-08-13 15:42 pbartok
38541 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38542 - Changed signature for GetCursorPos
38544 2004-08-13 15:25 pbartok
38548 - Fixed resizing/exposure handling
38550 2004-08-13 15:22 jordi
38552 * ThemeWin32Classic.cs: removes redundant code and fixes issues
38555 2004-08-13 14:55 jordi
38557 * TrackBar.cs: change from wndproc to events
38559 2004-08-13 13:00 jordi
38561 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38562 XplatUIX11.cs: implements PointToClient (ScreenToClient)
38564 2004-08-13 12:53 pbartok
38567 - Changed GetWindowPos to also provide client area size
38568 - Fixed broken prototypes for several win32 functions
38570 2004-08-13 12:53 pbartok
38572 * XplatUI.cs, XplatUIDriver.cs:
38573 - Changed GetWindowPos to also provide client area size
38575 2004-08-13 12:52 pbartok
38578 - Added generation of WM_POSCHANGED
38579 - Changed GetWindowPos to also provide client area size
38581 2004-08-13 12:52 pbartok
38584 - Added Dispose() and destructor
38585 - Fixed resizing and bounds calculation
38587 - Added memory savings for invisible windows
38589 2004-08-13 12:46 jordi
38591 * TrackBar.cs: adds timer and grap window
38593 2004-08-13 10:25 jackson
38595 * Timer.cs: SWF Timer
38597 2004-08-12 16:59 pbartok
38599 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38600 - Implemented method to get current mouse position
38602 2004-08-12 14:29 jordi
38604 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38605 enhancement, fix mouse problems, highli thumb, etc
38607 2004-08-12 13:31 pbartok
38610 - Fixed Anchoring bugs
38612 2004-08-12 13:01 jackson
38614 * StatusBar.cs: Don't forget things
38616 2004-08-12 12:54 jackson
38618 * ThemeWin32Classic.cs: Handle owner draw status bars
38620 2004-08-12 12:54 jackson
38622 * StatusBar.cs: Implement missing properties, events, and methods.
38623 Handle mouse clicking
38625 2004-08-12 10:19 jackson
38627 * StatusBarPanelClickEventArgs.cs,
38628 StatusBarPanelClickEventHandler.cs: Classes for handling status
38629 bar panel click events
38631 2004-08-12 10:10 jackson
38633 * Control.cs: Add missing properties
38635 2004-08-12 09:46 pbartok
38637 * BindingsManagerBase.cs:
38638 - Name changed to BindingManagerBase.cs
38640 2004-08-12 09:25 jordi
38642 * ScrollableControl.cs: calls ctrlbase instead of exeception
38644 2004-08-11 16:28 pbartok
38646 * InputLanguageChangingEventArgs.cs:
38647 - Never check in before compiling. Fixes the last check-in
38649 2004-08-11 16:26 pbartok
38651 * InputLanguageChangingEventArgs.cs:
38652 - More signature fixes
38654 2004-08-11 16:20 pbartok
38656 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
38657 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
38658 ImageListStreamer.cs, InputLanguage.cs,
38659 InputLanguageChangedEventArgs.cs,
38660 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
38661 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
38662 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
38663 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38666 2004-08-11 16:16 pbartok
38670 - Added .Net 1.1 method
38672 2004-08-11 15:25 pbartok
38675 - Fixed BindingManagerBase.cs filename
38677 2004-08-11 15:22 pbartok
38679 * BindingManagerBase.cs:
38680 - Was checked in with wrong filename
38682 2004-08-11 14:50 pbartok
38687 2004-08-11 13:41 jordi
38689 * XplatUIWin32.cs: Fixes ClientRect
38691 2004-08-11 13:19 pbartok
38693 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38695 - We had SetWindowPos and MoveWindow to set window positions and
38696 size, removed MoveWindow. We have GetWindowPos, so it made sense to
38697 keep SetWindowPos as matching counterpart
38698 - Added some X11 sanity checking
38700 2004-08-11 12:59 pbartok
38703 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
38704 (It seems that SetBounds is just a front for SetBoundsCore and
38705 SetBoundsCore updates the underlying window system and
38706 UpdateBounds is responsible for updating the variables associated
38707 with the Control and sending the events)
38708 - Major cleanup of Size handling; we now have two sizes, client_size
38709 and bounds. Bounds defines the window with decorations, client_size
38712 2004-08-11 12:55 pbartok
38714 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38715 - Added method to calculate difference between decorated window and
38718 2004-08-11 12:54 pbartok
38721 - Forcing redraw on resize
38723 2004-08-11 11:43 pbartok
38726 - Removed disposing of the actual images when the list is disposed
38728 2004-08-11 09:13 pbartok
38731 - Now properly reparents windows
38733 2004-08-11 08:37 pbartok
38738 2004-08-11 07:47 pbartok
38741 - Rewrote the collection stuff. Might not be as fast now, not
38742 keeping the number of children around and accessible directly, but
38743 it's more straightforward
38745 2004-08-11 07:44 pbartok
38747 * AccessibleObject.cs:
38748 - Fixed to match ControlCollection rewrite
38750 2004-08-11 07:43 pbartok
38753 - Added missing creation of the collection list
38755 2004-08-10 20:08 jackson
38757 * StatusBar.cs: Get the paint message from WndProc
38759 2004-08-10 19:31 jackson
38761 * ThemeWin32Classic.cs: Create Brushes as little as possible
38763 2004-08-10 19:20 jackson
38765 * UICues.cs: Add Flags attribute
38767 2004-08-10 19:19 jackson
38769 * StatusBarPanel.cs: Signature cleanup
38771 2004-08-10 19:10 jackson
38773 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
38774 Initial implementation of status bar item drawing
38776 2004-08-10 17:27 jordi
38778 * TrackBar.cs: add missing methods, properties, and restructure to
38781 2004-08-10 16:24 jackson
38783 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
38784 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
38787 2004-08-10 13:21 jordi
38789 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
38790 enhancements and standarize on win colors defaults
38792 2004-08-10 12:52 jackson
38794 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
38795 ThemeWin32Classic.cs: Implement DrawItem functionality
38797 2004-08-10 12:47 jordi
38799 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
38801 2004-08-10 12:32 jordi
38803 * Control.cs: throw ontextchange event
38805 2004-08-10 11:43 pbartok
38808 - Added more to the still unfinished Dock/Anchor layout code
38810 2004-08-10 11:39 pbartok
38812 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38813 - Added GetWindowPos method
38815 2004-08-10 11:36 pbartok
38818 - Implemented several methods
38820 2004-08-10 09:47 jackson
38822 * TrackBar.cs: Allow control to handle buffering
38824 2004-08-10 09:41 jackson
38826 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
38828 2004-08-10 09:24 jackson
38830 * Label.cs, LinkLabel.cs: Let Control handle buffering.
38832 2004-08-10 09:09 jackson
38834 * StatusBar.cs: Let Control handle all the buffering.
38836 2004-08-10 09:08 jackson
38838 * Control.cs: Control will now handle the buffering code, so each
38839 control does not have to implement this.
38841 2004-08-10 08:34 jackson
38843 * XplatUIDriver.cs: Use default colors from the theme
38845 2004-08-09 17:12 pbartok
38848 - Fixed several bugs Ravindra pointed out
38850 2004-08-09 16:11 pbartok
38853 - Added incomplete dock layout code
38854 - Added support for mouse wheel
38856 2004-08-09 16:09 pbartok
38859 - Added handling for middle and right mousebutton
38860 - Added handling for mouse wheel
38861 - Added handling for key state and mouse state and position
38862 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
38865 2004-08-09 15:40 jackson
38867 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
38868 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
38871 2004-08-09 15:37 jackson
38873 * StatusBar.cs: Initial implementation of StatusBar
38875 2004-08-09 15:36 jackson
38877 * ITheme.cs: Add support for drawing status bar and getting status
38880 2004-08-09 15:35 pbartok
38885 2004-08-09 15:34 jackson
38887 * ThemeWin32Classic.cs: Add support for drawing status bar and get
38888 status bar item sizes
38890 2004-08-09 15:21 jackson
38892 * ThemeWin32Classic.cs: Use known colors for default control
38895 2004-08-09 15:12 jackson
38897 * ThemeWin32Classic.cs: Make the default font static, it is static
38898 in control so this doesn't change functionality and creating fonts
38901 2004-08-09 14:56 pbartok
38904 - Added GrabMode enum
38906 2004-08-09 14:55 pbartok
38908 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38909 - Removed Run method, was only required for initial development
38911 2004-08-09 14:51 pbartok
38913 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38914 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
38917 2004-08-09 13:48 pbartok
38920 - Fixed default sizing for child windows
38922 2004-08-09 12:56 pbartok
38925 - Added generation of WM_DESTROY message
38926 - Added handling of window manager induced shutdown
38928 2004-08-09 11:31 jackson
38930 * ThemeWin32Classic.cs: New names for control properties
38932 2004-08-09 11:25 jackson
38934 * Control.cs: Use new color names
38936 2004-08-09 11:02 jackson
38938 * XplatUI.cs: Get default window properties from the theme
38940 2004-08-09 11:01 jackson
38942 * ITheme.cs: The theme engine now controls default window
38945 2004-08-09 11:00 jackson
38947 * ThemeWin32Classic.cs: Add default window color properties
38949 2004-08-09 10:17 jackson
38951 * ThemeWin32Classic.cs: Use correct default back color
38953 2004-08-09 10:05 jackson
38955 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
38958 2004-08-09 09:56 jackson
38960 * XplatUI.cs: Remove defaults, these are handled by the theme now.
38962 2004-08-09 09:54 jackson
38964 * Control.cs: Get default properties from the theme.
38966 2004-08-09 09:53 jackson
38968 * ITheme.cs: Themes now handle default control properties
38970 2004-08-09 09:53 jackson
38972 * ThemeWin32Classic.cs: Themes now handle default control
38973 properties so coloring will be consistent
38975 2004-08-08 16:54 jordi
38977 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
38979 2004-08-08 15:08 jordi
38981 * XplatUIX11.cs: fixes keyboard crash
38983 2004-08-08 13:47 jordi
38985 * Label.cs: add cvs header info
38987 2004-08-08 12:09 jackson
38989 * ThemeWin32Classic.cs: Add pen_buttonface
38991 2004-08-08 11:52 jordi
38993 * Label.cs, LinkLabel.cs: [no log message]
38995 2004-08-08 11:34 jordi
38997 * ThemeWin32Classic.cs: Use Windows Standard Colours
38999 2004-08-07 17:32 jordi
39001 * TrackBar.cs: throw exceptions of invalid enums values
39003 2004-08-07 17:31 jordi
39005 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39008 2004-08-07 16:56 jackson
39010 * HorizontalAlignment.cs: Initial checkin
39012 2004-08-07 13:16 jordi
39014 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39017 2004-08-07 13:05 jordi
39019 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39020 GetSysColor defines
39022 2004-08-06 18:01 pbartok
39024 * ThemeWin32Classic.cs:
39025 - Fixed some rounding issues with float/int
39027 2004-08-06 18:00 jackson
39029 * DockStyle.cs, AnchorStyles.cs:
39031 Add flags and serializable attributes.
39033 2004-08-06 17:46 pbartok
39036 - Implemented GetParent
39038 2004-08-06 17:18 pbartok
39041 - Fixed some rounding issues with float/int
39043 2004-08-06 17:17 pbartok
39045 * X11Structs.cs, XplatUIX11.cs:
39046 - Fixed Refresh and Invalidate
39048 2004-08-06 15:30 pbartok
39050 * Control.cs, X11Structs.cs, XplatUIX11.cs:
39051 - Fixed recursive loop when resizing
39052 - Improved/fixed redrawing on expose messages
39054 2004-08-06 09:53 jordi
39056 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39057 keyboard navigation
39059 2004-08-06 08:02 pbartok
39061 * X11Structs.cs, XplatUIX11.cs:
39062 - Fixed reparenting
39063 - Fixed window border creation
39065 2004-08-05 15:38 pbartok
39068 - Attempted fix for reparenting problems
39070 2004-08-04 15:14 pbartok
39073 - Fixed Invalidation bug (calculated wrong client area)
39074 - Added ClientSize setter
39076 2004-08-04 15:13 pbartok
39079 - Added AutoScale properties
39081 2004-08-04 15:13 pbartok
39084 - Added latest files
39086 2004-08-04 14:11 pbartok
39088 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39090 - Added Invalidate handling
39092 2004-08-03 17:09 jordi
39094 * XplatUIDriver.cs: fixes spelling mistake
39096 2004-07-27 09:53 jordi
39098 * TrackBar.cs: fixes trackbar events, def classname, methods
39101 2004-07-27 09:29 jordi
39103 * ScrollBar.cs: fixes scrollbar events
39105 2004-07-27 04:38 jordi
39107 * Control.cs: changes to be able to run winforms samples
39109 2004-07-26 11:42 jordi
39111 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39112 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39114 2004-07-26 05:41 jordi
39116 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39117 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39120 2004-07-22 09:22 jordi
39122 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39123 check link overlapping, implement events, and fixes
39125 2004-07-21 10:28 jordi
39127 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39129 2004-07-21 10:19 jordi
39131 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39132 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39133 LinkLabelLinkClickedEventArgs.cs,
39134 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39135 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39138 2004-07-19 13:09 jordi
39140 * Control.cs, Label.cs: label control re-written: added missing
39141 functionlity, events, and properties
39143 2004-07-19 10:49 jordi
39145 * Control.cs: fixes SetBounds logic
39147 2004-07-19 01:29 jordi
39149 * Control.cs: Call RefreshWindow only if the window has created
39151 2004-07-15 14:05 pbartok
39153 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39154 - Implemented ImageList and ImageList.ImageCollection classes
39155 - Added ColorDepth enumeration
39156 - Updated SWF VS.Net project
39158 2004-07-15 11:06 jordi
39160 * XplatUIStructs.cs: added MsgButons enum
39162 2004-07-15 11:03 jordi
39164 * Control.cs: added basic mouse handeling events
39166 2004-07-15 03:38 jordi
39168 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39169 Vertical TrackBar control implementation
39171 2004-07-13 09:33 jordi
39173 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39175 2004-07-13 09:31 jordi
39177 * Control.cs, Form.cs: commit: new properties and fixes form size
39180 2004-07-09 14:13 miguel
39182 * ProgressBar.cs: Spelling
39184 2004-07-09 11:25 pbartok
39187 - Removed usage of Rectangle for drawing. Miguel pointed out it's
39190 2004-07-09 11:17 miguel
39192 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
39194 * ProgressBar.cs: Fixed spelling for `block'
39196 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39199 Avoid using the += on rect.X, that exposed a bug in the compiler.
39201 2004-07-08 23:21 pbartok
39203 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39204 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39205 BaseCollection.cs, Binding.cs, BindingContext.cs,
39206 BindingMemberInfo.cs, BindingsCollection.cs,
39207 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39208 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39209 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39210 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39211 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39212 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39213 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39214 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39215 FrameStyle.cs, GiveFeedbackEventArgs.cs,
39216 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39217 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39218 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39219 InputLanguageChangedEventArgs.cs,
39220 InputLanguageChangedEventHandler.cs,
39221 InputLanguageChangingEventArgs.cs,
39222 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39223 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39224 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39225 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39226 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39227 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39228 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39229 QueryAccessibilityHelpEventArgs.cs,
39230 QueryAccessibilityHelpEventHandler.cs,
39231 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39232 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39233 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39234 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39235 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39236 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39237 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39238 XplatUIX11.cs, lang.cs: