1 2009-06-18 Jonathan Pobst <monkey@jpobst.com>
3 * ComboBox.cs: Only do my big sort at the end of AddRange if
4 the combobox is actually set to Sorted.
6 2009-06-18 Tom Hindle <tom_hindle@sil.org>
8 * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
11 2009-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13 * ListBox.cs: When calculating the scrollbars for non MultiColumn
14 mode, force the use of the horizontal scrollbar only if
15 ScrollAlwaysVisible is true as well.
18 2009-06-17 Jonathan Pobst <monkey@jpobst.com>
20 * ComboBox.cs: When using AddRange on a sorted combobox, don't
21 try to use our inefficient sorted insert method, just append
22 it and sort the whole thing at then end.
25 2009-06-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
27 * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
28 * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
32 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
34 * DataGridView.cs: Scrolling fixes.
37 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
39 * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and
40 optimize for batch adding rows.
42 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
44 * DataGridView.cs: Avoid calling ReBind twice during the initial data
48 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
50 * DataGridView.cs: Suppress invalidation during data binding.
51 [Fixes part of bug #512807]
53 2009-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
55 * PrintPreviewDialog.cs: Tune the navigation among the buttons and
56 controls that are part of our ToolBar, so we can mimic the behaviour
57 observed in .Net, by handling also the arrow keys and doing the
58 preprocess for them too.
59 Fixes the remaining bits of #509142.
61 2009-06-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
63 * ToolBar.cs: Expose the current item as internal.
64 * PrintPreviewDialog.cs: Tune the TabStop property for
65 PrintPreviewControl/ToolBar so we match the .net scenario regarding
66 Tab navigation. Also implement support to navigate throughout the
70 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
72 * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs:
73 Implement items syncing in the non-databound scenario.
76 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
78 * DataGridView.cs: Call OnCellValidating and OnCellValidated and
79 handle the Cancel accordingly.
82 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
84 * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
87 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
89 * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
90 DataGridView.cs: Fire CollectionChangeAction.Refresh collection
91 changed when Clearing the collections so that the DataGridView
92 can know and reset the current cell.
95 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
97 * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
98 with the PropertyDescriptor parameter instead of index, because the
99 latter will set some irelevant indices. Fixes a bug uncovered by recent
100 fix to ListChangedEventArgs.
102 2009-06-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
104 * DataObject.cs: When looking for any specific format, do a case
105 insensitive search, as .net does.
108 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
110 * CurrencyManager.cs: In AllowNew firstly check if the list is a
111 IBindingList and proxy to AllowNew. IBindingList has slightly differet
112 logic and eventhough it's an IList IsReadOnly should not be used in this
113 case as it might be True but AllowNew could be True as well.
114 Fixes a bug uncovered by a fix to the Array class.
116 2009-06-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
118 * ListBindingHelper.cs: In GetListItemType do a null check when
119 looking for IList.Item, since the impl could be explicit, and thus
120 private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
121 Fixes the remaining part of #507120
123 2009-06-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
125 * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
126 to match them in all the cases, as this is exactly what .net does.
129 2009-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
131 * ListBindingHelper.cs: In GetListItemType handle gracefully the case
132 where an instance of IEnumerator returns a null value for its Current
133 property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
136 2009-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
138 * ComboBox.cs: Properly detect whether we need to use our vertical
139 scrollbar or not, specially for DropDownList/DropDown styles,
140 depending on the value of DropDownHeight.
143 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
145 * ToolTip.cs: Call the base implementation in Dispose, but do it
146 before anything else to avoid a regression. This way we do the default
147 routines related to any System.ComponentModel.Container.
150 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
154 * DataFormats.cs: Implement support for serializable types in our
158 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
160 * ColorDialog.cs: Actually add the help button to the form, so it can
164 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
166 * PrintPreviewDialog.cs: Don't use Dock.Fill for the
167 PrintPreviewControl, since it will be hidden in the top by our
168 toolbar. Use manual location and anchoring instead.
171 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
173 * FileDialog.cs: When saving the size of the dialog, use the
174 ClientSize instead of Size, so we have always the same size for the
175 form. Patch by Alex Shulgin.
178 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
180 * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
181 show a beep, similar to what .net does.
184 2009-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
186 * ContainerControl.cs:
188 * ToolStrip.cs: Implicit mnemonic processing should happen for every
189 ToolStrip child, not only for MenuStrip, so we are going to do that in
190 ToolStrip.ProcessMnemonic, where we already had that exactly
191 functionality, but we are only just checking that either this instance
192 is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
193 remove the extra code, since we are not going to use it now.
194 Fixes the remaining bits of #503663.
196 2009-05-21 Neville Gao <nevillegao@gmail.com>
198 * ContextMenu.cs: Cleaned up UIA properties.
200 2009-05-20 Dick Porter <dick@acm.org>
202 * XplatUICarbon.cs: Add more locking around MessageQueue
205 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
207 * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
208 duplication of code, as well as actually getting the focus back in
209 *any* scenario where the drop down is closed.
211 2009-05-18 Tom Hindle <tom_hindle@sil.org>
212 * ScrollableControl.cs: Ignore setting properties HScroll and
213 VScroll when AutoScroll is true.
216 2009-05-18 Jonathan Pobst <monkey@jpobst.com>
218 * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
219 disabled graphics look closer to the ones that .Net produces.
222 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
224 * DateTimePicker.cs: When calculating the max width for the year part,
225 use the current value, since *all* the possible values are exactly a 4
226 digits number. This way we avoid a ArgumentOutOfRangeException trying
227 to check against different values.
230 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
232 * MessageBox.cs: When handling ProcessDialogChar, check that
233 CancelButton is not null before trying to use it, to avoid a null ref
234 exception. We don't need to do that on the ok/yes buttons, since they
238 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
240 * ListBox.cs: Handle the key down event in WndProc instead of doing it
241 in an event handler, as we need to avoid any operation in case
242 the user has handled it in its own OnKeyDown handler, and this can't
243 be achieved since our handler would be the first one always.
244 * FontDialog.cs: Update the calls since our method handling key down
248 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
250 * Application.cs: We should dismiss the active ToolStrip when we
251 receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
252 keyboard short cut can be properly processed by another menu item.
253 Fixes part of #503663.
255 2009-05-13 Andreia Gaita <avidigal@novell.com>
257 * HtmlDocument.cs: If the objects are strings, wrap them in ""
259 2009-05-13 Andreia Gaita <avidigal@novell.com>
261 * HtmlDocument.cs: Fix InvokeScript call (duh).
263 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
265 * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
266 * ComboBox.cs: If auto complete is being used, it is needed to update
267 the actual value of the combo box, doing it immediately if the user
268 presses Enter, or doing it when our combo box loses focus. Finally,
269 when handling Enter and Escape keys for the combobox, don't try to
270 hide the listbox if it is not visible in the first place.
271 Fixes part of #489339.
273 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
275 * ToolStripDropDownMenu.cs: Use the height returned by
276 ToolStripItem.GetPreferredHeight to calculate our own height.
278 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
280 * TreeNode.cs: When setting Checked, do a double null check, since the
281 current node can still get a null parent handling
282 TreeView.OnAfterCheck.
285 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
287 * Control.cs: When assigning ContextMenu, do a null check before
288 assigning its container field.
290 2009-05-08 Brad Taylor <brad@getcoded.net>
292 * DateTimePicker.cs: Add a UIA-specific property to ensure that if
293 is_checkbox_checked is changed, we won't break.
295 2009-05-08 Andrés G. Aragoneses <aaragoneses@novell.com>
297 * ToolStripItem.cs: Prevent NRE when our holder is a
298 ToolStripDropDownButton and we get Select()ed.
300 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
302 * ToolStripControlHost.cs: DefaultSize must return the current size of
303 the Control, not the value returned by GetPreferredSize. Also connect
304 a handle to the control Resize event, and use it to fire
305 OnHostedControlReize.
306 Fixes the remaining bits of #483146.
308 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
310 * ToolStripDropDown.cs: When performing the layout, use
311 ToolStripItem.GetPreferredSize ().Height instead of
312 ToolStripItem.Height, since we are already using it that way in this
314 Fixes part of ##483146.
316 2009-05-08 Brad Taylor <brad@getcoded.net>
318 * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
319 OnUIASelectionChanged when ShowCheckbox is true and the checkbox
320 recieves focus. Part of fix for #502029.
322 2009-05-06 Mike Gorse <mgorse@novell.com>
324 * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
325 Add PerformClick and PerformDoubleClick to PopupButton.
328 2009-05-04 Andrés G. Aragoneses <aaragoneses@novell.com>
330 * TabControl.cs: call Focus() to emit GotFocus event at the
331 proper time when SelectionIndex changes. Fixes #499887.
333 2009-05-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
335 * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
336 have valid values, even if BoundSpecified is not including
337 Size/Height/Width - this is useful when we are in a control using Dock
339 Fixes part of #483146.
341 2009-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
343 * ComboBox.cs: When losing the focus, if our textbox is not null,
344 close its auto complete list, if any.
345 Fixes part of #489339.
347 2009-04-27 Andrés G. Aragoneses <aaragoneses@novell.com>
349 * ListView.cs: Make OnColumnClick +internal to be used by a11y.
351 2009-04-27 Brad Taylor <brad@getcoded.net>
353 * ToolStripButton.cs: Emit an internal event when CheckOnClick is
356 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
358 * XplatUIX11.cs: Properly support UTF8 when handling the
359 SelectionRequest event - this is helpful supporting some window
360 managers, such KDE, that explictly request the text in utf8, as
361 opposed to gnome, that supports ascii.
364 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
366 * ToolStripDropDownItem.cs: When assigning a new
367 ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
368 Capture duties performed by Application/ToolStripManager are handled
369 nicely and we don't end up in an inconsisten stat.
372 2009-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
374 * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
375 any ToolStripDropDownItem when receiving a mouse down event in an
378 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
380 * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
382 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
384 * ToolBarButton.cs: rename a method to include UIA prefix.
386 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
388 * ToolBarButton.cs: change visibility of some UIA methods from
389 protected virtual to private.
391 2009-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
393 * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
394 fire OnDropDownOpened/OnDropDownClosed depending on the new
395 visibility. This also ensures that any direct access to this instance
396 will fire the mentioned events for the OwnerItem.
397 * ToolStripDropDownItem.cs: Remove the invocations to
398 OnDropDownOpened/OnDropDownClosed, since they are handled in
399 ToolStripDropDown, as well as updating the
400 OnDropDownHide/OnDropDownShow calls to be in the right order.
403 2009-04-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
405 * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
406 shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
407 event is the same as the owner of the menu item. Also set properly
408 SourceControl for ContextMenuStrip, as well as add an internal field to
409 contain the control that owns the ContextMenuStrip (we need to know this
410 even before the public property is assigned).
411 Fixes bits of #393775.
413 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
415 * StatusStrip.cs: Use the same icon as .net when the mouse is over the
419 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
421 * ComboBox.cs: When calculating the height of the ComboListBox,
422 specially for the 2.0 profile, use MaxDropDownItems if the
423 DropDownHeight property hasn't been set, and use the later if it has
424 been set. This way we support both properties.
427 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
429 * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
432 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
434 * ContainerControl.cs: Implement support for Control.CausesValidation,
435 by adding a pending list of controls to be validated in the top
436 container control, and postpone validation as needed.
437 Also remove any control in the validation chain in case it gets removed
438 from its owner before the pending validation actually happens.
441 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
443 * ListBox.cs: The default instance StringFormat field used to draw our
444 items should use the StringFormatFlags.NoWrap value, so it doesn't try
445 to put in a different line the text that doesn't fit our bounds, but
449 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
451 * CheckedListbox.cs: When executing OnItemClick check that the index
452 is different to -1 before trying to retrieve an item using that value.
453 Fixes a ArgumentOutOfRangeException thrown when the horizontal
454 scrollbar was visible but not needed, and then a clicked was received
457 2009-04-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
459 * MaskedTextBox.cs: If Insert is pressed, change the internal
460 overwrite mode for our default value.
461 Fixes some bits of #477395.
463 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
465 * ListView.cs: In EnsureVisible avoid any direct access to items if we
466 are using virtual mode - otherwise use the bounds stored in a specific
467 item in a given index. This is specially important when using groups
468 or when items are re-arranged, since the position in the items
469 collection can be different than that one being displayed.
470 Fixes the rest of ##491978.
472 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
474 * ThemeWin32Classic.cs: Include the previous check for ListView in a
475 2.0 define as needed.
477 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
479 * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
480 Fixes part of #491978.
482 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
484 * ToolTip.cs: New fields to store the title/icon information.
485 * ThemeWin32Classic.cs: Implement support for tooltip's title and
489 2009-04-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
491 * TabControl.cs: When removing a tab that was previously selected, set
492 internally the value of selected_index to -1, to avoid trying to
493 access the previous one when trying to set the new one (and was
494 already removed from the collection). This is what .net seems to do
498 2009-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
500 * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
501 separated, and we cannot fallback on Text if Rtf is requested but not
503 * Clipboard.cs: Actually use the format specified by our user when
506 2009-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
508 * X11Clipboard.cs: Actually look for the RtfText format when calling
509 GetRftText in our clipboard formats list, instead of using the
510 generical Text format.
512 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
514 * TextBox.cs: Process auto completion properly when we are using the
515 internal source provided by ComboBox, and also remove some repeated
519 2009-03-30 Tom Hindle <tom-hindle@sil.org>
521 * DataGridView added Support for Invisible Columns to
522 AutoFillColumnsInternal method.
524 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
527 * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
528 its own file, since it is adding some functionality and thus is not a
529 simple struct as before.
530 * XplatUIX11.cs: Add support to store different formats that could
531 have been specified by the user when puting data in the Clipboard -
532 this is important when more than one format is supported (such plain
533 text and rtf text). Update in the needed places, as well as simplify
537 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
539 * XplatUIX11.cs: When handling the SelectionRequest event, use
540 SelectionRequestEvent instead of SelectionEvent, so we get the right
541 data for the app asking for clipboard data. Set the member of
542 SelectioneEvent.property to indicate the place where we are storing
543 the information as well - this is specially important for gnome/kde
544 apps using the TARGETS atom to ask for the supported permission before
545 actually asking for a specific format.
548 2009-03-28 Ivan N. Zlatev <contact@i-nz.net>
550 * DataGridViewCell.cs: We don't support drawing all types of cell borders,
551 so fallback and at least draw something instead of nothing.
553 2009-03-27 Ivan N. Zlatev <contact@i-nz.net>
555 * DataGridView.cs: If the column header isn't visible allow resizing
556 using the cell column border. Also be sure to reset the cursor properly.
559 2009-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
561 * ToolStrip.cs: When disposing, iterate over the items in reverse
562 order, since disposing the items modifies the collection.
563 * ToolStripItem.cs: Remove from the owner when disposing.
566 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
568 * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
569 longer throws a NotImplementedException.
570 Based on a patch by Tom Hindle <tom_hindle@sil.org>
573 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
575 * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
576 NotImplementedException.
578 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
580 * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
581 Fix SortMode clash handling.
584 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
586 * DataGridView.cs: Do not show the vertical scrollbar if there is only
587 one row or less. For the sake of MSNET compatibility.
590 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
592 * DataGridView.cs: When the current cell is moved out of the editing row
593 be sure to reset it back to a place holder row.
595 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
597 * DataGridView.cs: If IsHandleCreated and the very first row is added
598 to the grid in a non-databound scenario - select the first cell.
601 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
603 * DataGridView.cs: If we are not databound and empty once the first row
604 gets added select the first cell.
607 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
609 * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
610 DataGridView. They do not belong to a DataGridView.
613 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
615 * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
616 Set indices and associate with DataGridView only after the item is
617 add to the internal list.
618 [Fixes part of bug #486645]
620 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
622 * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
623 FullRowTemplate already contains all the cells.
624 [Fixes part of bug #486645]
626 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
628 * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
629 to perform Pre and Post removal actions to allow the current cell to be
630 moved and all events fired properly before the column is removed.
632 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
634 * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
635 Post removal action to allow the current cell to be moved and all events fired
636 properly before the row is removed.
638 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
640 * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
643 2009-03-18 Jonathan Pobst <monkey@jpobst.com>
645 * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
646 placement of popup windows on OSX.
648 2009-03-18 Matt Guo <matt@mattguo.com>
650 * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
653 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
655 * DataGridView.cs: Implement the CellMouseDoubleClick event.
658 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
660 * DataGridView.cs: Fix scrolling to take into account that the
661 scrollbars are actually inside the client area of the datagridview.
663 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
665 * DataGridView.cs: Implement mouse wheel scrolling.
668 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
670 * DataGridView.cs: When DataSource changes the rebinding should happen
671 not if IsHandleCreated but if BindingContext != null.
674 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
676 * DataGridView.cs: Browsable(false) properties should be skipped when
677 autogenerating the columns.
680 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
682 * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
683 user should use a different handling, trying to use every pressed char
684 as a unique and only one prefix to compare against the items. Also,
685 refactor some input check code to avoid duplication.
688 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
690 * DataGridViewCell.cs: In OwningColumng Handle invalid column index
694 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
696 * DataGridViewBand.cs: Update our State whenever a property changes.
697 * DataGridView.cs: Don't be so generous in reseting Displayed, because
698 it will spawn lots and lots of unneeded State changed events.
701 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
703 * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
704 Add support for invisible rows and columns.
707 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
709 * DataGridViewCell.cs: Escape literal { in ToString.
710 * DataGridViewTextBoxCell.cs: Fix ToString.
713 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
715 * MenuAPI.cs: When navigating items using the keyboard properly handle
716 the case when no item is selected - this way we should try to select
717 the first or the last item depending on the direction, but no the
718 second or third one, etc.
720 2209-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
722 * Form.cs: When calling ProcessCmdKey, just after checking for any
723 MainMenu, check if there's an active ContextMenu that is *not* owned
724 by the form - this is needed when a non-focusable control owns a
725 ContextMenu but its ProcessCmdKey method can't be called since it
726 can't receive any input.
729 2009-03-13 Neville Gao <nevillegao@gmail.com>
731 * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
732 * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
733 ContextMenu is displayed.
735 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
737 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
738 WM_HELP message for the associated window, don't call
739 NativeWindow.WndProc *at all*, since this could send a WM_*
740 key-related to Control.WndProc. Also, return the keypress message, in
741 case it needs to be preprocessed for any menu.
744 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
746 * DataGridView.cs: When removing the first displayed row and moving
747 the current cell up one we must invalidate the first displayed row
748 index before calculating the row heights, etc.
751 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
753 * DataGridView.cs: Fix three column bugs:
754 - Rows should be cleared (but not removed) if columns become 0.
755 - The current cell should get moved
756 - ColumnCount increase was adding too many columns.
758 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
760 * DataGridView.cs: Fix RowCount decrease which wasn't working well
761 in both scenarions - with and without editing row.
763 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
765 * DataGridView.cs: Be compatible with MS in that the scroll to
766 selection has a synchronous effect. The trick here is that in
767 order to avoid unnecessary calculations each time a row/column
768 is added/removed we recalculate the whole grid size just before
769 just before the scroll to selection.
772 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
774 * RichTextBox.cs: LoadFile(string path) should pass by default
775 RichTextBoxStreamType.RichText, without caring about the detection or
776 extension of the file.
778 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
780 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
781 introduced by StreamReader, since it will convert the EOF to an EOL.
784 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
786 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
787 preferred size twice.
789 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
791 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
792 string if we aren't on a ToolStripDropDownMenu.
794 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
796 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
797 code from Item to Button. Patch from Alex Shulgin.
799 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
801 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
802 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
803 not a ToolStripDropDown.
804 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
806 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
808 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
810 Based on a patch by Tom Hindle <tom_hindle@sil.org>
813 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
815 * DataGridView.cs, DataGridViewElement.cs:
816 - Always calls OnDataGridViewChanged() if the new DGV is
817 not the same/null as the current one.
818 - Do not throw NREs when setting TopLeftHeaderCell to null
819 - Unset the DGV for TopLeftHeaderCell when replacing it
820 Based on a patch by Tom Hindle <tom_hindle@sil.org>
823 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
825 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
826 hit a NRE if we are a ContextMenuStrip and do not have a parent.
829 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
831 * ListView.cs: When removing items from a ListViewItemCollection
832 contained in ListView (not in ListViewGroup), before actually removing
833 the items remove them also from their -if any- associated groups. If
834 the item is present in ListViewGroup.Items but not in ListView.Items,
835 then don't remove it - this is *exactly* what .net seems to do.
836 Fixes the remaining bits of #478689.
838 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
840 * ListView.cs: In our MouseDown handler in ItemControl use the item in
841 the very specific *real* position where the mouse was pressed, using
842 GetItemAtDisplayIndex for that purpose, instead of directly accessing
843 Items - this is specially useful when groups with Details view is
844 used. This is what we do in other places when using groups.
845 Fixes part of #478689.
847 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
849 * MaskedTextBox.cs: Properly replace selection when a new valid key
850 is pressed - even when IsOverwriteMode is false. This is what .net
853 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
855 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
856 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
857 since Set will keep the previous value in case of error (just what we
858 need), but still call MaskedTextProvider.Clear if
859 RejectOnFirstFailure is false - match .net.
861 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
863 * MaskedTextBox.cs: When setting Text use the very precise algorithm
864 that .net uses: iterate over every char of the new value, trying to
865 use every char, and use a normal call to MaskedTextProvider.Replace
866 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
867 in case of error in both cases, as well.
870 2009-02-25 Neville Gao <nevillegao@gmail.com>
872 * ColorDialog.cs: Added UIA Framwork Property:
873 UIASelectedSmallColorControl.
875 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
877 * MaskedTextBox.cs: Forgot to update the call of the new method
878 introduces in the previous patch.
880 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
882 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
883 key. Also create a new method to avoid code duplication between
884 OnKeyDown and OnKeyPress.
887 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
889 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
893 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
895 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
896 actually inversed, so put it the right way. Also, don't automatically
897 look for the next editable item after adding a new one, but way for
898 the next insertion (this is what .net does) - this is not needed when
899 MaskedTextProvider.InsertAt is called however, since it already looks for the
900 next editable position.
901 Fixes the remaining bits of #477383.
903 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
905 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
906 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
907 property after the text was modified, adjust the testPosition value
908 depending on what method was called.
909 Fixes part of #477383.
911 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
913 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
914 the existence of the column headers, as well as using this information
915 to adjust the vscrollbar value, so items never get hidden by the
919 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
921 * DataGridView.cs: Make the ScrollBars property work properly.
923 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
925 * TextBox.cs: Some code lifting for AutoComplete's support. First,
926 when handling non-navigation keys, save the original Text typed by the
927 user, and don't motify it BEFORE. This was a design mistake, since the
928 re-assignation happens only when navigating the append/suggest list,
929 not while creating the matches. Also, process the Delete key just like
930 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
932 Fixes some missing bits of #469967.
934 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
936 * DataGridView.cs: Fix row removal in the data-bound scenario.
938 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
940 * DataGridViewCell.cs: Use strict equality comparison in order to
941 prevent superfluous CellValueChanged events.
943 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
945 * DataGridView.cs: Do not reset the columns when the data list changes,
946 but only the rows. Fixes multiple bugs related to sorting, custom
947 column styles being reset and more.
949 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
951 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
954 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
956 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
958 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
960 * ToolBarButton.cs: Event for Enabled property (needed to fix
963 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
965 * TextBox.cs: When handling WndProc with autocomplete activated,
966 event if the new text is not causing any change in the look up
967 algorithm, save it as we normally do when numbers and letters.
970 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
972 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
973 Invalidate the proper bounds in the TreeView, not only resetting the
977 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
979 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
980 BackColor property. This is what .net does in both 1.1 and 2.0.
981 * TreeView.cs: When selected_node is not the same as highlighted_node,
982 we need to handle the back color in a different way, trying to use the
983 node's BackColor if it's not Color.Empty.
986 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
988 * TreeView.cs: When canceling selection in our MouseUp handler,
989 invalidate also the previous selected node bounds.
992 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
994 * DataGridView.cs: End or if end fails then cancel the current edit
995 operation before clearing the data source.
997 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
999 * DataGridView.cs: Data-bind only after the handle is created.
1002 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1004 * TreeView.cs: When handling the MouseMove event, check if
1005 focused_node and selected_node fields are null - usually they are non
1006 null, since we have always a selected node, but canceling selection by
1007 handling BeforeSelect event leaves the two of them as null.
1010 2009-02-06 Neville Gao <nevillegao@gmail.com>
1012 * TabControl.cs: Control enabled to support accessibility.
1015 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
1017 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
1018 - Use ArrayList.Insert instead of the Item property so that the item
1019 is actually inserted and not an existing item replaced.
1020 - Call DataGridView.OnRowsAddedInternal and drop internal from
1021 OnRowsAdded for binary compitability. This also fixes several
1025 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
1027 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1030 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1032 * ToolBarButton.cs: Add another event (OnUIATextChanged).
1034 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1036 * ToolBarButton: Fix typo in previous commit (r125704).
1038 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1040 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1041 when a button gets focus, firing the events from the ToolBar.
1044 2009-02-04 Mario Carrion <mcarrion@novell.com>
1046 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
1048 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1049 ColumnHeader to raise ColumnWidthChanged.
1052 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
1054 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
1055 code in the row collection code, so that the completion happens before
1056 the CollectionChanged event, also better encapsulation.
1059 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
1061 * DataGridView.cs: When editing is finished do not remove the editing
1062 row, because it has already become a real one. Instead add a new one.
1065 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1067 * TreeView.cs: When drawing the node's image, check that the index
1068 specified by the node is valid for the ImageList.
1071 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
1073 * ToolBar.cs: Add new UIAPerformClick method to be called by
1074 UIAutomationWinforms when someone calls Invoke() on the
1075 ToolBarButtonProvider. r: jpobst
1077 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1079 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1080 MapNotify/UnmapNotify events - we are already firing those events in
1081 the proper places, so we avoid this way to send the same message two
1082 times. I'm leaving the handling code in case we could break something
1083 in the future, as this change seems dangerous (but needed).
1086 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1088 * DataGridView.cs: Complete incomplete rows when they are added to
1092 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1094 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
1095 binding is cleared prior to setting it to null. Fixes a regression
1096 causing exceptions when the DataSource is set to null and then set
1097 again to a data source.
1099 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1101 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
1102 - Make Image/Bitmap cells work.
1103 - Handle images with size greater than the cell.
1104 - Default to MiddleCenter alignment for image cells.
1107 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
1109 * UpDownBase.cs: Force Height to PreferredHeight.
1111 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1113 * XplatUIX11.cs: We should use utf8 handling clipboard transference
1114 with other x11 applications, and use utf16 when handling clipboard
1115 data in the class library. Update the related points as well.
1118 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
1120 * DataGridViewCell.cs: Format strings according to the supplied
1124 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
1126 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
1127 addition or removal. Fixes multiple crashes in OnMouseMove.
1129 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
1131 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1133 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
1135 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
1139 2009-01-26 Andreia Gaita <avidigal@novell.com>
1141 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1142 won't be disabled by default.
1145 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
1147 * DataGridView.cs: Do not clear the rows if we are not databound.
1149 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
1151 * DataGridView.cs: Do not be too smart about selecting the first cell
1152 when the first row is added as this is not what MS does. Fixes the
1155 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1157 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1158 take into account the fact that OpenTreeNodeEnumerator needs to call
1159 MoveNext/MovePrevious to actually put the passed node as the one
1160 retrieved in Current. This way this property should work as really
1162 Fixes part of #467225.
1164 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1166 * TreeView.cs: When calculating the scrollbars, don't use
1167 TreeNode.Bounds, since it still can have the values of the previous
1168 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1169 could not have been updated as well-, and use the actual number of
1170 visible number of nodes to compute the height needed to contain all
1171 the nodes. Also reset the value of vbar to 0 when disabled - this way
1172 we make sure that, when re-enabled, it will update the visible area of
1173 the treeview, even if the previous value before disabling it is the
1174 same as now. Finally don't do anything for the vbar.ValueChanged
1175 handler - for the case wheer we manually set the value but don't the
1176 vbar is disabled already.
1177 Fixes part of #467225.
1179 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
1181 * ToolStrip.cs: Switch from foreach to for, in case the collection
1182 somehow changes while enumerating it.
1184 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
1186 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
1189 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
1191 * DataGridView.cs: Fix new row adding/editing in the non-databound
1194 2009-01-21 Mike Gorse <mgorse@novell.com>
1196 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1198 Added UIAValueParamChangedEvent.
1200 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1202 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1203 of trying to set as top node the highest parent of the previous top
1204 node. Moving to the bottom of the TreeView after a call to CollapseAll
1205 is exactly what .net does. This should avoid some nasty issue when
1206 CollapseAll is called and we don't need the vertical scroll bar.
1208 2009-01-21 Mario Carrion <mcarrion@novell.com>
1210 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1211 and UIATopMostChanged.
1213 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
1215 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1216 UIAEnabledChanged, and UIATextChanged events.
1218 * Form.cs: Add UIAMenuChanged event.
1221 * MenuAPI.cs: Note which internal APIs are being used by UIA.
1223 2009-01-21 Neville Gao <nevillegao@gmail.com>
1225 * ToolBar.cs: Control enabled to support accessibility.
1228 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1230 * TreeView.cs: When handling mouse up event, check whether
1231 highlighted_node is null or not - usually it should be non-null
1232 alwaays, since the mouse down handler sets it, but some externa
1233 operations, such TreeNodeCollection.Clear, could set it to null.
1236 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
1238 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
1241 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
1243 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1246 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1248 * MonthCalendar.cs: When handling the selection changes using the
1249 mouse, don't set SelectionRange if the selection range didn't actually
1250 change. This matters because, even if we set the range to the same
1251 previous range, an extra DateChanged event is fired. Just to be clear:
1252 SelectionRage property doesn't check whether the new value is
1253 different to the previous one (by ref equals doesn't work here).
1254 Fixes other bits of #364914.
1256 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1258 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1259 selection using the keyboard, since we are already firing this event
1260 when setting SelectionRange. Also don't set SelectionRange if the
1261 previous and the new value are the same (the property, just as .net
1262 does, doesn't check whether the previous value and the new one are the
1263 same). This saves us from firing OnDateChanged event if the selection
1264 range didn't change actually.
1265 Fixes the remaining bits of #364914.
1267 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1269 * ListBox.cs: When removing an item and the last item is selected,
1270 remove it from the selection, and if selection mode is One try to
1271 select the new last item.
1274 2009-01-16 Mike Gorse <mgorse@novell.com>
1276 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1278 2009-01-16 Mario Carrion <mcarrion@novell.com>
1280 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
1283 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1286 * XplatUIX11.cs: Properly encode/decode the unicode strings we
1287 store/retrieve in the Clipboard. Also, since we try to convert the
1288 data to different formats, separate the source and the result of
1289 it, so we can always fallback to the original and don't mix wrong
1292 2009-01-16 Mike Gorse <mgorse@novell.com>
1294 * TextControl.cs: Add UIASelectionChanged event.
1296 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
1298 * DataGridView.cs: Forward the first key events to the editing control.
1301 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
1303 * Application.cs: Oops, launch the copied handler of PreRun instead of
1304 the global one (gendarme would bark otherwise). (Improving r123375)
1306 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
1309 * Application.cs: Move the PreRun event fire to the end of the XplatUI
1310 static ctor (we don't move the PreRun event to this class because its
1311 usage would cause the call to the static ctor). This way we can get
1312 a11y support for dialogs that run without App.Run.
1314 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
1316 * ListView.cs: New internal property to know the inner array's length of
1317 the location of items, in order to avoid a try-catch strategy for the
1318 case when this array has not been resized yet (for reference, look at
1321 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
1323 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1324 reflection calls. This requires UIAutomationWinforms r123213.
1326 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1328 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1329 handlers and fire the DateSelected event until MouseUp is reached,
1330 like .net does, instead of firing it for each mouse event.
1331 Fixes part of #364914.
1333 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1335 * TreeView.cs: When the selection gets canceled using the BeforeSelect
1336 event, invalidate the previous highlighted_node bounds, to show the
1337 user that the item was *not* selected.
1340 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1343 well as -in DropDown and Simple modes- writing in the textbox should
1344 try to set the requested item as the top one, but navigating with the
1345 keyboard and handling mouse selection don't need that behaviour. Also,
1346 when resetting selected_index handling key press events, reset
1347 ComboListBox.HighlightIndex.
1348 Fixes the remaining bits of #464188.
1350 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1352 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
1354 - CurrentCellAddress should be -1, -1 and not 0, 0.
1355 - Be tolerant and fall back to clearing the current cell if either
1356 column or row is -1 in MoveCurrentCell.
1357 - Misc. more -1 checks.
1359 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1361 * DataGridView.cs: Preserve the column index. Fixes a regression
1362 introduced by the data binding position tracking code.
1364 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1366 * DataGridView.cs: If the bottom of the row matches the client height
1367 do not regard the row as partially visible. Fixes the weird scrolling
1368 when there is no scrollbar.
1370 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1372 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1374 2009-01-09 Mario Carrion <mcarrion@novell.com>
1376 * MessageBox.cs: Fixed internal UIAIconRectangle property.
1378 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1380 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1382 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1384 * DataGridView.cs: Track the Position in the CurrencyManager.
1386 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1388 * DataGridView.cs: Implement data-bound new item editing/addition.
1389 * DataGridViewRowCollection.cs: Make it possible for us to internally
1390 remove the edit row.
1391 [Fixes bugs #457107, #457308, #325240]
1393 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1395 * CurrencyManager.cs: Even if Position is set to a greater value than the
1396 list count reset it to position of the last item.
1398 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1400 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
1401 Fix that in order to make CancelNew to work.
1403 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1405 * BindingSource.cs: When adding a new item try to delegate to the internal
1406 list first before throwing an exception.
1408 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1410 * ComboBox.cs: When setting the text and adjusting the top_item, do it
1411 *only* if the current item is *not* visible already.
1412 Fixes part of #464188.
1414 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1416 * DataGridView.cs: Requesting the CurrencyManager for the first time can
1417 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
1421 2009-01-08 Brad Taylor <brad@getcoded.net>
1423 * ComboBox.cs: Expose a few private fields as internal UIA properties.
1425 2009-01-07 Mario Carrion <mcarrion@novell.com>
1427 * DataGrid.cs: CWL removed.
1429 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1431 * RadioButton.cs: When setting Checked, we should first update the
1432 check state of the current RadioButton, as well as invalidating it,
1433 and after that actually update the siblings. This is done to match
1435 Fixes the remaining bits of #463028.
1437 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1439 * RadioButton.cs: Setting Checked to false should set TabStop to stop
1440 as well. Also, when we get the focus and no other RadioButton is
1441 selected in the parent control, we should mark ourselves as Checked.
1442 Fixes part of #463028.
1444 2009-01-05 Mario Carrion <mcarrion@novell.com>
1446 * DataGrid.cs: UIA suppport. internal events:
1447 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
1448 UIASelectionChanged, UIACollectionChanged. Internal properties:
1449 UIARowHeight, UIACellsArea, UIACaptionArea,
1450 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
1451 UIAVScrollBar and UIAHScrollBar.
1453 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
1455 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1456 of the buttons are set to Overflow = Always.
1459 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1461 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1462 based on whether the binding source is availble or not. Fixes #463008.
1464 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
1466 * DataGridViewCell.cs: We should return a value even if we are not bound
1469 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1471 * CurrencyManager.cs, DataGrid.cs:
1472 - Rename CanAddRows to AllowNew. The CurrencyManager has no
1474 - Add two more internal properties AllowRemove and AllowEdit.
1475 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
1476 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
1477 CurrencyManager data source.
1479 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1481 * DataGridView.cs: Fix crashes caused by assigning negative values to
1482 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
1483 the column/row heights/widths.
1486 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1488 * DataGridView.cs: Non-autogenerated columns that have a data property
1489 set that exists in the current datasource should be set to be data-bound.
1491 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1493 * DataGridView.cs: Fix column sorting for columns containing null
1494 values. A "null" value is not always "null" (e.g could be String.Empty)
1495 and thus parsing numeric types throwed an exception for "null" values.
1497 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1499 * DataGridView.cs: Detach the editing control when the edit is
1502 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1504 * DataGridView.cs: Multiple fixes to handle last column/row removal
1505 and cell movement after that instead of throwing exceptions.
1507 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1509 * DataGridViewCellCollection.cs: When cells are removed the column
1510 indices become invalid if the cell is not the last one and have to
1513 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1515 * DataGridView.cs: Return false in CommitEdit if there was an error.
1517 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1519 * DataGridView.cs: Remove a leftover Console.WriteLine.
1521 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1523 * DataGridViewRow.cs: Access the indexer of the data manager directly
1524 instead of the internal list.
1526 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1528 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
1529 Rewrite the value getting, setting, parsing, formatting logic:
1530 - If data-bound value get/set should actually get and set from the
1532 - Make proper usage of TypeConverters for value parsing/formatting.
1533 - Raise DataError if setting the new value fails.
1534 - Get rid off the internal valueType field and get/set the ValueType
1538 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1540 * DataGridView.cs: Rewrite the DataBinding layer:
1541 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
1543 - Get rid off the per DataSource type column autogeneration code.
1544 - Use the CurrencyManager for everything that is DataBinding related.
1546 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1548 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1550 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
1552 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
1553 DataManager to fetch the CurrencyManager for the DataGridView and to
1554 spare this logic for the other components to follow.
1556 2008-12-31 Mario Carrion <mcarrion@novell.com>
1558 * MessageBox.cs: UIA support: new properties: UIAMessage,
1559 UIAMessageRectangle and UIAIconRectangle.
1561 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
1563 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1564 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1566 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
1568 * DataGridView.cs: Do not autogenerate duplicate column for a
1569 data member that has already problematically been assigned one.
1572 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
1574 * ProfessionalColorTable.cs: Better detection of user's theme.
1577 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
1579 * DataGridView.cs: In the case where there are no autogenerated
1580 columns and the user adds columns problematically we must generate
1581 the rows after the very first column is added.
1583 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1585 * DateTimePicker.cs: When increasing/decreasing the value of month
1586 with ShowUpDown set to true, moving from december to january, and
1587 moving from january to december should adjust the year to the next and
1588 the previous year, respectively.
1589 Fixes the remaining bits of #459674.
1591 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
1593 * DataGridView.cs: If a new cell is selected edit mode should be
1594 immediately enabled only if EditOnEnter is set. Whether the mouse
1595 or not was used to select the cell is irrelevant.
1597 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
1599 * DataGridView.cs: Remove a bogus ReBind call, which was causing
1600 recursive rebinding.
1602 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1604 * DateTimePicker.cs: Handle the "MMMM" month format.
1607 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
1610 - Make ReBind private and refactor various calls to call ReBind
1611 instead of ClearBinding/DoBinding
1612 - Rebind when the column collection changes
1613 * DataGridViewColumnCollection.cs:
1614 - Leave the rebinding on change to be handled by the DataGridView.
1616 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
1618 * DataGridView.cs: Add a ReBind convenience method.
1619 * DataGridViewColumnCollection.cs: Rebind when a column is added.
1622 2008-12-23 Neville Gao <nevillegao@gmail.com>
1624 * StatusBar.cs: Modified argument variable.
1625 * SplitContainer.cs: Control enabled to support accessibility.
1628 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
1630 * ToolStripMenuItem.cs: Guard against an NRE.
1633 2008-12-22 Mario Carrion <mcarrion@novell.com>
1635 * Control.cs: AccessibleXXXX properties don't return
1636 AccessibleObject.XXXX, instead a local referece is returned.
1638 2008-12-22 Neville Gao <nevillegao@gmail.com>
1640 * PrintPreviewControl.cs: Added internal properties to support
1644 2008-12-19 Mario Carrion <mcarrion@novell.com>
1646 * Control.cs: Reverted r121561.
1648 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
1650 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1651 it has been moved to the bridge.
1653 2008-12-18 Brad Taylor <brad@getcoded.net>
1655 * DateTimePicker.cs: Add a few UIA specific events, and a couple
1656 internal methods useful for UIA.
1658 2008-12-18 Mario Carrion <mcarrion@novell.com>
1660 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1663 2008-12-17 Mike Gorse <mgorse@novell.com>
1665 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1666 item's Focused property is set.
1668 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
1672 * TreeNodeCollection.cs: Add events for UIA support:
1673 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1674 UIACollectionChanged.
1676 2008-12-17 Bill Holmes <billholmes54@gmail.com>
1678 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
1679 SubItemStyle member field.
1681 Contributed under MIT/X11 license.
1683 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1685 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1686 y coord, since it's useless in this case, and we need to rely only on
1687 the number of rows and ItemHeight to compute this value.
1688 Fixes part of #257471.
1690 2008-12-15 Mike Gorse <mgorse@novell.com>
1692 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1694 2008-12-15 Mario Carrion <mcarrion@novell.com>
1696 * Control.cs: Accessibility properties instantiate AccessibilityObject when
1700 2008-12-15 Brad Taylor <brad@getcoded.net>
1702 * ToolStripItem.cs: Add a UIA specific event for listening for when a
1703 ToolStripItem becomes selected or deselected.
1705 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1707 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1708 .net does. Use the date in the point of the mouse move coords as the
1709 new range as well, if the left button of the mouse is being pressed.
1712 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1714 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1715 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1716 effectively repaint the control.
1717 Fixes the remaining bits of #417961.
1719 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1721 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1722 range to contain only dates within the new possible range.
1723 Fixes part of #417961.
1725 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1727 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1728 length of the text, but the end position, so we need to substract 1 to
1729 have a valid value. Also, in the same InputText method, don't use
1730 SelectionLength as the length of the text, since the selected text
1731 could actually be empty, but we need to set the value anyway.
1734 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1736 * TextBox.cs: Don't do any auto complete task if the custom source is
1737 null or empty. Also avoid duplication of code.
1740 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
1742 * DataGridView.cs: Refresh column sizes when new rows are added.
1745 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1746 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1747 Split to create a line - we are already doing this, by _adding_ a new
1748 one when rtf_cursor_x is 0 (this field gets this value just after we
1749 receive the newline param as true). This avoids having a proportional number
1750 of empty lines in the end of the rich text box.
1753 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1755 * RichTextBox.cs: When saving the contents as a plain text, don't add
1756 a new line for every Line structure, since the data in Document
1757 already contains the new line characters. This avoids duplicated new
1758 lines using the Save methods.
1761 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
1763 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1764 framework. Fixes bug #457678.
1766 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1768 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
1769 where datasource is null.
1770 [Fixes exception reported in bug 441240]
1772 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1774 * DataGridView.cs: EndEdit validation fixes.
1776 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1778 * DataGridView.cs: This is the cool patch that adds support for
1779 actually updating the data in the databinding backend after editing.
1780 With bonus firing and handling the DataError event.
1782 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1784 * Line.cs: When calculating the text tags's Shift value, store it as
1785 pixels instead of points. This way we can actually handle different
1786 fonts in the same RichTextBox, as well as the right size of the caret.
1787 Fixes part of #351938.
1789 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1791 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
1792 casted to CheckState causing InvalidCastExceptions.
1794 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1796 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
1797 to not depend on the item being clicked.
1799 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1801 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
1802 longer throws a NotImplementedException.
1804 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1806 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
1807 IDataGridViewEditingControl for editing.
1809 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1811 * DataGridViewComboBoxCell.cs: Implement data binding support.
1813 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1815 * DataGridView.cs: Use the CurrencyManager to update the data source
1816 binding position instead of casting the data sourcde to BindingSource.
1817 This enables position updating for other type of data sources.
1819 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1821 * ComboBox.cs: Update the SelectedIndex before updating the Text
1822 in OnDisplayMemberChanged.
1824 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
1826 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1829 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1831 * DataGridView.cs: Sorting fixes:
1832 - Be strict when sorting is enabled.
1833 - If there is a data source delegate the sorting request.
1835 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1837 * Binding.cs: When converting the data also try with the destination
1838 type typeconverter. This indirectly adds support for Nullable types
1839 in our databinding layer.
1841 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1843 * DataGridView.cs: When cell editing is finished focus back the
1844 DataGridView. Fixes keyboard navigation post-editing.
1846 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1848 * DataGridView.cs: Fix the cell editing by delaying the currentCell
1849 setting to after EndEdit is called for the old cell.
1851 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1853 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1855 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1857 * XplatUIX11.cs: Send WM_HELP only to the focused window.
1859 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1861 * CurrencyManager.cs: Fix exceptions when resetting the data source
1862 for the same time (e.g. in ComboBox):
1863 - Do not set the list position if we are still transferring data
1864 - When resetting the list firstly push the data then update the
1866 * Binding.cs: Check BindingManager.Position == -1 instead of
1867 BindingManager.Current == null in order to avoid unexpected
1870 2008-12-05 Brad Taylor <brad@getcoded.net>
1872 * MonthCalendar.cs: Add UIA specific events so that we can know when
1873 the selection changes, and when MaxSelectedCount changes.
1875 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1877 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
1880 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1882 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1883 to the control being drawn for the first time by:
1884 - Implement DisplayedRowsCount to not rely on the control being
1885 already painted. Also added support for the partial row flag.
1886 - Fix scrolling to take into account partial rows and scroll to
1890 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1892 * DataGridView.cs: Do not reset the CurrentCell when the handle is
1893 created if the user has already set it.
1895 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1897 * DataGridView.cs: Fix CurrentCell to actually select the cell.
1899 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1901 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1902 text and then let the underneath users of IDataObject interpret and
1903 parse by themselves.
1906 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1908 * DataGridView.cs: Fix my previous commit to actually update what it
1911 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1913 * DataGridView.cs: Ensure that when a row is removed the all the
1914 current row/column/cell get updated. Fixes multiple exceptions.
1916 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1918 * DataGridView.cs: Fix scrolling to the current cell when key navigation
1922 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1924 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1925 * DataGridViewCell.cs: Set the cell as selected prior to setting the
1927 [Fixes issue 1 in bug #443560]
1929 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1931 * DataGridView.cs: Invalidate after the current row/column seletion
1935 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1937 * DataGridView.cs: Refresh the data if the data list is reset, etc.
1939 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1941 * DataGridView.cs: Handle datasource state changes:
1942 - IBindingList - list changes
1943 - BindingSource - list changed and datasource changes
1945 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1947 * DataGridView.cs: Select the first cell when databound.
1948 Visually select when CurrentCell is set.
1950 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1952 * DataGridView.cs: Set the current cell before raising CellClick.
1954 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1956 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
1957 CellLeave events as this is already done in SetCurrentCellAddressCore.
1959 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1961 * DataGridView.cs: Set the minimum size for the columns to be the
1962 width of their header, so that the columns don't get squashed
1965 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1967 * DataGridView.cs: After the data is bound PerformLayout, so that
1968 the columns get autosized.
1970 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1972 * DataGridView.cs: Move all currentCell setting code into
1973 one central place - SetCurrentCellAddressCore. That way the
1974 current cell is properly updated when programatically set.
1975 Fire RowEnter/Leave events.
1977 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1979 * DataGridView.cs: Update the CurrencyManager.Position, so that
1980 when a BindingSource is used BindingSource.Current will be correct.
1982 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1984 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1985 - No caption text is drawn because Color.Empty is used.
1986 - Fix top and height off by 1.
1988 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1990 * DataGridViewRow.cs: Implement DataBoundItem.
1992 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1994 * BindingSource.cs: Return null for Current if there is no data present.
1996 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1998 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1999 menus using the arrow keys. Also when handling the left arrow key, don't
2000 assign the current menu to the parent one, if the parent is null.
2003 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
2005 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2008 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2011 * ScrollableControl.cs: Simplify the code to manually set the size of
2012 the thum area, avoiding duplication of code, and also preserving the
2013 right value for different code paths - this can happen when size
2014 changes are made to the scrollbar after setting LargeChange, Maximum
2015 or related properties for the ScrollBar.
2017 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2019 * ScrollableControl.cs: When scrolling, don't invalidate the entire
2020 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2021 what .Net does: copy the visible area, and only invalidate the part of
2022 the area that wasn't visible before scrolling.
2025 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2027 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2028 can clear ourselves when it is raised, we don't have a newrowindex
2029 if we don't have any columns.
2030 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2031 re-index after each delete so the NewRow will have the correct index.
2034 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2036 * Form.cs: Don't change min/max size if it is empty.
2039 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2042 * ScrollableControl.cs: When the manual thumb size is used, the
2043 maximum allowed value should depend on that thumb size, instead of
2044 LargeChange (using the maximum - LargeChange + 1 value). But
2045 LargeChange should be used normally when incrementing/decrementing.
2046 Fixes the remaining part of #441546.
2048 2008-11-23 Andreia Gaita <avidigal@novell.com>
2050 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
2051 until an about:blank has been loaded (according to spec). Fix
2052 ScrollbarsEnabled to set when a document is loaded (since we use js
2053 for it). Fix url so it reflects the current loading document and not
2054 the previous one. Send StatusChanged events.
2056 2008-11-23 Andreia Gaita <avidigal@novell.com>
2058 * Application.cs: If a message comes in for an embedded control
2059 (like webbrowser) when we're capturing the keyboard, release the
2060 capture and continue.
2063 2008-11-22 Andreia Gaita <avidigal@novell.com>
2065 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2067 2008-11-21 Andreia Gaita <avidigal@novell.com>
2069 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2071 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2074 * ScrollableControl.cs: Set manually the thumb size for the
2075 ScrollableControl scrollbars, so any further changes to the underneath
2076 scrollbars respect the original size.
2077 Fixes part of #441546.
2079 2008-11-21 Geoff Norton <gnorton@novell.com>
2081 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2082 PlatformID.MacOSX now exists.
2084 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2086 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2087 Having something internal abstract isn't very nice for people who want
2088 to inherit from this class.
2090 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2092 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2093 invalid value. Just return null for the Image, and use the ImageList's
2094 ImageSize for calculations.
2096 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2098 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2099 through DroppedDown so the proper events get called and state gets reset.
2102 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
2104 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2105 the collection is modified.
2107 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
2109 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
2110 aren't always correct, and fixing them for every case is not worth the
2111 negligible benefit they provide.
2114 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
2116 * DataGridView.cs: We should never add actual cells to the RowTemplate.
2117 Internally, use RowTemplateFull to give us a new row with cells.
2118 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2119 * DataGridViewRowCollection.cs: Use RowTemplateFull.
2121 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2123 * XplatUIX11.cs: Forms without borders should be able to change its
2124 size - specially they should be able to be maximized, adding the
2125 respective MotifFunctions.Resize bit when setting window properties as
2126 well as *not* marking the Hwnd as size fixed.
2129 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
2131 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2135 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
2137 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2138 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
2139 AutoSizeColumnModeChanged.
2142 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
2144 * DataGridViewRowCollection.cs: Guard against the user deleting the
2145 NewRow. Add an internal delete so we can still delete it.
2146 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2149 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
2151 * TextControl.cs: Add some order of operation to our math so
2152 we don't end up with a negative height for our invalidate rect.
2155 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
2157 * Control.cs: When our enabled changes, notify our implicit children
2158 controls as well as our regular controls.
2161 2008-11-08 Andreia Gaita <shana@jitted.com>
2163 * HtmlElement.cs: Small code cleanup
2165 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2167 * BindingNavigator.cs: MoveFirstItem should be enabled only if
2168 position is larger than 0, not only different than 0. Also Position
2169 and Count items should be enabled if the BindingSource is non null and
2173 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
2175 * TabControl.cs: Don't raise SelectedIndexChanged until we have
2176 actually modified the tab collection, so TabCount will be correct.
2179 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
2181 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2182 NonSerialized to fix serialization of ListViewItem.
2184 2008-11-04 Mike Gorse <mgorse@novell.com>
2186 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2187 focus change, and always call in SetFocusedItem.
2188 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2190 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
2192 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2193 mode. Based on a patch by John Mortlock.
2196 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198 * ListView.cs: Use the UsingGroups property where needed, instead of
2199 duplicating the check in other places.
2201 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2203 * ListView.cs: When calculating layout, refresh the count of items
2204 belonging to the default item, insteas of doing it only one time. This
2205 was already working fine for icon views, not not for details.
2208 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2213 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2217 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2219 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2221 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2223 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
2224 #441280, patch by Mike Gorse <mgorse@novell.com>.
2226 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
2228 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2229 if there is no scrollbar.
2232 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
2234 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2235 patch from Andy Hume that fixes many issues with ProgressBar.
2238 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
2240 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2243 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2247 * NumericUpDown.cs: Internal events added to UpDownBase:
2248 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
2251 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
2253 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2255 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2258 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2259 Application.EnableVisualStyles hasn't been called.
2260 Fixes part of #437933.
2262 2008-10-31 Andreia Gaita <shana@jitted.com>
2264 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2265 if the container is not focused already, we need to specifically set
2266 focus to the first available control, or to the form itself if there
2269 2008-10-31 Andreia Gaita <shana@jitted.com>
2271 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2272 WM_ACTIVATE have been processed before returning, so it is guaranteed that
2273 once it returns and the form is visible, it is actually on the screen on X11
2275 * ContainerControl.cs: Only send focus to the control if the top container
2276 is already focused. This is so that, when a form is first shown, all
2277 the enter/leave events are done first before any focus stuff comes in.
2278 If a control has no top container, there's an extra check on Control.Focus
2279 to make sure it gets focused in this particular case.
2281 * Control.cs: Force focus if the control is active but did not receive
2282 focus after being set as active.
2284 * MdiClient.cs: Dispose the form when closing
2286 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2287 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2288 if the window is a top Form.
2289 Reset all hwnd properties when the window has been destroyed so that
2290 we don't land in any codepaths that might try to do something with it.
2291 Added a bunch of debugging messages. If TRACE is defined, all X calls
2292 are logged through DebugHelper. Set a few missing EntryPoint attributes.
2294 2008-10-29 Mario Carrion <mcarrion@novell.com>
2296 * ListViewItem.cs: Control enabled to support Accessibility:
2297 - Internal events: UIATextChanged, UIASubItemTextChanged.
2298 - Internal event UIATextChanged in ListViewSubItem that triggers
2299 UIASubItemTextChanged.
2300 * ListView.cs: Control enabled to support Accessibility:
2301 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
2302 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2303 - Internal event UIACollectionChanged in ColumnHeaderCollection.
2304 - Internal event UIACollectionChanged in ListViewItemCollection.
2305 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
2306 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2307 - Internal methods: UIAGetHeaderBounds.
2309 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2311 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2312 the event from the respective scrollbars.
2315 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2317 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2318 textbox to know whether any navigation key will be handled or not. If
2319 not, don't pass the message to the textbox, and use it here instead.
2320 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2321 is more precise- than the previous AutoCompleteMatches one.
2322 This should the keyboard navigation in ComboBox when using auto
2325 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
2327 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2330 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
2332 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2333 overridden methods will get called.
2334 * ToolStripItem.cs: Raise Click before MouseUp.
2335 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2336 the item's location into account.
2339 2008-10-24 Neville Gao <nevillegao@gmail.com>
2341 * NumericUpDown.cs: Control enabled to support accessibility.
2342 [Fiexes bug #438135]
2344 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2346 * TextBox.cs: Check that we actually have items no navigate, select
2347 text when pressing enter, as well as handle direction keys only if
2348 mode is different to Suggest or the suggest listbox is visible.
2350 2008-10-23 Andreia Gaita <shana@jitted.com>
2352 * WebBrowser.cs: Use the new ContentStream property to retrieve
2353 a stream encoded from the document content
2355 2008-10-23 Andreia Gaita <shana@jitted.com>
2359 HtmlWindow.cs: Fix GetHashcode for null objects
2361 2008-10-22 Andreia Gaita <shana@jitted.com>
2365 HtmlWindow.cs: Fix equality operators (fixes #428173)
2367 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
2369 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2370 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2373 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
2375 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2376 same item with the mouse as was already selected.
2379 2008-10-21 Brad Taylor <brad@getcoded.net>
2381 * TextControl.cs: Break out code to get the visible range into
2382 GetVisibleLineIndexes to be used in UIA code.
2386 * TextBoxBase.cs: Add comments indicating that the method or property
2387 is used via reflection from UIA code.
2389 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2391 * ListViewItem.cs: Match .net serialization.
2392 Fixes remaining part of #417520.
2394 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
2396 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2398 2008-10-20 Mario Carrion <mcarrion@novell.com>
2400 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
2401 added: UIAToolTipRectangle.
2403 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2405 * ListViewItem.cs: When deserializing enumerate over the data, instead
2406 of accessing the data directly. This way we handle much better the
2407 cases were we lack information.
2410 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2412 * ListView.cs: When removing an item from a main ListView.Items
2413 collection (and not a ListViewGroupCollection.Items one), remove it
2414 also from the group, as .net does. Patch by Mario Carrion (mario at
2418 2008-10-19 Andreia Gaita <avidigal@novell.com>
2420 * Form.cs: Forms that get closed without a handle being created are
2421 disposed in 2.0. Fixes failing FormTest.FormClose and
2422 FormTest.FormClose2 on windows.
2424 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2426 * ListView.cs: If both scrollbars are visible, the vertical one
2427 shouldn't extend too far down.
2430 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
2432 * DataGridView.cs: Add the ability to resize columns and rows with
2433 the mouse. Also support double-clicking to autoresize.
2434 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2435 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2436 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2437 isn't shown on autoresize.
2440 2008-10-17 Mario Carrion <mcarrion@novell.com>
2442 * ComboBox.cs: Remove UIAListbox.
2444 2008-10-17 Mario Carrion <mcarrion@novell.com>
2446 * ComboBox.cs, ListBox.cs: Using added/removed item in
2447 OnUIACollectionChangedEvent instead of index.
2449 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
2451 * ComboBox.cs: When we are sorting the items, if the item's type
2452 doesn't support IComparer, use a default one that compares based
2453 off the item's visible text.
2456 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2458 * ColumnHeader.cs: Invalidate ListView.header_control when setting
2459 ImageIndex/ImageKey.
2460 * ThemeWin32Classic.cs: When drawing the column header, draw a image
2461 for the column if available, and make the required adjustments to the
2465 2008-10-17 Neville Gao <nevillegao@gmail.com>
2467 * StatusBarPanel.cs: Control enabled to support accessibility.
2470 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2472 * DataGridView.cs: When a user begins an edit in the 'new row',
2473 make that a real row, and add a new 'new row'. If the user
2474 cancels the edit, remove the new 'new row' and reset everything.
2475 Also, ensure UserAddedRow and UserRemovedRow events are raised.
2478 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
2480 * TableLayoutSettings.cs: Fix NREs when deserializing and
2481 panel is not yet set.
2484 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2486 * DataGridView.cs: Invalidate after deleting a row.
2488 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2490 * DataGridView.cs: Handle Enter and Escape keys.
2491 - Move call to EndEdit to MoveCurrentCell.
2492 - Remove call to EndEdit from navigation key routines.
2493 - Fire CellLeave and CellEnter.
2495 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2497 * DataGridViewCell.cs: Some fixes to the new cell border
2500 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2502 * ThemeEngine.cs: Enable visualstyles rendering by default
2503 (on platforms that support it).
2505 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
2507 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
2508 MainForm.OnLoad has completed unless DoEvents is forced.
2511 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
2513 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2515 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
2517 * Control.cs: Make our implementation of DrawToBitmap better
2518 match WmPaint. [Fixes bug #435579]
2520 2008-10-14 Andreia Gaita <avidigal@novell.com>
2522 * WebBrowser.cs: Use DocumentElement as the document's root for the
2523 whole content. Should fix DocumentText and DocumentStream problems.
2525 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
2527 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2528 these will get called in DGV.OnCollectionChanged. Make sure
2529 OnCollectionChanged always gets called.
2530 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2531 from every row. Call this in OnCollectionChanged.
2534 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2536 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2537 textbox if auto complete is used, since we need to navigate over it.
2538 And in this case don't pass this messages to the base impl. Also hide
2539 the auto complete list box when displaying the drop down listbox.
2540 * TextBox.cs: new internal members to expose some of the auto complete
2541 functionality to combobox.
2543 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
2545 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
2546 MainForm.OnLoad has completed.
2549 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2551 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2552 Append support to this controls. We need it to apply new patches.
2554 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2556 * Control.cs: When updating z order in child controls, send to back
2557 the implicit controls. Also, do it explicitly, instead of making
2558 GetAllControls return the implicit controls in a specific order, and
2559 thus avoid depending on that, which could change in the future.
2562 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2564 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2565 call to StartDrag, since we must fire DragDrop/DragLeave *before*
2566 that, as .net does - instead of firing DragDrop/DragLeave *after* the
2567 call to Control.DoDragDrop has completed. This is needed since at the
2568 point of returning, we have sent related dnd ClientMessages, but we
2569 need to wait for them to fire the wmf respective ones.
2572 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
2574 * LinkLabel.cs: Recreate link pieces when change Padding.
2576 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
2578 * LinkLabel.cs: Take Padding into account when recreate link pieces.
2581 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
2583 * Control.cs: Implement internal property PaddingClientRectangle, it will be
2584 useful for drawing controls that must take care about Padding property.
2586 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
2588 * BindingSource.cs: Make item_type internal so we can access it in DGV.
2589 * DataGridView.cs: Add support for autogenerating columns from a
2592 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
2594 * DataGridView.cs: Comment out an exception that is getting thrown
2595 too often currently.
2597 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
2599 * DataGridView.cs: Always rebind to the datasource, as things may
2600 have changed in it that we aren't capturing yet.
2602 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
2604 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2605 drawing mode. If we are top aligned, give ourselves some top padding.
2607 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2609 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2610 events on the control under the mouse pointer, instead of firing them
2611 on the window generating the dnd operation. To achieve this re-use the
2612 code used to get the window under the pointer when getting MouseMove
2616 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2618 * X11Dnd.cs: Don't check that that the window sending the dnd events
2619 is the owner of the selection. Although Gtk+ sets it that way, it's
2620 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2621 So, just as Gtk+ does, we set our window sending the dnd events as the
2622 owner of the selection, but don't check it when receiving them. This
2623 should fix interoperability with Qt/Kde.
2626 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
2628 * DataGridView.cs: Make sure we take the vertical scrollbar into
2629 account when autosizing columns.
2631 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
2633 * DataGridView.cs: Handle sorting datetimes.
2635 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
2637 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
2638 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
2639 compilation warnings.
2641 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2643 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
2644 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
2645 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
2646 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
2647 compilation warnings.
2649 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2651 * DataGridView.cs, DataGridViewCell.cs,
2652 DataGridViewCellValidatingEventArgs.cs,
2653 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
2654 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2655 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2657 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2659 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
2660 Cleanup compilation warnings.
2662 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2664 * XplatUIWin32.cs: Cleanup compilation warnings.
2666 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2668 * PropertyGrid.cs: Cleanup compilation warnings.
2670 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2672 * DataGridViewRow.cs: Only clear the row background if we
2673 are going to paint a new background.
2675 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2677 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2678 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2679 use PaintBorder instead.
2681 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2683 * DataGridView.cs: When CellBorderStyle is set, update the
2684 AdvancedCellBorderStyle to match.
2686 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2688 * DataGridViewCell.cs: Add helper methods to convert Alignment
2689 to TextFormatFlags and align rectangles.
2690 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2691 * DataGridViewImageCell.cs: Use Alignment when painting the image.
2693 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
2695 * ToolTip.cs: Display tooltips only for controls on the active form.
2698 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2700 * DataGridView.cs: Make OnCellValueNeeded internal.
2701 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2702 user can supply their own value if they choose.
2704 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2706 * DataGridViewColumnHeaderCell.cs: Create a new style object
2707 so the DefaultCellStyle doesn't get changed.
2709 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2711 * ToolStripItem.cs: Check to make sure the owner is actually
2712 changing in InternalOwner before doing any work. Fixes some
2715 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2717 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2718 * DataGridView.cs: Use a column header's inherited style instead
2719 of just using the default.
2721 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2723 * SplitContainer.cs: Raise SplitterMoved when the splitter is
2726 2008-10-01 Mario Carrion <mcarrion@novell.com>
2728 * ScrollBar.cs: Internal property added: UIAThumbPosition.
2730 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2732 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2734 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2736 * ToolStripItem.cs: When the user sets Owner, we need to remove
2737 it from its previous owner and then add it to the new owner's
2738 item collection. Also, create InternalOwner, so we can set the owner
2739 that doesn't do this new stuff.
2740 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2742 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2744 * ToolStripItem.cs: When our parent changes, recalculate our text
2745 size, since we may be getting our Font from our parent. When our
2746 owner's Font changes, recalculate ourselves as we may be using
2749 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
2751 * MenuAPI.cs: Select the first option of a popup when opening the popup via
2752 return key. [Fixes bug #413792].
2754 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2756 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2757 ambient properties. (Get their value from their parents if
2758 values haven't been set.)
2760 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2762 * ToolStripSystemRenderer.cs: Call overridden methods' bases
2763 after our logic, so users can do painting by handling the events.
2764 Currently, we draw over any user painting.
2766 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2768 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2769 after our logic, so users can do painting by handling the events.
2770 Currently, we draw over any user painting.
2772 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
2774 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2776 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2778 * TreeNode.cs, TreeView.cs: Move logic that determines the node
2779 image to draw to TreeNode. Give Index/Keys put on the node
2780 precedence over the global one for the TreeView.
2782 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2784 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2786 2008-09-29 Mario Carrion <mcarrion@novell.com>
2788 * ListBox.cs: Index fixed.
2790 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2792 * TabControl.cs: When expanding the tab -because it's selected now-,
2793 using Right alignment, instead of adding some selected delta value to
2794 the X origin, substract it, so it gets a location adjacent to the panel,
2795 instead of be more separated.
2798 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
2800 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2803 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2805 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2806 as well as the other static fields, to avoid using their previous
2807 values my mistake when handling the dnd events. This should avoid
2808 handling any status event after the drop has been finalized/cancelled.
2810 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2812 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2813 operation, instead of waiting until we get any movement - this will
2814 help us to have the data available in case no movement was detected
2815 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2816 Finally add a windows.forms-only fallback to fire the mentioned events
2817 if no movement at all was detected, just like .net does.
2820 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
2822 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2823 return early if the text is empty because the icon doesn't get
2824 drawn then. [Fixes bug #428113]
2826 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2828 * FileDialog.cs: Implement basic support for sorting by columns in
2829 Details view. Patch by Eric Petit.
2832 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2834 * ThemeWin32Classis.cs: When drawing gridlines take into account the
2835 case where ListView.ItemSize hasn't been computed, and provide a
2836 fallback as well. This prevents a division by 0.
2838 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2840 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2841 correctly draw tooltip backgrounds.
2843 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2845 * ImageList.cs: Change CopyTo implementation to ensure clones are
2846 created of our images.
2849 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2851 * Control.cs: When setting fonts, we need to ensure we change our
2852 reference to the new font object, even if it represents the same
2853 font as before. If we don't, the original font can get disposed
2854 and we will still try to use it.
2857 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2859 * FileDialog.cs: Take into account Tile view when selecting the view
2862 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2864 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2865 the item bounds, since we can't iterate over them in virtual mode.
2866 Also fix wrong calculation of the gridlines when using scrolling.
2869 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2871 * XplatUIX11.cs: When handling EnterNotify events, take into account
2872 both the public and implicit controls when trying to detect the
2873 grab/ungrab process. This should fix ListView selection in Details
2876 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2878 * TreeView.cs: Redraw the whole node area when the selected node changes.
2879 Things like state images were not getting redrawn because the invalid
2880 rectangle was too small.
2883 2008-09-23 Mario Carrion <mcarrion@novell.com>
2885 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2888 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2890 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2893 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2895 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2898 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2900 * StatusBar.cs: Add tooltip support.
2903 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2905 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2906 alignments of sub items in Details view. Patch by John Mortlock (johnm at
2907 hlaustralia.com.au).
2910 2008-09-23 Neville Gao <nevillegao@gmail.com>
2912 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2915 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
2917 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2920 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2922 * ListView.cs: Don't do anything when EnsureVisible is called inside a
2923 BeginUpdate/EndUpdate block.
2926 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2928 * ListViewItem.cs: The semantics for the public .ctor of
2929 ListViewSubItemCollection need us to already have a Text value for the
2930 item, which in our implementation have as available *after* adding the
2931 first sub item. So create an internal .ctor that satisfies our needs
2932 and let the public .ctor have the same semantics as .net.
2935 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2937 * ListControl.cs: Changes in Formatting related values should call
2938 RefreshItems, as .net does.
2940 * ListBox.cs: In the respective overrides of RefreshItems calculate
2941 layout as well as refreshing - again, this is what .net does.
2944 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2946 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2947 since we are already doing that when we change the value of the
2948 scrollbar or force the call to ScrollWindow in the same method. This
2949 way we don't cause a Invalidate call for all the listbox bounds for
2950 methods calling UpdateTopItem with an already updated top item. This
2951 was happening specially calling EnsureVisible with already visible
2954 2008-09-18 Mike Gorse <mgorse@novell.com>
2956 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2957 XplatUIStructs.cs: Added KeyFilter
2960 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2962 * RelatedPropertyManager.cs: The properties returned by
2963 GetItemProperties should be that ones of the *actual* object returned
2964 by the property, not the property type - this is very special when the
2965 property exposes a type, but the returned object actually is a child
2966 class and implements more functionality and properties.
2968 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2970 * Binding.cs: Don't look for the property in the data source if the
2971 passed string is empty.
2973 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2975 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
2976 fix unused variable warnings.
2978 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2980 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2983 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2986 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
2987 leads to the window manager overriding our border style and zorder.
2988 - Allow the activation of non-modal forms, which are children of a
2992 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2994 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
2995 ask the window manager to do the work instead of changing the property
2999 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3001 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3002 AddNew to fix some navigation for empty datasets. [Fixes #323053]
3004 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3006 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
3007 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3008 border and fixes some drawing issues when resize form.
3010 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3012 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3014 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3017 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3019 * TextBoxBase.cs: For standard textbox the scrollbars are always
3020 visible if Multiline is true.
3023 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3025 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3028 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3030 [Fixes most od DBNull and HeadersVisible problems]
3033 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3034 returns the value that we need.
3035 - Fixed FromPixelToColumn method that return zero for first column and for
3036 row header cell, now it returns -1 for row header cell.
3037 - Fixed HitTest to check row header cell in column header area, it now
3038 returns HitTestType.None. [Fixes #322864]
3039 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3040 checks for RowHeadersVisible and other things.
3041 - If an exception occurs when setting CurrentCell and user type 'yes' in
3042 message dialog, invalidade current and new cell and set setting_current_cell
3043 to false to prevent future errors. [Partially fixes #323050]
3045 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3046 value (SetColumnValueAtRow), it must be done by grid to properly show
3047 messages. [Fixes #323050]
3049 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3050 better draw column and row header. Also dont draw anything when column
3051 headers is not visible.
3053 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3055 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3058 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3060 * TreeView.cs: Don't start editing a node on right click, only
3063 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3065 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3066 disabled over a year ago.
3067 * Form.cs: Wrap calling Load in a try/catch because it can happen
3068 before the catch-all one in NativeWindow.
3071 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3073 * ToolStripDropDownMenu.cs: Calculate the connected area better
3074 to take into account when the drop down is not directly under the
3076 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3078 2008-09-16 Mario Carrion <mcarrion@novell.com>
3080 * ScrollBar.cs: New event added: UIAValueChanged, generated when
3081 LargeChange, SmallChange, Maximum or Minimum values are changed.
3084 2008-09-16 Mario Carrion <mcarrion@novell.com>
3086 * ErrorProvider.cs: Component enabled to support accessibility.
3087 * Application.cs: Updated to Initialize UIA in ErrorProvider.
3090 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3092 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3093 so we don't highlight on first focus.
3096 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3098 * TextControl.cs: Correctly calculate the height of the area we
3099 need to invalidate when we have started scrolling and viewport_y
3100 is used. [Fixes bug #387608]
3102 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3104 * TextControl.cs: When getting the SelectedText, don't add in
3105 NewLine characters, as they are already contained in the lines.
3108 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3110 * TextBoxBase.cs: Replace the buggy Lines setter with one that
3111 simply concats the lines and send it to the Text setter.
3112 [Fixes issue #2 and #3 of 388115]
3114 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3116 * Binding.cs: The default value of DataSourceNullValue should be
3117 Convert.DBNull actually. Also, the NullValue should only be used *if*
3118 itself is not null, and use the null/Convert.DBNull value instead.
3120 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3122 * TextControl.cs: Add a method to convert a string newline to the
3124 * TextBoxBase.cs: When the user hits enter, insert a native newline.
3125 [Fixes part 1 of bug #388115]
3127 2008-09-15 Mario Carrion <mcarrion@novell.com>
3129 * ToolTip.cs: UnPopup event set to internal to match public API.
3131 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3133 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3134 have to remove the Ctrl in order for the focus moving code to kick in.
3137 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
3139 * CheckedListBox.cs: Return the real item index from Add. It may not be
3140 the last item if the list is sorted. The user can change the NewValue in
3141 the ItemCheck event, we need to use that value if so.
3142 * ListBox.cs: Return the real item index from a sorted Add.
3145 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
3147 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
3148 happen that the icons from the theme is missing or the particular size
3152 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3154 * Binding.cs: When assigning null or DBNull depending on value/ref type,
3155 use IsValueType instead to get the precise desired value.
3158 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3160 * TreeNodeCollection.cs: When adding a new node to an opened node,
3161 we have to invalidate everything below the parent node because
3162 every node scoots down and we have to repaint them.
3165 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3167 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3168 property into account when drawing.
3171 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3173 * ListBox.cs: When calling Items.Clear(), call
3174 SelectedIndexCollection.ClearCore instead of normal Clear method, to
3175 not fire any Selected*Changed event - this is done to match .net and
3176 don't have invalid values when changing the DataSourceProperty.
3179 2008-09-12 Mario Carrion <mcarrion@novell.com>
3181 * HelpProvider.cs: Control enabled to support accessibility.
3182 * Application.cs: Updated to Initialize UIA in HelpProvider.
3185 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3187 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3188 make the dialog TopMost as well.
3191 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3193 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3194 clipboard data better.
3197 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3199 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3200 TextChanged and SelectionChanged events fire in the same order as .Net.
3203 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3205 * DataGridView.cs: When sorting a column, if it only contains numbers,
3206 do a numeric sort instead of a string sort.
3209 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
3211 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3212 against NRE's when the settings have a null panel.
3213 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3217 2008-09-11 Mario Carrion <mcarrion@novell.com>
3219 * ToolTip.cs: Control enabled to support accessibility.
3220 * Application.cs: Updated to Initialize UIA in ToolTip.
3223 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3225 * Control.cs: Make the custom Enumerator internal to fix build.
3227 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3229 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3230 already in edit mode, begin edit mode. Generally edit mode isn't
3231 started until the second click, but CheckBoxes are special.
3233 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3235 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3236 since that can be set to anything. Always add them to the Control's
3237 parent. [Fixes bug #416058]
3239 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3241 * ListView.cs: Use a custom enumerator for ListViewItemCollection
3242 so items can be deleted in a foreach.
3245 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3247 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3248 Store the user set explicit height so that the row can be AutoSized
3249 and then when AutoSize is turned off, it can get its original size back.
3250 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
3251 duplicating the logic. When setting AutoSizeRowsMode to None, reset
3252 rows' heights back to their explicit values.
3255 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3257 * DateTimePicker.cs: When getting focus, select the checkbox if we are
3258 already showing it. Also, don't change its value when pressing space
3259 if the checkbox is not visible (ShowCheckBox as false). Finally, the
3260 checkbox should remain selected as long as Checked is false, and the
3261 other parts are disabled.
3264 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
3266 * MessageBox.cs: Handle shortcut keys to dialog buttons.
3269 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3271 * Binding.cs: When the value retrieved from the control property is
3272 null, don't return Convert.DBNull for Nullable instances, since they
3273 can *actually* get a null value.
3276 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
3278 * Control.cs: Add an internal field to force doublebuffering regardless
3279 of what the public mechanisms are set to. This is because MS's native
3280 controls are doublebuffered even though their .Net bits are set to false.
3281 * ProgressBar.cs: Set force_double_buffer to true.
3284 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
3286 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3288 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3289 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3290 without EditingControls, paint background selection for types without
3291 EditingControls, reset the EditingCellValueChanged flag when the
3292 cell's value is committed.
3293 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3294 have EditingControls, remove a double call to a cell's OnContentClickInternal,
3295 don't do cell changing logic in OnMouseDown if the cell didn't change.
3298 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3300 * DateTimePicker.cs: Fix the edition of am/pm specifier.
3302 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
3304 * TextControl.cs: Add "&" to the list of valid characters in a URL.
3306 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3308 * DateTimePicker.cs: Before incrementing or decrementing any part in
3309 the textbox, end any current edit. Also when ending the current edit
3310 use the editing_part_index field instead of the current selected
3311 value, since they can be out of synch, and we really need to work on
3312 the *real* current edit part. Finally when PartData.Selected changes,
3313 always try to end any ongoing edit.
3314 This should fix some small errors handling mouse navigation and
3315 increase/decrease operations.
3317 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3319 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3320 respectively) should handled different, since the 12 hours format
3321 needs the value typed by the user to be adjusted depending on the
3322 a.m/p.m value, so it is preserved, and only changed when the value
3323 reaches the 12 value (when it changes from a.m to p.m).
3324 Fixes part of #416555.
3326 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
3328 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3329 * ToolStripDropDownItem.cs: Don't fire events and such again if
3330 ShowDropDown is called on an already dropped down item.
3331 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3332 subitems, the user may add some in the DropDownOpening event.
3335 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
3337 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3340 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
3342 * MdiClient.cs: When looking for menustrips on a child form to merge,
3343 look inside ToolStripContainers.
3346 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
3348 * ErrorProvider.cs: Unbreak my previous commit.
3350 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
3352 * ErrorProvider.cs: Icon should always be 16x16.
3355 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
3357 * GridEntry.cs: Invalidate the child items cache when the property
3360 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
3362 * GridEntry.cs, PropertyGridView.cs:
3363 - Update the ReadOnly detection and rendering to finally hopefully
3364 match the one of MSFT.
3365 - Niceify and move the debug CWLS.
3368 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3370 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3371 since we are already calling Invalidate for the entire control when
3372 needed - and call Redraw() when size changes, since we need to paint
3373 there by ourselved and not anymore from the mentioned method.
3374 This should improve the layout process. Also clean some not needed calls
3377 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
3379 * MenuAPI.cs: Add a null check to the Alt-F4 code.
3382 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
3384 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3387 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
3389 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
3390 PropertyGridView.sc: Implement lazy/delayed propertygrid population
3391 on item expansion. Improves performance and fixes bug #417955.
3394 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
3396 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3399 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3401 * TextControl.cs: Add "_" to the list of valid characters in a URL.
3404 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3406 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
3410 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3412 * FontDialog.cs: When storing our font size from the starting font,
3413 use SizeInPoints instead of Size in case Size is a different unit
3417 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3419 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3420 don't use it for anything else, check if a directory is highlighted.
3421 If it is, navigate into it.
3424 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3426 * Binding.cs: When acquiring a BindingManagerBase for the first time,
3427 check that the specified property actually exists in the data source,
3428 and throw an ArgumentException if that's not the case - this is only
3429 done for this scenario, since for later cases (such Position changes)
3430 we throw different exceptions (match .Net).
3432 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
3434 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
3435 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
3436 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
3437 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
3438 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
3439 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
3443 2008-09-03 Neville Gao <nevillegao@gmail.com>
3445 * StatusBar.cs: Control enabled to support accessibility.
3448 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3450 * Binding.cs: When connecting the event handler for the "Changed"
3451 event for the property, only do it for PropertyManager, and not for
3452 CurrencyManager - this is exactly what does .Net, totally ignoring any
3453 change in the property of the elements of a list.
3456 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
3458 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3459 to Windows when creating a window, as we fake MDI stuffs.
3462 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
3464 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
3465 change takes effect.
3467 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
3469 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3472 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
3474 * DataGridView.cs: Raise CellContentClick event.
3475 [Fixes part of bug #420351]
3477 2008-08-27 Mario Carrion <mcarrion@novell.com>
3479 * ScrollBar.cs: Control enabled to support accessibility.
3482 2008-08-27 Mario Carrion <mcarrion@novell.com>
3484 * ComboBox.cs: Control enabled to support accessibility.
3487 2008-08-27 Mario Carrion <mcarrion@novell.com>
3489 * ListBox.cs: Control enabled to support accessibility.
3492 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
3494 * ComboBox.cs: Don't suppress the TextChanged event when changing
3496 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3500 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
3502 * ErrorProvider.cs: Fix a regression NRE when setting properties
3503 for a control before it has a parent.
3506 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3508 * Binding.cs: Use the BindingManagerBase.Current value to obtain
3509 connect the property "Changed" event, instead of using the data
3510 sources - this is useful when the property specifies actually a
3511 multiple objects path.
3512 Fixes part of #417973.
3514 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3516 * RelatedPropertyManager.cs: PropertyManager instances associated to a
3517 nested properties should return not the properties of the data source
3518 itself, but the properties of the type of a specific property in the
3519 data source - match .net.
3521 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
3523 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3524 AddRange overloads into AddItems method, and added missing NULL check.
3525 Added extra argument check to RemoveAt for compatibility with MS.
3526 Modified IList implementation of Add, Contains, IndexOf and Remove to
3527 throw an ArgumentException if item is not an int. Modified IList.Insert
3528 to throw a NotSupportException instead of an Exception. Implemented
3530 (ObjectCollection): To avoid duplication, use AddItems method from
3531 AddRange overloads. On 1.0 profile, first perform NULL check on items
3534 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
3536 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3539 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
3541 * X11Keyboard.cs : comment out some Console.WriteLine().
3543 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
3545 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3546 even if premises are not filled. Also XLookupString() was not
3547 receiving correct input, which blocked precise input handling
3550 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3552 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3553 type of delegate, instead of EventHandler - this was causing a type
3554 cast exception in all apps handling this event.
3557 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
3559 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3560 ShowDropDown to give the user a chance to dynamically add
3561 drop down items. [Step 1 of fixing bug #417877]
3563 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3565 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3566 had any mouse motion since the call to StartDrag, to match the dnd
3568 Fixes part of #381876.
3570 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3572 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3573 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3574 Also, if we are actually moving into a different window after
3575 grabbing, generate a LeaveNotify event for the previous window, since
3576 we need to fire the leave events until the grab ends, not when
3577 actually moving outside of the control.
3579 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3581 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3582 events only for client windows was wrong - we need to compare the
3583 client window against the window receiving the EnterNotify event, not
3584 against zero (since client window is never Zero, btw).
3585 This prevents having unnecessary handling of EnterNotify events for
3586 non-client windows when a gran begins.
3588 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3590 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3591 MouseMove/MotionNotify events at all (which should only happen after
3592 MouseUp/ButtonRelease, as .Net does).
3593 This avoids firing an extra and unnecessary MouseMove event just after
3594 every MouseDown event.
3596 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
3598 * LinkLabel.cs: Always clear any previous links when LinkArea
3599 is set. [Fixes bug #410709]
3601 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
3603 * ToolStripProfessionalRenderer.cs: Revert last change.
3604 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3605 for ToolStripDropDownBackground.
3607 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
3609 * ToolStripProfessionalRenderer.cs: Use Window color for the
3610 background of dropdowns to match .Net when the user is not
3611 using the default white. [Fixes bug #418108]
3613 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
3615 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3616 it caused timer registration twice. Fixed bug #418107.
3618 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3620 [Correction: This is the actual change to X11Dnd issue, not the
3621 previous one, which was actually a different issue.]
3623 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3624 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3625 when the pointer is actually in motion, but only when the pointer
3626 seems to stop (as .net does).
3627 Fixes part of #381876.
3630 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
3632 * ListBox.cs: Fix CopyTo implementation.
3635 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
3637 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3638 drawing a ComboBox's background. Fixes bad disabled rendering when
3639 the control is not at 0,0.
3642 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
3644 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
3645 ComponentModel layer, which will properly prioritize the attributes.
3646 Avoids wrong prioritization of duplicate attributes when retrieving
3647 the converter and editor.
3650 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3652 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3653 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3654 when the pointer is actually in motion, but only when the pointer
3655 seems to stop (as .net does).
3656 Fixes part of #381876.
3658 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
3660 * GridEntry.cs: Perform stricter check for the ParentEntry's
3661 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
3665 2008-08-14 Geoff Norton <gnorton@novell.com>
3667 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3668 Fixes #396983. Properly fix ActiveWindow trackin and do not
3669 prematurely show POPUP windows.
3671 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3673 * XplatUIX11.cs: Handle the obscured regions while scrolling using
3674 GraphicsExpose event, processing it just after we copy the scrolled
3675 area. This ensures that the next calls to ScrollWindow will copy
3676 regions already updated, and the scrolling will be smooth. Also remove
3677 the code that was trying to detect the obscured regions, since we are
3678 not using it anymore (too slow).
3680 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3682 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3683 MultiExtended mode, by separating some logic between the ctrl/shift
3684 handling. Also ignore any MouseMove events generated together with
3685 MouseDown events - we are only interested in the real motion event.
3686 Fixes part of #414963.
3688 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
3690 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3691 is selected. [Fixes bug #414143]
3693 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
3695 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
3696 and not the parent one (the propertyowner). Fixes the behavior of
3697 GetConverter/GetEditor.
3700 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
3702 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3703 [Fixes part of bug #415452]
3705 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
3707 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
3708 GridEntry, not the current.
3711 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
3713 * TextBoxBase.cs: De-internalize max_length field.
3714 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
3715 share the same logic.
3718 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3720 * ListBox.cs: Selection changes made in the MouseDown handler should
3721 use the *Core versions of selection in SelectedIndices collection,
3722 since the SelectedIndexChanged/SelectedValueChanged events are fired
3723 until we get a MouseUp event, and thus we need to separate the logic
3724 from the events, as done in the keyboard navigation. Also, fire those
3725 selection events from keyboard navigation in SelectionMode.None, even
3726 if we don't have a selection, as .Net does.
3728 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
3730 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3731 last change introduced when an item is clicked but isn't on a toolstrip.
3733 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3735 * ListBindingHelper.cs: When looking for an object's properties, check
3736 if it implements ICustomTypeDescriptor, in which case we should
3737 resolve the propertu based on its GetProperties method, not in its
3738 actual properties. This is what .Net seems to do.
3739 Fixes a UsingWebBrowser problem during initialization.
3741 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3743 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3744 sitting on a MenuStrip.
3746 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3748 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3749 no children with the keyboard, we need to release the keyboard capture.
3752 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3754 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3755 no children with the keyboard, we need to release the keyboard capture.
3758 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3760 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3761 the GTK+-based implementation of VisualStyles.
3762 * ThemeWin32Classic.cs: Exposed various layout values for use in the
3763 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3764 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3765 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3766 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3767 TrackBarHorizontalTrackHeight.
3769 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3771 * TabControl.cs: Added hot style handling for the scroll buttons.
3772 right_slider_state, left_slider_state are now of type PushButtonState to
3773 allow for a hot state. Added tracking of the mouse button being held down
3774 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3775 LeftScrollButtonArea.
3776 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3777 TabControlGetRightScrollRect.
3779 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3781 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
3784 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3786 * Form.cs: Ensure that we reset the shown_raised flag after
3787 the form is closed, so that we raise the show events the next
3788 time the form is shown.
3791 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3793 * Form.cs: Ensure closing events are raised only once.
3796 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3798 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
3799 so that we can successfully generate the LParam in-place instead of
3800 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
3801 navigation for menus.
3803 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3805 * MenuAPI.cs: When montion don't set the keyboard navigation state to
3806 'navigating'. Fixes bug #411356.
3808 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3810 [Fixed remaining issues of #406773 (#1)]
3811 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3813 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3814 MainMenu (already done) and ContextMenu creation.
3816 * ContextMenu.cs: Create tracker on construction.
3818 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3820 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3821 possible to instantiate MenuTracker without GrabControl.
3823 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3825 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3827 * MainMenu.cs: Set GrabControl on SetForm using current form.
3829 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3831 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3833 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3835 * MenuAPI.cs: Check if menu is activated before deactivate it in
3838 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3840 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
3842 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3843 - One style instance can only participate in a single style collection.
3844 - Styles can request their owner to layout whenever their properties
3846 [Fixes bugs #412583 and #412582]
3848 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
3850 * X11Keyboard.cs: Implement the generation of the LParam for
3851 all keyboard messages.
3854 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
3856 * ListBox.cs: Don't let the user set TopIndex so high that it
3857 scrolls up far enough to show empty items.
3860 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3862 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3863 (I'm an idiot and forgot to commit the actual changes, as well as
3864 specify the right file, which is this one, not ListView.cs).
3866 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3868 * ListView.cs: Don't draw ListViewSubItem instances from
3869 DrawListViewItem - we need to reuse the main item's drawing for the
3870 first sub item in case owner draw is true, but wants the system to
3871 do the default draw for the first sub item, without incurring in a
3875 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
3877 * ToolStripButton.cs: Update Checked for CheckOnClick before
3878 raising the Click event. [Fixes bug #412505]
3880 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
3882 * Form.cs: Remove some seems leftover code for non-TopLevel's
3883 CreateParams, which is breaking ClientSize sizing, because it
3884 removes the border window styles.
3886 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
3888 * PropertyGrid.cs: Invalidate the View when the PropertyTab
3891 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
3893 * WebBrowser.cs: Removed debug output.
3895 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
3897 * FileDialog.cs: Apply patch from Ernesto to clean up some
3900 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3902 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
3903 that the change has an immediate effect.
3905 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3907 * ScrollableControl.cs: Update PerformLayout calls to include
3908 provide the name of the property that changed.
3910 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3912 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
3913 location. Fixes drawing of border and cell borders if scrollable.
3915 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3917 * ScrollableControl.cs: Perform layouting after the AutoScroll
3918 properties have changed, so that the changes have immediate
3922 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3924 * XplatUIX11.cs: Non Client area is actually Client such in the
3925 case of NotifyIcon, so double check WholeWindow == ClientWindow
3926 when adding an expose.
3927 [Fixes bugs #324237 and #357022]
3929 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3931 * TableLayoutPanel.cs: Invalidate after layouting, so that we
3932 repaint the cell borders.
3934 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3936 * PropertyGridTextBox.cs: Stop filtering messages prior to our
3937 disposal to avoid unexpected ObjectDisposedExceptions.
3939 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
3941 * TableLayoutPanel.cs: Layout on Row/Column count change.
3943 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
3945 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3947 * PictureBox.cs: When ImageLocation is set to null or an empty string,
3948 only set image to null if it was previously initialized from an url
3949 (or using ImageLocation). In ImageLocation, load specified image
3950 asynchronously if WaitOnLoad is false. Added support for local file
3951 paths to LoadAsync, and added missing argument check.
3953 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3955 * DateTimePicker.cs:
3956 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3957 order to set the value as required (which means: when selection
3958 changes for a part being edited, and not before that if not needed).
3959 Also use an enum to describe which part are we using, and use the
3960 selection as a property in PartData, in order to notify the
3961 DateTimePicker owner that we need to end the current edit.
3964 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
3966 * PropertyGridTextBox.cs: Validation should be performed only if we
3967 are focused. We can lose focus for example if the Return key is used
3968 to set the entry and there is an error. When the message box is
3969 displayed we would have validate on click in the message box.
3971 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
3973 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
3974 in order to determine that we are expandable is wrong. There was a bug,
3975 now fixed, in TypeDescriptor that was causing the wrong converter to be
3976 returned which caused GetPropertiesSupported == false in most cases.
3979 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
3981 * ImageList.cs: Fix ICollection.CopyTo implementation for
3982 ImageListCollection. [Fixes bug #409169]
3984 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3986 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3987 WorkingArea so that menus can appear on the second monitor
3988 when one has dual monitors.
3990 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3992 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3995 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3997 * TextBox.cs: Implement navigation support for auto complete in
3998 TextBox, as well as refactor the code to show the auto complete window
3999 when receiving a WM_CHAR message, instead of TextChanged, since
4000 autocomplete itself should be able to set the Text a lot of times and
4001 finally only typing should show it, not changes from code.
4003 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4005 * TabControl.cs: When expanding the selected tab, don't adjust the
4006 width if alignment is Right, since it has a different offset than 0,
4007 as opposed to the other alignments.
4008 Fixes the selected tab not being painted at all with alignment = Right
4009 and using FillToRight size mode.
4011 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4013 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
4015 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4017 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4018 values from the textbox to the boundary values. [Fixes bug #409026]
4020 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4022 * TreeNodeCollection.cs: We were copying one too many elements when
4023 doing our array copy. Fixes a crash when RemoveAt is called.
4026 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4028 * TabControl.cs: When doing the layout and need to call FillRow -using
4029 FillToRight size mode-, use the overload receiving a bool param
4030 indicating whether we need to do a vertical or horizontal calculation.
4031 Fixes part of #399583.
4033 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4035 * TextBox.cs: When painting, use the value returned by
4036 GetLastVisibleItem instead of using the cached last_item field, since
4037 there could be a desynchronization between the layout and the
4038 painting. Fixes a AOOR exception in auto complete mode.
4040 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
4042 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4043 NonClientAreaEnabled until our VisualStyles is modified to allow it.
4045 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
4047 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4049 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4051 * TextBox.cs: When focus is lost, if the auto complete listbox is
4054 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4056 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4057 tracking size for tool windows.
4058 * Theme.cs, ThemeWin32Classic.cs : Extracted
4059 ManagedWindowSpacingAfterLastTitleButton.
4061 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4063 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4064 They are bit-rotted and have always been listed as "unsupported".
4066 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4068 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4070 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4072 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4074 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4076 * ListBox.cs: Make sure last_item_visible gets reset before we try
4077 to do a layout due to scrollbars appearing or disappearing.
4080 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4082 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4083 for different window themes. [Fixes bug #339140]
4085 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4087 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4088 in ManagedWindowBorderWidth.
4090 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4092 * InternalWindowManager.cs: Change MouseMove to take a point, so
4093 we can use the same point later on.
4094 * MdiWindowManager.cs: Store point sent to MouseMove so we can
4095 later reset to it. On Windows, the Cursor.Position had already
4096 changed by the time we were resetting to it.
4099 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4101 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4103 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4107 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4109 * MdiWindowManager.cs: Double-clicking on the title bar should not
4110 maximize a MDI form if MaximizeBox = false.
4112 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4114 * ThemeVisualStyles.cs: Fixed a warning.
4116 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4118 * ThemeVisualStyles.cs: Fixed warnings and formatted.
4120 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4122 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4123 implementation produces a better result.
4125 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4127 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4130 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4132 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4133 cannot be used from the ThemeEngine constructor.
4134 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4135 Application.VisualStylesEnabled because it does not work on X11.
4137 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
4139 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4140 that we did not always check for, as well as fixes to the IList
4141 implementations. [Fixes bug #402703]
4143 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4145 * IDeviceContext.cs: Added Dispose.
4147 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4149 * Control.cs: Added OnSizeInitializedOrChanged.
4150 * Form.cs: OnLoadInternal: Added a call to
4151 Control.OnSizeInitializedOrChanged.
4152 * InternalWindowManager.cs:
4153 * HandleTitleBarMouseMove: No longer invalidates the parent window.
4154 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4155 * TitleButton: Added Entered.
4156 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4157 * MdiWindowManager.cs:
4158 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4159 move over the maximized title buttons causes a change.
4160 * IsActive: Can now be called before the window is added to a MDI parent.
4161 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4162 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4163 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4164 * ThemeWin32Classic.cs:
4165 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4166 * DrawTitleButton takes a new form parameter.
4167 * Added ManagedWindowTitleButtonHasHotElementStyle,
4168 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4170 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
4172 * ThemeEngine.cs: ThemeVisualStyles is now selected if
4173 Application.EnableVisualStyles has been called, even if the current system
4174 configuration does not support rendering with Visual Styles.
4175 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4176 Styles should not be used.
4178 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
4180 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
4181 ComboBox in FormsTest.
4183 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
4185 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
4186 for fixed toolwindows.
4188 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
4190 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4192 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4194 * Control.cs: CreateControl just returns if the Control is diposed
4195 and doesn't throw ObjectDisposedException.
4198 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4200 * Control.cs: Do not create the control if the parent isn't created
4201 yet, e.g in the case of a parented form on which .Show is called.
4202 It will be created when the parent is made visible/created.
4205 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4207 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
4208 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4211 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4213 * Form.cs: When disposed set owner to null. Improves #402446.
4215 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4217 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
4218 use children's PreferredSize if in AutoSize mode and ExplicitBounds
4220 * Form.cs: Take the Padding into account for the PreferredSize.
4223 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4225 * TabControl.cs: Since we don't support more than one direction in
4226 TabControl rows alignment (this is, the row becomes the
4227 bottom row when selected), make Direction return always 1. This way
4228 the layout doesn't get confused about a bad calculation.
4231 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
4233 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
4234 so that the wparam is properly set.
4235 Fixes form moving in the test case in bug 402446.
4237 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
4239 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4240 the full tree instead of nothing. [Improves bug #406584]
4242 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
4244 * ThemeWin32Classic.cs: Adjusted minimized window painting.
4246 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
4248 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4251 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
4253 * TreeView.cs: Add a null check when using CollapseAll on an
4254 empty tree. [Fixes bug #406449]
4256 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
4258 * Form.cs: Make OnMenuComplete internal so we can call it.
4259 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4262 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
4264 * TabControl.cs: Handle Up and Down keys when TabControl is in
4268 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
4270 * TabControl.cs: Invalidate when we remove a tab. Guard against
4271 an AOORE when trying to remove a tabpage that is not owned by the
4275 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
4277 * ScrollBar.cs: Change the LargeChange calculation to be correct.
4278 Ensure we are using LargeChange instead of large_change so we our
4279 calculations are correct.
4282 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
4284 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4285 we need to ensure the ColumnCount/RowCount gets set.
4288 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4290 * ListBox.cs: When handling item navigation, if selection mode is
4291 None, call EnsureVisible, since scrolling is normally handled by
4292 selection, that we are not calling in this case.
4295 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
4297 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4298 a null check to our focus walking code. [Fixes bug #394332]
4300 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
4302 * ComboBox.cs: Case missed in bug 379596 "Support item
4303 navigation by entering text": On _close_ drop-down select
4304 the first item matching the text in the textbox. [Fixes bug #397265]
4306 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
4308 * DataGridView.cs: Fix a crash when sorting by column headers,
4309 mentioned in bug #404841. Remove some dead switch cases.
4311 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4314 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4315 uses the AutoComplete support in the internal TextBox. Also TextBox
4316 can store a reference to ComboBox, in case AutoCompleteSource is set
4317 to ListItems (this is, ComboBox's items, and we don't want to pass an
4318 additional collection).
4320 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4322 * ListViewItem.cs: Restore the initial value of bounds rect to
4323 Rectangle.Empty, and is this value for Layout detection in virtual
4324 mode. Fixes the tests.
4326 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
4328 * XPlatUI.cs: Remove references to "new" X11 backend.
4330 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
4332 * Control.cs: Add an internal virtual OnDragDropEnd method
4333 to allow controls such as ListBox, which depend on a sequence
4334 of MouseDown+Move+End events, to handle the lack of a MouseUp
4335 when a DnD operation is started in MouseDown.
4336 * ListBox.cs: If a DnD operation is started in MouseDown we won't
4337 get a MouseUp, so reset our state whenever a DnD operation ends.
4339 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
4341 * PropertyGrid.cs: Clear the root griditem first thing when
4342 new object/s is/are selected. Fixes some rare cases where
4343 the View will get a paint request and won't know that the
4344 grid is in the process of repopulating.
4346 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4348 * XplatUIX11.cs, InternalWindowManager.cs:
4349 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
4350 doesn't automagically update the FormBorderStyle, so we must
4351 double check the CreateParams explicitly to determine if the
4352 window is a toolwindow.
4353 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
4354 instead of doing custom checks.
4356 Fixes toolwindows for the test case in bug #402446
4358 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4360 * Control.cs: Visibility of the control should be false
4361 when the handle is destroyed in WmDestroy and not immediately
4362 in Dispose(). This is effectively where the disposing process
4363 ends even though the control is marked as Disposed immediately
4364 after calling Dispose().
4367 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4369 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
4370 when the textbox gets focus.
4373 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4375 * PropertyGridTextBox.cs, PropertyGridView.cs:
4376 - Alt + Down should show the drop down editor.
4377 - Focus the editor when showing it
4380 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
4382 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4383 that are not the first panel.
4384 * StatusBar.cs: Ensure that the X coordinate of panels is always
4385 stored. Fix IList implementation of StatusBarPanelCollection to
4386 call the regular methods.
4387 [Fixes bug #403599, #402165]
4389 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
4391 * ThemeWin32Classic.cs: Fix position calculation for centered
4392 text on status bar panels. [Fixes bug #402165]
4394 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
4396 * Splitter.cs: Fix Splitter to:
4397 - Work for arbitrary splitter size
4398 - Handle MinSize and MinExtra properly
4399 - Get rid of absolute positioning during drag and use relative
4400 - Multiple other fixes
4403 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
4405 * Cursor.cs: Show shouldn't hide the cursor.
4407 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4409 * ListViewItem.cs: When invalidating, add some extra space to bounds,
4410 since focus rectangle and selection can add some space and need to
4411 take into account those small offsets - specially in Details view.
4412 * ListView.cs: Instead of invalidate using item Bounds directly, call
4413 item.Invalidate, to have the code centralized.
4414 Fixes focused/selection garbage when selecting and deselecting items
4417 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4419 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4420 mode we can check whether we have to force a Layout or not, and can
4421 cache based on this, instead of avoiding caching all the the time. Do
4422 this check in GetBounds and TextBounds.
4423 Fixes selection in Details view.
4425 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4427 * ListView.cs: Make HeaderControl internal, thus the theme engine can
4428 get its *real* height instead of trying to infere it.
4429 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4430 get the position of them, since it's in general a bad idea in general,
4431 and because we can't do that in virtual mode. Instead get the first
4432 visible item as well as item height, and draw them.
4435 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
4437 * ToolStripSplitButton.cs: We can't add in extra width if
4438 the button is not AutoSize. [Fixes bug #401279]
4440 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
4442 * PaddingConverter.cs:
4443 - Implement conversion to InstanceDescriptor
4444 - Handle "All" in CreateInstance by using the supplied
4445 ITypeDescriptorContext.
4446 [Fixes bugs #396076 and #396078]
4448 Patch by Andy Hume <andyhume32@yahoo.co.uk>
4449 Code contributed under MIT/X11 license.
4451 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
4453 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
4455 Add Category attributes.
4456 Code is contributed under the MIT/X11 license.
4458 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
4461 - Fix a NRE when unparenting a form.
4462 - Do not recreate or destroy a parented form when
4465 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4467 * TextBox.cs: Implement basic support for AutComplete with custom
4470 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
4472 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4473 DropDownButtonBounds should be from the origin of the button, not the
4474 ToolStrip. [Fixes bug #401279]
4476 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
4478 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4479 running gtk_init_check. This prevents GAIL from loading
4480 unnecessarily, which was breaking UIA support. Initial fix for bug
4482 * Application.cs: Add UIA support to Winforms. New static constructor
4483 uses reflection to initialize UIAutomationWinforms assembly. Added
4484 PreRun event so UIA can initialize before the mainloop starts, and
4485 FormAdded event so UIA can provide a11y support for new Forms in an
4488 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
4490 * DataGridView.cs: When binding to a dataset, subscribe to table
4491 and column change events. Unsubscribe to these when we clear bindings.
4494 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
4496 [DataGrid drawing refactory]
4498 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4500 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4501 must be handle by Theme, now it call DataGridPaintColumnHeader.
4503 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4504 test cases must be also fixed because it checks for wrong size.
4506 * ThemeWin32Classic.cs:
4507 - Draw the bottom line of grid caption.
4508 - Prevent to draw caption text when it is empty.
4509 - Use CPDrawBorder3D for 3D efects to simplify code.
4510 - Uses 3D (when not flat) to paint corner shared between row and column
4512 - Fix header drawing issues on win32, now borders are drawing.
4513 - Fix column header paint issues to mimic win32.
4514 - Adjust header drawing for last column, like first one it must be draw
4516 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4518 - DataGridPaintColumnHeader created to draw column headers, it also
4519 paint stuff right on Win32.
4520 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
4524 - DataGridPaintRowHeaderStar method added.
4525 - DataGridPaintColumnHeader method added.
4527 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
4529 * Control.cs: Don't reset to Dock style layout if DockStyle is
4530 set to none. [Fixes bug #399316]
4532 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
4534 * Win32DnD.cs: Fix the check for control not equal null.
4535 Fixes bug #341420 and #381886.
4537 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
4539 * DataGridViewRowCollection.cs: Update the indexes of rows after
4540 one has been removed.
4541 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4542 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4543 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4544 rows for the Rows collection, or deleting rows from the bound DataSet.
4546 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
4548 * DataGridView.cs: Listen to a DataSet's changed event even
4549 when autogeneratecolumns is false. Refactor the changed event's
4550 add row code to use the same as the existing add row code.
4553 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4555 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4556 much any time the caret moves and there is text, not just when
4557 the selection changes as one would think.
4558 * RichTextBox.cs: Override RaiseSelectionChanged and fire
4562 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4564 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4565 instead of trying to duplicate the code.
4566 * ListBox.cs: Make method internal so we can send keyboard events.
4569 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4571 * TextBoxBase.cs: When pasting and checking the max length,
4572 subtract the selected text length (the text we will be replacing) from
4573 the document length.
4574 * TextControl.cs: Ensure every character insertion is reflected in
4575 charcount, so max length will work properly.
4578 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4580 * ListBox.cs: Ensure scrollbars are updated when a single
4581 column listbox with an already set top-index is created.
4584 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4586 * FontDialog.cs: Typing in the font/style textboxes should search
4587 the list boxes case-insensitively. [Fixes bug #398343]
4589 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
4591 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4592 widths of icon and buttons instead of hard coded values.
4594 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4596 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4597 as well as generating a SelectedIndexChanged event, just like .Net does
4601 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4603 * ListBox.cs: When navigating items visually, use FocusedItem as the
4604 reference point instead of SelectedIndex, since even in
4605 SelectionMode.None we need to support navigation, and in that case we
4606 just can't use SelectedIndex.
4607 Fixes part of #398345.
4609 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
4611 * Control.cs: Make a SetBoundsInternal that avoids the new
4613 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4614 SetBoundsInternal instead of SetBoundsCoreInternal.
4616 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
4618 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
4619 SetBounds for the scrollbars.
4621 2008-06-10 Andreia Gaita <avidigal@novell.com>
4623 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4624 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4625 OnMouseMove, OnMouseOver, OnMouseUp
4626 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4627 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4628 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4629 to the WebControl object to pass to new collection objects
4630 * HtmlHistory.cs: Implement support for individual window histories.
4631 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4632 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4633 GotFocus, LostFocus, OnLoad, OnUnload
4634 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4636 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4637 security level changes and context menu event support.
4639 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4641 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4642 as happens with Esc, patch my Andy Hume.
4645 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4647 * MdiWindowManager.cs: DrawMaximizedButtons now uses
4648 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4649 * Theme.cs: Made MenuButtonSize platform dependent. Added
4650 ManagedWindowButtonSize.
4651 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4652 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4654 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4656 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4657 Added support for rendering with VisualStyles.
4659 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4661 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4662 support for rendering the border with VisualStyles.
4664 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4666 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4667 the icon is not shown.
4668 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4671 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4673 * InternalWindowManager.cs: Draw minimized windows even if they don't have
4676 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
4678 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4680 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
4682 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4685 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4687 * ComboBox.cs: When snaping height -because of IntegralHeight set to
4688 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4689 if the requested height leaves the listbox area with *less* than the
4690 required are to see one item. We were setting it to PreferredHeight
4691 even for values matching the height for a single item.
4694 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
4696 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4698 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
4700 * DataGridViewCell.cs: Use property instead of field.
4702 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4704 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4707 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4709 * Theme.cs: Added #region around the managed window code. Made the managed
4710 window methods abstract.
4711 * ThemeWin32Classic.cs: Added #region around the managed window code.
4713 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4715 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4717 * ThemeWin32Classic.cs: Removed HasBorders checks in
4718 DrawManagedWindowDecorations.
4720 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4722 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4723 Extracted ManagedWindowGetTitleBarIconArea.
4725 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4727 * DataGridViewCellStyle.cs: Don't clone the font.
4729 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4731 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4733 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4735 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4736 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4739 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4741 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4742 Use Format/FormatProvider before trying converters.
4743 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4744 are 'set'. Change constructor to not use ApplyStyle since it wants
4745 everything applied. Clone the Font.
4746 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4747 ApplyStyle the rest.
4749 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4751 * ListView.cs: We need to calculate the scrollbars even if the handle
4752 hasn't been created - this is needed when methods using scrollbars
4753 info, such EnsureVisible, are called before control has been created.
4756 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
4758 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4759 only if the elements are defined.
4761 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4763 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4764 section. Also, when setting bounds, snap height as well as save the
4765 requested height if Dock has any value affecting the height: Left,
4766 Right and Bottom - important if using IntegralHeight as true.
4768 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4770 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4771 passed to SetBounds to reflect the new adjusted height (Integral-wise),
4772 instead of doing that only in our SetBoundsCore override, since the
4773 bounds cached can be the same as saved one and we could not get the
4777 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4779 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4780 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4781 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4782 ToolWindowCaptionButtonSize.
4783 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4785 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4787 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4789 * Theme.cs: Made DoubleClickTime plaform dependent.
4791 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4793 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4794 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4795 ToolWindowCaptionHeight.
4797 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4799 * InternalWindowManager.cs: The adjustment to ensure positive client area
4800 sizes is now platform dependent (disabled on Windows).
4801 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4802 RequiresPositiveClientAreaSize.
4804 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4806 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4808 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4810 * InternalWindowManager.cs: Changed IconicSize to use
4811 SystemInformation.MinimizedWindowSize.
4812 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4813 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4815 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4817 * ComboBox.cs: If the combobox is anchored both on top and bottom,
4818 adjust height if IntegralHeight is true when calling SetBoundsCore (as
4819 likely the height was modified even if Height wasn't specified in
4820 BoundsSpecified parameter).
4821 Fixes part of #396297.
4823 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4825 * InternalWindowsManager.cs: Changed minimum window size while resizing to
4826 SystemInformation.MinWindowTrackSize.
4827 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4828 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4830 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4832 * MenuItem.cs: Fixed Dispose.
4834 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4836 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4837 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4838 EnteredHeaderCell, PressedHeaderCell: Added.
4839 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4840 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4841 theme a chance to override default painting.
4842 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4843 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4844 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4845 ListView and DataGridView header rendering.
4847 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4849 * RichTextBox.cs: GetPositionFromCharIndex should return the
4850 visual position of the character relative to the viewport.
4851 [Fixes part of bug #396664]
4853 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4855 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
4856 and not just for the existance of an UITypeEditor. In some cases
4857 there is an editor associated just to do PaintValue, but which
4858 doesn't actually support editing.
4861 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4863 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4864 if needed, instead of 0 - this should help us in the corner case where
4865 we have more than one item but we are only partially showing 1 item.
4866 Fixes part of #374713.
4868 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4870 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4871 control, return immediately if the any parent control's handle hasn't
4872 been created or isn't visible, as well as avoiding creating the parent
4873 Form if the handle hasn't been previously created.
4876 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4878 * TableLayoutPanel.cs: Use border sizes when calculating the
4879 panel's preferred size. [Fixes part of bug #396433]
4881 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4883 * SplitContainer.cs:
4884 - Fix SplitterDistance to update only if needed.
4885 - Make it force min and max validation.
4886 - Handle properly mouse moves outside the resizeable area.
4889 2008-06-02 Andreia Gaita <avidigal@novell.com>
4891 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4892 (which also suppresses all popup dialogs). Throw NotSupported
4893 exceptions for activex getters/setters.
4894 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4895 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4896 StatusText, Version, GoSearch
4897 * HtmlDocument.cs: Add DocType support
4899 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
4901 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4904 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4906 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4908 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4910 * TableLayoutPanel.cs: When calculating preferred size, use the
4911 actual number of columns and rows, not what the user set them to.
4914 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
4916 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4919 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4921 * XplatUIX11.cs: When detecting areas obscured in a control by other
4922 toplevel windows while scrolling, return if the control hasn't a
4926 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4928 * XplatUIX11.cs: Properly detect the visible area of a control being
4929 scrolled (obscured by other winforms controls and any X toplevel
4930 windows), to mark as invalid the requested area to be scrolled that
4931 isn't visible and thus can't be copied.
4934 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4936 * ListBox.cs: Compute the precise amount to vertically scroll when
4937 using DrawMode.OwnerDrawVariable.
4938 Patch by jkeymer (j.keymer@gmx.net).
4940 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4942 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
4943 to avoid setting an invalid value for the verticall scrollbar
4944 when navigating items. And, duh, also remove my silly debug messages
4945 from previous commits.
4948 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4950 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
4951 make it MS compatible.
4953 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4955 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
4956 - Allow the editing of entries even if their parent is read-only.
4957 - Do not render expandable properties read-only.
4958 - Refactor expansion checks form PropertyGrid into PropertyGrid.
4960 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
4962 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4963 support for the hover style.
4965 2008-05-29 Andreia Gaita <avidigal@novell.com>
4967 * ContainerControl.cs: Check for null dead-end when traversing the tree
4970 [Fixes #394332, patch by Ernesto Carrea]
4972 2008-05-29 Geoff Norton <gnorton@novell.com>
4974 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4975 constant that it is. Fixes #393981
4977 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4979 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4980 that the user probably doesn't want to set this.
4982 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4984 * ThemeWin32Classic.cs: Don't let the text size be bigger than
4985 the control size for CheckBox/RadioBox.
4986 [Fixes part of bug #394645]
4988 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4990 * PropertyGrid.cs: Update the state of the sorting buttons in
4991 the toolbar if PropertySort is set programatically.
4993 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4995 * GridItemCollection.cs: Add multiple items with conflicting names
4996 support and also preserve name ordering.
4999 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5001 * GridItemCollection.cs: Revert my multiple items with same
5004 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5006 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5008 Fixes part of #393908.
5010 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
5012 * ToolStripDrowDown.cs: When using the Show () methods that have a
5013 Control parameter, set the menu owner to that Control.
5016 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
5018 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5021 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5023 * GridItemCollection.cs: Refactor to support multiple items with the
5027 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
5029 * Control.cs: The 2.0 check for illegal cross thread calls in
5030 Control.Handle were throwing an exception when we were getting
5031 the Handle in order to invoke correctly. Created a private
5032 version that does not contain this check.
5035 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5037 * PropertyGrid.cs: Respect DefaultTabType.
5039 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5041 * ListView.cs: SPACE selects an item.
5044 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5046 * ListView.cs: Reset the search string whenever the items are
5050 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5052 * ListControl.cs: For the first added item PositionChanged is fired
5053 _before_ ItemChanged, which leave us in a temporary invalid state - so
5054 we need to set the selected index from ItemChanged handler *if* we
5055 know that the first item has just been added *and* the items have been
5056 actually added to the ListControl.
5059 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5061 * TabControl.cs: Only clicks with the left button should be
5065 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5069 * TextBox.cs: Expose an internal method in TextBox to restore the
5070 original context menu, and call it from ComboBox to re-use it in the
5071 combobox containing the file name in FileDialog.cs.
5072 Fixes part of #393775.
5074 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5076 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5079 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5081 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5084 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5086 * ComboBox.cs: Minor correction to previous patch: PageDown should
5087 also *try* to move by one item if the computed offset is negative,
5088 just like the PageUp case.
5090 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5092 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5093 should be done for at least 1 item, and not stay at the same item.
5094 Fixes part of #374713.
5096 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
5098 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5099 directories. [Fixes bug #393931]
5101 2008-05-22 Andreia Gaita <avidigal@novell.com>
5103 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5104 Don't fire events until the initial about:blank page has finished
5105 loading. Clean up events.
5107 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
5109 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5110 FocusIn() too. This should fix the issue on switching
5113 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
5115 * X11Keyboard.cs : set XIM font size to somewhat reasonable
5116 number (ideally the input textbox size, but that could be
5119 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
5121 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5122 the ToolStripItem's TextChanged. [Fixes bug #393597]
5124 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5126 * TabControl.cs: When invalidating in SelectedIndex and we need to
5127 inflate to take into account the border of the tabs, make sure that
5128 the invalidated rect doesn't overflow the control bounds, since that
5129 would avoid updating at all.
5131 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5133 * TabControl.cs: Don't substract scroller width from the row width,
5134 since we need to take into account the total width of the control when
5135 calculating the position of the tabs. This avoids showing scroller
5136 when it is actually not needed.
5137 Fixes part of #322325.
5139 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5141 * ThemeVisualStyles.cs: Added support for TextBoxBase.
5143 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5145 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5146 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5148 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5150 * DataGridView.cs: Only paint the top left header cell if there
5153 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5155 * DataGridView.cs: When binding to a BindingSource, get the underlying
5156 list to bind to. [Fixes bug #345483]
5158 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
5160 * DataGridView.cs: Do not bind to collection properties.
5163 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5165 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5167 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5169 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5172 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5174 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5176 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5178 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5181 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5183 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5185 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5187 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5190 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5192 * TabControl.cs: Extended to handle the hot style.
5194 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
5196 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5197 Extended UpDownBase code to handle hot and disabled styles.
5199 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5201 * DataGridView.cs: Handle databinding to generic list type things.
5204 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5206 * DataGridViewCellCollection.cs: Add a method to find the cell
5207 with the given DataPropertyName.
5208 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5209 * DataGridViewColumnCollection.cs: Add a method to clear all
5210 autogenerated columns.
5211 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5215 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5217 * DataGridView.cs: Don't try to update the RowTemplate with
5218 a null CellTemplate.
5220 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5222 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5223 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5224 * DataGridView.cs: Lots of fixes/enhancements to databinding to
5227 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
5229 * Control.cs: Remove invalidating implicit child controls when
5230 control is invalidated. It was causing too many redraws on
5231 controls with implicit scrollbars.
5232 * ListView.cs: Listen to the Invalidated event and invalidate
5235 2008-05-20 Andreia Gaita <avidigal@novell.com>
5237 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5238 * HtmlDocument.cs: Check for nulls
5240 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5242 * Control.cs: In ControlCollection.RemoveInternal, remove the
5243 internal control before calling PerformLayout and OnControlRemoved,
5244 which was leaving us in an invalid state and causing a X error (bad
5245 match). Observe that Remove () call has the same order.
5246 Fixes an X error changing ComboBoxStyle.DropDownStyle.
5248 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5250 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5251 being fired if ControlStyles.UserPaint style is activated.
5254 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
5256 * GridEntry.cs: Don't be so strict when setting the value -
5257 do not check if what we set is what we get.
5260 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
5262 * XplatUIX11.cs: If there are no timers timeout should be 0
5265 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
5267 * Control.cs: As a followup to invalidating implicit children when
5268 a control is invalidated, only invalidate them if they are in the
5271 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5273 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5275 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5277 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5279 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5281 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5282 * XplatUIWin32.cs: Made Win32DeleteObject public.
5284 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
5286 * GridEntry.cs: Determine HasDefaultValue more strictly by using
5287 PropertyDescriptor.ShouldSerializeValue.
5290 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5292 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5293 in the classic theme.
5295 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5297 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5299 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5300 ScrollBarHasPressedThumbStyle.
5302 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5304 * TextRenderer.cs: Included some methods in the 1.1 profile.
5306 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
5308 * Control.cs: When we make a control visible, it may have been
5309 previously visible and while it wasn't visible, the z-order of
5310 things may have been shuffled, so the control needs to have its
5311 z-order updated just in case. [Fixes bug #391518]
5313 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5315 * ThemeVisualStyles.cs: Added support for GroupBox.
5317 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5319 * GroupBoxRenderer.cs: Included in the 1.1 profile.
5321 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
5323 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5324 bug #389996; XSelectInput() behaved as mouse handler robber,
5325 so remove extra call to it.
5327 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5329 * Control.cs: Simplify ControlCollection.Contains method.
5331 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5333 * DataGridViewRow.cs: Implement GetPreferredSize.
5335 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5337 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
5339 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5341 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5342 painting and edit control fixes.
5344 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5346 * DataGridView.cs, DataGridViewCell.cs: Work around some external
5347 checks to make sure we are in an actual row/col for top left header cell.
5348 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5350 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5352 * Control.cs: Use long instead of int when handling WParam from
5353 mousewheel scrolling. Int was overflowing on Win64.
5355 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5357 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5358 flow panel without scrolling first, and then calculate the
5359 scrolling based on the new layout. [Fixes bug #390149]
5361 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5363 * ListBox.cs: Invalidate after scrolling up when selected index
5364 changes. [Fixes bug #390151]
5366 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5368 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5369 set, default height to 150. I tried first with DefaultSize, but this
5370 is not generating a SetBoundsCore call before handle creation time, so
5371 we can take it into account. This is just what .net does.
5373 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
5375 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5376 as it broke some stuff. Calberto is filing a bug for eno to
5379 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5382 to 0 is the current value is -1, and if style is not Simple, just
5383 return, like .net does.
5384 Fixes part of #374713.
5386 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
5388 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5389 progress bar stuffs, use doubles instead of ints to prevent
5390 overflow. [Fixes bug #389798]
5392 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
5394 * XplatUIX11.cs, X11Keyboard.cs :
5395 Significant refactoring on XIM support. Now IM engine UI
5396 should show up, at mostly-correct preedit position.
5397 - Eliminated use of FocusWindow, as it is never mapped
5398 and hence blocks correct preedit position. XIC is now
5399 created per window, and it must be destroyed too when
5400 the window is destroyed.
5401 - WM_QUIT messages should not be filtered even when hwnd
5402 is zombie. Filtering it could cause endless loop.
5403 - Preedit position must move only when the window is alive.
5404 - Make it IDisposable and make sure to release XIM/XICs.
5406 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
5408 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5409 XplatUIX11.cs, XplatUIWin32.cs :
5410 fix for bug #325033 and #387693;
5411 - WM_QUIT should not be sent when no running application
5413 - SetTimer/KillTimer (especially on win32) should be
5414 invoked for the window that the timer is/will_be attached.
5415 - There could be unattached timers to a window when it's
5416 started. For those timers, hold pending timers and when
5417 a window is mapped, attach them to it.
5418 - WaitForHwndMessage() could run into loop when
5419 WM_SHOWWINDOW is handled before this method is called.
5420 So, strictly check wm_showwindow state.
5421 - Tick handler should not be invoked while one Tick handler
5422 call is still running (introduced Busy state).
5424 2008-05-13 Andreia Gaita <avidigal@novell.com>
5426 * WebBrowserBase.cs: Override Internal alternative methods for
5427 SetBoundsCore and OnResize instead of the protected ones.
5428 * Control.cs: Move SetBoundsCore and OnResize implementations to
5429 SetBoundsCoreInternal and OnResizeInternal, so they can be
5430 overriden internally (WebBrowserBase needs to catch them but can't
5431 override the protected methods without api compat problems)
5433 2008-05-13 Andreia Gaita <avidigal@novell.com>
5435 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5437 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5440 * ListView.cs: Remove debug messages.
5442 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5444 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5445 area is empty. Also calculate scrollbars in Simple mode based in area
5446 height and total number of items, not in MaxDropDownItems.
5447 Fixes part of #371991.
5449 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5451 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
5453 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5455 * BindingSource.cs: GetListSortDescription is not public.
5457 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5459 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5461 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5463 * HtmlElement.cs: Fix parameter names to match MS.
5464 * HtmlWindowCollection.cs: Should not be sealed.
5466 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5468 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5469 button, because the thumb button will not get drawn if the scrollbar
5470 is disabled. [Fixes bug #389262]
5472 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5474 * ListBox.cs: Handle End key for multi-column listboxen.
5477 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5479 * ListBox.cs: Fix algorithm to determine which column our item is in.
5482 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5484 * ListBox.cs: Invalidate when the listbox is resized.
5487 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5489 * ListBox.cs: There is always at least one row in the ListBox (if
5490 we are doing these calculations.) [Fixes bug #389253]
5492 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5494 * ListBox.cs: There is always at least one column in the ListBox.
5497 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5499 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5500 ensure in Simple mode that the height is exactly the requested one.
5501 Also add the ComboBoxListControl to the controls collection in Simple
5502 mode even if handle hasn't been created.
5503 Fixes part of #371991.
5505 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5507 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5508 our ComboBox owner instead of giving it back to the previous control (
5509 as done in other controls). Also remove the empty override of Select
5510 method, since we want to be selected *and* give focus to our owner.
5511 This should let the user do keys-navigation in Simple mode.
5513 2008-05-10 Geoff Norton <gnorton@novell.com>
5515 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5516 problems with rapid scrolling of treeviews. Fixes #381084
5518 2008-05-10 Geoff Norton <gnorton@novell.com>
5520 * XplatUICarbon.cs: Deactivate the active window before
5521 activating the desired window. Completes fixing #386504
5523 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5525 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5526 SmallChange to the item size width plus the padding, to match .net.
5528 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5530 * FileDialog.cs: Apply the custom filter typed by the user in the file
5531 name combobox as much as possible while navigating in the file dialog.
5534 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5536 * Binding.cs: Actually use NullValue if the retrieved value of
5537 data source is null or DBNull. Makes a test pass.
5539 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
5541 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5542 * MimeIcon.cs: Provide a way to get icons from resources.
5544 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5546 * Binding.cs: When the value retrieved from the control to be assigned
5547 to the data source is null, actually use the 2.0 DataSourceNullValue
5548 value. Make pass a data binding test.
5550 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
5552 * Control.cs: We need to invalidate implicit children even when
5553 invalidate is called with invalidatechildren = false. (Implicit
5554 children are really part of the parent.)
5555 * ListView.cs: Double-buffer internal child controls for less
5557 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5558 owner ListView subitems for greatly increased performance.
5561 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5563 * FileDialog.cs: When the user types a wildcard character in the
5564 filename combobox, update the contents of the folder using the text as
5566 Fixes part of #385261.
5568 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
5570 * ListBox.cs: Various fixes for MultiColumn listboxen.
5573 2008-05-08 Andreia Gaita <avidigal@novell.com>
5575 * HtmlElement.cs: Implement Style property
5577 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
5579 * ListBox.cs: Respect checkboxes when measuring item size.
5580 * ThemeWin32Classis.cs: When drawing list items, don't draw
5581 text outside of the item's bounds to prevent overlapping.
5582 (.Net actually overlaps, but that's just silly.)
5585 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
5587 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5588 Gert Driesen. Fixes bug #324830.
5590 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
5592 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5595 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5597 * BindingSource.cs: When calling IsSynchronized, return the value of
5598 the related IList list.
5600 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5602 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5605 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
5607 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
5608 navigation to scroll the grid if the current cell is not visible.
5610 2008-05-07 Andreia Gaita <avidigal@novell.com>
5612 * HtmlElement.cs: Implement TabIndex
5614 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
5616 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5617 properties, even when there are no items.
5620 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
5622 * NativeWindow.cs: Add support for multiple handles per window.
5623 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
5624 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
5625 directly - use FromHandle instead.
5628 2008-05-07 Andreia Gaita <avidigal@novell.com>
5630 * HtmlElement.cs: Implement InnerHTML setter
5632 2008-05-07 Andreia Gaita <avidigal@novell.com>
5634 * HtmlDocument.cs: Implement Focused
5636 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5638 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5639 methods, as well as add messages to the exceptions.
5641 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5643 * BindingSource.cs: Setting DataSource should only reset DataMember if
5644 the previous value was null (make pass a not working test).
5646 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5648 * BindingSource.cs: When EndInit call is postponed and is called until
5649 DataSource.EndInit is called, remove the handler for data source.
5651 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5653 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5655 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5657 * ToolStripManager.cs: Store references to toolstrips as
5658 weak references so they do not prevent forms from getting collected.
5661 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5663 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5664 on .Net. So do the same thing in WndProc.
5666 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5668 * TrackBar.cs: Commit patch from Andy Hume that corrects
5669 the clickable areas to better match .Net.
5672 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5674 * TrackBar.cs: Commit patch from Andy Hume that adds the
5675 ResizeRedraw control flag so the track bar repaints itself
5676 when it is resized. [Fixes bug #387072]
5678 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5680 * TrackBar.cs: Commit patch from Andy Hume that adds better
5681 support for keyboard navigation when the TrackBar is vertical.
5684 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5686 * BindingSource.cs: Implement ISupportInitializeNotification support.
5688 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
5690 * ThemeVisualStyles.cs: Added support for ToolBar.
5692 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
5694 * ToolBar.cs: Made the Vertical property internal.
5696 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5698 * ThemeVisualStyles.cs: Added support for TrackBar.
5700 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5702 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5703 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5704 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5705 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5706 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5707 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5709 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5711 * ThemeVisualStyles.cs: Added support for UpDownBase.
5713 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5715 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5716 Extracted Theme.UpDownBaseDrawButton.
5718 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
5720 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5721 removed from the static toolstrips collection in ToolStripManager
5722 when they are disposed. Provides a workaround for bug #386483.
5724 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
5726 * GridEntry.cs: Read-only properties with Editor with
5727 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5730 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
5732 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5733 the menu key and there are no items on the menu.
5736 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
5738 * Control.cs: Avoid calling ToString on a string.
5739 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5740 * GroupBox.cs: In FlatStyle property throw, not just create, the
5741 exception. Avoid calling ToString on a string.
5742 * ProgressBar.cs: Avoid calling ToString on a string.
5743 * ScrollBar.cs: Avoid calling ToString on a string.
5744 [All issues were found using Gendarme]
5746 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5748 * NotifyIcon.cs: Prevent click events to be trigger after double click
5749 events. Fixes remaining issues of bug #324832.
5751 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5753 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5754 to mimic win32 behavior. Partially fixes bug #324832.
5756 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758 * BindingSource.cs: Implement Find methods.
5760 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5762 * BindingSource.cs: Implement Sort, ApplySort overloads, and
5765 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5767 * ListBindingHelper.cs: When calling GetListItemProperties and the
5768 passed object is ITypedList, return the result of
5769 ITypedList.GetItemProperties instead.
5771 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5773 * LinkLabel.cs: Set default value of name on constructor of Link class
5774 only for 2.0 profile.
5776 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5778 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5779 Fixes remaining issues of bug #346154.
5781 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5783 * LinkLabel.cs: Set a default value for name on internal contructor of
5784 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5786 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5788 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5789 and refer all instances to owner.links. Partially fixes #346154.
5791 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5793 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
5794 length equal zero. Also called CreateLinkPieces in constructor. It fixes
5795 the LinkLabel test 'TestLinkArea'.
5797 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5799 * Form.cs: Remove menu before close form to prevent form to be not gaced.
5802 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5804 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5807 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5809 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5812 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5814 * MenuAPI.cs: Remove unused ProcessCmdKey method.
5816 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5818 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
5821 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5823 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5826 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5828 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5829 sometimes we open a conext menu on mouse down of some controls and the mouse
5830 up is dispatched to menu and dont need to. It fix remaining issues of
5831 #363711 and other problems related to menu mouse click events.
5833 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5835 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5836 some var names to better fit changes, now we have month_menu and today_menu
5837 vars. Fixes bug #363711.
5839 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5841 * MonthCalendar.cs: Handle every right mouse click to open context menu,
5842 right now the default month menu but it will be change to have "Go to today"
5845 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5847 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5849 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5851 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5853 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5855 * ThemeVisualStyles.cs: Added support for TreeView.
5857 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5859 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5860 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5862 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5864 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5866 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5868 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5869 Implement 2.0 SP1 stuffs.
5871 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5873 * FileDialog.cs: Implement 2.0 SP1 stuffs.
5875 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5877 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5878 Implement CanEnableIme property. (2.0 SP1)
5880 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5882 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5885 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5887 * Control.cs: Provide an internal way for a control to override
5888 the setting of Height.
5889 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5890 set height using new method.
5892 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5894 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5896 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5898 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5899 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5901 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5903 * ThemeVisualStyles.cs: Added support for StatusBar.
5905 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5907 * DataObject.cs: Add the other IDataObject interface.
5909 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5911 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5912 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5914 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5916 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5917 * ListView.cs: Hide non-public API.
5918 * MaskedTextBox.cs: Remove extra attribute.
5920 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5922 * DataGridViewImageCell.cs: Use formatted value instead of value
5923 to calculate preferred size.
5925 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5927 * ListBox.cs: Move some initialization around so that selected_indices
5928 is not accessed before it is created.
5930 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5932 * InputLanguageCollection.cs: Implement the collection better.
5935 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5937 * ToolStripDropDownItem.cs: Get the correct event object for
5938 DropDownItemClicked.
5939 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5942 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5944 * DataGridViewRowCollection.cs: We don't currently support shared
5945 rows. Should fix test failures caused by previous commit.
5947 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5949 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5950 datagridview gets set. Only paint cells in visible columns.
5951 * DataGridViewCell.cs: Draw border after cell content.
5952 * DataGridView.cs: Invalidate after setting some properties. Only
5953 use visible columns. Fit hit test bug with areas in the col/row header
5954 area but not in a row or col. Implement UpdateCell/Row methods.
5956 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5958 * DataGridViewElement.cs: Don't throw NIEX.
5959 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5960 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5961 * DataGridViewCheckBoxColumn.cs: Implement ToString.
5962 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5963 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5964 if the user filled in the formatting Value, use it.
5966 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5968 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5971 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5973 * BindingSource.cs: Some corrections to Filter property, as well as
5974 setting it for our list when resetting it.
5976 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
5978 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5979 than the maximum. Fixes reopened bug #384182.
5981 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5983 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5984 Fixes remaining issues of #367490.
5986 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5988 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
5989 SystemInformation.WorkingArea to get max_screen value.
5991 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5993 * BindingSource.cs: Implement Filter and RemoveFilter.
5995 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5997 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5999 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6001 * X11Dnd.cs: When trying to convert data and we know we started the
6002 dnd loop, don't try to use the cached data if the loop is not running,
6003 which means that the data has been resetted.
6006 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6008 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6011 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6013 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6014 it to drawn off screen edge. Fixes bug #367490.
6016 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6018 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6019 menu position to have only one assignment of Location var.
6021 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6023 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6024 for this patch. Fixes bug #384115.
6026 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6028 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6029 the same. If LargeChange is zero, set a minimum size for the scroll
6030 thumb grip. [Fixes bug #384182]
6032 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6034 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6037 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6039 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
6041 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6043 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6044 patch from Ernesto).
6046 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6048 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6050 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6052 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6054 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6056 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6058 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6060 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6062 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
6064 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6066 2008-04-27 Andreia Gaita <avidigal@novell.com>
6068 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6069 supposed to return a reference to an mshtml interface, which we
6071 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6072 reference to an mshtml interface, which we don't support). Code
6074 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6075 DomDocument getter (it's supposed to return a reference to an
6076 mshtml interface, which we don't support). Code formatting cleanup.
6078 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6080 * ListView.cs: Ouch, forgot to commit.
6082 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6085 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6087 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6089 * ListView.cs: When calculating box selection for virtual mode, don't
6090 look for intersection with item's text, but item bounds, since that
6091 would mean read ListViewItem's text for _every_ item, and that's
6092 something we just can't do in virtual mode (items are only requested
6095 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
6097 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6098 partial support for managed windows (based on the patch from Ernesto).
6100 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6102 * ListView.cs: When doing a key search use FindItemWithText method
6103 instead of doing the search by ourselves, this way we avoid
6104 duplicating the code and also we handle the special case for virtual
6105 mode. To achieve that make our private overload of FindItemWithText
6106 internal and also have a 'roundtrip' parameter.
6108 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6110 * ListView.cs: When doing the layout don't request the
6111 ListViewItem instance if we are in virtual mode (since we can't request it
6112 until the item is actully drawn).
6114 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6116 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
6119 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6121 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
6122 the patch from Ernesto).
6124 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6126 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6127 * ThemeVisualStyles.cs: Added.
6129 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6131 * IDeviceContext.cs: Added a missing using.
6133 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6135 * ButtonBase.cs: Made IsDefault protected internal.
6136 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6138 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6140 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6141 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6142 RadioButtonRenderer.cs: Included in the 1.1 profile.
6143 * IDeviceContext.cs: Added.
6144 * TextRenderer.cs: Included a member in the 1.1 profile.
6146 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
6148 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6150 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6152 * ErrorProvider.cs: Make the error icons come after the control
6153 they refer to. It isn't the way the MS does it, but its better
6154 than what we were doing. See bug #368587.
6156 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6158 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6159 from Eric Albright that lazy loads the input language as ensures
6160 everything gets properly initialized. Fixes bug #373871.
6162 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
6164 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6165 implicit mnemonics. [Fixes bug #383000]
6167 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6169 * X11Dnd.cs: When canceling the operation, automatically restore the
6170 default cursor - normally the default cursor is restored when the
6171 mouse buttons are released, but we should be able to restore it even
6172 if the buttons are still pressed (for example, when pressing ESC to
6176 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6178 * X11Dnd.cs: When starting a new drad and drop operation, set control
6179 field to null, just as the other fields, to avoid calling any
6180 operation on a previous control. Also, when calling DndLeave on a
6181 control, set it to null, thus we don't fire that event multiple times
6185 2008-04-23 Geoff Norton <gnorton@novell.com>
6187 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6188 the whole_window object. Fixes #377084.
6190 2008-04-23 Andreia Gaita <avidigal@novell.com>
6192 * HtmlElement.cs: Implement RaiseEvent (event injection into the
6195 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
6197 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6199 2008-04-23 Andreia Gaita <avidigal@novell.com>
6201 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6204 2008-04-23 Andreia Gaita <avidigal@novell.com>
6206 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6209 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6211 * X11Dnd.cs: When the drop was cancelled, or could just not be
6212 performed, return DragDropEffect.None always (match .net).
6214 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
6216 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6218 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
6220 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6222 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
6224 * DataGridView.cs: Add support for error icon tool tips.
6225 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6226 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6228 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
6230 * X11Structs.cs: Add mouse button masks enum.
6231 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
6232 WM_EXITSIZEMOVE only once at the beginning and at the end of the
6233 form resize/move operation instead of for each step of it.
6234 [Fixes bug #346529 for the x11 backend]
6236 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6238 * DataGridView*: Implement support for drawing error icons.
6240 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6242 * TreeView.cs: Make vbar and hbar internal.
6243 * TreeNode.cs: If collapsing the node removes one of the TreeView's
6244 scrollbars, invalidate the whole thing.
6247 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6249 * TreeView.cs: Calling Sort() sets Sorted = true.
6250 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6251 if the nodes need to be sorted.
6254 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
6256 * Form.cs: Fire SizeChanged for both when the form is minimized and
6258 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
6259 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6261 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
6263 * ComboBox.cs: If the combobox is disabled, draw a disabled
6264 background before painting anything else.
6267 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6269 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6270 forget to send a Leave event to the target window - just as .net does
6271 when cancelling dnd operations.
6273 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6275 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6276 soon as possible - this happens when we send the drop message to the
6277 target window. This way we avoid firing any DragOver _after_ drop finished.
6280 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
6282 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6283 * Form.cs: Handle form minimization as a special state, where size doesn't
6284 change, but we have to fire SizeChanged.
6285 [Fixes bug #325122 for the win32 and x11 backends]
6287 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
6289 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
6290 if the handle is disabled.
6293 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
6295 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
6296 for forms with FormBorderStyle.None.
6299 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
6301 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
6303 [Fixes bug #346529 for the X11 backend]
6305 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6308 - Send a mouse Enter message after say dragging the mouse with a
6309 button down and then release it in another client.
6310 - Reset the cursor to prevent X11 from remembering it and setting it
6311 before the control gets WM_SETCURSOR.
6312 - Qeueue a mouse move after a mouse enter like win32.
6315 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6317 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
6318 It's sent when the form gets moved, resized, closed.
6319 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6320 [Fixes bug #359193 for X11]
6322 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6324 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
6327 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6329 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
6330 group. Fixes the 1.1 build.
6332 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6334 * ListView.cs: Use display indexes for selection in Details view, as
6335 well as do the proper layout based on display indexes for that view
6338 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6340 * ListView.cs: Focused item information is now stored as a display
6341 index, and display indexes are used all over the place for selection,
6342 instead of ListViewItem.Index values, which doesn't give us enough
6343 information to modify the selection in groups mode, and was broken.
6345 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
6347 * Control.cs: Do not fire MouseDown if validation of the control has
6349 * Form.cs: Validate the form before closing.
6350 [Fixes bugs #330501 and #353310]
6352 2008-04-18 Andreia Gaita <avidigal@novell.com>
6354 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6355 CreateWebBrowserSiteBase implementations
6356 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6357 Style and TabIndex setters
6359 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6361 * ListViewGroup.cs: When returning the actual item count, return the
6362 proper count for default group.
6365 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6368 * ListViewGroup.cs: When calculating groups layout, get the actual
6369 number of items per group, since groups added to the group BUT not
6370 added to the ListView are just ignored, and can cause some nasty
6371 exceptions because of the lack of synchronization. Also for
6372 ListViewGroup don't use lazy initialization for items, since we
6373 the common scenario is to use it always - and it helps us to refactor
6374 and clean the .ctor overloads.
6376 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6378 * ListView.cs: When adding an item to a ListViewItemCollection
6379 belonging to a group (ListViewGroup.Items), don't generate a redraw if
6380 the added item hasn't beeen previously added to the ListView instance
6381 refered by the group, since it will be ignored. This should avoid some
6382 really nasty flickering.
6384 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6386 * ListView.cs: When accessing an item in a specific display
6387 position, use the helper method GetItemAtDisplayIndex, instead of
6388 direct access to the reordered_items_indices array. When doing layout
6389 for groups set the correct Items index for the display position (since
6390 in groups mode items don't have the same position as in Items
6392 * ListViewGroup.cs: Add a field to store the starting item number,
6393 which is later used when calculating the layout.
6397 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
6399 * Application.cs: Fixed ProductVersion to fallback to the assembly
6400 version. Fixes regression for bug #325413.
6402 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6404 * ListView.cs: New helper method to retrieve an item in a _specific
6405 display_ position (the items can be displayed in a different order
6406 than one of Items collection).
6407 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6408 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6409 specific display position (again remember that items can be sorted
6410 different than Items).
6412 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
6414 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6415 list and update it when the collection changes. We were recreating
6416 this several times per row paint and for every pixel the mouse moved
6418 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6421 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
6423 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6424 list to use generics.
6425 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6426 and remove unneccessay casts.
6428 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
6430 * DataGridViewBand.cs: Add internal way to set displayed variable.
6431 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6432 * DataGridView.cs: Make sure we always keep track of Displayed
6433 rows and columns, and only draw things that are displayed.
6435 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
6437 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6438 whether the key events are filtered or not. Introduced
6439 PreFilter() process for this purpose. This fixes atokx3/iiimx
6442 2008-04-16 Andreia Gaita <avidigal@novell.com>
6444 * HtmlHistory.cs: Implement Length property
6446 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
6448 * DataGridView.cs: Call EndEdit when a sort is performed so we take
6449 away the edit textbox. Refactor to reuse column sort code.
6451 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
6453 * MenuAPI.cs: Remove the code that save and restore capture status of
6454 grab_control, this fixes some Menu and Context menu bugs but maybe it can
6455 cause some others, I cant figure the possible problems of this patch but
6456 right now remove the code looks to be better than keep it. This patch fixes
6457 bugs #357638, #378721 and #379570.
6459 2008-04-12 Andreia Gaita <avidigal@novell.com>
6461 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6462 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6463 add missing properties and event handlers.
6465 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
6467 * ListBox.cs: Make sure the LargeChange we are setting is at least
6468 zero, to prevent an IOORE. [Fixes bug #379531]
6470 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
6472 * ComboBox.cs: Support item navigation by entering text. Firstly,
6473 in DropDownList mode, for each key-press select the next item
6474 starting with that letter.
6475 For other modes, when no item selected, on arrow-up/-down and open
6476 drop-down select the first item matching the text in the textbox.
6478 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
6480 * X11Keyboard.cs : Control.FromHandle() could return null
6481 in MoveCurrentCaretPos().
6483 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6485 * ListView.cs: When changing the size in VirtualMode, also Reset the
6487 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6488 changing selection info for VirtualMode.
6491 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6493 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6494 view, don't use LineLimit for the first item - use NoWrap *always*
6495 instead, since ListView.LabelWrap is not used for this view.
6498 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6500 * Binding.cs: Call UpdateIsBinding when setting control - probably
6501 Binding is already usable and we don't need to wait to check the
6502 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6503 Created, just like 2.0 does.
6504 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6506 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6508 * Binding.cs: Just realized we don't need to have a handler for
6509 BindingContextChanged, since this info should be now consumed directly
6510 in the BindingManagerBase. And also, the manager.IsBindingSuspended
6511 state info is checked directly, instead of caching it.
6513 * CurrencyManager.cs: IsSuspended should return always false if Count
6516 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6518 * Binding.cs: When calling PushData, return if manager.Count == 0,
6519 since we just don't have data to be read. Also, when setting the
6520 Control for binding, hook up some events to refresh the IsBinding
6521 state when BindingContext change or control gets created; use
6522 Control.IsHandleCreated instead of Control.Created check to set
6523 IsBinding state - we *actually* need to modify IsBinding when control
6524 is created, but we don't have any Created event, only HandleCreated.
6525 Fixes part of #349364.
6527 2008-04-11 Geoff Norton <gnorton@novell.com>
6529 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
6530 warping a null Caret.
6532 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
6534 * DataGridView.cs: Implement row/column autosizing methods. Implement
6536 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6537 * DataGridViewRowCollection.cs: Add an internal sorting method.
6539 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
6541 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6542 value in ListView drawing code.
6544 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
6546 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6547 is clicked. Respect the user setting Cancel in FileOk.
6549 2008-04-11 Geoff Norton <gnorton@novell.com>
6551 * ListView.cs: Avoid setting and resetting control Width/Heights and
6552 calculate the final value and set it once. Prevents a feedback loop
6555 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
6557 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6560 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
6562 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6563 Add some on-the-spot code, but it seems we don't need it.
6565 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
6567 * Form.cs: Add method for DataGridView to trigger focus cues
6568 even when it handles the tab keypress.
6570 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
6572 * DataGridView.cs: More keyboard handling, tab, esc.
6573 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6574 when at the beginning or end of the text in the text box.
6576 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6578 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6580 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6582 * DataGridView.cs: Some fixups for showing and adding the edit control.
6583 * DataGridViewButtonColumn.cs: Implement ToString.
6584 * DataGridViewCell.cs: Size and position the control simultaneously.
6585 * DataGridViewTextBoxCell.cs: Use base to position control.
6587 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6589 * DataGridViewCell.cs: Fix up some formatting and painting code.
6590 * DataGridViewImageCell.cs: Implement some NIEX methods.
6592 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6594 * ToolStripItemCollection.cs: What moving an item from one owner
6595 to another, remove from source owner before adding to destination.
6598 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6600 * PictureBox.cs: Call Load when ImageLocation is set.
6603 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
6605 * X11Keyboard.cs, XplatUIX11.cs :
6606 Implement over-the-spot mode (with some odd offsets).
6607 - set preedit position when caret is set.
6608 - Wrap XMoveResizeWindow() to move preedit position.
6610 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
6612 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6615 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
6617 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6618 and ScanTableIndex public, it fix compilations errors when compiling
6619 WinForms to generate keyboard layout resources.
6621 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
6623 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
6624 different element count than scan table. It prevents some errors in non
6627 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
6629 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6631 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
6633 * DataGridView.cs: Call OnContentClick.
6634 * DataGridViewCell.cs: Do a null check on ValueType instead
6636 * DataGridViewCheckBoxCell.cs: Implement.
6638 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
6640 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6642 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
6644 * X11Keyboard.cs : Check XGetIMValues() return value in
6645 case it does not return input styles in some environment.
6647 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
6649 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6651 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6653 * BindingContext.cs: Stub UpdateBinding method.
6655 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
6657 * X11Structs.cs : added couple of structs for XIM support.
6659 Release XIM in case it failed to create XIC.
6660 Use consts for XNblah string.
6661 Add support for IM style customization and XIC creation
6662 for preedit-position and preedit-callback.
6663 Right now use MONO_WINFORMS_XIM_STYLE environment variable
6664 (list of: over-the-spot | on-the-spot | root). Only root
6667 (redoing r99172 with fix.)
6669 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6671 * TreeView.cs: Center the checkbox a little better.
6673 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6675 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6676 Apply very nice patch from Ernesto Carrea that simplifies our
6677 scrollbar drawing. [From bug #376146]
6679 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6681 * TreeView.cs: Correct the location of the root node checkbox when
6682 ShowRootLines = false. Don't draw the root lines for the root node
6683 when ShowRootLines = false. [Fixes bug #377535]
6685 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
6687 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6689 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6691 * MaskedTextBox.cs: Added missing attribute. Code formatting.
6692 * PageSetupDialog.cs: Added missing attribute. Code formatting.
6693 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6694 * ImeMode.cs: Added missing field.
6695 * HtmlWindow.cs: Code formatting. Fixed line endings.
6696 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6698 * HtmlHistory.cs: Code formatting. Fixed line endings.
6699 * HtmlDocument.cs: Code formatting. Fixed line endings.
6700 * ToolStripPanel.cs: Added missing IList implementation.
6701 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6703 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
6705 * BindingContext.cs: Changed argument names to fix corcompare errors.
6706 * DataGridView.cs: Removed extra explicit interface implementation
6707 of IDropTarget. Code formatting.
6708 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6709 * ComboBox.cs: Changed argument names to fix corcompare errors.
6710 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6712 * GridColumnStylesCollection.cs: Changed argument names to fix
6713 corcompare errors. Removed extra tabs.
6714 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6716 * Control.cs: Changed argument names to fix corcompare errors. Code
6717 formatting. Removed extra explicit IList implementation.
6718 * TextBox.cs: Changed argument names to fix corcompare errors. Code
6719 formatting. Use string.Empty instead of "".
6720 * GridItemCollection.cs: Changed argument names to fix corcompare
6721 errors. Code formatting.
6722 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6723 corcompare errors. Code formatting.
6724 * ImageList.cs: Changed argument names to fix corcompare errors.
6725 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6726 * DataGridViewRowCollection.cs: Changed argument names to fix
6727 corcompare errors. Code formatting.
6728 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6729 * DataGridViewSelectedCellCollection.cs: Changed argument names to
6730 fix corcompare errors. Code formatting.
6731 * DataGridViewComboBoxCell.cs: Changed argument names to fix
6732 corcompare errors. Code formatting.
6733 * LinkLabel.cs: Changed argument names to fix corcompare errors.
6734 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6736 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6738 * BindingSource.cs: Changed argument names to fix corcompare errors.
6739 Removed extra explicit interface implementations.
6740 * DataGridViewSelectedRowCollection.cs: Changed argument names to
6741 fix corcompare errors. Code formatting.
6742 * ToolStripItemCollection.cs: Removed extra explicit interface
6743 implementation of IList.ReadOnly.
6744 * DataGridViewColumnCollection.cs: Changed argument names to fix
6745 corcompare errors. Code formatting.
6746 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6747 * ListView.cs: Changed argument names to fix corcompare errors.
6748 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6750 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6752 * ListBindingHelper.cs: Changed argument names to fix corcompare
6754 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6755 fix corcompare errors. Code formatting.
6756 * ToolStripPanel.cs: Removed extra explicit implementation of
6757 IDropTarget interface.
6758 * ListBox.cs: Changed argument names to fix corcompare errors. Code
6759 formatting. Removed extra tabs and spaces.
6760 * DataGridViewCellCollection.cs: Changed argument names to fix
6762 * Help.cs: Changed argument names to fix corcompare errors. Code
6764 * TabControl.cs: Changed argument names to fix corcompare errors.
6765 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6767 * TableLayoutSettings.cs: Changed argument names to fix corcompare
6770 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6772 * ListBindingHelper.cs: When returning properties, only return those
6773 that are browsable. Also, don't do a linear search of the properties,
6774 but use the indexer of the PropertyDescriptorCollection class.
6776 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6778 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6779 Dictionary containing the related (child) currency managers. Also,
6780 when setting DataSource, add datasource to our List if it is not a list.
6782 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6784 * PropertyGridTextBox.cs: Fix background color of the buttons.
6785 * PropertyGridView.cs: Make the entry less jumpy.
6787 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6789 * PropertyGrid.cs: Fix unused variable warnings.
6791 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6793 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
6794 double-click. It expanded it once in the mouse down and then
6795 again in the double-click handler.
6797 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6799 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
6800 TypeConverter and UITypeEditors.
6802 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6804 * Control.cs: Visibility should be set synchronously,
6805 so we must also redraw once it is and not rely on layouting or
6806 other code to repaint.
6809 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
6811 * DataGridViewCell.cs: Respect DataGridView.GridColor.
6813 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6815 * Control.cs: Invalidate when the alpha channel is less than 255,
6816 not only when control is transparent.
6818 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6820 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6821 Implement some painting convenience methods that threw NIEX.
6823 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6825 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6826 * DataGridViewLinkCell.cs: Implement.
6828 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6830 * GridEntry.cs: Report the conversion exception error description.
6833 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6835 * PropertyGridView.cs: Do not scroll to item on resize.
6838 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6840 * BindingContext.cs: When retrieving a BindingManagerBase, if the
6841 dataSource parameter is ICurrencyManagerProvider, then return
6842 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6843 instead of creating a new one.
6845 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6847 * BindingSource.cs: Implement support for Type instances as
6850 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6852 * DataGridView.cs: Minor cleanups and call CellMouseUp.
6853 * DataGridViewCell.cs: Make some painting routines internally virtual.
6854 * DataGridViewButtonCell.cs: Implement.
6856 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6858 * Control.cs: We always need to invalidate our children with
6859 transparent backgrounds when we are invalidated.
6862 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6865 and CancelCurrentEdit on CurrencyManager respectively. Implement
6866 support for ICancelAddNew too.
6868 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6870 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6871 call EndNew/CancelNew if list is ICancelAddNew.
6873 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6875 * DataGridView.cs: Guard against an exception while painting
6876 if there are no rows.
6878 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6880 * DataGridView.cs: Implement a bunch of keyboard commands.
6882 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
6884 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
6885 isn't set, don't call OnPaint. [Fixes bug #375300]
6887 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6889 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6890 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6891 hookup the remaining events related to CurrencyManager, and fire
6892 OnListChanged also for the Clear () method.
6894 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6896 * BindingSource.cs: Use Current and Position implementations in
6897 CurrencyManager instead of using our own routines, since we need
6898 to be in synch with it. Count should NEVER return a -1 value, and
6899 also report ListChanged events for both simple IList data
6900 sources (manually) as well for IBindingList ones (by hooking up an
6901 event handler for it).
6903 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6905 * BindingSource.cs: Make one .ctor call the another, to avoid
6906 duplicate code. Add the CurrencyManager property, and also for AddNew
6907 throw the proper exceptions and show better error messages.
6909 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6911 * ComboBox.cs: Only adjust selectedindex if Handle has been
6912 created. Fixes failing test.
6914 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6916 * ComboBox.cs: Adjust selectedindex if we insert a new item
6917 above the current selectedindex in a sorted ComboBox.
6920 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6922 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6925 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6927 * DataGridViewTextBoxCell.cs: Implement stuffs.
6929 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6931 * TreeView.cs: Create the scrollbars even earlier to be
6932 double dog certain they are created before they are accessed.
6934 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6936 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6938 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6940 * ScrollBar.cs: Create an internal safe Value setter so we
6941 won't crash if we try to set a value outside the min and max.
6942 * TextBoxBase.cs: Use safe value setter to guard against a
6943 potential NRE that is being reported by Reflector.
6945 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6947 * TreeView.cs: Create the scrollbars earlier in the constructor
6948 to attempt to guard against an NRE in SetTop in Reflector.
6950 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6952 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6953 DataGridViewRowCollection.cs: Do not scroll column and row headers,
6954 show messagebox on data format error, use column display index
6955 correctly, make sure HitTest supports new layout stuff,
6956 make sure scrollbars support new layout stuff.
6958 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6960 * XplatUIX11.cs : Patch by Doug Rintoul.
6961 For some IM engines, keypress events need to delay call
6962 to XPending() and XNextEvent() in the loop so that it
6963 does not mess the orders in XIM commit callback.
6964 Some KeyRelease events such as shift keys need to be
6965 processed both in the IM engine and winforms driver
6966 itself since winforms holds its own state check.
6968 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6970 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6972 * X11Keyboard.cs, XplatUIX11.cs :
6973 add primitive support for XIM input support (preedit-
6974 nothing and status-nothing). It requires precise event
6975 capturing (XSelectInput/"filterEvents") and different
6976 call to XFilterEvent against root window.
6977 Get composed string and send dummy WM_IME_COMPOSITION.
6978 Free XIM and XIC instances in finalizer.
6980 (This first patch does not include suggested changes
6981 by Doug Rintoul. It will follow.)
6983 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6985 * DataGridView.cs: When binding to a property, if the property
6986 doesn't have a setter, set the column to readonly.
6989 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6991 * ComboBox.cs: Guard against NRE if an arrow key is hit while
6992 we aren't dropped down. Support Home/End in DropDownList mode.
6995 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6997 * TreeNodeCollection.cs: Don't increment count until we've
6998 saved our index to return.
7001 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7003 * Label.cs: Add padding to the label's AutoSize calculation.
7006 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7008 * ListBindingHelper.cs: Actually implement GetListName method.
7010 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7012 * BindingSource.cs: Throw the propert expceptions for some methods, as
7013 well as detect the list item type for Add method if DataSource is null.
7015 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7017 * DataGridViewCell.cs: I don't know why I commented this out,
7018 putting it back for now.
7020 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7022 * DataGridViewCell.cs: Remove storage for owning column, just
7024 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7025 * DataGridViewColumnHeaderCell.cs: If the header text has been
7026 explicitly set, return it.
7029 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7031 * DataGridViewRowCollection.cs: Disable row sharing when
7032 using data binding. Its a great feature, but lets work on
7033 getting DGV usable first before we worry about optimizations.
7035 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7037 * BindingSource.cs: When resetting our internal list, compute list
7038 item type information to be used for indirect list access. Also
7039 implement/tune some properties and methods related to the list access
7041 * ListBindingHelper.cs: Add a stub for GetListName method, used from
7044 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7046 * DataGridView.cs: If RowCount is increased while ColumnCount
7047 is zero, add a column. [Fixes bug #331649]
7049 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7051 * DataGridViewRowCollection.cs: When adding new rows for
7052 databinding, make sure they are place before the add row.
7055 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7057 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7058 instead of Index order.
7060 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7062 * DataGridView.cs: If columns are added by increasing ColumnCount,
7063 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7066 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7068 * DataGridView.cs: Turn off and on the "new row" when
7069 AllowUserToAddRows is toggled. When the handle is created,
7070 set current cell and selected cell/row/col.
7072 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7074 * ComboBox.cs: When navigating the drop down by keyboard, we
7075 need to scroll the list box if our selection moves out of the
7076 currently shown items. [Fixes bug #371990]
7078 2008-03-24 Luke Page <luke.a.page@gmail.com>
7080 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7081 on the control. Also now handles unicode compatibility characters and
7082 stores the unicode compatibility length on the stack. Fixes Bugs
7083 #355198 and #366436.
7085 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7087 * BindingSource..cs: Take into account DataMember when re-creating the
7088 List property, and also create a specific kind of list as needed.
7090 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7092 * ListBindingHelper.cs: Add a new case for GetList () method - when we
7093 get an empty IEnumerable, try to detect whether the datamember is
7094 valid or not for that type, if true, return null, and throw exception
7097 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
7099 * ComboBox.cs: Alt-Down should drop down the list, Esc should
7100 retract it. [Fixes bug #371989]
7102 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
7104 * PropertyGrid.cs: Initialize the sorting button as pushed.
7106 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
7109 - Visually select the PropertyTab.
7110 - Filter Properties by Attributes properly.
7112 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7114 * MenuItem.cs: Remove menu item from parent when disposed.
7117 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7119 * ToolBar.cs: Don't reset layout_type if Dock = None.
7121 2008-03-21 Andreia Gaita <avidigal@novell.com>
7123 * UserControl.cs: Select the first available control when we get focus.
7126 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7128 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7129 the content if we are in edit mode. [Fixes bug #343964]
7131 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
7133 * DataGridViewCell.cs: Fix border painting for column headers.
7135 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7137 * BindingSource.cs: When setting or resetting data source,
7138 use ListBindingHelper.GetList () method, since it will get the list in
7139 case datasource is IListSource.
7141 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
7143 * DataGridViewCell.cs: Implement lots more stuffs.
7145 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7147 * PropertyGridView.cs, GridEntry.cs: Implement support for
7148 UITypeEditor.IsDropDownResizable.
7150 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
7152 * DataGridViewCell.cs: Remove unused variables, improve how
7153 several of the property getters work.
7154 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7155 get its size from the parent row/col.
7157 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7159 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
7160 user alters manually the PropertyTabs collection via the
7161 PropertyTabs property.
7163 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7165 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7166 new tests for them to be sure to be compatible with .net.
7168 2008-03-20 Andreia Gaita <avidigal@novell.com>
7170 * WebBrowserBase.cs: Fix attributes, add events
7171 * WebBrowser.cs: Fix Padding signature
7173 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
7175 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7177 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
7179 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7180 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7181 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7182 passes the new suite of tests for it.
7184 2008-03-18 Andreia Gaita <avidigal@novell.com>
7186 * WebBrowser.cs: Add missing attributes, missing Padding and
7187 DefaultSize properties, remove extraneous getters
7189 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7191 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7194 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
7196 * ComboBox.cs: Move resetting the selected index to keypress
7197 instead of textchanged. Changing the text programmatically
7198 should not trigger resetting the selected index. Fixes test.
7200 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
7202 * ComboBox.cs: When the user types into the textbox, reset
7203 the selected index to -1. [Fixes bug #371672]
7205 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
7207 * FileDialog.cs: Support Control-A for selecting everything
7208 in an OpenFileDialog. [Fixes bug #371564]
7210 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
7212 * DataGridView.cs: When row/column visible/height properties
7213 change, invalidate. Take the NIEX out of InvalidateRow/Column
7214 etc. We don't support them yet, but we can just invalidate
7215 everything until we do support them. (Added MonoTODO). Set
7216 proper control styles.
7217 * DataGridViewRow.cs: Don't call PaintHeader if row headers
7220 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7222 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7224 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
7226 * DataGridViewRow.cs: Only paint the white background in
7227 cell bounds, the row bounds extends past the cells if the
7228 grid width isn't as wide as the DGV.
7230 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
7232 * DataGridView*: Completely revamp the drawing to match the
7233 public API. Our grids now look better, and call all the
7234 appropriate methods and event to allow users to override
7235 the painting and do their own.
7237 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7239 * ListBindingHelper.cs: Implement 2.0 GetList methods.
7241 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
7243 * DataGridView.cs: Implement BorderStyle.
7245 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
7247 * FileDialog.cs: Apply patch from Andy Hume: Any time we
7248 are comparing attributes, make sure we only look at the
7249 one we are interested. These calls were failing if there
7250 were more than one attribute.
7253 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
7255 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7257 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
7259 * PageSetupDialog.cs: Stub EnableMetric.
7260 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7261 * PrintPreviewDialog.cs: Add ProcessDialogKey,
7264 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
7266 * MonthCalendar.cs: Remove unused variable.
7268 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
7270 * DataGridView*.cs: corcompare stuffs.
7272 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
7274 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7275 The savings aren't worth the extra code to fix the optimization.
7278 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
7280 * ToolBar.cs: Always call base.Dock in the Dock override so that
7281 Control's layout_type gets reset correctly.
7284 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
7286 * X11Dnd.cs: End DnD operation also for the middle mouse button.
7288 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
7290 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7291 at the same time we do explicit ones, because we have to give all
7292 other controls on the container a chance to handle explicit ones
7293 first. If no one has an explicit mnemonic, then we can let the
7294 MenuStrip have a shot at implicit mnemonics.
7295 * MenuStrip.cs: Create an implicit mnemonic function.
7296 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7297 mnemonics for MenuStrips.
7300 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
7302 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7303 DataGridColumnStyle.cs: corcompare stuffs.
7305 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7307 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7308 Details - This is needed after we added the bits to use any available
7309 column also for List and SmallIcon view.
7311 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7313 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7314 at the proper place, not only when changing SelectedIndex and changing
7315 the selection using keys/mouse, as .net does.
7317 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7319 * ControlBindingsCollection.cs: Implement last 2.0
7320 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7321 in the new 2.0 Add methods.
7323 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7325 * ListBox.cs: When calling SelectedIndexCollection.Clear,
7326 return if no items are previously selected - this is done to avoid
7327 firing OnSelectedIndexChanged without need to do so. Also,
7328 when creating handle ensure that the focused item is visible (as
7331 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7333 * ListBox.cs: Rewrote/refactored most of selection code. We require
7334 the following things in selection: a) keep selection sorted (both
7335 indices and items), b) SelectedIndices automatically detect the
7336 selection mode, c) SelectedIndex should be the first selected item
7337 index, d) Need to Focus/adjust scroll bar when selecting a new item,
7338 not only for SelectedIndex, which is specially important in Multi*
7339 selection modes. To achieve this we are moving the selection core to
7340 SelectedIndexCollection and make depend all selection modifications on
7344 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7346 * ToolStrip.cs: Enable implicit mnemonics for drop down
7347 menu strips. [Fixes part of bug #367692]
7349 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7351 corcompare - fix parameter names [stragglers].
7352 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7353 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7356 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7358 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7359 was a mnemonic pressed as well as Alt. Also, if nothing handles a
7360 mnemonic, let the ToolStripManager have it even if it doesn't
7361 have a matching mnemonic.
7364 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7366 corcompare - fix warning about implicit implementation
7367 * ToolStrip.cs: Add IToolStripData interface.
7368 * IToolStripData.cs: Add.
7370 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7372 corcompare - fix warning about implicit implementation
7373 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7376 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
7378 corcompare - fix parameter names [N-Z].
7379 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7380 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7381 PropertyManager.cs, RichTextBox.cs,
7382 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7383 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7384 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7385 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7386 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7387 ToolStripContentPanel.cs, ToolStripDropDown.cs,
7388 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7389 ToolStripPanel.cs, ToolStripSeparator.cs,
7390 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7391 UICuesEventHandler.cs, UpDownBase.cs.
7393 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
7395 corcompare - fix parameter names [G-M].
7396 GridColumnStylesCollection.cs, GridItemCollection.cs,
7397 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7398 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7399 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7400 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7401 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7403 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
7405 corcompare - fix parameter names [A-F].
7406 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7407 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7408 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7409 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7410 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7411 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7412 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7414 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
7416 * GridEntry.cs: Do not convert not only if the types match,
7417 but also if the property type is assigneable from the value's
7421 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
7423 * PropertyGridView.cs:
7424 - Subscribe to the listbox only once and not everytime.
7425 - Update the textbox even if SetValue fails.
7426 - Close the listbox before calling TrySetValue just in case.
7429 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
7431 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7433 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7435 * ListView.cs: Implement support for custom column width based on
7436 Columns collection (we were previously using this collection only
7440 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7442 * ListViewItem.cs: For Tile view, always set bounds for the first
7443 subitem (which is the main one), and also don't let Width be larger
7444 than ListView.TileSize.Width. Improve code readibility also.
7445 * ThemeWin32Classic.cs: When painting the ListViewItem instances
7446 in Tile view, _always_ use the NoWrap flag.
7449 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
7451 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
7453 * GridEntry.cs: For MS compitability make all child properties
7454 readonly if the parent is readonly. Ugh.
7455 [Fixes bug #365945 and #365944]
7457 2008-02-29 Andreia Gaita <avidigal@novell.com>
7459 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7460 relative to the history
7462 2008-02-29 Andreia Gaita <avidigal@novell.com>
7464 * HtmlElement.cs: More handlers for mouse and key events
7466 2008-02-28 Andreia Gaita <avidigal@novell.com>
7468 * WebBrowserBase.cs: MouseClick sig changed.
7469 * HtmlHistory.cs: Implement history navigation
7470 * HtmlElement.cs: Add event handlers, and connect them.
7472 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
7475 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7476 so that DisplayNameAttribute doesn't get ignored.
7477 - Check for ParenthesizeNameAttribute and parenthesize the Label.
7478 - Add support for PasswordPropertyTextAttribute
7479 * PropertyGridView.cs: Check if an entry is a password.
7480 [Fixes bugs #365589, #365586, #365588]
7482 2008-02-28 Andreia Gaita <avidigal@novell.com>
7484 * PropertyGridView.cs: Revert the message filtering change, as we
7485 need it to block after all. Remove block parameter, unnecessary.
7487 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
7489 * UserControl.cs: Better implementation of GetPreferredSize.
7490 First step to fixing bug #361441.
7492 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7494 * Binding.cs: Actually implement data binding support for
7495 classes implementing IBindableComponent.
7496 * ControlBindingsCollection.cs: Likewise.
7498 2008-02-26 Andreia Gaita <avidigal@novell.com>
7500 * PropertyGridView.cs: Use a message filter to check when to
7503 2008-02-26 Andreia Gaita <avidigal@novell.com>
7505 * Application.cs: Change the message_filters loop so a filter
7506 can be removed while looping.
7508 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
7510 * GridEntry.cs: Optimization in ToggleValue so that it caches
7512 * PropertyGridView.cs: An optimization so that the property isn't
7513 re-read twice for each StandardValue added to the drop-down menu.
7514 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7518 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
7520 * Application.cs: Apply patch from Justin Cherniak to match
7521 MS better for ProductName, ProductVersion, and CompanyName.
7524 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7526 * Binding.cs: Actually implement 2.0 NullValue property. Also
7527 when changing the formatting related properties, only update the state
7528 if formatting_enabled is true (we don't mind otherwise).
7530 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
7532 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7535 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
7537 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
7538 of GetType on the current value as it uses reflection to
7539 determine the type. This fixes the case where the new value is
7542 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
7544 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7547 2008-02-24 Luke Page <luke.a.page@gmail.com>
7549 * Line.cs, TextControl.cs: Implement offset x and y so that a
7550 document doesn't have to begin at (0,0) on the viewpoint.
7551 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7552 bars and switches the text alignment (and therefore is now
7553 implemented for textbox). Fixes #321383.
7555 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7557 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7558 properties. Also when changing FormattingEnabled update the control
7559 property -as .Net does-.
7561 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7563 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7564 * Binding.cs: Add stubs for the overloads of the Add method in
7567 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7569 * Binding.cs: PullData () returns a false value if we got an exception.
7570 Also when validating the control and we get an error, instead of
7571 setting the value of the previous one, cancel the event (tested in 1.1
7574 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
7576 * TreeView.cs: Make selected_node and highlighted_node internal.
7577 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7578 to null when Nodes.Clear is called.
7581 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7583 * FontDialog.cs: Ensure that when the Font is set in code,
7584 all the gui pieces are updated accordingly.
7587 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7589 * TextRenderer.cs: Respect proposed size for MeasureString.
7590 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7591 autosize, use a proposed width to force wrapping for long text.
7594 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7596 * TreeView.cs: Factor in checkboxes = false and state images in
7597 to HitTest. [Fixes bug #363360]
7599 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7601 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7602 when drawing the selected range.
7605 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7607 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7608 ResizeRedraw control styles.
7611 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7613 * TreeView.cs: StateImages are basically custom checkboxes, so
7614 factor their size the same as real checkboxes when determining
7618 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7620 * MessageBox.cs: Make the message box wider if the form caption
7621 is longer than the text in the form.
7624 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
7626 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7628 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7630 * TreeNode.cs: Guard against an NRE when the parent's
7631 StateImageList hasn't been set.
7634 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7636 * SplitContainer.cs: Add SupportsTransparentBackColor and
7637 OptimizedDoubleBuffering control styles.
7640 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7642 * Application.cs: For the app data paths and the registry key paths,
7643 ensure they are created before returning them to the user.
7646 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7648 * Application.cs: Guard against an NRE in CompanyName and
7651 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7653 * Application.cs: For CompanyName, ProductName, and ProductVersion,
7654 make sure we handle all three cases correctly: attribute is present,
7655 attribute is present but is an empty string, and attribute is not
7658 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
7660 * PropertyGridView.cs:
7661 - Fix a NRE that caused a test failure
7662 - Another performance improvement - cache the standard values
7665 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7667 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7670 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
7672 * PropertyGridView.cs: Fix a big performance bug.
7674 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7676 * SelectionRange.cs: Apply patch from Andy Hume to make
7677 constructor behavior more accurate. [Fixes bug #362117]
7679 2008-02-19 Andreia Gaita <avidigal@novell.com>
7681 * Control.cs: Added a new flag is_disposing to track if the
7682 window is currently in the process of being disposed of.
7683 This is used so that, when firing visibility changes triggered
7684 by unparenting controls during Dispose, the control doesn't
7687 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7689 * ComboBox.cs: Set height to preferred height when the handle
7690 is created. [Fixes bug #360862]
7692 2008-02-18 Andreia Gaita <avidigal@novell.com>
7694 * XplatUIX11.cs: Create FosterParent with border width at 0.
7695 With the previous value of 4, everytime a control got reparented
7696 from parent = null, it's location would be shifted right and
7697 down by 4, since these coordinates would be offset by the
7698 FosterParent's border width.
7700 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
7702 * Control.cs: During diposing firstly remove ourselfes from
7703 the parent and *then* destroy our handle, because removing
7704 ourselfes from the parent controls collection causes
7705 VisibilityChange, etc events, which require a handle and end
7706 up recreating the control.
7708 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
7710 * GridEntry.cs: Set expanded state before notifying that the
7711 expansion has taken place.
7712 * PropertyGridView.cs:
7713 - Set the propertygridtextbox text to the selected
7714 StandardValue before proceeding to setting it.
7715 - Scrolling bugfixes.
7717 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7720 - Fix ValueText to not return null.
7721 - Fix conversion error reporting to actually happen.
7722 * PropertyGridView.cs: Set entry only if the text has changed.
7725 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7728 - Fix handling of a null current value.
7729 - Swallow editor exceptions.
7732 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7734 * PropertyGrid.cs: Clear current items first thing before
7735 repopulating subitems.
7737 - Handle null StandardValuesCollection.
7738 - Mark as not editable if there is no PropertyDescriptor and
7739 if the Converter cannot convert from string.
7740 [Part of fix for bugs #360666 and #358332]
7742 2008-02-15 Luke Page <luke.a.page@gmail.com>
7743 * MaskedTextBox.cs: Now skips non editable characters after a
7744 character has been entered and we are progressing to the next
7745 position in the MaskedTextBox.
7747 2008-02-15 Luke Page <luke.a.page@gmail.com>
7748 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7749 that it changes the selection rather than just repositioning the
7750 cursor. Fixes Bug #360873.
7752 2008-02-15 Luke Page <luke.a.page@gmail.com>
7753 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7754 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7755 correctly. See #359330
7757 2008-02-15 Andreia Gaita <avidigal@novell.com>
7759 * XplatUIX11.cs: If the handle is null when posting a message, use the
7760 current thread queue to post instead. Fixes #332409
7762 * SendKeys.cs: Slight optimization
7764 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
7766 * PropertyGrid.cs, PropertyGridView.cs:
7767 Fix multiple scrolling and sizing issues.
7770 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7772 * PropertyGridView.cs: Ensure that drop down editors are shown
7773 in the WorkingArea of the screen.
7776 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7778 * GridEntry.cs: Fail silently when UITypeEditor is missing.
7781 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7783 * Binding.cs: Implement 2.0 DataSourceNullValue property.
7785 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7787 * PropertyGridView.cs:
7788 - Clear the controls in the drop down form after it is hidden.
7789 - Fix Width sizing of the dropdown editors to match MSFT.
7791 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7793 * PropertyGridView.cs:
7794 - Fix height for drawing the grid entry
7795 text value, so that it clips multiline text properly.
7796 - Fix unfocusing to match MSFT.
7798 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7800 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7801 Fixes a bug where on repopulation after value changed items become
7804 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7806 * Binding.cs: For the 2.0 profile, look for a
7807 'PropertyChanged' event in the target control, and add checks for
7808 DataSourceUpdateMode property to change -or not- the data source
7809 from validation/control property change.
7811 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
7813 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7814 not compare struct with null in 2.0).
7816 2008-02-10 Luke Page <luke.a.page@gmail.com>
7818 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7819 updates the provider and if not using a provider, uses the internal document
7820 class implementation of password char. Also when showing text, uses display string
7821 from the provider, instead of the actual text.
7823 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7825 * Binding.cs: Ooooops, forgot to take into account the data_source
7826 and binding_member_info null case (it was breaking the Binding tests).
7828 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7830 * Binding.cs: Implement support for data source changes exposed by
7831 'PropertyNameChanged' events, and update the control property as
7834 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7836 * Binding.cs: Implement 2.0 WriteValue method.
7838 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7840 Commit patch from James Purcell for better AutoScale implementation:
7842 * ScaleControl should call GetScaledBounds with the control's total size rather
7843 than client size. GetScaledBounds should handle ignoring the borders in its
7844 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
7845 (for the most part they just call the base code now since that is fixed).
7846 * Added ScaleChildrenInternal to allow controls to disable scaling of children
7847 without having to override ScaleChildren (since none of .NET's controls do).
7848 This is required for most controls in Mono that have scrollbars to prevent the
7849 scrollbars from being moved/resized.
7850 * Nested ContainerControls can have a different scale mode than their parent.
7851 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7852 designer produce different results both of which look incorrect).
7853 * Default AutoScaleMode for ContainerControl should be Inherit.
7854 * Simplified workaround for ComboBox scaling issue.
7855 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
7856 1.0 style auto scaling should scale the whole control's size instead of
7857 ignoring the borders (except for Form) and the rounding is done differently to
7858 preserve control alignment.
7859 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7861 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7862 * CurrentAutoScaleDimensions should round the estimated character width instead
7864 * ListBox's GetScaledBounds should always use the height it was set to instead
7865 of the height that was passed in. This prevents rounding errors from
7866 accumulating quickly with IntegralHeight.
7869 2008-02-08 Andreia Gaita <avidigal@novell.com>
7871 * Form.cs: Add a null check (darn it).
7873 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7875 * MdiClient.cs: Make sure the requesting form actually owns the
7876 control menu items before removing them. Also, use
7877 Suspend/ResumeLayout when adding or removing items so we only
7881 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7883 * Control.cs: Guard against an NRE in ShowFocusCues.
7886 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7888 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7889 property, as well as stubbing DataSourceUpdateMode.
7891 2008-02-08 Andreia Gaita <avidigal@novell.com>
7893 * Form.cs: When closing forms, get focus back to the active control of the
7894 active form. [Fixes #341314, corner case]
7896 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7898 * MdiClient.cs: After we move the scrollbars, invalidate the NC
7899 area, so any old scrollbar artifacts are cleaned up.
7902 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7904 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7905 for our menus, display that control box menu instead of the 1.1
7908 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7910 * MdiControlStrip.cs: Add property to access the mdi form tied to
7912 * MdiClient.cs: Be smarter about removing and adding toolstripitems
7913 to the implicitly merged menu. Every time we clicked the form, items
7914 were getting removed and the re-added, causing the form to jump around
7915 as the menu resized.
7917 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7919 * MdiClient.cs: Make sure the NormalBounds always gets set. It
7920 was being reset by the implicit menu merge for menustrips.
7923 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7925 * Form.cs: Don't do the previous change when WindowState = Normal,
7926 or it messes up where the window is placed. Fixes test failure.
7928 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7930 * Form.cs: When becoming visible, if we are an MDI child, call
7931 SetWindowState with a dummy old_state so that changes will actually
7933 [Fixes the 2nd part of bug #325473]
7935 2008-02-07 Andreia Gaita <avidigal@novell.com>
7937 * Control.cs: Reset properties to their pre parent-change values in case
7938 the new parent == null (in which case we're basically removing the control,
7939 and don't want any events fired due to fake property changes)
7942 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
7944 * PropertyGridView.cs:
7945 - Refactor SetValue to allow setting the value
7946 when a custom editor is used, but the entry is not editable.
7947 - Remove the custom editor control on CloseDropDown.
7950 2008-02-06 Andreia Gaita <avidigal@novell.com>
7952 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7953 reflection only on 1.1, this property is public on system.drawing on 2.0.
7956 2008-02-06 Andreia Gaita <avidigal@novell.com>
7958 * WebBrowser.cs: Do a normal page refresh by default.
7960 2008-02-05 Andreia Gaita <avidigal@novell.com>
7962 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
7963 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7964 platforms. Fixes #359036
7966 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
7967 platform-specific flags.
7969 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7971 * Binding.cs: Add 2.0 BindableComponent property - just return control
7974 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
7976 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7977 Jonathan for this patch. Fixes #358442.
7979 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
7981 * Form.cs: If we change the active MDI child form, let the others
7982 know they need to repaint their title bar so it will appear inactive.
7983 [Fixes part 1 of bug #325473]
7985 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
7987 * PropertyGridView.cs: Do not trucate custom editors' width
7988 and align them to the left.
7989 [Fixes #358353 and #358349]
7991 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7993 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7994 Also fix the arguments passed to CollectionChangeEventArgs in the
7997 2008-02-04 Geoff Norton <gnorton@novell.com>
7999 * Hwnd.cs: The conversion to Quartz coordinates happens in
8000 System.Drawing. Removing this translation from here.
8002 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8004 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8005 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8006 GridItemCollection.cs:
8007 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8009 2008-02-04 Geoff Norton <gnorton@novell.com>
8011 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
8012 SYSKEYUP if any other key has been pressed in the mean time.
8015 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8017 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8018 when the item in current position is different than 0. Also, save the
8019 item index in the beginning of the operation, instead of getting the
8020 index of the item when the event is actually performed. Lastly clean
8021 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8025 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8027 * Form.cs: Alt-Minus for MDI children system menu should work
8028 with both the minus keys on the keyboard.
8031 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8033 * Control.cs: Don't invalidate on region change. The WM should
8034 take care of this automagically. Keeps us out of an infinite
8035 paint loop if someone changes the Region in the OnPaint.
8038 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8040 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8042 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8044 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8045 down the MonthCalendar only on F4, not Alt+F4.
8046 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8049 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8051 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8052 if its part of a DateTimePicker, else, use the back color.
8055 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8057 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8060 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8062 * CurrencyManager.cs: When we get a ListChanged event from our source,
8063 always fire our own ListChanged event, as .Net does.
8065 2008-02-03 Luke Page <luke.a.page@gmail.com>
8067 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8070 2008-02-03 Luke Page <luke.a.page@gmail.com>
8072 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8073 property. Removed if for richtext property that was always true.
8074 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8076 2008-02-03 Luke Page <luke.a.page@gmail.com>
8078 * TextBoxBase.cs - commited patch from James Purcell that
8079 correctly sets the FixedHeight control style when the MultiLine
8080 property is changed on a TextBox control. Fixes bug 358229.
8082 2008-02-02 Luke Page <luke.a.page@gmail.com>
8084 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8085 Fixes bug 351938 - caret is positioned correctly when drawn
8086 and when calculating textual position of caret, no longer
8087 has a NRE in certain situations.
8089 2008-02-01 Geoff Norton <gnorton@novell.com>
8091 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8092 get that region removed from the paint event.
8093 * XplatUICarbon.cs: Remove the window mapping after disposing of
8094 window. Prevents a crash with handle reuse. Optimize exposes
8095 only onto visible windows (rare; but possible).
8097 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8099 * UpDownBase.cs: Make sure the internal textbox calls the base's
8100 OnMouseDown and OnMouseUp so the textbox will function correctly.
8101 There were notes saying it doesn't chain up, but its an internal
8102 class, so our implementation may differ.
8105 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8107 * ListBox.cs: Fix a logic error and don't process MouseDown
8108 for mouse buttons other than Left.
8110 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8112 * Control.cs: Remove HeightInternal.
8113 * ListBox.cs: Commit patch from James Purcell that correctly
8114 calculates heights for ListBoxen.
8117 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8119 * Label.cs: Apply patch from James Purcell that corrects the
8120 signature of the AutoSize property.
8123 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8125 * ListBox.cs: Don't throw [Mouse]Click events for buttons
8126 other than the left mouse button.
8128 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
8130 * Control.cs: Remove my awesome optimization as it caused some
8131 regressions with control ordering. :(
8134 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
8136 * PropertyGridView.cs: Fix a NRE on double click when there is no
8139 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8141 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8143 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
8145 * ListBox.cs: Call MouseClick and MouseDoubleClick.
8148 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8150 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8151 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8152 instead of Hwnd.bmp_g.
8154 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8156 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8157 Use the Hwnd one instead.
8159 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8161 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8163 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8165 * Form.cs: corcompare for RestoreBounds.
8167 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8169 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8171 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
8173 * Form.cs: Handle Alt-Minus for MDI children forms.
8174 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8175 Add mnemonics to the control menu.
8178 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8180 * Binding.cs: Initial implementation bits of FormattingEnabled
8181 property and BindingComplete event (2.0).
8182 * BindingCompleteEventArgs.cs: Internal methods for setting error text
8185 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
8187 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8188 table.Location. [Fixes bug #354672]
8190 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
8192 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8193 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
8195 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8197 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8198 of doing all the re-bound work, just invalidate and call SetControlText
8199 to set the updated text of selected item to our textbox.
8202 2008-01-28 Andreia Gaita <avidigal@novell.com>
8204 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
8205 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8206 missing properties and methods. Add Load, Unload, Error, GotFocus,
8207 LostFocus, Resize, Scroll events (only load and unload are connected)
8209 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
8211 * AccessibleObject.cs: Modified argument names to match MS.
8212 * Button.cs: Modified argument names to match MS.
8213 * BindingContext.cs: Modified argument names to match MS.
8214 * BindingMemberInfo.cs: Modified argument names to match MS.
8215 * ButtonBase.cs: Modified argument names to match MS.
8216 * ComboBox.cs: Modified argument names to match MS.
8217 * Control.cs: Modified argument names to match MS.
8218 * CheckedListBox.cs: Modified argument names to match MS.
8219 * CommonDialog.cs: Modified argument names to match MS.
8220 * DataGrid.cs: Modified argument names to match MS.
8221 * CursorConverter.cs: Modified argument names to match MS.
8222 * ControlPaint.cs: Modified argument names to match MS.
8223 * CheckBox.cs: Modified argument names to match MS.
8224 * ControlBindingsCollection.cs: Modified argument names to match MS.
8225 * BindingSource.cs: Modified argument names to match MS.
8226 * DataFormats.cs: Modified argument names to match MS.
8227 * ContainerControl.cs: Modified argument names to match MS.
8228 * CurrencyManager.cs: Modified argument names to match MS.
8229 * Application.cs: Modified argument names to match MS.
8230 * ContextMenuStrip.cs: Modified argument names to match MS.
8231 * ContextMenu.cs: Modified argument names to match MS.
8232 * BindingManagerBase.cs: Modified argument names to match MS.
8233 * WindowsFormsSection.cs: Fixed line ending.
8235 2008-01-27 Andreia Gaita <avidigal@novell.com>
8237 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8238 detecting that the dropdown toolwindow is hidden. EndLoop outside the
8241 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
8243 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8244 MS. Code formatting.
8246 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8248 * Binding.cs: Don't avoid the Format event if the control
8249 property type is object. Also, if the value retrieved by
8250 the data source is null _and_ the control proeprty type
8251 is object, return Convert.DBNull (match .Net).
8252 Fixes part of #324286.
8254 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8256 * ListControl.cs: Since we are getting two BinginContextChanged events
8257 for the same binding context instance (when the control is added to
8258 form, and when the form is actually shown), take it into account only the
8259 first time for a given binding context instance.
8260 Fixes part of #324286.
8262 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
8264 * PropertryGridView.cs: Ops.
8266 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
8268 * PropertyGridView.cs: Close dropdown form if the owner form is
8272 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
8274 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
8275 RootGridEntry.cs, CategoryGridEntry.cs:
8276 PropertyGrid rewrite.
8277 - Rewrite all of the control logic in PropertyGrid.
8278 - Rewrite all of the ComponentModel logic in GridEntry.
8279 - Rewrite all UI work in PropertyGridView.
8280 - Many bugfixes, etc.
8282 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
8284 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8285 when all contained controls are autosize or dock-fill. Also take into
8286 account when the total percentage of column/row sizes is not 100%.
8289 2008-01-24 Andreia Gaita <avidigal@novell.com>
8292 - Save a reference to the IDocument in the instance and
8293 use that one instead of going to WebHost.Document; the document that the
8294 WebHost returns might not be the right one (in case of frames).
8295 - Use the hashcode returned from the IDocument interface.
8296 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
8297 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
8298 LinkColor, Url, VisitedColor, Window
8301 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
8302 set_Attribute, NextSibling, Parent, TagName, AppendChild,
8303 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8304 SetAttribute, Equals, equality operators.
8305 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
8306 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
8308 * HtmlElementCollection.cs: Change implementation to use a generic
8309 collection. Implemented Enumerator and CopyTo
8311 * HtmlHistory.cs: Add constructor, no implementation yet.
8313 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8314 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
8315 Equals, equality operators.
8317 * HtmlWindowCollection.cs: Implemented.
8319 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8320 has been deprecated).
8322 * WebBrowserBase.cs: Use Completed event to track document loading
8323 (Navigated has been deprecated)
8325 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
8327 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
8328 level MenuItems do not respect tabs.
8331 2008-01-23 Geoff Norton <gnorton@novell.com>
8333 * XplatUICarbon.cs: Ensure that windows are created in their initial
8334 FormWindowState. Finished fixing Fullscreen windows on Carbon
8336 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8338 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8339 be used as grab_control. Also save status of capture before show ContextMenu
8340 and restore it after close.
8342 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8344 * Control.cs: Internal FindRootParent method added to return high control
8347 2008-01-23 Geoff Norton <gnorton@novell.com>
8349 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8350 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8351 it work again. Handle HITTEST events.
8353 2008-01-23 Geoff Norton <gnorton@novell.com>
8355 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
8356 a crash in certain cases. Support for fullscreen windows in certain cases.
8358 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
8360 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8363 2008-01-23 Geoff Norton <gnorton@novell.com>
8365 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8367 2008-01-23 Geoff Norton <gnorton@novell.com>
8369 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
8371 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8373 * SplitContainer.cs: Remove unused declarations.
8374 * Binding.cs: Remove unused declarations.
8376 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8378 * Form.cs: Remove unused declaration of 'active' in Activate method.
8379 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
8380 prevent compilation warnings.
8381 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8382 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8383 * Bindings.cs: Remove unused formatting_enabled declaration.
8384 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
8386 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
8388 * PropertyGridView.cs: Remove usused 'ex' declaration.
8389 * DataGridView.cs: Remove unused declarations.
8391 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8393 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8395 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
8396 to Control class, it makes possible to grab menu to controls that can't
8397 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8398 WmMouseMove removed since it was used only to track menu events.
8401 - Moved all active_tracker stuff from Form.
8402 - ProcessActiveTracker added to prevent code duplicity, now mouse events
8403 can call this method instead of reimplement all necessary code handle for
8405 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8409 - Remove special handle to ToolStripOverflow, now we can grab menu to
8410 controls that can't reach Form using parent tree.
8411 - Change type of grab_control from Form to Control.
8413 2008-01-22 Geoff Norton <gnorton@novell.com>
8415 * TextBoxBase.cs: Split up the sizing of controls and placing of
8416 controls. Fixes a bug where scrollbars in Reflector could be sized
8417 wrong and have non-working thumbers.
8419 2008-01-23 Geoff Norton <gnorton@novell.com>
8421 * XplatUI.cs: Refactor environment variables to default support to the
8422 Carbon driver on the Mac.
8424 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8426 * Label.cs: Uses new LabelPainter for drawing operations.
8427 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8428 * Theme.cs: DrawLabel and LabelDefaultSize removed.
8430 2008-01-22 Geoff Norton <gnorton@novell.com>
8432 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8434 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
8436 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8437 through the normal flat button code and don't draw the checkbox glyph.
8438 * Theme.cs: Button->ButtonBase signature change.
8441 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
8443 * LinkLabel.cs: Uses new class LinkLabelPainter.
8445 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
8447 * MessageBox.cs: Adjust right border space, we don't need to add
8448 "space_border*2" two times.
8450 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
8452 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8453 becomes a wrapper around Padding.
8454 [Fixes a part of bug #354676]
8456 2008-01-22 Geoff Norton <gnorton@novell.com>
8458 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
8459 acquired. Also ensure the buffer is large enough to grab the header
8460 we need on linux boxes.
8462 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
8464 * Control.cs: Implement a custom enumerator so people can delete
8465 from the Controls collection while in a foreach.
8468 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
8470 * PropertyGridView.cs: Fix focusing behavior:
8471 - Tab should focus the grid text box.
8472 - Clicking on the labels shouldn't focus the grid text box.
8474 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
8476 * PropertyGridView.cs: IsValueTypeGridItem should return true
8479 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
8481 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8482 - Renamed GridEntry.SelectedObjects to TargetObjects to better
8483 reflect the property name role.
8484 - PropertyGrid.GetTarget is not required as the target is known
8486 - Setting values will handle value types as a special case now and
8487 populate them up in the chain.
8490 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
8492 * Hwnd.cs: Create a public property for the Graphics we keep around.
8494 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
8496 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
8497 when the current object selection changes.
8498 Fixes failing test SelectedObject_Null2.B5.
8500 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
8502 * PropertyGrid.cs: Process Browsable properties with
8503 DesignerSerializationVisibilityAttribute.Content as being expandable.
8504 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8505 will not be expandable. We should be nested components-friendly now.
8507 2008-01-21 Andreia Gaita <avidigal@novell.com>
8509 * WebBrowserBase.cs: Check if control was loaded properly,
8510 don't bind if it wasn't.
8512 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
8513 GetElementFromPoint, equality operators, OpenNew, Write.
8514 Remove extra set_Body
8516 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
8518 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8519 that makes our AutoScale* stuff more tolerant to different orders
8520 of being set. [Fixes bug #354669]
8522 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
8524 * PropertyGridView.cs, PropertyGridTextBox.cs:
8525 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8526 [Fixes #339005 and #348209]
8528 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
8530 * PropertyGridView.cs: Hide the grid text box before adjusting it
8531 for the newly selected GridItem.
8534 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
8536 * Form.cs: Give MDI children the opportunity to cancel the parent form
8537 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
8538 properly for both the parent and child.
8539 * Application.cs: Signature of internal method changed, pass the previous
8543 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
8545 * PropertyGridView.cs: Set the property value only if it has changed.
8548 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
8550 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8551 If the mouse hasn't actually moved, ignore these messages so the currently
8552 highlighted menuitem isn't reset to the one under the mouse.
8555 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
8557 * PropertyGridView.cs: When the property changes Invalidate the GridItem
8558 in order for the properties with UITypeEditor.GetPaintValueSupported == true
8559 to reflect the change visually.
8562 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
8564 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8565 to 2.0 button drawing.
8566 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
8567 the button text is tall enough for one line. LineLimit says it will
8568 always draw at least one line, but it is a lie.
8571 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
8573 * XplatUIStructs.cs, X11Keyboard.cs :
8574 added some more VK_* keys to be handled.
8576 2008-01-16 Andreia Gaita <avidigal@novell.com>
8578 * Control.cs: Check if there is a container before setting or getting
8579 the validation flag.
8581 2008-01-16 Andreia Gaita <avidigal@novell.com>
8583 * ContainerControl.cs: Add flag to track if a control cancels validation,
8584 so we don't fire click events.
8587 - (HandleClick) Check if validation was cancelled before firing the click
8588 events (doubleclicks are fired, but not clicks)
8589 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
8590 ContainerControl.set_ActiveControl, but in the case of non-selectable
8591 controls, like a Label, activecontrol is not set.
8593 * ButtonBase.cs: Only fire clicks if validation passes.
8597 2008-01-16 Geoff Norton <gnorton@novell.com>
8599 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8602 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
8604 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8605 SelectedPath, just display the default dialog instead of crashing.
8608 2008-01-16 Geoff Norton <gnorton@novell.com>
8610 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
8611 AddExpose instead of trusting apples compositing manager which doesn't
8612 work for our use case. Remove some dead code causing warnings and
8613 redecorate some other code to prevent warnings.
8615 2008-01-16 Geoff Norton <gnorton@novell.com>
8617 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
8618 carbon signals us to redraw. Fixes another portion of the flickering bug
8620 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8622 * Form.cs: Prevent the MdiParent property to be set when value is the same
8623 as value already set. Fixes bug #328019.
8625 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8627 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
8628 it prevents NRE when closing mdi child windows. Fixes bug #325211.
8630 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8632 * InternalWindowManager.cs: Invalidade close button after mouse up when
8633 mdi form is prevented to close.
8635 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8637 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8638 thanks to Andy Hume. Fixes bug #325433.
8640 2008-01-16 Andreia Gaita <avidigal@novell.com>
8642 * LinkLabel.cs: Reset focused_index when resellecting the control.
8645 2008-01-15 Geoff Norton <gnorton@novell.com>
8647 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
8650 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
8652 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8655 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
8657 * ContainerControl.cs: Setting AutoScaleMode to anything should set
8658 Form.AutoScale to false.
8659 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8660 AutoScaleBaseSize should be changed on Font change unless it has been
8664 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
8666 * MenuAPI.cs: On instance of MenuTracker check if source control is
8667 ToolStripOverflow and use properly method to find form.
8670 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
8672 [Fixes bug #323241 Transparent toolbar support]
8674 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8677 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8678 defined in control style to mimic win32 behavior.
8680 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
8681 it will be transparent.
8683 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
8685 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8686 CreateParams for ToolBar controls.
8688 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8690 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8691 FixedToolWindow, SizeableToolWindow, or None for border styles have
8692 different minimum sizes than regular forms. Implemented to fix
8693 regression in PDN with toolbox being too wide.
8695 2008-01-14 Andreia Gaita <avidigal@novell.com>
8697 * HtmlElementCollection.cs: Implemented
8699 * HtmlElement.cs: Implemented:
8707 * HtmlDocument.cs: Implemented GetElementsByTagName.
8709 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8711 * Screen.cs: Stub BitsPerPixel to always return 32.
8713 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8715 * Form.cs: Implement RestoreBounds.
8717 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8719 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8720 Sebastien and his fabulous magical problem-finding machine:
8721 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
8722 respect the value set.
8724 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
8726 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8727 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
8729 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8731 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8732 messages (to match .Net), we need to remove the capture ourselves.
8734 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
8736 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8737 will process the message and close our window.
8740 2008-01-10 Geoff Norton <gnorton@novell.com>
8742 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
8743 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
8746 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8748 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
8751 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8753 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
8754 Linux doesn't care, having a minimum matches MS and keeps the window
8755 from becoming too small to use window decorations.
8758 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8760 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8761 ShowFocusCues. Make focus rectangles fit the text instead of the whole
8762 control. [Fixes bug #325419]
8764 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8766 * ComboBox.cs: Guard against an NRE if the user open a new form from a
8767 SelectedIndexChanged event. This closes the combobox dropdown, and we
8768 were trying to dispose it. [Fixes bug #352830]
8770 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8772 * Control.cs, Form.cs: Implement the necessary semantics for
8773 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
8774 to determine if a focus rectangle should be drawn.
8775 * PropertyGrid.cs: Fix property visibility to match override.
8776 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8778 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8780 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8783 2008-01-09 Geoff Norton <gnorton@novell.com>
8785 * XplatUICarbon.cs: Scroll windows in the correct direction.
8787 2008-01-09 Geoff Norton <gnorton@novell.com>
8789 * XplatUICarbon.cs: Track all created utility windows so we can hide them
8790 when the app is deactivated or spaces is enabled.
8792 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8794 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8795 extra separation pixel for the label rect origin if SmallImageList is
8796 null, and thus we don't need that separation between icon and label
8798 Patch by Ernesto Carrea.
8801 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
8803 * StatusStrip.cs: Invalidate after completing a layout. The base
8804 OnLayout does this, but we don't call the base.
8805 * ToolStripItem.cs: Revert the previous change to invalidate after
8807 [Fixes bug #351341 better.]
8809 2008-01-07 Geoff Norton <gnorton@novell.com>
8811 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
8812 not a notification to exit the application. Listen for WM_QUIT
8815 2008-01-07 Andreia Gaita <avidigal@novell.com>
8817 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8819 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
8821 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8822 so it can repaint at the correct location.
8825 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8827 * ListControl.cs: SelectedValue should return a null value if
8828 SelectedIndex is -1. Also, when setting it, it should throw an
8829 ArgumentNullException if the value is null, as well as taking
8830 into account the String.Empty value, instead of ignoring it (we have
8831 tests for that now).
8832 Fixes part of #324286.
8834 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
8836 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8837 SelectionStart is updated after pressing enter. Fixes bug #351918.
8839 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8841 * TextControl.cs: Revert a piece r92316 that prevented the fix
8842 from working when there were multiple tags in the text box.
8845 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8847 * TextControl.cs: Apply patch from Luke Page that prevents an
8848 NRE when determining the beginning of a paragraph.
8851 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8853 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8854 caret gets moved with clicking away from a selected block of
8855 text. Fixes bug #351885.
8857 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8859 * TextControl.cs: Apply patch from Luke Page that takes line
8860 alignment into account for mouse selection, so that center and
8861 right aligned text can be selected.
8864 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8866 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8867 issues after loading an RTF file by using the correct line feeds.
8870 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8872 * TextControl.cs: When deleting multiple line selections, we need
8873 to invalidate every line beginning at the first line of the selection.
8874 Patch from Luke Page fixes bug #351791.
8876 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8878 * ListControl.cs: When getting a CurrencyManager.PositionChanged
8879 event, don't set SelectedIndex if the number of items is 1. This is
8880 because, for the first item, PositionChanged is fired _before_
8881 ItemChanged (the place where we actually populate the items), and
8882 leave us in a temporary invalid state (since items collection is
8886 2008-01-04 Geoff Norton <gnorton@novell.com>
8888 * XplatUICarbon.cs: Create native toolwindows instead of
8889 the managed drawing ones.
8891 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8893 * LineTag.cs: If the line doesn't have any characters, return
8894 0 for GetCharIndex. Fixes an AOORE exception after certain
8895 caret movements. Fixes bug #351683. Patch by Luke Page.
8897 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8899 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8900 is hit when there is selected text, only the selected text gets
8901 deleted, not the character in front of the selection as well.
8904 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8906 * ComboBox.cs: When the values are displayed, calculate the
8907 ComboListBox scrollbar's LargeChange based on the visible area's
8908 height and the actuall ItemHeight, instead of calculating it
8909 based on MaxDropItems value, since it's not used by our _current_
8913 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8915 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8916 Patch from Luke Page that fixes issues with font colors and styles
8917 not showing up in a readonly RichTextBox. Fixes bug #324354.
8919 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8921 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8922 from Luke Page. This one fixes bug #349926.
8924 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8926 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8927 an item in the IBindingList source changes with
8928 ListChangedType.ItemAdded. Ignore for now firing the event for other
8929 changes, since we want to have tests for those cases as well.
8931 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8933 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8936 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8938 * TextBoxTextRenderer.cs: Implement a cache for measuring each
8939 character. This is effective because the typical usage of a
8940 TextBox is with a limited amount of fonts and characters, and
8941 the current implementation of TextBox measures everything one
8942 character at a time. Another second or two speedup for bug #347238.
8944 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8946 * Control.cs: Rewrite the Font getter to only query the parent's
8947 Font property once instead of twice. Since this operation is
8948 recursive, the queries were growing exponentially as the control
8949 tree got deeper. Another second or two speedup for bug #347238.
8951 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8953 * Control.cs: Avoid setting a parent (and more importantly, updating
8954 the zorder of all its children) if the parent is already correct in
8955 WmShowWindow. Decreases the startup time of the test case on bug
8956 #347238 from 35 seconds to 11 seconds.
8958 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8960 * X11Dnd.cs: When the dnd operation has started and we are
8961 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8962 This is done to match .Net, which doesn't send those messages after
8963 dnd operation was completed/cancelled.
8966 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8968 * ToolStrip.cs: Previous change should be != null, not == null.
8971 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8973 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8974 user may have moved the mouse off the current item during the event.
8976 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8978 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8979 calling GetItemAt for every MouseMove event by also taking into
8980 account whether any mouse button is pressed (probably dragging);
8981 if so, we can call GetItemAt, and if not, try to not call it
8982 (GetItemAt can be quite expensive when used with a large number of items).
8984 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8986 * ListView.cs: Implement -finally- support for dnd, by calling
8987 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8989 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8990 simple calculation of distances for all the items in the owner
8993 2007-12-21 Geoff Norton <gnorton@novell.com>
8995 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
8996 for windows that are originally created as invisible. Fixes missing
8997 main window in paint-mono.
8999 2007-12-21 Geoff Norton <gnorton@novell.com>
9001 * XplatUICarbon.cs: Register our D&D handler. Register our custom
9002 subclass handler for com.novell.mwfview subclassing HIView. Implement
9003 Pasteboard and Dnd methods.
9005 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9007 * ListBox.cs: When we got focus, give focus to first item if there
9008 wasn't any pervious focused item. Also update navigation to depend on
9009 SelectedIndex rather than FocusedItem, just as .Net does.
9012 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9014 * ListBox.cs: Both FindString and FindStringExact methods must do an
9015 case insensitive search, should allow the last valid index to be
9016 passed in the overload taking an initial index, and should also
9017 continue searching from the top back to the specified index when it
9020 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9022 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9023 redraw issue, and allows RichTextBox to draw colored text even while
9024 disabled or readonly.
9026 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9028 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9029 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9030 and doesn't grey text in a disabled RichTextBox.
9032 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9034 * RichTextBox.cs: Apply patch from Luke Page that adds better support
9035 for many RTF commands: quad alignment, separate formatting for blocks
9036 inside groups, and ParDef support. Makes the test case from bug #324589
9039 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9041 * LineTag.cs: Fix an error in the new Draw method that caused
9042 a crash when rendering the document on bug #324589.
9044 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9046 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9047 TextControl.cs: Apply patch from Luke Page that adds support
9048 for URL links in RichTextBox.
9049 [Fixes enhancement #342516]
9051 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
9053 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9054 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9056 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9058 * ListBox.cs: When a key gets pressed, try to find a string
9059 if the key is a character or a digit.
9062 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9064 * TableLayoutPanel.cs: Remove some unused variables.
9066 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9068 * DateTimePicker.cs: Commit patch from Luke Page that ensures
9069 we don't end up at an invalid date when we click the up/down
9070 spinner to change the month or year. Fixes bug #348682.
9072 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9074 * Application.cs: Calling Exit in 2.0 should chain to the
9075 Exit (CancelEventArgs) version so it can be cancelled.
9076 * Form.cs: Create a flag to allow raising the Closing
9077 events to be skipped. We raise them once in Application.Exit
9078 and don't want to raise them again when the Form is actually
9079 closed. [Fixes bug #349073]
9081 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
9083 * ToolStripDropDown.cs: Guard against an NRE when there
9084 hasn't been a mainform set in the application context.
9087 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9089 * ListBox.cs: When SetBoundsCore gets called, besides
9090 calling UpdateScrollBars, update the value of
9091 last_visible_index, since we could need to show more items
9092 than before, and we need to let the paint routines know that.
9095 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9097 * ListView.cs: Add DesignerSerializationVisibility attribute to
9098 InsertionMark property.
9099 * ListViewItem.cs: Add same attribute to Position property.
9101 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9103 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9106 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
9108 * ThemeWin32Classic.cs: Don't draw the background on a
9109 flat button if there is a background image.
9112 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9114 * ListBox.cs: If we remove the item currently selected,
9115 remove it not only from SelectedItems, but also
9116 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
9117 the items count decreased and focused_item has bigger value than that.
9119 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
9121 * Control.cs: Perform our layout after we resize ourselves
9122 if we had to adjust our AutoSize. Missed commit for bug
9125 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
9127 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9128 we can provide an implementation of AutoSize.
9131 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9133 * ListBox.cs: Add the internal overload Sort (bool paint),
9134 to indicate whether we actually need a paint or we will
9135 call Refresh ourselves. This way we don't request a paint
9136 _before_ having an updated and valid layout.
9139 2007-12-12 Andreia Gaita <avidigal@novell.com>
9141 * XPlatUIX11.cs: Send paint messages when updating a systray icon
9142 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9143 properly invalidated.
9146 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9148 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9149 don't simply assign it to our internal group field, but instead
9150 use our Group property, which should do all the neccessary work
9151 required to support groups. Fixes an issue reported to me (mail) by a
9152 guy using this new feature.
9154 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
9156 * Control.cs: Use Scale instead of ScaleControl to ensure the
9157 whole hierarchy gets scaled.
9160 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9162 * DateTimePicker.cs: Don't set the internal MonthCalendar's
9163 Parent property. Doing this causes the control to be hosted by
9164 the Form instead of being a popup window.
9167 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9169 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9170 at an index higher than Count, just use Add instead of Insert.
9173 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
9175 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9176 DrawPictureBox, this is handled by Control.PaintBackground.
9179 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
9181 * MenuAPI.cs: When process menu keys return true by default only if menu is
9182 active. Fixes bug #342892.
9184 2007-12-09 Andreia Gaita <avidigal@novell.com>
9186 * Control.cs: check if windows are actually mapped before
9187 trying to zorder. Fixes #342509, #346955
9189 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9192 * ListViewInsertionMark.cs:
9193 * ThemeWin32Classic.cs: Implement the drawing side of the
9194 new 2.0 ListView.InsertionMark property.
9196 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
9198 * CurrencyManager.cs: Silence some debug spew.
9200 2007-12-07 Geoff Norton <gnorton@novell.com>
9202 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9203 masks for our children as well as siblings to avoid having to query
9204 Quartz for this information.
9205 * XplatUICarbon.cs: Implement a delegate based system to pass
9206 information to System.Drawing. Implement Async methods. Remove
9207 the hack for the resize thumb and imlpement a transparent Grow Box.
9208 Rework the messaging system to proplery create window's and messages,
9211 2007-12-06 Andreia Gaita <avidigal@novell.com>
9213 * X11Keyboard.cs: Use Xutf8LookupString to support international
9214 characters under alternate codepages. Patch from #340878
9216 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9218 * ListView.cs: When doing layout computations, set position in the
9219 ListView instances (we cache the position just as .Net does).
9220 * ListViewItem.cs: New internal setter method for Position. Also set
9221 position field as also available in 1.1, since we are going to use it
9222 now in the common case.
9224 2007-12-06 Andreia Gaita <avidigal@novell.com>
9226 * Control.cs: When removing controls, get the actual container
9227 to notify about active control changes. Fixes 341314.
9229 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9231 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9233 2007-12-05 Andreia Gaita <avidigal@novell.com>
9235 * Control.cs: When updating the zorder, ignore windows that are not
9236 mapped. Fixes #342509
9238 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9240 * ListViewItem.cs: Actually implement serialization on this class.
9242 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
9244 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9245 LinkCollection. Spaces to tabs, and removed extra tabs.
9247 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9249 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9250 tests to fail (hopefully).
9252 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
9254 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9255 the image margin so custom renderers can correctly place it.
9257 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
9259 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9260 so custom renderers can correctly place it.
9262 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
9264 * Application.cs: Let WM_CHAR messages flow through to controls
9265 hosted in Strips. [Fixes bug #343972]
9267 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
9269 * ToolStripManager.cs: Guard against an NRE I ran into.
9271 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
9273 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
9274 a Link is manually added to the Links collection, we need to set
9275 its owner, so it can invalidate properly.
9278 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9280 * ListView.cs: When changing ListViewItem.Position (which calls
9281 ListView.ChangeItemLocation), invalidate not only the area
9282 corresponding to the main item, but also to the area occupied
9283 by the items being moved.
9285 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9287 * ListView.cs: When changing the position of a given item,
9288 don't use item bounds, but item areas (which includes the item spacing
9289 between them). Also, use first/last position if the requested
9290 position is outside bounds (as .Net does). Invalidate the previous and
9291 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9292 in a specific position, instead of directly accessing Items collection
9293 (this is done to get the right item - remember an Item can have a
9294 different position in the grid than in the Items collection).
9296 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
9298 * MessageBox.cs: Calculate text area instead of just top left, this rect
9299 area will be used in DrawString. Fixes bug #343364.
9301 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
9303 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9304 screen width. Partially fixes bug #343364.
9306 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
9308 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9309 code inside recalculate, it makes code more simple.
9311 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
9313 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9314 between update or add icon. Fixes bug #324344.
9316 2007-11-21 Andreia Gaita <avidigal@novell.com>
9318 * XPlatUIX11.cs: Do not treat tool windows as if they have no
9319 window manager, since that stretches the drawing area to include
9320 the window decorations, and they get hidden. Reverts r84444 and fixes
9321 #335849 and #342790 (mdi and pdn3 regression)
9323 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9325 * ListView.cs: When setting focused item, try to give focus to the
9326 previous one _only_ if the previous one remains valid.
9329 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
9331 * Application.cs: Revert r89650, as it broke a common case to fix
9332 an obscure case. Fixes bug #342606.
9334 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
9336 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9338 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
9340 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
9341 alignment. [Fixes #324228]
9343 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
9345 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9348 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
9350 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9351 it prevent problems when empty captions. [Fixes #342141]
9353 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
9355 * Label.cs: Use Size instead of None. Fixes bug #342077.
9357 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9359 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9361 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
9363 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9364 but there isn't a MdiContainer.
9367 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
9369 * TextControl.cs: Don't recalculate document if the recalc_start and
9370 recalc_end hasn't changed.
9373 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
9375 * DataGridViewTextBoxCell.cs: Removed CWL.
9377 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9379 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9381 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
9383 * TextControl.cs: Missed some code for bug 341534 to trigger a
9384 recalculation when the font changes.
9386 2007-11-16 Andreia Gaita <avidigal@novell.com>
9388 * Control.cs: When updating the zorder, check if the child to update is
9389 the same control that is set to always be on top (i.e., scrollbars), and
9390 just put it on top directly. Fixes BadMatch error on pdn3
9392 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9394 * ListView.cs: Throw the needed exceptions for FindNearestItem.
9396 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
9398 * Control.cs: Don't perform a new layout when a label changes its text,
9399 cause label handles its own autosizing.
9402 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9404 * ListView.cs: Implement 2.0 FindNearestItem methods.
9406 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
9408 * ToolStripPanel.cs: Make Join at least add the control to the panel,
9409 even if the rest of what Join does isn't supported. Add some more
9410 support for vertical toolbars.
9411 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9412 [Fixes the application breaking parts of bug #341998]
9414 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
9416 * ToolStripItem.cs: When determining if we have a check/image margin,
9417 we need to look at ShowCheckMargin as well as ShowImageMargin.
9419 2007-11-15 Geoff Norton <gnorton@novell.com>
9421 * XplatUIOSX.cs: Rename to...
9422 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9423 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
9425 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
9427 * KeysConverter.cs: The default values should be an array of Keys, not
9428 strings. Also, the array has more values for 2.0.
9431 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
9433 * Application.cs: Change ExecutablePath to use
9434 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9437 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
9439 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9440 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9441 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9442 be ignored. Create a new GetLineEnding that can specify which types of
9443 line endings to look for. On Insert, only create new lines for \n and \r\n.
9446 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
9448 * TextBoxBase.cs: As we loop through each line changing the font, tell
9449 the document that the line needs to be recalculated. Fixes bug #341534.
9451 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
9452 [Another round of refactoring]
9453 * Line.cs: Add DeleteCharacters.
9454 * LineTag.cs: Add Delete.
9455 * TextBoxBase.cs: Update to use new methods.
9456 * TextControl.cs: Refactor the Delete* methods.
9458 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
9460 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9461 the patch. [Fixes #324856]
9463 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9466 * ListViewItem.cs: Add an initial implementation of
9467 2.0 ListViewItem.Position getter.
9469 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9471 * ListView.cs: Add a reordered_items_indices array, to allow us
9472 to have a different sorting than that of Items (the sorting in Items
9473 could not match the actual sorting in screen). This is needed to
9474 implement a pair of 2.0 features.
9475 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9476 actual position in the ListView grid, since it could have a position
9477 different than its Index (position in ListViewItemCollection).
9479 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
9481 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
9482 not draw partial lines.
9483 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9484 LineLimit flag from the base is preserved.
9485 Fixes the windows part of bug #338965.
9487 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
9489 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9490 so that it can be canceled in KeyPress.
9493 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9495 * ListView.cs: In ItemControl, reset mouse-handling related
9496 fields even if we dont' have items (we still should reset them when
9497 we had items but then called Items.Clear). Partially based in a patch
9501 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
9503 * Application.cs: In ProductVersion first try AssemblyFileVersion
9504 before falling back to assembly version. Fixes bug #339787.
9506 2007-11-08 Andreia Gaita <avidigal@novell.com>
9508 * HtmlElement.cs: Implement InnerText setter.
9509 * WebBrowserBase.cs: Implement Navigated event support.
9510 Add flag to track when the browser "document" is ready to be retrieved.
9511 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9512 Make sure browser document is ready before retrieving it.
9513 Clean up cached objects (document) when moving to a new page through
9514 any of the navigation methods.
9515 Use the new Mono.WebBrowser.INavigation interface to control navigation.
9516 Implement OnNavigated event.
9518 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
9520 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9521 DrawLinkLabel, this is handled by OnPaintBackground.
9522 Fixes bug #339565, part II.
9524 2007-11-07 Andreia Gaita <avidigal@novell.com>
9526 * Control.cs: Revert r88915. Selecting text on a textbox depends on
9527 getting a Select call on click, so this call needs to be here for now.
9530 2007-11-07 Geoff Norton <gnorton@novell.com>
9532 * OSXStructs.cs: Add the kEventClassApplication constants.
9533 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
9534 application is deactivated otherwise Menu overlays linger on top of
9535 other application windows.
9537 2007-11-07 Geoff Norton <gnorton@novell.com>
9539 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9540 dont support cursors yet anyways. This allows Reflector to run.
9542 2007-11-07 Geoff Norton <gnorton@novell.com>
9544 * XplatUIOSX.cs: Implement DragSize.
9546 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9548 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9549 ItemControl, request the focus, as .Net does. This is needed after
9550 Control does not request focus anymore when it receives a
9553 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
9555 * Label.cs: Make DrawImage internal so it can be called from Theme code.
9556 Remove the DrawImage call from OnPaint.
9557 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9558 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9559 but before we draw the text for DrawLabel and DrawLinkLabel.
9562 2007-11-05 Andreia Gaita <avidigal@novell.com>
9564 * Control.cs: Remove select call on click. Fixes #325809
9566 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9568 * ListViewItem.cs: Add 2.0 Position property getter.
9570 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9572 * ListView.cs: Add 2.0 BackgroundImageTiled property.
9573 Also, to make it work properly, change item's BackColor and
9574 BackgroundImageLayout as needed.
9575 * ThemeWin32Classic.cs: Don't fill any background rectangle
9576 in ListView.ItemControl when drawing items; just let the Control
9577 base implementation fill it.
9579 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9581 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9582 as well as adding a custom 'dummy' Converter, as .net does.
9584 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9586 * PropertyGridView.cs: When clicking drop-down button,
9587 select an index in the listbox only if our standard values collection
9588 has one or more items.
9590 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9592 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9595 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
9597 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9598 the value is not changed. This ensure a pushed button remains in that
9599 state when clicked again. When switching the value of PropertySort
9600 between Categorized and CategorizedAlphabetical, do not update the
9601 grid items and do not fire a PropertyChangedEvent. When clicking the
9602 sorting buttons, do not modify the PropertySort value when switching
9603 between Categorized and CategorizedAlphabetical but only update the
9606 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
9608 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9610 * PropertyGrid.cs: Also put Categorized button in pushed state when
9611 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9612 for help description label.
9614 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9616 * ListView.cs: When calculating the biggest item for a given column,
9617 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9620 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
9622 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9623 value for PropertySort on 1.0 profile. PropertySortChanged event
9624 should only be fired on 2.0 profile. Fixed NullReferenceException
9625 in UpdateSortLayout when PropertyGrid contains no items.
9627 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
9629 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9632 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9634 * ListViewItem.cs: Implement 2.0 IndentCount property.
9636 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9638 * X11Dnd.cs: When sending status in a dnd operation, compare current
9639 effect with the 'allowed' field instead of 'drag_data.Allowed', since
9640 the later is only created when a Winforms application is both the
9641 source and the target, but not when we are the target only.
9642 Fixes part of #324251.
9644 2007-11-01 Geoff Norton <gnorton@novell.com>
9646 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9648 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
9649 children out of the drawing view on mac.
9650 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
9651 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9653 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
9655 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9656 on the non-hosted-control part of it shouldn't do anything.
9657 Fixes part of bug #327498.
9659 2007-11-01 Andreia Gaita <avidigal@novell.com>
9661 * WebBrowserBase.cs: revert previous change, resize can be called anytime
9663 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
9665 * Application.cs: When a toolstrip has the keyboard input loop, let messages
9666 it does not use flow through to controls that are hosted in menus.
9667 Same with mouse clicks.
9668 * Form.cs: Don't close all menus on click if the click is on a
9669 control hosted in a menu.
9670 Fixes part of bug #327498, and part of bug #325969.
9672 2007-10-31 Andreia Gaita <avidigal@novell.com>
9674 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9676 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
9678 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9679 Addresses an issue raised in bug #336218.
9681 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
9683 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9684 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
9686 2007-10-30 Andreia Gaita <avidigal@novell.com>
9688 * ContainerControl.cs: Check if the active control is a
9689 child of a removed control and update active_control accordingly.
9692 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9694 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9695 or the MaxDate. Fixed bug #337693.
9697 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9699 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9700 after calling SetWindowLong for a form, to force an immediate NC refresh.
9701 Fixes first part of bug #325150.
9703 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9705 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9706 simple. Fixes the last part of bug #322668.
9708 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9710 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9711 needs to be TopMost as well, or else the MessageBox is under the form.
9712 Patch by George fixes bug #325300.
9714 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9716 * X11Dnd.cs: When starting a new drag operation, reset the static
9717 'dropped' field to false (previously the implementation didn't reset
9718 it and got confused after the first drag).
9721 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9723 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9724 items instead of re-creating them all. For this purpose we now cache
9725 both CategoryGridEntry items and the GridEntries for the main object's
9727 * GridItem.cs: Make SetParent method abstract.
9728 * GridEntry.cs: Override the SetParent method (already there, but now
9732 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9734 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9735 depending on its depth (as .Net does). Update the needed values in
9736 MouseDown handler. Also draw the plus/minus rect after the label,
9737 so we don't draw on top of it.
9739 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
9741 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9742 processed by forms or controls when menu is active. [Fixes #333548]
9744 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9746 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9747 parent doesn't have focus. This was causing ToolStripTextBoxes to take
9748 focus on mouse over.
9750 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9752 * TextControl.cs: Code cleaning, simplifying.
9754 2007-10-24 Geoff Norton <gnorton@novell.com>
9756 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9757 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9759 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9761 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9762 the cap is maxvalue, not actually 0. [Fixes bug #336218]
9764 2007-10-24 Andreia Gaita <avidigal@novell.com>
9766 * SendKeys.cs: apply jpobst's patch to bug #332409
9768 2007-10-23 Andreia Gaita <avidigal@novell.com>
9770 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
9771 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9774 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9776 * PropertyGridView.cs: If a property has an UIEditor available,
9777 make the drop-down/editor button available only if the property
9780 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9782 * PropertyGridView.cs: Don't make the grid item textbox
9783 editable when a drop-down control is available, but
9784 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9785 true. The same bur the color of the grid item value's label.
9787 2007-10-22 Geoff Norton <gnorton@novell.com>
9789 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9790 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9791 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
9792 driver. Padd the bottom of all real windows so the resize thumb doesn't
9793 obscure scroll/status bars.
9795 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
9797 * WindowsFormsSection.cs: Implement.
9799 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9801 * MdiClient.cs: Maximize new active mdi child when a maximized child is
9802 closed see #325434 patch.
9804 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9806 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9809 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9811 * PropertyGridView.cs: When showing the textbox for a grid item,
9812 have two local variables to store the read-only and non-editable
9813 status of a grid item (we were previously using just one variable
9814 to do this, when actually they are slightly different).
9815 Fixes part of #325023.
9817 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9819 * PropertyGridView.cs: When showing a drop-down list, try to get the
9820 values using TypeConverter.ConvertTo (to convert to a string). Fixes
9823 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9825 * PropertyGrid.cs: When updating a property and populating sub grid
9826 items, remove the previous ones, and invalidate the specific area.
9827 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9828 area behind a grid item.
9829 * GridItemCollection.cs: Add an internal Clear method, to allow us to
9830 clean the items if needed (specially for controls implementing
9831 ICustomTypeDescriptor and returning a variable number of properties).
9834 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
9836 * TextControl.cs: Clean up and document the Insert function.
9838 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9840 * TextControl.cs: Make sure we know our start point for updating the view
9841 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
9844 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9846 * ListView: Couple of corcompare fixes.
9848 2007-10-17 Geoff Norton <gnorton@novell.com>
9850 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
9851 the title caption of real window.
9853 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9855 * ErrorProvider.cs: Add the error provider's internal window to a
9856 containercontrol when the parent changes. [Fixes bug #329714]
9858 2007-10-17 Geoff Norton <gnorton@novell.com>
9860 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
9861 When we make a new window; restore the old active window - fixes dialogs.
9863 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9865 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9866 when modifying a property, and if found then invalidate as
9868 Fixes part of #324865.
9870 2007-10-17 Geoff Norton <gnorton@novell.com>
9872 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
9873 highly experimental. Fixed coordinate translation. Fixed window locations.
9874 Initial support for clipping. Implemented NC areas and menus. Support for
9875 launching from command line from Will Johansson (wjohansson@atacomm.com).
9876 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9877 wjohansson@atacomm.com)
9878 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9879 Hwnds now track the existence of all of their children for Mac clipping.
9880 * XplatUI.cs: Re-enabled the native driver on the Mac.
9882 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9884 * Line.cs: Move the InsertString function to here.
9885 * TextControl.cs: Cleanup some duplicate code, move some InsertString
9886 functionality to Line.
9888 2007-10-17 Geoff Norton <gnorton@novell.com>
9890 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
9892 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
9894 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9895 always setting value to true.
9896 * Form.cs: When changing AcceptButton, notify new and original button.
9898 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
9900 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9901 a custom control that implements IButtonControl instead of an actual
9902 button. [Fixes bug #334244]
9904 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9906 * Form.cs: Change SelectActiveControl to internal, we need to call it in
9909 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9910 active control when activate a new mdi window.
9914 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9916 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9920 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9922 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9923 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
9924 so we always recalculate the whole document instead of just the new part.
9927 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9929 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9930 when the mouse was to the left of the first character in the line.
9932 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9934 * TextBox.cs, TextBoxBase.cs: When setting the document's password
9935 character, use the property instead of the variable so that the
9936 UseSystemPasswordChar property is taken into account.
9939 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9941 * FolderBrowserDialog.cs: When a node is right clicked and the "New
9942 folder" contex menu appears, actually add the new folder to it, even
9943 if the node is not currently selected. Still use SelectedNode in case
9944 there wasn't found a node under the pointer.
9947 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949 * ListViewItem.cs: When retrieving the focused state, the index check
9950 should be done only when ListView is in virtualmode, as it is an
9951 expensive check for normal mode.
9953 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9955 * ListViewItem.cs: Make the focus state information be stored
9956 in the ListView, not in the items. This is done to match the MS
9957 behaviour for items that are not yet part of a ListView control;
9958 besides that, since just one item can be focused at the same time,
9959 we save a little space in our items.
9960 Fixes part of #331643.
9962 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9964 * ComboBox.cs: When focus is lost, deselect the text. When setting
9965 text of control, select all text. Do not hide selection when control
9966 does not have focus. Fixes bug #333663.
9968 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9970 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9971 instead of ArgumentException when SelectionLength is set to negative
9972 value. Added same check to SelectionStart. Code formatting.
9974 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9976 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9977 or SelectionStart. Code formatting.
9979 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9981 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9982 indicating that there was not a previous drag-and-drop operation going
9984 Fixes part of #325071.
9986 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9988 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9989 AllowedEffect, don't let the drop operation happen.
9992 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9994 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9996 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9998 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10001 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10003 * Line.cs: Add a method that finds the tag that contains an x-coord.
10004 * LineTag.cs: Add a method that finds the character at an x-coord using
10005 a binary search, the old way was a linear search.
10006 * TextControl.cs: Change FindCursor to use the above new methods.
10008 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10010 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10011 value different than AllowedEffect). This should be possible to
10012 indicate that dragging is not possible in some control/area.
10014 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
10016 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
10017 descent internally when font changes instead of outside code being responsible
10019 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10020 instead of accessing internal variables.
10022 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
10024 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10025 remove special treatment for ArrangeIcons since it is already arranged.
10027 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10029 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10030 the Win32 backend uses Color.
10031 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10032 Refactor to store a Color instead of a Brush for Color.
10034 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10036 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10037 away. I didn't realize I needed this when I refactored these earlier.
10039 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10041 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10042 store a Color structure and use the ResPool for back color instead of
10043 holding onto brushes.
10045 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10047 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10048 [Fixes bug #325592]
10050 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10052 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10053 to recalculate its size. Fixes a part of bug #331052.
10055 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10057 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10058 button. Fixes a part of bug #331052.
10060 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10062 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10064 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10066 [Fixes bug #330986]
10068 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10070 * TextBoxTextRenderer.cs: Don't make this a static class, as static
10071 doesn't exist in 1.1. (Thanks jb!)
10073 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10075 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10076 class to allow us to use different backends on different platforms.
10077 Linux uses the current [Draw|Measure]String backend. Windows uses
10078 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10079 of GDI+. This leads to better looking text and more accurate measurements
10080 on Windows, fixing many of the reported issues.
10081 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10083 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10085 * FolderBrowserDialog.cs: When running on Windows,
10086 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10087 since we must match both "C:" and "C:\" forms. A little hackish, but
10091 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10093 * ListView.cs: When calling EndEdit (after editing an item),
10094 create a new instance of LabelEditEventArgs to keep clean the fields
10095 in case we get a new call to BeginEdit; also do Application.DoEvents
10096 to have focus in synch. This is a fix similar to TreeView's #325244.
10098 2007-10-07 Andreia Gaita <avidigal@novell.com>
10100 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10101 * WebBrowserBase.cs: Added dialog support, calling the
10102 WebBrowserDialogs classes for each specific dialog type.
10104 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10106 * ListView.cs: When the last item is focused and is removed,
10107 move the focus to the previous item (in Items order). This is what MS
10111 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10113 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10114 instead of the opposite (RemoveAt call Remove). This is a better
10115 approach since we don't need to to a pair of traversals when using
10118 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10120 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10121 check that the node actually has nodes, and if not, move to the
10122 parent node instead.
10125 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10127 * TreeView.cs: Move the previous change to the general case (to
10128 call Application.DoEvents in cases where the method was called by
10131 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10133 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10134 call Application.DoEvents. This is neccessary when we get a call to
10135 BeginEdit from an AfterLabelEdit handler, because the focus always
10136 goes to the TreeView, even if we try to give it to our
10137 LabelEditTextBox. The call do Application.DoEvents seems to
10138 synchronize the focus, basically.
10141 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10143 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10144 should be false. This also removes some nasty recursive paths. Fixes
10147 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
10149 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10150 state to normal. Also resize window when cascading. Fixes #325433.
10152 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
10154 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10155 DefaultForeColor, as drawing empty colored lines isn't very useful.
10156 [Fixes the not drawn lines part of bug #324358]
10158 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
10160 * TextControl.cs: Move Line and LineTag classes into separate files to
10161 make things easier to find.
10162 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10163 * RichTextBox.cs: Capitalize LineTag.Length property access.
10164 - This is purely an organizational/formatting change, no logic changed. -
10166 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10168 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10171 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10173 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10176 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10178 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10179 prevent calling of OnBackColorChanged. Fixes #325321.
10181 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
10183 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10184 because control can be disabled because owner is disabled.
10186 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
10188 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10189 string.Empty, test failed from previous change.
10191 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
10193 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10194 is null, not String.Empty. See bug #323038.
10196 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
10198 * TextControl.cs: Change the margins to match MS a little better.
10199 Still not perfect for X11 due to some DrawString differences, but
10200 is still an improvement over the old stuff.
10201 Partially fixes #324467.
10203 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10205 * FolderBrowserDialog.cs: When using MyComputer as
10206 RootFolder, let absolute paths be considered as valid ones. Also, use
10207 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10208 for Windows compatibility.
10209 Partially fixes #325247.
10211 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10213 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10214 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10215 method, since it causes the dialog to not select folders directly
10216 under the root path (when setting SelectedPath property).
10218 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10220 * TreeNode.cs: When calling Expand/Collapse and need to call
10221 ExpandBelow/CollapseBelow respectively, take into account
10222 partially visible nodes (previously Expanding/Collapsing
10223 a partially visible node in the bottom was not updating its +- sign).
10225 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10227 * TreeView.cs: When calling Expand on a TreeNode, and we need to
10228 expand nodes below (ExpandBelow), scroll the entire Viewport
10229 area if the node is above it and not visible (instead of scrolling
10230 the area from node's Bottom, which applies only when the node is
10234 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10236 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10237 node in the bottom area (as .Net does). This is done to preserve the
10238 scroll position when ExpandAll is called before handle is created for
10239 the 1.1 profile (bottom area, as opposed to top area in 2.0).
10242 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10244 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
10245 bottom area if we are in fact not using the vertical scroll bar.
10248 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
10250 * Control.cs: Comment out a double buffering optimization that doesn't
10251 take into account invalidates created in OnPaint, causing the control
10252 to never be redrawn. It would take quite a bit of work to work around
10253 this, but I left it commented with an explanation for later possible
10255 [Fixes bug #328681]
10257 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
10259 * Control.cs: Ask parent to perform a layout if control is AutoSize and
10261 * RadioButton.cs: Implement GetPreferredSizeCore.
10262 [Fixes bug #328672]
10264 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
10266 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10269 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
10271 * Application.cs: Move the sync context stuff to Run instead of RunLoop
10272 so that it doesn't get uninstalled on modal forms.
10273 * Control.cs: Install a sync context when a control is created.
10274 * WindowsFormsSyncronizationContext.cs: Create a private static control
10275 to invoke on. This is easier than trying to find a created control we
10277 [Fixes bug #327608]
10279 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
10281 * Application.cs: Install a WindowsFormsSynchronizationContext in the
10282 run loop, and uninstall it when done.
10283 * WindowsFormsSynchronizationContext.cs: Implement.
10284 [Fixes the common case in bug #327608]
10286 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
10288 * DataGridViewCellCollection.cs: Added argument checks for indexers.
10289 Use case-insensitive lookup of column name in indexer. Code
10292 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10294 * TreeNode.cs: When collapsing or expanding a node, check whether its
10295 change will affect the visible area (we were previously doing a
10296 IsVisible check, but that check is not enough since children nodes
10297 could be still visible). Fixes part of #325266.
10299 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
10301 * TreeView.cs: Always select the first node when the TreeView gets
10302 focus if there is no currently selected node.
10303 [Fixes bug #324279]
10305 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
10307 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10308 node being selected is null.
10309 [Patch from Yves Bastide fixes bug #326858]
10311 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10313 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10314 whether all the parent nodes are expanded.
10315 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10316 call RecalculateVisibleOrder if all previous nodes are expanded.
10317 Before that we were doing a IsVisible check, but sometimes the node
10318 is not in the visible area, but _should_already be ready, because of
10319 all previous nodes are expanded. Fixes #325259.
10321 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10323 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10324 portion of the item is clicked.
10326 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10328 * TextControl.cs: Do not tell the system to move the cursor if the
10329 textbox isn't focused. Fixes part of bug #322668.
10331 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10333 * ComboBox.cs: When there are no items, do not show the dropdown if
10334 the down arrow is clicked. Fixes part of bug #322668.
10336 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10338 * ToolStripComboBox.cs: Manually set the size of this control in the
10339 constructor, as it doesn't seem to be the same as DefaultSize.
10340 Fixes a failing monobuild test.
10342 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
10344 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10345 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
10347 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
10349 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10350 Desktop. This lets it work for people who have moved their desktops
10351 from the default location on windows. For people who have not, both
10352 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
10354 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10356 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10357 but when the base constructor sets this, the control is null. Set it
10358 again in the constructor. Fixes a failing monobuild test.
10360 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10362 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10364 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10367 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10369 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10370 will handle it themselves.
10371 * ToolStripItem.cs: When deciding what the text of a tooltip should
10372 be, use the Text property instead of the text field.
10373 * ToolStripTextBox.cs: Handle tooltips.
10374 [Fixes bugs #325417 and #325973]
10376 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10378 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10379 left click. Fixes the easy part of bug #325969.
10381 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10383 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10384 bug #325406, but set a minimum for StatusStrip to 22 to keep
10385 bug #325390 fixed. I think this minimum would have been figured
10386 up automatically if the grip was actually a ToolStripItem, but it
10389 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10391 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10392 as this is apparently the actual value used by .Net. Also apply
10393 ItemPadding in Details view only, and decrease the general width padding,
10394 to have only the needed. This should fix #324340 in Windows too.
10396 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10398 * ListViewItem.cs: Don't Invalidate item if parent is inside
10399 a BeginUpdate/EndUpdate block. This prevents to have differences
10400 between the ListView and items state, as well as avoid some exceptions
10402 * ListView.cs: Make 'updating' field internal.
10404 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10406 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10407 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10408 size if appropriate.
10409 Fixes reopened bug #325414.
10411 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10413 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10414 * ToolStripItem.cs: Invalidate before and after our new autosize when
10416 Fixes reopened bug #325390.
10418 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10420 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10421 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
10424 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10426 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
10428 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10430 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10431 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10434 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
10436 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
10437 item to select when the ToolStrip is selected.
10438 * ToolStripControlHost: Realign the control when the bounds or visibility
10440 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10441 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10443 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10444 base.OnPaint. Was causing text not to be drawn.
10446 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
10448 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10450 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10452 * TreeView.cs: When creating the label edit text box,
10453 set is initially to Visible = false. This is done to
10454 prevent a confusion in the layout which makes it to lose
10455 focus when shown the first time. Fixes part of #82592.
10457 2007-09-13 Andreia Gaita <avidigal@novell.com>
10459 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10461 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10463 * ToolStrip.cs: Take Margin into account when calculating preferred
10464 size. Also, allow preferred size to get smaller than the explicit
10466 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10467 First step towards fixing bug #82747.
10469 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10471 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10472 full row select background over the plus/minus glyph. Also, turn
10473 off the focus rectangle for full row select since MS doesn't seem
10474 to ever paint it. [Fixes bug #81839]
10476 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10478 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10479 This was causing keyboard opened dropdowns to lose focus.
10482 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10484 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10485 ClientRectangle instead. [Fixes bug #82838]
10487 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10489 * SplitContainer.cs: We can't reset Visible on every layout because
10490 someone may have set Visible = false explicitly on a SplitterPanel.
10491 Make sure when we switch orientation the SplitterDistance does not
10492 change. Fixes two failing tests.
10494 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10496 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10497 TextRenderer, since the latter is only available in 2.0.
10499 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
10501 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10502 * SplitContainer.cs: Implement FixedPanel layouting.
10504 2007-09-12 Andreia Gaita <avidigal@novell.com>
10506 * WebBrowserBase.cs: setup shutdown routine
10508 2007-09-12 Andreia Gaita <avidigal@novell.com>
10510 * Application.cs: Let keyboard events that are targetted
10511 to non-mwf windows hosted inside mwf (as in, webbrowser),
10512 propagate properly. Fixes keyboard handling on the webbrowser.
10514 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10516 * ListView.cs: When handling MouseUp event and we are
10517 highligting a node with the mouse right button, don't trigger
10518 Before/AfterSelecting event, since we are not actually selecting
10521 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10523 * TreeView.cs: When editing a node, modify the edit text box
10524 depending on the text length (as you are typing), like MS does.
10526 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
10528 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
10529 Override GetPreferredSizeCore to perform calculations. Remove custom
10530 autosize logic. [Fixes bug #82739]
10532 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
10534 * TextBoxBase.cs: Modified should default to false.
10536 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10538 * Control.cs: Update the anchoring distances even when layout is supspended.
10539 Patch provided by George fixes bug #82805.
10541 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10543 * Control.cs: Provide a setter for ExplicitHeight.
10544 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10545 remove the hacks in here for requested_height.
10548 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10550 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10551 Maximum to lower that its current Value caused an ArgumentException by setting
10552 the Value to the new Maximum.
10554 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10556 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
10557 handle moves to the closest tick when it is being dragged.
10560 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10562 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10563 can't let them count as real items when calculating where to merge in the
10564 user's items. [Fixed bug #82786]
10566 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10568 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10569 who want to add a menu item directly onto a toolstrip.
10570 [Fixes bug #82775, part II]
10572 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10574 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10575 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10576 don't set it to available.
10577 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10578 [Fixes bug #82727, part II]
10580 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10582 * StatusStrip.cs: Change item placement to None if not visible.
10583 * ToolStripItem.cs: Invalidate when InternalVisible changes.
10584 These should have been committed to fix 82723, but I missed them.
10586 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10588 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10589 Click, and that it is only called once.
10590 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10591 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10595 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10597 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10599 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10600 instead of 8, just like above. Partially fixes #82734.
10602 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10604 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
10607 * ListView.cs: Remove extra space between rows in Details view (match
10609 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10612 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
10614 * Application.cs: Modified ProductVersion to return value of
10615 AssemblyInformationVersion if available, and fallback to assembly
10616 version. Fixes bug #82746. Code formatting.
10617 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10620 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10622 * Control.cs: When updating ZOrder for a child control,
10623 take into account the implicit ones (we need it in our controls
10624 using them). Fixes #82642.
10626 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
10628 * ToolStripItem.cs: Add support for animated images.
10631 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
10633 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
10634 visible. [Fixes bug #82727]
10636 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10638 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10639 so we repaint using the new size. [Fixes bug #82723]
10641 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10643 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10644 option. [Fixes bug #81779]
10646 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10648 * TreeView.cs: Override HandleClick because the StandardClick style is
10649 set to false. According to MSDN (and testing), the click events should
10650 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
10652 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10654 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10655 the border will disappear. Fixes reopened #82653.
10657 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10659 * Control.cs: If the control is autosize, and its preferred size changes
10660 when it lays out its children, tell its parent so it can be re-layed out.
10661 Fixing some of the fallout from r85433.
10663 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10665 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10666 and CheckBox share some code.
10668 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10670 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10671 the TrackBar, not every mouse move. [Fixed bug #82718]
10673 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10675 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10676 under 2.0 rendering. [Fixes bug #82657]
10678 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10680 * TreeView.cs: If we found a TreeNode to display a context menu, but
10681 it doesn't have one to show, let the TreeView display its menu
10682 instead. [Fixes bug #82680]
10684 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10686 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10687 OnPaintInternal instead. Give the internal TextBox a Border property
10688 so it can draw itself more correctly. [Fixes bug #82653]
10690 2007-09-06 Zoltan Varga <vargaz@gmail.com>
10692 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10694 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10696 * ComboBox.cs: Adjust combobox button state to reflect current state when
10697 back to enabled = true. Fixes first issue of #82654.
10699 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10701 * Control.cs: Fix last patch regression, prevent forms to update zorder when
10702 setting visible property.
10704 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10706 * Control.cs: Update zorder after control creation in SetVisibleCore, it
10707 fix zorder for controls initially created as non visible. Fixes #82667.
10709 2007-09-04 Everaldo Canuto <everaldo@simios.org>
10711 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10712 mimic win32 look. Fixes #82656.
10714 2007-09-01 Zoltan Varga <vargaz@gmail.com>
10716 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
10717 Stubs for new net 3.5 classes.
10719 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10721 * ListViewItem.cs: In ListViewItemCollection operations calculate
10722 Layout for owner as well as invalidate it. Fixes part of #82642.
10724 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
10726 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10727 when returning Enabled. [Fixes bug #82651]
10729 2007-08-30 Everaldo Canuto <everaldo@simios.org>
10731 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10733 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10735 * ListView.cs: Put item padding info in a single place
10736 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10738 * ThemeWin32Classic.cs:
10739 * Theme.cs: Likewise.
10741 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10743 * ListView.cs: When a ListViewSubItem instance is invalidated,
10744 invoke Invalidate on parent ListViewItem, not parent ListView.
10747 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10749 * ListView.cs, ListViewItem.cs: corcompare stuffs.
10751 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10753 * BindingMemberInfo.cs: Implement == and != operators.
10755 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10757 * HtmlElementEventArgs.cs: Implement properties.
10759 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10761 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10763 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10765 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10766 Add (string,string,string) to implement the imagekey. It turns out, we
10767 use the requested imagekey whereas .Net does not. So I broke ours to match
10770 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10772 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10774 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10776 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10778 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
10780 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10781 up-to-date. Fixes bug #82618.
10783 2007-08-29 Everaldo Canuto <everaldo@simios.org>
10785 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10786 reflect document changes. Fixes #82367.
10788 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10790 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10791 as well as add new ones. This should make work the BackgroundImage
10792 property for ListView again.
10794 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10796 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10797 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10798 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10800 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10802 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10805 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10807 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10808 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10810 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10812 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
10813 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10815 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10817 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10819 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10821 * GridEntry.cs: Implement GetService.
10823 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
10825 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10826 for label editting, make sure we focus back on the TreeView.
10829 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10831 * ListView.cs: Add some 2.0 overrides.
10833 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10835 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10836 because getter dont returns right value before handle creation. Thanks
10837 to George. Fixes #82569.
10839 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10841 * Theme.cs: Revert last patch, it causes error under win32.
10843 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10845 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
10846 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
10847 logical Desktop rather than the physical file system location. Fixes #82603.
10849 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
10851 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10852 for the patch. Fixes #82568.
10854 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10856 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10859 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10861 * ListViewInsertionMark.cs: New stubbed class.
10863 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10865 * FolderBrowserDialog.cs: When adding folder, immediately create the
10866 directory with temporary name and rename the directory when editing
10867 finishes. This matches MS. Ensure the node for the new folder is
10868 selected and LabelEdit is disabled, when editing is either finished
10871 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10873 * TreeView.cs: When editing label of node, ensure node is visible.
10875 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
10877 * PropertyGridView.cs: Set the value only if it has changed.
10879 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10881 * ListView.cs: Some more code refactoring to add support sorting
10882 with groups (now for Details view). Remove unused code also.
10884 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10886 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10887 Not a big fan of reacting immediately to a field in an EventArg, but that's
10888 the way it's done. (This is part of the previous commit that got left out.)
10890 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10892 * FolderBrowserDialog.cs: Removed need for separate description field.
10893 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10894 has focus when dialog box is displayed again, regardless of what
10895 button was pressed the previous time. Set RootFolder and SelectedPath
10896 each time dialog box is displayed. This ensures the treeview is
10897 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10898 when it does not have focus. Added support for more special folders.
10900 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10902 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
10903 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
10904 it resets the edit_args.
10905 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10908 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
10910 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10911 button to match MS. Provide more meaningful exception message for
10912 invalid RootFolder value. Use zero-length string when SelectedPath
10913 is set to null. Allow non-rooted paths in SelectedPath, but ignore
10914 them in FolderBrowserTreeView. Allow folders to be created in
10915 RootFolder. Fixes bug #82576.
10917 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10919 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10920 since we need to take into account the group headers and the margin
10922 * ListViewGroup.cs: Add a rows field to store the number of rows per
10925 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10927 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10928 Anyways, let's just follow the lead.
10930 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10932 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10933 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
10934 controls in GetPreferredSizeCore.
10935 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10938 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10940 * PrintDialog.cs: Need to instantiate the form variable here too.
10942 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10944 * ListView.cs: Do some reorganization to support sorting in groups,
10945 by doing the layout sequentially in ListView.Items. Also add support
10946 for the Default Group, which should be available for items with no
10948 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10949 for storing layout info also.
10950 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10951 collection, as well as providing internal members to do a traversal
10952 including the default group (needed when doing layout/drawing).
10953 * ThemeWin32Classic.cs: When drawing group headers use internal
10954 ListViewGroupCollection members to take into account the default
10957 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
10959 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
10961 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10963 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10964 been created. If handle is created, we want arror keys. If we are editing
10965 a node, we want things like enter, esc, home, end, page up, page down.
10966 Allows Esc to work for FolderBrowserDialog.
10968 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10970 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10971 they close when ESC is pressed. Thanks Andy!
10973 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10975 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10976 This way we can tell if this is a CommonDialog provided with mono, or one
10977 that is being implemented outside by a developer. If it is an external one,
10978 the developer is responsible for showing their own form. We were showing
10979 our blank form after the developer showed his.
10980 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10981 PageSetupDialog.cs: Instantiate form variable in our constructor.
10984 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10986 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10987 and always return true. [Fixes bug #81616]
10989 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10991 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10992 TextBox. [Fixes bug #82549]
10994 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
10996 * FileDialog.cs: When Save/Open is clicked and no filename is selected
10997 or entered then do not close the dialog. Fixes bug #82539. Removed
11000 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
11002 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11003 code to this method. It is calling every time filter changes. This method
11004 will help to fix the bug #80887.
11006 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11008 * CheckBox.cs: Implement AutoSize calculation.
11010 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11012 * CheckBox.cs: Use new 2.0 rendering for 2.0.
11013 * Theme.cs: Method declarations for 2.0 rendering path.
11014 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11016 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11018 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11020 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11022 * ListViewGroupCollection.cs: Implement AddRange the right way, to
11023 only call Redraw on the parent one time.
11025 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11027 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11028 GetClipboardContent.
11029 * DataGridViewCell.cs: Implemented GetClipboardContent,
11030 GetEditedFormattedValue, GetFormattedValue.
11031 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11033 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11035 * TableLayoutStyleCollection.cs: corcompare fix.
11037 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11039 * DataObject.cs: Implemented retrieval of convertible / not convertible
11042 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11044 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11045 ourselves. This ensures the entire old bounds are repainted, in case our new
11046 size is smaller. [Fixes bug #82518]
11048 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
11050 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11051 flag to make fast handle of mouse events, without this the mouse move is
11052 handled in some manner, whether it is a mouse move or not. Fixes #81588.
11054 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11056 * ListView.cs: When doing layout calculations don't use a ref
11057 param to keep the current item; instead use its Index value (this
11058 is specially important when doing the layout with Groups
11059 and Items being sparse). Also don't take into account items added to
11060 the Group but not yet added to the main ListView.Items collection.
11062 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11064 * ListViewGroupCollection.cs: Forgot to mimic an issue
11065 in the indexer (don't assign the ListView owner for new values).
11067 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11069 * ListViewGroupCollection.cs: Make the string indexer use
11070 the int based indexer to re-use code, instead of duplicate the code.
11071 Also Redraw as needed and take into account null values.
11073 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11075 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11078 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11080 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11081 when other buttons are clicked or navigated to.
11083 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11085 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11086 it's XplatUIX11 that attaches them.
11088 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11090 * DataGridView.cs: If a column has been added, recreate the editing row.
11093 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11095 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11096 of the tag to draw. Makes disappearing text show up again.
11098 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11100 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11101 Contents. Fixes #82487.
11103 2007-08-19 Andreia Gaita <avidigal@novell.com>
11105 * Added HtmlElement.cs, HtmlElementCollection.cs,
11106 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11108 2007-08-19 Andreia Gaita <avidigal@novell.com>
11110 * BindingSource.cs: Implement this, dispose and getenumerator.
11111 * DataGridViewRowCollection.cs: Move the InvalidOperationException
11112 out of AddInternal, throw it only on public Add calls. The
11113 UsingWebBrowser sample was blowing up with this when setting the
11114 DataSource after adding DataBindings, so it's likely that .net
11115 only throws this exception when Add is called directly.
11117 * ToolStripControlHost.cs: Return the hosted control's text
11118 property, and not the ToolStripItem one (it would always return
11119 the initial value).
11121 * HtmlDocument.cs: Implement GetElementById and All
11122 * WebBrowser.cs: Remove exception on set_DocumentStream.
11124 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11126 * Form.cs: Fix the max and min value for opacity (0~1).
11128 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11131 * DataGridTableStyle.cs: Default header font is now null, on getter it
11132 returns datagrid font when is null. On setter permits null.
11135 - When ResetHeaderFont set header font to null.
11136 - On EndInit set grid_style.DataGrid.
11138 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11140 * TabControl.cs: Fix regression in default padding x.
11142 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11144 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11146 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
11148 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11149 not 2. Fixes #82229.
11151 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11153 * TabControl.cs: Fix tab size when image height is less than text height.
11154 Partially fixes #81837.
11156 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11158 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
11159 "alt + tab". It works only for Win32, for X11 theres no way to remove window
11160 from taskbar and keep it on "alt_tab". Fixes #81722.
11162 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11164 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11165 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
11166 Fixes #80877 and #79418.
11168 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11170 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
11171 between position and one of the screen borders. Fixes #82349.
11173 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11175 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11176 the MessageBox in the taskbar. Fixes #82457.
11178 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
11180 * MessageBox.cs: Fix form size when icon is set and text height is bigger
11181 than icon. Fixes #82468.
11183 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11185 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11186 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11187 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11188 Refactored HandleNCCalcSize somewhat to avoid code duplication.
11189 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11190 FormBorderStyle to decide if we're calculating a new size from the
11191 client size or not. CreateParams: Don't fake tool windows, only the X11
11192 backend manages toolwindows manually.
11194 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11196 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11197 ObjectDisposedException.
11199 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11201 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
11202 in OnLoad should not have any effect. [Fixes bug #82470]
11204 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11206 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11207 paint for controls that create their own ToolTipWindow instead of
11208 going through ToolTip.
11210 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11212 * ToolTip.cs: Make Hide internal instead of public to match MS API.
11214 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11216 * ListViewGroupCollection.cs: Use generic List instead of an
11217 ArrayList, since this collection is 2.0 only.
11219 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
11221 * ToolTip.cs (Hide): Made public to make the build work (should
11222 this not be public?).
11224 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11226 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11228 * ToolTip.cs: Add an internal Visible property to facilitate transition.
11230 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
11232 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11233 PopupEventHandler.cs: Make these internal for 1.1.
11234 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11235 use ToolTipWindow internals.
11236 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
11237 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11239 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11241 * X11Dnd.cs: Add a null check.
11243 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11245 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11246 nothing else succeeds. Fixes #82453.
11248 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11250 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11251 rectangle if we're painting to another window than the one the paint
11252 message was generated on. Simplify the code somewhat, which makes
11253 PaintEventEnd also simpler.
11255 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11257 * Control.cs: When changing parent of a form, let the form decide whether
11258 XplatUI.SetParent should be called or not.
11259 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11260 recreating the handle. If the new parent's handle isn't created, don't
11261 recreate our handle, just destroy it. CreateParams: Check if the
11262 parent's handle is created before fetching it.
11264 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11266 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11267 Update calls to PaintEventStart/End to take a Message argument.
11268 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11269 take a Message argument.
11270 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11271 Message argument, and handle the case where we don't paint to the window
11272 for which the paint message was generated.
11274 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11276 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11277 Marshal.GetLastWin32Error. Plug nasty memory leak in
11278 PaintEventStart/End, we were creating a DC we weren't releasing.
11280 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11282 * ListView.cs: Add Groups support in Details view. Also have a small
11283 method to do the layout of the group header. Don't use a separate
11284 method to do the groups calculation in Icons view, since our methods
11285 are now a little simpler.
11286 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11288 * ThemeWin32Classic.cs: Likewise.
11290 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
11292 * Application.cs: Add FilterMessage method and rework our message loop
11295 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
11297 * Application.cs: Add some methods and stub a few methods that are
11298 pretty much never used.
11300 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
11302 * TreeNode.cs: Add some serialization methods.
11304 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11306 * ListView.cs: In ListViewItemCollection have a
11307 'is_main_collection' field to not modify ListViewItem.ListView
11308 when using it as ListViewGroup.Items (and not ListView.Items)
11309 and also don't modify selection state (.Net behaviour).
11310 Instead, set group for items contained in a ListViewGroup.Items collection.
11311 * ListViewItem.cs: Simplify some code in Group setter.
11312 * ListViewGroup.cs: use the new .ctor to pass the current instance
11313 to the ItemsCollection.
11314 * ListViewGroup.cs: Set the ListView property for ListViewGroup
11315 instances when adding/removing. Also make Remove use RemoveAt, which
11316 should perform better.
11318 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
11320 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11321 that crept into the 1.1 profile.
11323 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
11325 * ToolBarButton.cs: Implement ImageKey.
11327 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
11329 * ToolBar.cs: Implement ScaleControl/ScaleCore.
11331 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11333 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11334 created, it might have gotten destroyed since we last checked. Fixes
11337 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
11339 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11340 tooltip will hide when mouse is moved off the control.
11343 2007-08-11 Andreia Gaita <avidigal@novell.com>
11345 * WebBrowserBase.cs, WebBrowser.cs: add implementation
11346 using Mono.Mozilla for loading and navigating webcontrol
11348 The initial implementation was done on
11349 /trunk/mozembed/tests/browser , and copied here.
11351 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
11353 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11354 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11356 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11358 * DataGridView.cs: Add support for an editing row. Fixes #82226.
11359 RowTemplateFull: throw an exception if a column doesn't have a template.
11360 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11361 add the row just before it.
11362 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11364 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11365 DataGridView field to be able to reach the grid's editing row.
11367 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
11369 * ToolTip.cs: If the control's handle hasn't been created when it has a
11370 tooltip set on it, don't check to see if we need to show the tooltip. This
11371 check was causing the control's handle to be created.
11374 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
11376 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11378 Handle Not Created -1 0
11382 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
11384 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11387 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
11389 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11390 * ToolTip.cs: Implement some properties and owner draw.
11392 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11394 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11395 show them again, since setting visibility causes a paint, causing an
11396 endless loop (instead use a temporary and set it all when it's known if
11397 they should be shown or not). Fixes #79265.
11399 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11401 * DataGridView.cs: Only do a full column/row selection if a header was
11402 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11403 isn't pressed, deselect everything before selecting something.
11405 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11407 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11408 behaviour according to bug #81075 - they are returned in the order they
11409 are selected. Fix HitTest to check if the point is within any of the
11410 headers. Allow for row/column selection when in ColumnHeader or
11411 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11412 the row and column to call when their selected state changes, and
11413 updated selected_[rows|columns] whenever SetSelected* is called.
11414 * DataGridViewBand.cs: Initialize isRow correctly. Call
11415 SetSelected[Row|Column]CoreInternal when the selected state changes, and
11416 add a SelectedInternal to avoid StackOverflows.
11417 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11418 ReadOnly no matter what.
11419 * DataGridViewSelectedColumnCollection.cs,
11420 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11421 the items in reverse order (just as MS does...)
11423 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
11425 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11426 itself, not part of a mnemonic. [Fixes bug #82378]
11428 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11430 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11431 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11432 the DGV, the column, the row, or the cell itself is readonly.
11434 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
11436 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11437 OSVersion.Platform.
11438 * FileDialog.cs: Same.
11439 * TextRendered.cs: Same.
11440 * FolderBrowserDialog.cs: Same.
11441 * TextBoxBase.cs: Same.
11442 * Application.cs: Same.
11443 * Cursors.cs: Same.
11444 * ThemeClearLooks.cs: Same.
11446 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
11448 * XplatUI.cs: Added RunningOnUnix property to be used by controls
11449 instead of duplicating these checks everywhere.
11450 * FileDialog.cs: Use case-insensitive comparison for populating the
11451 DirComboBox when not running on unix. Fixes bug #82385.
11452 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
11455 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11457 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11458 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11459 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11460 cell and column selection with ctrl and shift pressed. Call the correct
11461 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11462 the corresponding virtual method (PaintBackground to paint background,
11464 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11465 either the column, row or the cell itself is selected.
11466 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11468 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11469 here. When the row is selected, don't select all cells. Each cell now
11470 queries the row to see if the row is selected.
11472 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11474 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11477 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11479 * ListView.cs: In ListViewItemsCollection check that owner is
11480 not null before trying to access it (this happens quite often
11481 using Groups). Also don't duplicate calls by calling CollectionChanged
11484 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
11486 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
11487 when we are dismissed to clear keyboard mnemonics.
11488 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
11489 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11490 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11491 was activated by keyboard or the OS tells us to always draw them.
11492 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11493 [Fixes bugs #82376, #82377]
11495 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
11497 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
11498 shot at having it because Alt was pressed.
11499 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11500 the first real menu item.
11501 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11502 a mnemonic if Text is null.
11505 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11507 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11508 search do check whether the item is already contained in the
11509 collection or not; instead check if the owner of the item is the same
11510 as ours. Also, remove a redundant check in the same method.
11512 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
11514 * Control.cs: Allow the clip region to be set back to null.
11515 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11516 [Fixes button still showing up in bug #82370 when Show Through is turned off]
11518 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11520 * GridEntry.cs: Add a null check.
11521 * PropertyGrid.cs: When checking for existing grid entries, ignore category
11522 entries. Fixes #82297.
11524 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
11526 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11529 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
11531 * ListBox.cs: Implement ScaleControl.
11533 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11535 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11537 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11538 parent has a menu strip. Fixes #81689.
11540 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11542 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11543 moments, so apply some fuzzy logic to determine if the mouse is still
11544 inside a control or not. Fixes #82288 (for the third time).
11546 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11548 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11549 Don't create the child if it has been disposed already (may happen if
11550 the user closes the form the Load event).
11552 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11554 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11557 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11559 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11560 might call us after we've been destroyed, in which case our own private
11561 parent field is null. Fixes #82326.
11563 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
11565 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11566 check for setting the dropdown's owner.
11568 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
11570 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11571 before removing system menu items.
11573 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
11575 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11577 * MdiControlStrip.cs: Added. These are the menu items used in mdi
11579 * ToolStrip.cs: Add a null check to mnemonics.
11580 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11582 [Fixes most of bug #81689]
11584 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11586 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11588 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11590 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11592 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11594 * DataGridViewCell.cs: EditType: returns
11595 DataGridViewTextBoxEditingControl always.
11597 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
11599 * TextRenderer.cs: Remove the LineLimit string format flag from the
11600 DrawString fallback method so that things like buttons that aren't
11601 tall enough to draw a full line will still draw part of the text.
11602 [Fixes part of bug #82272]
11604 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11606 * DataGridView.cs: Implemented AutoResizeColumn(s).
11607 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11608 according to the Alignment.
11609 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11610 Implement alignment and padding when painting.
11611 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11613 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11615 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11618 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
11620 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11623 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
11625 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11626 hide GetPreferredSize from public API.
11627 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11628 * ToolStripItem.cs: Stub out drag and drop methods and events.
11629 * ToolStripManager.cs: Stub out Save/LoadSettings.
11630 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11631 * ToolStripPanel.cs: Fix corcompare error.
11632 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11633 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11634 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11636 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
11638 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11639 bounds height instead of PreferredHeight. Puts things back the way
11640 they were for height while still fixing the width. Fixes broken unit
11643 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11645 * Binding.cs: Implement 2.0 constructors and add a null check.
11647 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11649 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11650 and fix row index (off by one).
11652 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11654 * PropertyGridView.cs: Remove debug output.
11656 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11658 * Control.cs: We need to reset the is_created flags when the handle is
11659 destroyed. Fixes #82187.
11660 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11661 client coordinates if the window doesn't have a parent.
11662 Win32GetParent returns the parent or the owner, and for top-level
11663 windows with no parent (but with an owner) we were calculating the
11664 location from the location of the owner.
11665 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11666 form has been disposed.
11667 * MdiClient.cs: Add a null-check.
11669 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
11671 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11672 actually do auto-sizing. Override the internal GetPreferredSizeCore
11673 so we can provide an implementation that returns the current width
11674 and preferred height. Allows anchor = right to work with TextBox 2.0.
11677 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11679 * ListView.cs: Add support for navigating items in Groups mode, by
11680 creating a big matrix containing all rows and cols of all groups. When
11681 are in other mode than Details, pressing Up should have a similar
11682 behaviour as that one of Down (moving to the next available column if
11683 current one doesn't have an item in the requested row). Also, don't
11684 proceed to use groups if ShowGroups is false.
11685 * ListViewGroup.cs: Add an internal int field to store the starting
11686 row of the group (used by the big matrix used for navigating the
11688 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11691 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
11693 * ToolStripDropDown.cs: When we do Show, start with the
11694 DefaultDropDownDirection, but if our popup menu is going to off-screen,
11695 modify the direction to keep it on screen. [Fixes bug #82210]
11697 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
11699 * FileDialog.cs: Accept any FilterIndex value, and store it
11700 unmodified. When FilterIndex is less than 1, or greater than number
11701 of filters, then default to first filter. Only add filter extension to
11702 file if user did not specifiy an extension. When type of dialog is
11703 OpenFileDialog and DefaultExt is set, then only use filter extension
11704 if: CheckFileExists is true and no file wih the default extension
11705 exists, or CheckFileExists is false, and user specified file does not
11706 exist. When CheckFileExists is true, then add first extension of
11707 selected filter that matches existing file. Perform checks for
11708 existing file, overwrite and create after extension has been added to
11709 file name. When CheckFileExists is true and type is SaveFileDialog,
11710 then only consider first filter extension if DefaultExt is set.
11711 When CheckFileExists is true, then ignore DefaultExt if file with that
11712 extension does not exist. Also perform check for existing file when
11713 type is SaveFileDialog. Changed some field to constants.
11715 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11717 * ListView.cs: Take into account the region used by header
11718 control when doing the vertical scroll (this way we invalidate
11719 the precise area, and don't get any dirty one).
11721 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
11723 * FileDialog.cs: Check for valid filterIndex on button open/save.
11726 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11728 * ListView.cs: Update some layout calculations in details view
11729 and clean the code in a pair of assignations.
11731 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11733 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11734 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11735 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11736 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11738 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11740 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11741 performance of thread-safe Graphic methods. (Thanks rolf!)
11743 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11745 * ListView.cs: When doing the layout calculations, don't calculate
11746 scroll bars before handle is created. This is unnecessary and also
11747 calculating them before handle creation item causes a number of random
11748 bugs (which begin to appear after Chris' big patch for handle creation
11751 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11753 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11754 for things that don't have a Graphics object. Currently, things just use
11755 the static Hwnd.bmp_g which is not thread safe.
11757 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11759 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11760 dialog. Fixes #82187.
11762 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11764 * DataGridViewElement.cs: Initialize state.
11765 * DataGridView.cs: Forward a few Mouse events to cells. Add
11766 GetRowInternal and GetCellInternal that doesn't unshare rows.
11767 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11768 don't use the index, but look it up. Add
11769 DataGridViewControlCollection.RemoveInternal to remove controls
11770 that Remove won't remove (scrollbars, edit control).
11771 * DataGridViewColumn.cs: Initialize State correctly.
11772 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11773 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11775 * DataGridViewRowCollection.cs: Implemented shared rows.
11776 * DataGridViewRow.cs: Throw exceptions as MS do.
11777 * DataGridViewCell.cs: A few properties are implemented by a
11778 Get<Property> method, so move implementation there and remove the
11779 NIEX in the method. Add a bunch of OnXInternal that DataGridView
11780 calls when necessary.
11781 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11782 complicates matters.
11783 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11786 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11788 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11789 the children controls. Instead, we will just set up the proper docking for the
11790 children controls so we don't have to worry about it. [Fixes bug #82188]
11792 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11794 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11795 canceling and correct Before/AfterLabelEdit properties as layed out in bug
11796 81847. [Fixes bug #81847]
11798 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11800 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11801 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
11802 an explicit size based on the design-time size of the text. Since our fonts
11803 may not match this explicit size, we tend to cut off the ends of people's labels.
11805 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
11807 * Menu.cs: Add some missing methods to MenuItemCollection.
11809 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11811 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11812 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11813 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11814 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11815 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11816 * DataGridViewElement.cs: State defaults to Visible.
11817 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11818 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11820 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11822 * Control.cs: Minor 1.1 corcompare fix.
11824 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11826 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11827 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11829 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11831 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11832 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11833 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11834 DataGridViewSelectedColumnCollection.cs,
11835 DataGridViewSelectedRowCollection.cs: Corcompare work.
11837 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11839 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
11840 it is autoset by VS2005 designer and the effect is barely noticeable.
11842 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11844 * TreeView.cs: Implement HitTest.
11846 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11848 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11849 manually adding and removing the control from the Controls
11851 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11852 EditingControlInternal property that tracks the editing control.
11853 Always keeping the scrollbars in the Controls collection, as MS
11854 testing confirms is the right behaviour.
11856 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11858 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11859 according to MSDN and new test.
11861 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11863 * TreeNode.cs: Implement ToolTipText.
11864 * TreeView.cs: Implement tooltips, NodeMouse* events.
11866 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11868 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11870 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11872 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11873 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11875 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
11877 * Control.cs, Form.cs, ContainerControl.cs,
11878 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
11879 for misc properties.
11881 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11883 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11884 * TreeView.cs: Implement StateImageList.
11886 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11888 * Form.cs: Don't check if the current form is the active form before
11889 activating it. Fixes #81904.
11891 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11893 * Form.cs: Don't check if the current form is the active form before
11894 activating it. Fixes #81904.
11896 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11898 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11900 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11902 * Form.cs: Don't try to position the form after loading if the form was
11903 disposed. Fixes #81969.
11905 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11907 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11908 properties. Had to change ToolBar into ToolStrip, which required a
11911 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11913 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11914 resized, fixes part of #79829 (vertical lines in toolbar).
11915 PropertyGrid: Refactored Populate* to something that's easier to
11916 follow at least for me, as well as splitting it up into several new
11917 methods, required to update only subitems when something has
11918 changed by a popup editor or listbox. Don't use events to check
11919 when any values are changed, since the events are unreliable (we're
11920 changing the objects the events are registered with, and if the
11921 event handling requires the objects to be immutable (objects stored
11922 in hashtables for instance), the events will never be raised).
11923 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11924 everytime we change a value, since events are unreliable.
11925 DropDownButtonClicked: For the same reason don't compare objects to
11926 check if it has changed or not, it would require all objects to
11927 derive Equals. Fix dialog location on windows, MS is doing weird
11928 things when creating parented forms.
11929 * GridEntry.cs: Add a SelectedObject setter.
11931 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11933 * TreeNode.cs: Add some corcompare attributes.
11934 * TreeNodeCollection.cs: Implement 2.0 stuffs.
11935 * TreeView.cs: Implement some 2.0 stuffs.
11937 2007-07-18 Andreia Gaita <avidigal@novell.com>
11939 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11942 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11944 * ListBox.cs: Implement custom tab offsets.
11946 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11948 * ToolStripContentPanel.cs: Support System renderer.
11949 * ToolStripControlHost.cs: Set RightToLeft to default to No.
11951 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11953 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11955 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11957 * CheckBox.cs: Chain TextAlign to base implementation instead of
11958 maintaining another one.
11960 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11962 * ButtonBase.cs: Fix an incorrect string constant.
11964 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11966 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11967 of creating one for measuring strings.
11969 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11971 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
11972 Implement MaxItemSize.
11974 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11976 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11977 for DeviceContext. Instead, use the static one available in Hwnd.
11978 Informal tests show this saves about 500k on formtest.exe.
11980 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11982 * ContainerControl.cs: Implement 2.0 AutoScaling.
11984 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11986 * ComboBox.cs: Work around bug #82120 (bug in mcs).
11988 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11990 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11991 Darken the focus color.
11993 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11995 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11997 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11998 X, Y instead of a rect for drawing text.
11999 - For ControlPaint.DrawCheckBox, center the check a little better when the
12000 checkbox is odd width. When drawing a flat checkbox, use a white background
12001 when state != inactive.
12002 [Fixes bugs #82097, 82100]
12004 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
12006 * ListControl.cs: When changing CurrencyManager, disconnect event
12007 handlers from previous one. Fixes bug #81771. Code formatting.
12009 2007-07-15 Andreia Gaita <avidigal@novell.com>
12011 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12012 full preview invalidation from layout invalidation, and only invalidate
12013 the layout when setting zoom or other properties. Invalidation should
12014 always be done even when resetting properties with the same values as
12015 what is there. Fixes #81744 and #79830.
12017 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12019 * ListView.cs: Implement initial support for Groups. Split some of the
12020 LayoutIcons code to render a partial list of the items (needed by
12021 items contained in ListViewGroup instances). Let the
12022 ListViewItemsCollection.ListView property be modifiable (needed when
12023 using Groups, too).
12024 * ListViewGroup.cs: Use a Bounds property rather than a Location
12025 one. Also invalidate the bounds when they get changed.
12026 * ThemeWin32Classic.cs: When drawing items, also draw the group header
12027 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12030 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12032 * ListView.cs: When space gets pressed and CheckBoxes is true,
12033 don't invoke the Begin and EndUpdate methods. We are generating
12034 a redraw of the entire control without need to do so.
12036 2007-07-13 William Holmes <billholmes54@gmail.com>
12038 * Control.cs: Changing logic in FindFlatForward and
12039 FindFlatBackward to handle multiple Controls with
12041 This fixes bug 81687.
12043 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
12045 * OSFeature.cs: Enable IsPresent.
12047 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12049 * Control.cs: Don't do anything in WmShowWindow if the control has been
12050 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12051 control is created, put on a form, the control is disposed (the
12052 form is never shown), and then we get a MapNotify, triggering a
12054 * Form.cs: Exclude the current form when sending Deactivate to all
12056 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12057 there was a race condition because assigning the handle raises
12058 events, we can get more messages, therefore trying to assign the
12059 handle again, which would fail if any of those event handlers
12060 closed/disposed the control.
12062 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12064 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12066 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12068 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12069 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12071 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12073 * DateTimePicker.cs: If there's no part format specifier, return an
12076 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12078 * FlatButtonAppearance.cs: Throw NotSupportedException for a
12079 Transparent BorderColor.
12081 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12083 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12084 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12085 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12086 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12087 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12088 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12089 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12091 * X11Structs.cs: Remove warnings, add ToString implementations.
12093 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12095 * XplatUIX11.cs: Translate min/max size according to the actual min/max
12096 size, and not the current size. Fixes #81798.
12098 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12100 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12101 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12102 to the control yet).
12104 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12106 * PropertyGridTextBox.cs: Add a method that sends any forwarded
12107 mousedowns to the contained textbox.
12108 * X11Structs.cs: More ToString implementation.
12109 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12112 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12114 * PropertyGridView.cs: Add a null-check, fixes a few tests.
12116 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
12118 * TableLayoutPanelCellPosition.cs: TypeConverter.
12120 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12124 * PropertyGridTextBox.cs: Propagate any color changes to all contained
12126 * PropertyGridView.cs: A few color fixes.
12128 2007-07-10 Jackson Harper <jackson@ximian.com>
12130 * TextControl.cs: Remove some old unused text formatting stuff.
12132 2007-07-10 Jackson Harper <jackson@ximian.com>
12134 * TreeView.cs: Update full row select invalidation to match the
12135 newer DrawSelection... method.
12136 - Make sure to invalidate the entire width when selecting a new
12137 node, if we have full row selection enabled.
12139 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12141 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12142 display of properties again.
12144 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
12146 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12147 to existing collections.
12149 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12151 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12152 that changed between 1.1 and 2.0.
12154 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12156 * PowerStatus.cs: Added. This is just a data class, it is filled
12157 in by SystemInformation.
12159 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12161 * Message.cs: Add op_Equality and op_Inequality.
12163 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12165 * MenuStrip.cs: Finish corcompare work.
12167 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12169 * LinkArea.cs: Add op_Equality and op_Inequality.
12171 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12173 * Application.cs: Add MessageLoopCallback delegate.
12175 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12177 * ListBox.cs: First set of 2.0 stuffs.
12179 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
12181 * Control.cs: Make an internal Height property we can override
12182 without messing up the public API.
12183 * ListBox.cs: Override HeightInternal to always return the size
12184 the user set. [Fixes bug #80466]
12186 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
12188 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12189 paint cell borders if we haven't calculated where they go yet.
12190 [Fixes bugs #82040 and #82041]
12192 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12194 * ListView.cs: In Details view, set the location of item_control
12195 in the (0,0) position (and the header_control is thus on the
12196 item_control). This way the Bounds of the Items are relative to the
12197 ListView control (before this, they had a Bounds value without the
12198 header_control offset, which wasn't matching .Net). Fixes #82004.
12200 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12202 * ListControl.cs: When DataSource is set to null, pass an empty
12203 array of object to SetItemsCore. This is done to clean the items
12204 in the ListContol children. Fixes #81788.
12206 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12208 * ListControl.cs: Add 2.0 stuffs.
12210 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12212 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
12213 Refresh is overkill for just about every repaint request.
12215 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12217 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12218 so remove my custom Get method and fix the property getter.
12220 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12222 * Label.cs: DefaultMargin for 2.0.
12224 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12226 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
12227 reported issue where other controls with mnemonics would steal strokes
12228 from a selected ComboBox.
12230 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
12232 * ScrollOrientation.cs: Make internal for 1.1.
12233 * ScrollEventArgs.cs: Add 2.0 stuffs.
12235 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
12237 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12238 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12239 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12241 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12243 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12245 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12247 * ListView.cs: Implement the so-incredibly broken 2.0
12248 VirtualItemsSelectionRangeChanged event.
12250 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12252 * ListView.cs: When enter is pressed and selection is non empty,
12253 an OnItemActivate event must be fired.
12255 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12257 * ListView.cs: Store the FocusedItem information as an
12258 int instead of a ListViewItem (needed by VirtualMode).
12259 Update the calls to SetFocusedItem to pass an index instead of
12261 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12262 the Focused state from the owner ListView.
12264 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12266 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12267 property. Also, invalidate previous focused item in the mentioned
12268 property (match .Net).
12270 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12272 * ListView.cs: Implement 2.0 FocusedItem property setter.
12274 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12276 * ListView.cs: Implement 2.0 TopItem property setter.
12278 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
12280 * StatusStrip.cs: The default renderer is System.
12281 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
12282 if the user specifies it.
12283 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12284 if we are ManagerRenderMode.
12285 * ToolStripMenuItem.cs: Calculate our text color better.
12286 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12287 from Professional to the base class based off working with the System renderer.
12288 * ToolStripSystemRenderer.cs: Added.
12290 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12292 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12294 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
12296 * ToolTip.cs: Implement 2.0 Tag property.
12298 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12300 * ListView.cs: Implement 2.0 HitTest methods.
12302 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12304 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12305 item is under the pointer or not (sugar). Also remove the TODO
12306 regarding to the cursor changes in OneClick activation.
12307 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12308 the subitems use the parent's HotFont if UseItemStyleForSubItems is
12309 true; otherwise don't show the underline style.
12311 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12313 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12314 the code to retrieve the item at position only one time. Also
12315 change cursor when Activation is ItemActivation.OneClick as well
12316 as invalidate the item if HotTracking is true (to show/hide the
12317 underline style). Add an internal HotItemIndex property to retrieve
12318 the current hot item's index.
12319 * ListViewItem.cs: Add an internal HotFont property to cache the
12320 font used when HotTracking is true and the pointer moves within the
12322 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12323 HotFont depending on the hot state of the item.
12325 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12327 * ListView.cs: Implement 2.0 HotTracking property.
12329 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
12331 * ToolStripControlHost.cs: If our hosted control never got created,
12332 don't try to dispose it. [Fixes bug #81909]
12334 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
12336 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12338 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
12340 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
12342 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12344 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
12346 * DrawListViewColumnHeaderEventArgs.cs:
12347 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12348 using the DrawText () methods.
12350 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
12352 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12353 background which got erased in my changes yesterday.
12355 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12357 * ListViewItem.cs: Actually set bounds for subitems in Details view
12359 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12360 can invoke from the owner draw routines if we need it. Also, add
12361 support for Owner draw in Details view.
12363 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
12365 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12366 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12367 ShowImageMargin setting, properly align text in a ToolStripLabel
12368 hosted on a ToolStripDropDown.
12370 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
12372 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12373 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12375 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12377 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12379 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
12381 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12382 location to match ToolStripMenuItems.
12384 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12386 * DrawListViewColumnHeaderEventArgs.cs:
12387 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12388 column headers in ListView.
12390 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
12392 * UserControl.cs: Implement AutoSize.
12394 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12396 * DrawListViewItemEventArgs.cs:
12398 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12401 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
12403 * ToolStripDropDownItemAccessibleObject.cs: Added.
12404 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12405 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12406 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12407 ToolStripTextBox.cs: corcompare work.
12409 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
12411 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12412 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12413 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12416 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
12418 * OSFeature.cs: Add IsPresent.
12419 * PrintPreviewControl.cs: Add RightToLeft.
12420 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12421 * SplitterPanel.cs: Add AutoSizeMode.
12423 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12425 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12426 * MdiClient.cs: Add 2.0 ScaleControl.
12427 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12428 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12430 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12432 * Form.cs: Implement some scaling methods, stub some RTL methods,
12435 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12437 * Control.cs: corcompare work.
12438 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12440 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12442 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12443 ControlPaint 2.0 stuffs.
12445 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12447 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12449 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12451 * UpDownBase.cs: Add 2.0 stuffs.
12453 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12455 * NumericUpDown.cs: Add 2.0 stuffs.
12457 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12459 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12461 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12463 * ErrorProvider.cs: Implement 2.0 stuffs.
12465 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12467 * DomainUpDown.cs: Implement 2.0 stuffs.
12469 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12471 * CheckedListBox.cs: Fix RefreshItems signature.
12473 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12475 * PictureBox.cs: Implement 2.0 stuffs.
12477 2007-06-12 Andreia Gaita <avidigal@novell.com>
12479 * TabControl.cs: Check if there are tabpages before checking
12480 the selected index - fix #81802 (font changes raise a ResizeTabs
12481 call on controls.add, which blew up nicely with no tabpages)
12483 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12486 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12488 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12491 * ListViewItem.cs: In VirtualMode the selection information
12492 resides in the ListView, rather than in the Items. Also, throw
12493 InvalidOperationExceptions when VirtualMode is being used and
12494 CheckedItemCollection is accessed.
12496 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12498 * ComboBox.cs: Add ScaleControl.
12500 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12502 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12504 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12506 * GroupBox.cs: Add 2.0 stuffs.
12508 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12510 * Panel.cs: Add autosize properties/event.
12512 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
12515 - When we remove a control, remove it from the collection before performing the layout.
12516 - Setup an internal property for explicit_bounds.
12517 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12518 - Perform a layout when we set a new AutoSizeMode.
12520 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
12522 * ScrollableControl.cs: Add 2.0 stuffs.
12524 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12526 * ScrollBar.cs: Add 2.0 stuffs.
12528 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12530 * Splitter.cs: Add 2.0 stuffs.
12532 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12534 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12535 to have BindingContext simply use base implementation.
12537 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12539 * ColumnHeader.cs: corcompare fix.
12541 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12543 * Button.cs: corcompare fixes.
12544 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12546 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12548 * Button.cs: Override GetPreferredSizeCore.
12549 * ButtonBase.cs: PerformLayout after changing properties that can affect
12550 AutoSize. Simplify some mouse/keyboard code.
12551 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12552 * MouseEventArgs.cs: Make Location internal for 1.1.
12553 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12554 * Theme.cs: Add CalculateButtonAutoSize.
12555 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12557 2007-06-05 Miguel de Icaza <miguel@novell.com>
12559 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12561 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12563 * ListViewItem.cs: We can't cache Bounds in VirtualMode
12564 since we can get different item instances every time we retrieve it.
12566 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12568 * ListView.cs: Work around for #81602, since an unkown an pretty
12569 infrequent condition appears only in some systems (old linux boxes, it
12572 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12574 * Button.cs: Completely reformat and a little refactor to bring
12575 this closer to Mono circa 2007.
12577 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12579 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12580 to be ButtonBase.Invalidate.
12582 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12584 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
12586 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12588 * ButtonBase.cs: Completely reformat and a little refactor to bring
12589 this closer to Mono circa 2007.
12591 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
12593 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12594 values for autosize. Fixes #80137.
12596 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
12598 * Control.cs: Don't perform layout when AutoSize changes.
12599 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
12600 directly when autosizing, use SetBounds with BoundsSpecified.None.
12601 Fixes unit tests my last commit broke.
12603 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
12605 * Control.cs: Perform layout when AutoSize changes.
12606 * Form.cs: Implement AutoSizing.
12608 2007-06-01 Chris Toshok <toshok@ximian.com>
12610 * DataGrid.cs: remove the XXX'ed check at the top of
12611 ProcessGridKey. fixes #80464.
12613 2007-06-01 Chris Toshok <toshok@ximian.com>
12615 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12616 adding idempotent (add/remove in Edit()), and also make sure we
12617 don't add it until after we set the text, so it's not tripped in
12618 Edit(). Fixes unit test regression.
12620 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
12622 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12623 change is user explicit, not when the layout engine moves stuff. Fixes
12624 anchoring to bottom and right. [Fixes bug #81790]
12626 2007-06-01 Andreia Gaita <avidigal@novell.com>
12628 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12630 2007-06-01 Andreia Gaita <avidigal@novell.com>
12632 * ContainerControl.cs:
12633 Fire enter event for common ancestor if it is not a ContainerControl.
12634 Send focus to the active_control and not the 'value', the active
12635 control might have been changed in one of the events fired.
12636 Definitely fixes #80159.
12638 2007-06-01 Andreia Gaita <avidigal@novell.com>
12640 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12642 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12644 * PropertyGrid.cs: Anchor the help description to the bottom of the
12645 help panel and refactor SelectGridItem into a
12646 SelectGridItemInternal that can be set to null (and update it to
12647 clear the help texts when it is set to null). Set root item to null
12648 when there's no SelectedObject. Fixes #80438.
12649 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12650 when we're recalculating after a resize (only).
12652 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12654 * ListView.cs: Implement 2.0 RedrawItems method.
12656 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12658 * ListControl.cs: Disconnect PositionChanged and ItemChanged
12659 handlers from previous data manager when DataSource is set to
12660 null. Fixes #81771.
12662 2007-05-31 Jackson Harper <jackson@ximian.com>
12664 * TextBoxBase.cs: These seem to be the correct values.
12666 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
12668 * FileDialog.cs: When close dialog with ok set filterindex using combobox
12669 value. Fixes #81784.
12671 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
12673 * Control.cs: Implement 2.0 scaling methods.
12675 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12677 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12678 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12681 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12683 * ProgressBar.cs: Implemented missing 2.0 members.
12685 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12687 * Control.cs: Corcompare issues.
12688 * MessageBox.cs: Implemented missing 2.0 functions.
12690 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12692 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12693 Implemented more 2.0 members.
12695 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12697 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12698 null (strange, but it seems to happen when running unit tests).
12700 2007-05-30 Andreia Gaita <avidigal@novell.com>
12702 * ContainerControl.cs: Set active_control even earlier, before
12703 firing any events, and undo it if validation returns false.
12705 2007-05-30 Andreia Gaita <avidigal@novell.com>
12707 * ContainerControl.cs: Raise Validation and Enter/Leave events
12708 even if there is no Form and set active_control earlier, just
12709 before firing Enter events (toshok's patches). Fixes #80647.
12711 2007-05-30 Jackson Harper <jackson@ximian.com>
12713 * TextControl.cs: Redid the pageup/pagedown a little to simplify
12714 things and fix bug #81311.
12716 2007-05-30 Jackson Harper <jackson@ximian.com>
12718 * X11Dnd.cs: Now that we have our own event loop, we need to
12719 cancel when we get a mouseup but it won't be accepted.
12721 2007-05-30 Chris Toshok <toshok@ximian.com>
12723 * DataGrid.cs (set_CurrentCell): guard against negative
12726 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12727 array index syntax instead of looping over the property names.
12729 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12730 and set IsInEditOrNavigateMode to false there.
12732 2007-05-30 Jackson Harper <jackson@ximian.com>
12734 * TreeView.cs: Make sure we don't get a bad visible order when
12735 setting to the top node. Fixes some misc crashing in
12738 2007-05-30 Andreia Gaita <avidigal@novell.com>
12740 * UserControl.cs: Add 2.0 AutoSizeMode
12742 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12744 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12746 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12748 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12749 lines. Fixes #80285.
12751 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12753 * DataGridColumnStyle.cs: Add char trimming column header text format.
12755 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12757 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
12760 2007-05-29 Jackson Harper <jackson@ximian.com>
12762 * TreeNode.cs: Fix off by one on calculating whether or not a node
12765 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
12767 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12768 * ScrollableControl.cs: Force an UpdateDistances when we move the
12772 2007-05-29 Andreia Gaita <avidigal@novell.com>
12774 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12775 update the page setup screen.
12777 2007-05-29 Andreia Gaita <avidigal@novell.com>
12779 * PageSetupDialog.cs: Fix landscape mode.
12781 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12783 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12784 IconSizeHorizontalSpacing.
12786 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12788 * ListView.cs: The declaration of prev_tooltip_item should be inside
12789 a NET_2_0 conditional (avoid a warning).
12791 2007-05-28 Andreia Gaita <avidigal@novell.com>
12793 * PageSetupDialog.cs: Implement PrintPreview control to display
12794 the preview thumbnail. Change unit conversion to use
12795 PrinterUnitConvert methods.
12797 Note: there is a huge bug in ms.net where the default margins are
12798 interpreted as centimeters (?), when in fact they are set in inches. When
12799 loading the page setup dialog initially (ms.net), the default margins
12800 are set to 1 inch, and the dialog shows them with value 10, when in fact
12801 it should be 25 (properly converted). Our dialog doesn't have this bug.
12803 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
12805 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12807 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12810 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12813 2007-05-28 Andreia Gaita <avidigal@novell.com>
12815 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12816 an IntPtr on csc (it builds fine on mcs, could it be a compiler
12817 bug?), convert the ptr to Int32 first.
12819 2007-05-28 Jackson Harper <jackson@ximian.com>
12821 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12822 recieved, we will exit the dnd tracking loop.
12824 2007-05-28 Jackson Harper <jackson@ximian.com>
12826 * X11Dnd.cs: Keep tracking until the xdnd finished event is
12827 recieved. TODO: I should probably stick a timer on the dropped
12828 event, and finish the drag if the XDND Finished event never shows
12829 (because some apps don't seem to send it).
12831 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
12833 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12836 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12838 * MonthCalendar.cs: Only mark the keypresses we actually handle as
12841 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12843 * MonthCalendar.cs: Set the size after initializing all the relevant
12844 variables. Fixes #81742.
12846 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12848 * KeyEventArgs.cs: Fix typo.
12850 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
12852 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12853 to match MS. Fixed MinDate to only accept value less than or equal
12854 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12855 Removed TODO's that are now verified by unit tests.
12857 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
12859 * TreeNodeCollection.cs: Minor corrections to exceptions to match
12862 2007-05-25 Jackson Harper <jackson@ximian.com>
12864 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12865 it's own message loop.
12866 * XplatUIX11.cs: Remove some of the dnd hooks
12868 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
12870 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12871 instead of MinimizedWindowSize.
12873 2007-05-25 Jackson Harper <jackson@ximian.com>
12875 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12877 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12879 * KeyEventArgs.cs: Added SuppressKeyPress.
12880 * Control.cs: Added support for SuppressKeyPress.
12882 2007-05-24 Andreia Gaita <avidigal@novell.com>
12884 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12885 problems with PieChart. suppress_validation should not be a counter,
12886 if there are several BeginInit calls, the first EndInit will
12887 activate validation. Fix exceptions thrown by set_Value.
12888 * UpDownBase.cs: ValidateText only if it's the user editing it.
12890 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12892 * ListControl.cs: FilterItemOnProperty should return the filtered
12893 item proeprty even if DataSource is null. The same applies for
12894 GetItemText. Fixes #80427.
12896 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12898 * Control.cs: If a control doesn't have a parent when it's Dock is
12899 set, but it has children, it needs to do a layout. Fixes some nested
12900 controls issues. [Fixes bug #81199]
12902 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12904 * ComboBox.cs: If there are few items in the drop down list, make it
12905 the exact size the items need, no bigger. Fixes #81612.
12907 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12909 * Application.cs: When we have captured the keyboard for a menu,
12910 check for mouse down events in case we need to close the menu.
12911 * Control.cs, Form.cs: Remove mouse down checks for menus.
12913 2007-05-24 Jackson Harper <jackson@ximian.com>
12915 * TextControl.cs: Handle tabs in non multiline mode a little
12918 2007-05-24 Jackson Harper <jackson@ximian.com>
12920 * TextControl.cs: We need to manually break apart tabbed text and
12921 move the tabs, since the system.drawing tabbing mechanism relies
12923 * TextBoxBase.cs: Move the caret properly when the user enters a
12926 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12928 * ContainerControl.cs: Don't check CanSelect before calling
12930 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
12931 release a KeyboardActive on click if it's not ours.
12933 2007-05-23 Andreia Gaita <avidigal@novell.com>
12935 * ColumnHeader.cs: Add TypeConverter
12937 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12939 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12941 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12943 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12945 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12947 * LinkLabel.cs: Implement public Padding property.
12949 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12951 * LinkLabel.cs: Implement public FlatStyle.
12953 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
12955 * Control.cs: Apply patch from George to call parent.PerformLayout
12956 when Visible is changed. [Fixes bugs #81118, 81718]
12958 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12960 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12962 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12964 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12966 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12968 * ContextMenu.cs: Implement Collapse.
12970 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12972 * ToolBarButton.cs: Implement Name.
12974 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12976 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12977 use current_item, it prevents some NRE. Fixes #81675.
12979 2007-05-22 Andreia Gaita <avidigal@novell.com>
12981 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12982 without updating the text.
12984 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12986 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12987 without calling DeleteObject. [Should fix bug #81709]
12989 2007-05-22 Jackson Harper <jackson@ximian.com>
12991 * RichTextBox.cs: Set the line endings correctly, when flushing
12994 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
12996 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12997 {Width=0,Height=0}.
12999 2007-05-22 Jackson Harper <jackson@ximian.com>
13001 * TreeView.cs: Setting top with a null node should set to the very
13004 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13006 * Form.cs: ShowDialog: destroy the handle when message loop is
13007 finished, matches MS behaviour. Refactor parts of WmClose into
13008 RaiseCloseEvents, that only raises events if they haven't already
13009 been raised. Fixes #81688 and #81521.
13010 * Application.cs: Don't call close on the form when exiting a modal
13011 loop, it will raise all the (Form)Closed/Closing events again if
13012 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13013 which doesn'r raise any events it they have been raised before.
13015 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13017 * Control.cs: Add OnPrint.
13018 * ToolStrip.cs: Add GetChildAtPoint.
13019 * ToolStripContainer.cs: Add OnRightToLeftChanged.
13020 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13022 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13024 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
13026 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13028 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13029 isn't visible anymore. Fixes #81651.
13031 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13033 * Control.cs: WmShowWindow: Update children's z-order after setting
13034 their parent. SetParent may show the window, thereby corrupting
13035 z-order, since the window will be shown on top.
13036 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13037 multiple (and redundant) WM_SHOWWINDOW messages.
13038 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13039 event has already been raised.
13040 * Form.cs: Change is_changing_visible_state to a counter, since
13041 SetVisibleCore can be called recursively. CreateHandle: when
13042 creating mdi children, send (De)Activated events.
13043 * MdiClient.cs: Update use of is_changing_visible_state.
13044 * Application.cs: OnThreadException: Surround exception handling with
13045 try/finally to ensure we always reset the error-handling state
13048 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13050 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13053 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13055 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13056 SmallIcon views, now that we have a standarized horizontal spacing.
13058 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13059 4, just like the other views (Match .Net).
13061 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
13063 * Control.cs: Delay calculating anchor distances until we actually layout.
13064 Always query the WM for the actual size and location it put us at instead of
13065 only when we send negative values.
13066 [Fixes bugs #81694, 81695]
13068 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13070 * Application.cs: Avoid a possible stack overflow when trying to exit
13073 2007-05-19 Marek Safar <marek.safar@gmail.com>
13075 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13078 2007-05-19 Andreia Gaita <avidigal@novell.com>
13080 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13081 * NumericUpDownAcceleration.cs,
13082 NumericUpDownAccelerationCollection.cs: Added 2.0
13085 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
13087 * RichTextBox.cs: Recalculate the document after the ScrollBars
13088 property is changed. Fixes bug #81681.
13090 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13092 * DataObject.cs: Implement 2.0 methods.
13094 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13096 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13097 in the center of the checkbox, not in the left-top corner.
13100 2007-05-18 Jackson Harper <jackson@ximian.com>
13102 * RichTextBox.cs: Recalculate the document after the scrollbars
13103 property is changed.
13104 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13107 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13109 * CreateParams.cs: Make HasWindowManager marginally faster.
13110 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13111 into Hwnd so that other drivers can use it as well.
13112 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13113 the default location from Hwnd. Fixes MDI client windows always
13114 showing up at (0,0) in Windows (Win32 won't set the default
13115 location since the window styles aren't correct).
13117 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
13119 * TreeView.cs: Modified DoubleBuffered to just use the base
13122 2007-05-18 Jackson Harper <jackson@ximian.com>
13124 * TreeView.cs: Set the top node to the last child node when
13126 - When we get focus, if there is no selected node, use the top
13129 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13131 * KeysConverter.cs: Add CanConvertTo.
13132 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13133 * LinkConverter.cs: Added.
13135 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13137 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13138 it prevents error when file dont have write access. Fixes #81669 and #81667.
13140 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13142 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
13143 button text. Fixes #79640.
13145 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13147 * Control.cs: According to MSDN controls created in the designer theres
13148 keyboard accelerators visible by default. So included check for design
13149 in ShowKeyboardCuesInternal.
13151 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13153 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
13154 text. Fixes #81621.
13156 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
13158 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13159 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
13161 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13163 * Control.cs: Finish implementation of UI State using WmChangeUIState
13164 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13165 in some controls to check for show_keyboard_cues to draw accell keys "_".
13167 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13169 * ListBox.cs: When calculating the horizontal scrollbar
13170 in single column mode, don't use values less than 0 for
13171 Maximum. Fixes #81474.
13173 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13175 * ListBox.cs: Throw the some missing exceptions in
13176 ListBox.ObjectCollection methods.
13178 2007-05-17 Jackson Harper <jackson@ximian.com>
13180 * TextBoxBase.cs: Recalculate the document when the word wrap
13181 value has changed. This fixes 81488.
13183 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
13185 * Clipboard.cs: Implement missing GetText overload.
13187 2007-05-17 Chris Toshok <toshok@ximian.com>
13189 * Control.cs (CheckDataBindings): remove the binding_context arg
13192 * CurrencyManager.cs (OnItemChanged): fix this now that
13193 BindingManagerBase is fixed. also remove the comment telling where
13194 the fix should go. We set transfering_data to true/false around
13195 the call to PushData to keep UpdateIsBinding from being called.
13196 (ListChangedHandler): remove the extra OnMetaDataChanged call for
13197 PropertyDescriptorAdded in the 1.1 case. The extra call is
13198 actually generated by System.Data generating 2 metadata changed
13199 events of its own per column add. The fix should go there. Add a
13200 comment to that affect in our test's Assert.Ignore.
13202 * BindingManagerBase.cs: Rework PullData and PushData slightly.
13203 we keep a boolean flag (transfering_data) that keeps us from
13204 calling UpdateIsBinding multiple times if we re-enter either of
13207 * ControlBindingsCollection.cs (AddCore): remove the
13208 binding_context arg to binding.Check.
13210 * Binding.cs (IsBinding): don't check if we're binding here, just
13211 return our cached value. we update it in UpdateIsBinding.
13212 (Check): don't take the binding_context arg, we'll just use our
13213 control's. Also, for some reason MS doesn't use the data member
13214 field when getting the bindingmanager for this binding. it just
13215 uses the datasource. Make this method callable multiple times,
13216 and only do the is_null_desc stuff if manager.Position != -1 (so
13217 we don't get an exception accessing manager.Current).
13218 (UpdateIsBinding): move the code from IsBinding here.
13219 (PositionChangedHandler): call Check here to we can initialize
13220 things that require a non- -1 position.
13222 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13224 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13227 2007-05-17 Andreia Gaita <avidigal@novell.com>
13229 * TabControl.cs: Add 2.0 methods and events, including
13230 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13231 * TabPage.cs: Add 2.0 methods
13233 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
13235 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13236 keyboard_cues is properly handled by message method.
13238 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
13240 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13242 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
13244 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13246 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
13249 - WmUpdateUIState added to handle state changes, it make call to
13250 OnChangeUICues event.
13251 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13254 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
13256 * ImageKeyConverter.cs: Added.
13257 * TreeViewImageKeyConverter.cs: Added.
13259 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13261 * ToolTips.cs: Update Text if SetToolTip is called for a control
13262 already showing the tooltip, as well as restarting its timer; show
13263 tooltip if we are inside the control bounds by the time of calling
13264 SetToolTip. Inside ShowTooltip remove the check to not show the
13265 tooltip again for the active control (it is allowed by .Net to
13266 show the tooltip on the same control multiple times).
13268 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13270 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13272 2007-05-16 Andreia Gaita <avidigal@novell.com>
13274 * ContainerControl.cs: only process tab key if there are no
13275 modifier keys present, otherwise the control does the
13276 tab processing, if it needs to. Fixes #81622
13277 * TabControl.cs: Fixes calculation for which tab to select on
13280 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13282 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13284 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
13286 * Control.cs: Make IsInputCharInternal to allow controls to
13287 override it and still match MS API.
13288 * TextBoxBase.cs: Override IsInputCharInternal and always
13292 2007-05-15 Jackson Harper <jackson@ximian.com>
13294 * TextBox.cs: Disable some of the menu options when using a
13297 2007-05-15 Jackson Harper <jackson@ximian.com>
13301 * RichTextBox.cs: Some new 2.0 methods
13303 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
13305 * FileDialog.cs: On 1.0 profile, do not support multidotted
13308 2007-05-14 Jackson Harper <jackson@ximian.com>
13310 * TextBoxBase.cs: Implement some of the new 2.0 methods.
13311 * RichTextBox.cs: We need to override these methods on 2.0.
13312 * MaskedTextBox.cs: These are implemented now
13313 * TextControl.cs: This was off by one.
13315 2007-05-14 Jackson Harper <jackson@ximian.com>
13317 * TextControl.cs: Because the line endings are including in the
13318 text, we don't need to add them in anymore.
13320 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13322 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13323 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13325 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13327 * ToolBar.cs: Adjust size to default size when button theres no text and
13328 image, it fixes remaining issues from #81524.
13330 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13333 - When not flat call redraw to recalculate sizes on creare handle to match
13335 - Revert 77220 because it causes some regressions in toobar
13338 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13340 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13341 now actually enters a usable state.
13343 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13345 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13346 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13349 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13351 * ToolBar.cs: Save default_size on create handle to use later for buttons
13352 without text, needed to mimic win32 behavior.
13354 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13356 * ToolBar.cs: Fix button layour to best fit width or height according to
13357 vertical or not. Fixes #81524.
13359 2007-05-10 Everaldo Canuto <everaldo@simios.org>
13361 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13362 toolbar size info because different styles theres different sizes.
13365 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13367 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13368 if we are using checkboxes, checked is true, and we have less
13369 than two images in StateImageList; for the 1.1 in the same scenario
13370 draw the first image if we have at least one image in StateImageList.
13371 Fixes part of #81191.
13373 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
13375 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13376 the owner's Items collection on merge.
13378 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
13380 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13381 * ToolStripItemCollection.cs: Lots of fixes to when events get called
13382 and parent/owner gets changed based on gert's unit tests.
13384 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13386 * MaskedTextBox.cs: Started implementing parts of it.
13388 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13390 * ListView.cs: When clicking the checkbox on the items
13391 take into account the double clicks even if we have only
13392 one image in StateImageList (only for 1.0/1.1). Also
13393 generate an extra change of checked state when we receive
13394 the second click on checkbox (match .Net behaviour).
13395 Fixes part of #81191.
13397 2007-05-10 Everaldo Canuto <everaldo@simios.org>
13399 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13401 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
13403 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13404 even if OnLoad is overriden and base.OnLoad is not called.
13407 2007-05-10 Andreia Gaita <avidigal@novell.com>
13409 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
13410 shame. (I blame my ever-persisting and annoying cold)
13412 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13414 * ListView.cs: Don't eat navigation keys. Let them flow through to
13415 KeyDown/KeyPress routines. [Fixes bug #81569]
13417 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13419 * ListView.cs: When handling keys for selecting the item based off
13420 keyboard input, do not consider keys pressed with Alt or Control. Also,
13421 correctly handle keys when the Shift key is down. [Fixes bug #81578]
13423 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13425 * Control.cs: When using UseWaitCursor, we have to store the requested
13426 Cursor to use when UseWaitCursor is turned off.
13428 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13430 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
13432 * Application.cs: Use PreProcessControlMessage instead of
13434 * PreProcessControlMessage.cs: Make internal for 1.1.
13436 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13438 * Control.cs: Add InternalContains focus property, which hast the same
13439 functionality of ContainsFocus, but also including implicit controls.
13440 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13441 since we need to know if the focus is contained in our implicit
13442 ItemControl when calculating Layout. Fixes part of #80888.
13444 2007-05-08 Everaldo Canuto <everaldo@simios.org>
13446 * ToolTip.cs: Remove center form string alignment as it must be align to
13449 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
13451 * ToolStripItemCollection.cs: Set the new item's parent and owner
13452 in Insert like we do in Add. [Fixes bug #81568]
13454 2007-05-08 Jackson Harper <jackson@ximian.com>
13456 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13457 - Off by one error in SetTop
13458 - Disable DoubeBuffering
13460 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13462 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13463 control as much as necessary in order to make it entirely visible,
13464 instead of centering the control in the container (matches MS
13465 behaviour). CalculateCanvasSize: we need to take the current scroll
13466 position into account when calculating the maximum canvas,
13467 otherwise the following scenario will fail: resize so that the
13468 scrollbars appear, use the scrollbars to scroll, resize again
13469 smaller, and now the canvas size is too small. Recalculate: when
13470 showing scrollbars make sure they start off at 0, and try to scroll
13471 the active control into view. Fixes #79540. HandleScrollBar: don't
13472 scroll anywhere if the scrollbar isn't visible.
13474 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13476 * ListView.cs: When focus changed, call Layout/Invalidate
13477 in the focused item to update the selected state (should show
13478 entire label when ListView is focused, and a part of it if is not).
13479 * ListViewItem.cs: When doing layout for LargeIcon, take into account
13480 for displaying the entire label not only the Focused state of the
13481 item, but also the Focused state of the ListView (match .Net
13484 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13486 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13487 Implement UseWaitCursor.
13489 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13490 Applying contributed patch from Sergey Volk.
13492 * Clipboard.cs: Implement SetDataObject retry logic and new overload
13494 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13496 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13498 * Control.cs: Implement DrawToBitmap.
13500 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13501 Applying contributed patch from Stefan Noack.
13503 * Control.cs: Add [Get|Set]AutoSizeMode.
13505 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13507 * MdiClient.cs: Unmerge menus when the last child is closed.
13509 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13511 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13512 * ToolStripManager.cs: Call Merge on DropDowns.
13515 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
13517 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13519 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13520 visibility. We can't create forms visible, since we have to set the
13521 owner before making the form visible (otherwise Win32 will do
13522 strange things with task bar icons). The problem is that we set the
13523 internal is_visible to true before creating the control, so
13524 is_changing_visible_state is the only way of determining if we're
13525 in the process of creating the form due to setting Visible=true -
13526 this works because SetVisibleCore explicitly makes the form
13527 visibile afterwards anyways. Fixes #80775.
13529 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13531 * ThemeWin32Classic.cs: When drawing ListViewItems,
13532 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13533 or LargeIcon _and_ item is not focused (match .Net behaviour).
13535 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
13537 * Control.cs, Form.cs: Fix some obsolete method warnings.
13539 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
13541 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13542 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13544 2007-05-04 Andreia Gaita <avidigal@novell.com>
13546 * ContainerControl.cs: Fix active_control attribution when going
13547 up the parent chain so that the first parent container gets the control
13548 and the rest of the parent containers get the child containers (skips
13549 non-containers). Fixes #80729
13551 2007-05-04 Randolph Chung <tausq@debian.org>
13553 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13556 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13558 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13559 takes a size parameter, since the CreateParam's size isn't true for
13560 minimized forms. Fixes #81518,
13562 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13564 * Form.cs: Add OnDeactivateInternal.
13565 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13567 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13569 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13570 accessing the parent. Fixes #81508.
13572 2007-05-03 Chris Toshok <toshok@ximian.com>
13574 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13575 2.0 block, pass listposition + 1 to ChangeRecordState when a row
13576 was added before the current listposition. Fixes the
13577 TestInsertRowBeforeCurrent unit test.
13579 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
13581 * Application.cs: Add RaiseIdle.
13582 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13583 XplatUIX11.cs: Implement RaiseIdle.
13585 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
13586 corcompare work: N - Z
13590 * ScrollableControl.cs
13591 * SplitContainer.cs
13594 * SystemInformation.cs
13596 * TableLayoutControlCollection.cs
13597 * TableLayoutPanel.cs
13602 * ToolStripComboBox.cs
13603 * ToolStripContainer.cs
13604 * ToolStripContentPanel.cs
13605 * ToolStripDropDown.cs
13606 * ToolStripDropDownItem.cs
13607 * ToolStripDropDownMenu.cs
13609 * ToolStripItemCollection.cs
13610 * ToolStripMenuItem.cs
13611 * ToolStripPanel.cs
13612 * ToolStripSplitButton.cs
13615 * TreeNodeCollection.cs
13616 * TreeNodeMouseHoverEventArgs.cs
13619 2007-05-01 Everaldo Canuto <everaldo@simios.org>
13621 * ContextMenu.cs: Add public method Show with alignment property to 2.0
13622 stuff. Thanks aatdark for the patch.
13624 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13626 * GridItem.cs: Implement 2.0 Tag property.
13628 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
13630 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13631 count instead of Nodes.Length. [Fixes bug #81448]
13633 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13635 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13638 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13639 corcompare work: A - M
13640 * BindingNavigator.cs
13645 * FlowLayoutPanel.cs
13651 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13653 * Application.cs: Give toolstrips a chance to process mnemonics.
13654 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13655 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13656 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13658 2007-05-01 Jackson Harper <jackson@ximian.com>
13660 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13662 - Don't set the BoundsSpecified
13664 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13666 * Application.cs: When using the toolstrip shortcut mechanism, allow the
13667 message to pass through to a regular control if it hosted by a toolstrip.
13668 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13669 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13671 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13673 * TextRenderer.cs: Use the flags argument when using the MeasureString
13674 fallback algorithm.
13676 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13678 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13679 the MDI menu item. [Fixes bug #81483]
13681 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
13683 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13684 string. When setting Name to null, use zero-length string instead.
13686 2007-04-29 Andreia Gaita <avidigal@novell.com>
13688 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
13689 DeselectTab). Implement missing 2.0 TabPageCollection methods
13690 (Add, ContainsKey, RemoveByKey, IndexOfKey)
13692 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
13694 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13696 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
13698 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13699 Fixes bug #81479. Include details of exception when LoadFile fails.
13701 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
13703 * DrawListViewSubItemEventArgs.cs: Added missing setter
13705 2007-04-27 Andreia Gaita <avidigal@novell.com>
13707 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
13708 Hide methods (not complete). Implement missing 2.0 OnPopup event.
13710 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13712 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13713 removed in ly last commit (it was breaking the Label edit feature).
13715 * ThemeWin32Classic.cs: When drawing a ListViewItem use
13716 StringAlignment.Near for LineAlignment (match .Net).
13718 2007-04-27 Andreia Gaita <avidigal@novell.com>
13720 * TabControl.cs: Change SetTab so it adds the tabpage to the list
13721 of controls if it isn't already there - was blowing up when doing
13722 tabcontrol.TabPages[i]=new TabPage().
13723 SetTab now does a replace by removing the page at the index.
13724 Add a new InsertTab method that inserts a page in a given index
13725 instead of replacing.
13726 Implements TabPageCollection.Insert(int, TabPage).
13728 2007-04-27 Chris Toshok <toshok@ximian.com>
13730 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13731 internal handler that can be invoked from our subclasses.) Also,
13732 add a comment to PushData about how we need to fix it.
13734 * CurrencyManager.cs: tons of changes here. trying to get things
13735 matching the behavior of .net wrt event orders (ItemChanged,
13736 CurrentChanged, PositionChanged.) I've implemented a private .net
13737 symbol (ChangeRecordState) that appears in stack traces because
13738 it's actually easier to do this than to effective inline all its
13739 various behaviors at every call site.
13741 * RelatedPropertyManager.cs: guard against an exception here by
13742 not using parent.Current if the position is set to -1 (if the
13743 parent datasource is cleared, for instance).
13745 * Binding.cs: don't parse data in PushData (this might be wrong,
13746 but it jives with MS's behavior.) Also, don't call PushData when
13747 we get a CurrentChanged event.
13749 2007-04-27 Andreia Gaita <avidigal@novell.com>
13753 WebBrowserSiteBase.cs,
13754 HtmlDocument.cs: Added stubbed out classes, no real implementations
13757 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13759 * MainMenu.cs: In draw method without parameters call draw method with
13760 PaintEvent, another one (just rect) adjust rectangle and we dont need it
13761 as Rect property is already adjusted. Fixes #80694.
13763 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
13765 * Application.cs: Need to handle keyboard menu deselection here.
13766 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13767 navigation, allowing keyboard to work on X11.
13768 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13770 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13772 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13773 menu bar. It fixes some drawing issues in menu bar.
13775 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13777 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
13778 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13779 when <alt> key is pressed.
13781 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13783 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
13784 example just set visible to false and make this prevent from other problems.
13785 In SystrayAdd always remove pending expose. Fixes #81072.
13787 2007-04-26 Marek Safar <marek.safar@gmail.com>
13789 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13792 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13794 * ListView.cs: Added three missing 2.0 events and corresponding
13795 EventHandlers. Added the OwnerDraw property.
13796 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13798 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13800 * DrawListViewItemEventArgs.cs
13801 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13803 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13805 * TextControl.cs: Fixed typo in constructor
13807 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
13809 * Application.cs: Create a shortcut path so that currently selected
13810 MenuStrips can intercept keyboard events without having focus.
13811 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13812 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13813 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13814 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
13815 generate WM_SYSCOMMAND message in X11 for other platforms.
13816 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13817 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13818 * ToolStripSplitButton.cs: Add DefaultItem property.
13820 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13822 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13823 fixes some menu draw problem on Windows with border diferent from default
13824 it also fixes #81403.
13826 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13828 * Form.cs: Refactor WndProc into separate methods, just like Control is
13831 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13833 * Control.cs: set_Text: move the call to the driver into a seperate
13834 virtual method so that Form can override it.
13835 * MaskedTextBox.cs: Corcompare fixes.
13836 * Form.cs: Override UpdateWindowText and only update the styles if the
13837 form has been shown (fixes #81405).
13839 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13841 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13842 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13843 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
13844 the form lost focus or another control was clicked.
13846 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
13848 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13851 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13853 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13854 DrawListViewItemEventHandler.cs,
13855 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13857 * X11Structs.cs: More ToString implementation.
13859 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13861 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13862 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13864 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13866 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13868 * FormCollection.cs: Don't add a form if it's already in the
13870 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13871 according to behaviour and MSDN. The ownerWin32 is the active
13872 window at the moment when we call ShowDialog, not the context's
13873 main form (the context's main form may open another form that opens
13874 a form with ShowDialog, the win32 owner is the second form). Add
13875 and remove forms to the Application.OpenForms in other places to
13876 better match MS behaviour. Add an IsActive property that raises
13877 On(de)Activated only if the active state has changed (we were
13878 raising OnDeactivated before OnActivated while creating forms).
13879 * Application.cs: Refactor Enabling/Disabling of windows for modal
13880 dialog loops out to separate methods, and restore the thread
13881 context when we quit the method. Fixes #81407.
13883 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13885 * ListView.cs: In ItemControl.HandleClicks, also fire
13886 2.0 MouseClick or MouseDoubleClick events on the parent,
13887 not only the Click/DoubleClick events.
13889 2007-04-24 Andreia Gaita <avidigal@novell.com>
13891 * TableLayoutSettings.cs:
13892 - Added a GetControls method and a support structure to help the
13893 TypeConverter to enumerate the controls for serialization.
13894 - Added a new serialization constructor.
13895 - Added a isSerialized flag initialized to true on the
13896 serialization constructor so that the TableLayoutPanel.LayoutSettings
13897 setter does not throw the designed NotSupportedOperation exception
13898 when the object is built through deserialization.
13899 - Implemented GetObjectData
13901 * TableLayoutPanel.cs: Added check on LayoutSettings.
13903 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13905 * ListView.cs: Report Click and DoubleClick events to the parent
13906 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13907 from breaking the click count state when using dialog forms (Control
13908 reports the clicks in a similar fashion). In the previous behaviour
13909 the last WM_LBUTTONUP message in a double click was sent to the
13910 ListView's form, instead of the ListView, which was breaking the click
13911 count for it. Fixes #80387.
13913 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13915 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13917 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13919 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
13920 us from created dropdowns for menu items that do not have subitems.
13921 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13922 Check HasDropDownItems before calling DropDown so a dropdown will not be
13923 created if it isn't needed.
13925 2007-04-24 Jackson Harper <jackson@ximian.com>
13927 * TreeView.cs: Set the first node to the selected node when we get
13928 focus if there is no selected node.
13930 2007-04-24 Andreia Gaita <avidigal@novell.com>
13932 * MimeIcon.cs: remove using blocks so that image streams are
13933 not disposed of. Fixes #80151
13935 2007-04-24 Jackson Harper <jackson@ximian.com>
13937 * TextBoxBase.cs: Fixup the height of textboxes when the control
13940 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13942 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
13943 for each ToolStripItem when the parent's RightToLeftChanged is called.
13945 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13947 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13949 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13950 property, so that the setter can be overriden too.
13951 * TextBox.cs: Change GetContextMenuInternal() to use
13952 ContextMenuInternal.
13954 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13956 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13959 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13961 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13964 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13966 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13967 avoid duplicate work. Mostily skeleton code, it's not working at
13970 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
13972 * NotifyIcon.cs : stub for MouseClick event
13973 * Application.cs: stub for SetUnhandledExceptionMode
13975 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13977 * BindingNavigator.cs : Initial (partial) implementation
13979 2007-04-23 Jackson Harper <jackson@ximian.com>
13981 * TreeView.cs: Do not create the treeview's handle when setting
13982 the scroll position.
13983 - ExpandAll needs to compute the scrollbars so it knows which
13984 position to set the bar too.
13986 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13988 2007-04-23 Jackson Harper <jackson@ximian.com>
13990 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13993 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
13995 * ToolStripItem.cs: Make GetImageSize internal.
13996 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13997 need to draw an item. Fixes a reported issue where images on menus
13998 that were not 16x16 were drawing incorrectly.
14000 2007-04-21 Miguel de Icaza <miguel@novell.com>
14002 * Padding.cs: Use the converter, fixes the resgen2 issue with
14005 2007-04-21 Jackson Harper <jackson@ximian.com>
14007 * TreeView.cs: Dont try to unhighlight the selected node if there
14008 isn't a selected node.
14010 2007-04-21 Jackson Harper <jackson@ximian.com>
14016 * TreeView.cs: Use the InternalBorderStyle property to set the
14017 initial border style, this forces the client rectangle to be sized
14020 2007-04-20 Jackson Harper <jackson@ximian.com>
14022 * TreeView.cs: Simplify scrolling to the last node after expanding
14024 - Fix some off by ones with setting the bottom.
14026 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14028 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14029 that. We were incorrectly doing it the other way around. Also,
14030 update ClientSize if we change the BorderStyle before the control
14033 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14035 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14036 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14037 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14038 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14039 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14040 Caption to CaptionHeight.
14041 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14042 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14043 and FixedFrameBorderSize to return value from current XplatUI driver.
14044 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14045 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14046 and FixedFrameBorderSize using win32 API. Renamed Caption to
14048 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14049 * SystemInformation.cs: Fixed typo in BorderSize.
14051 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14053 * XplatUI.cs: Added MenuAccessKeysUnderlined.
14054 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14055 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14057 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14058 value from XplatUI driver.
14059 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14060 SystemParametersInfo.
14061 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14063 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14066 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14068 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14070 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14072 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14074 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14076 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14077 MenuStrips that contain ToolStripSeparators.
14079 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14081 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14082 DefineStdCursorBitmap.
14083 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14084 has been created off a standard cursor. This is used to get a
14085 bitmap of the standard cursor when Draw or DrawStretched is called
14086 in order to draw the cursor.
14087 * X11Structs.cs: Added XcursorImage and XcursorImages.
14088 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14089 DefineStdCursorBitmap.
14090 * Cursors.cs: Update all relevant creations of Cursor to use the new
14091 internal constructor.
14093 2007-04-19 Jackson Harper <jackson@ximian.com>
14095 * TextBox.cs: Move the has_been_focused into the base control, so
14096 some of the text adding methods can manipulate it (probably time
14097 for a better name for this flag too).
14098 - Call a new version of selectall that doesn't scroll
14099 * TextBoxBase.cs: When we append text, if the document is empty,
14100 don't scroll. If the document has text already, we scroll to the
14101 end of the appended text.
14102 - When the text is changed, we reset the has_been_focused, so the
14103 next time the control gets focused, all the text is selected.
14105 2007-04-19 Jackson Harper <jackson@ximian.com>
14107 * TextControl.cs: Move the margins to the document, add a method
14108 so the margin sizes can be updated.
14109 * TextBoxBase.cs: When the border style is changed, update the
14112 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
14114 * Control.cs: Respect DefaultPadding.
14115 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14116 padding into account.
14117 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
14119 2007-04-19 Jackson Harper <jackson@ximian.com>
14121 * TextControl.cs: Oops, we need to use the ClientRect not the
14124 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14126 * ListView.cs: In ItemControl.ItemsMouseDown, take into
14127 account the double clicks when CheckBoxes are used and
14128 the pointer is inside the checkbox. Fixes part of #81191.
14130 2007-04-18 Jackson Harper <jackson@ximian.com>
14132 * TextControl.cs: Pressing the end key shouldn't move the caret
14133 past the line ending.
14134 * TextBoxBase.cs: We can still delete if we are in the line
14135 ending and the combine will just kill the existing line ending.
14137 2007-04-18 Jackson Harper <jackson@ximian.com>
14139 * TextControl.cs: We can't move lines, then invalidate their
14140 bounds, we need to get the old bounds and combine that with the
14142 * TextBoxBase.cs: Before combining two lines for a delete, we need
14143 to invalidate the area of the old line, since that will be moved
14144 in the combine operation.
14146 2007-04-18 Everaldo Canuto <everaldo@simios.org>
14148 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14149 with transparent background. Fixes #80482.
14151 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
14153 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14154 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14157 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14159 * CreateParams.cs: Add a couple of helper methods and do a less string
14160 concatenation in ToString.
14161 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14162 overload that takes a Control parameter, since this method may be
14163 called before a control is assigned to the hwnd (from
14164 CreateWindow), and update CreateWindow to use the new overload. In
14165 GetMenuOrigin subtract the title bar from the y position if the
14166 form has a window manager (since we're painting it and not X).
14167 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14168 CreateParams to calculate the origin (since border sizes may vary).
14169 In ScreenToMenu only subtract the title height if we actually have
14171 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14172 mdi children never have menus of themselves.
14173 * InternalWindowManager.cs: Implement menu handling like form does.
14174 Added GetMenuOrigin to calculate the menu origin, can't use the
14175 CreateParams from the form like normally since it's lying.
14176 * Hwnd.cs: Implement GetBorderSize better (in the sense more
14177 windows-like) and add Inflate and comparison operators to the
14178 Borders type. When calculating MenuOrigin and it's a form with a
14179 window manager, use the window manager to calculate it.
14181 2007-04-17 Chris Toshok <toshok@ximian.com>
14183 * Control.cs (CreateControl): turns out in 2.0 we don't need this
14184 OnBindingContextChanged thing here. It's only generated from
14185 ContainerControl.OnCreateControl. Fixes a newly written unit test
14186 - BindingTest.BindingContextChangedTest4.
14188 2007-04-17 Jackson Harper <jackson@ximian.com>
14190 * ScrollBar.cs: When setting values, make sure the current
14191 position stays within the new values range.
14193 2007-04-17 Chris Toshok <toshok@ximian.com>
14195 * Control.cs (CreateControl): talk about a bizarre corner case.
14196 Don't emit OnBindingContextChanged here if we're a parentless
14197 control (i.e. if we're a form.). Fixes
14198 BindingTest.BindingContextChangedTest2.
14200 2007-04-17 Everaldo Canuto <everaldo@simios.org>
14202 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
14203 from win32. Fixes #81255.
14205 2007-04-17 Everaldo Canuto <everaldo@simios.org>
14207 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14208 already present in CalculateButtonTextAndImageLayout.
14210 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
14212 * XplatUIX11.cs: When setting min/max size for a window we need to
14213 translate the coordinates to x coordinates. Create an overload of
14214 SetWindowMinMax that takes a CreateParams handling this, and change
14215 SetWMStyles to call this function (can't use Control.FromHandle in
14216 the SetWindowMinMax to get the control/CreateParams from the handle
14217 because the handle might not have been assigned to the control
14218 yet). Fixes #81371.
14220 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14222 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14223 if StateImageList is non-null and it has less than two items (match MS
14224 behaviour). Also, in HandleNavKeys handle the Space key, calling
14225 the new ToggleItemsCheckState method, which tries to change the
14226 checked state of the selected items. Fixes part of #81191.
14228 2007-04-16 Jackson Harper <jackson@ximian.com>
14230 * RichTextBox.cs: namespace cleanup.
14232 2007-04-16 Everaldo Canuto <everaldo@simios.org>
14234 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14236 2007-04-16 Everaldo Canuto <everaldo@simios.org>
14239 * Control.cs: Call invalidate in set_Region.
14241 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14242 it dont works here.
14244 2007-04-16 Jackson Harper <jackson@ximian.com>
14246 * TextBoxBase.cs: When enter is pressed, we need to update all
14247 lines below the current.
14249 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
14251 * MdiClient.cs: Implement implicit menu merging for MDI
14252 children. When a child form is active, if it has a menustrip
14253 and the parent form has a MainMenuStrip, automatically merge
14256 2007-04-15 Andreia Gaita <avidigal@novell.com>
14258 * TabControl.cs: Refactored sizing methods to not repeat
14259 code all over the place. Tab bounds are now calculated
14260 as if alignment is top and single line, and only when
14261 setting the bounds are the positions adjusted according
14262 to alignment. Replaced hardcoded positions, spacings and
14263 paddings by getting the values the ThemeEngine.
14266 * Theme.cs: Change TabControl properties and methods so
14267 that all start with TabControl*. Added more properties
14268 to help remove hardcoded values on tabcontrol.
14269 Add CPDrawBorder3D declaration so the Theming classes
14272 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14274 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14275 on the Theming namespace, and call the appropriate methods here.
14276 Change CPDrawBorder3D to public.
14278 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14280 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14281 the control after firing the OnMouseUp event, instead of sending
14282 the message before the mentioned event. This is so we can match the
14283 MS behaviour. Fixes part of #80385.
14285 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
14287 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14288 RightToLeft property.
14290 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
14292 * ToolStrip.cs: Add properties and internal methods to support merging.
14293 * ToolStripItem.cs: Add MergeAction and MergeIndex.
14294 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14295 not trigger reparenting or layouts.
14296 * ToolStripManager.cs: Add Merge and RevertMerge methods.
14297 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14298 is hosting the overflow menu.
14300 2007-04-13 Jackson Harper <jackson@ximian.com>
14302 * TextControl.cs: Set the line ending correctly for the first
14305 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
14307 * Theme.cs: Update GetMethod to get the new definition for
14308 KnownColors.Update (and fix theme color updates).
14310 2007-04-12 Everaldo Canuto <everaldo@simios.org>
14312 * MessageBox.cs: Fix some test and button position.
14314 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14316 * Form.cs: Consider the implicit controls in
14317 GetRealChildAtPoint. We need it since this method
14318 is called on Form when handling the some messages in
14319 WndProc, and need to consider those implicit ones too.
14322 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
14324 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14325 if there are no ShortcutKeys set.
14326 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14327 set, use it when painting.
14329 2007-04-12 Jackson Harper <jackson@ximian.com>
14331 * TextControl.cs: Fix some off-by-one issues in line duplication
14332 and insertion in the undo manager. Also, overwrite the first tag
14333 of a line on insert, if it is just a zero lengthed tag. This
14334 prevents us from getting an extra stranded tag at the beginning of
14337 2007-04-11 Everaldo Canuto <everaldo@simios.org>
14339 * Label.cs: Remove check for handle created in CalcAutoSize, we need
14340 to calculated proper size including when handle was not created yet.
14342 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14344 * MdiWindowManager.cs: When moving a form, allow the form to be moved
14345 when the mouse is outside of it's parent's client rectangle. Fixes
14346 #79982 (take 3, part 2).
14348 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
14350 * X11Structs.cs: Add a few ToString() overrides.
14351 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14352 the window location in a window-manager independent way. Reworked
14353 FrameExtents, it now actually works. Reworked AddConfigureNotify
14354 and ReparentNotify handling to use GetTopLevelWindowLocation
14355 instead of the earlier, more hacky solution. Reworked SetWMStyles,
14356 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14357 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14358 for all other windows (fixes #81281 part 1), a toolwindow is hidden
14359 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14360 and generally refactored to do as few calculations as possible
14363 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
14365 * Theme.cs: Change "reflective-contract" between MWF and SD to
14366 minimize # of calls, avoid Color serialization and avoid updating
14367 every "known colors" each time a single one is updated.
14369 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
14371 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14372 when not readonly and the text is explicitly set. Code style updates.
14373 * DataGridTableStyle.cs: Removed extra line.
14374 * DataGrid.cs: Code style updates. Removed extra whitespace.
14375 * DataGridColumnStyle.cs: Code style updates. Removed extra
14378 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
14380 * XplatUIX11.cs: Added comment that "fixes" #80021.
14382 2007-04-09 Jackson Harper <jackson@ximian.com>
14384 * TextControl.cs: We don't need this -1 on the line count anymore.
14386 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
14388 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14389 entered value to underlying type, and convert it back to a string to
14390 apply formatting. Modified GetFormattedValue to use TypeConverter
14393 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
14395 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14396 Use SubItems property when we want to ensure there's at least one
14397 subitem. Modified SubItems property to ensure there's always at least
14398 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14399 the NRE's reported by MS.
14401 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
14403 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14404 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14405 Spaces to tabs. Removed extra tabs.
14407 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
14409 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14410 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
14412 2007-04-06 Jackson Harper <jackson@ximian.com>
14414 * TextBoxBase.cs: When a delete removes a line, recalculate all
14415 lines below that line (they need to get offsets setup correctly)
14418 2007-04-05 Jackson Harper <jackson@ximian.com>
14420 * TextControl.cs: We need to invalidate across the width of the
14421 document when we are invalidating multiple lines.
14422 * TextBoxBase.cs: Don't delete into the line ending.
14424 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14426 * ListView.cs: Restore the check for the MouseHover event
14427 in ListView. It looks like the ListView fires more than one MouseHover
14428 event when HoverSelection is true _only_ in weird-corner scenarios, but
14429 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14432 2007-04-05 Mike Kestner <mkestner@novell.com>
14434 * ListView.cs : raise MouseDown before updating selection.
14435 [Fixes #80373 tab 1&3]
14437 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
14439 * ToolStripRenderer.cs: Add static method to mirror image.
14440 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14441 and RightToLeftAutoMirrorImage.
14442 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14444 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
14446 * ToolStripSplitStackLayout.cs: Support Alignment property.
14447 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14449 2007-04-05 Jackson Harper <jackson@ximian.com>
14451 * TextControl.cs: Move around the line endings when crossing line
14453 - When combining lines, strip the ending text off the first line.
14455 2007-04-05 Jackson Harper <jackson@ximian.com>
14458 * TextBoxBase.cs: Try to never move the cursor into the line
14461 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
14463 * ToolStripItem.cs: Make sure we aren't firing mouse events when
14464 the item is disabled. Also add a few missing methods.
14466 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14468 * ListView.cs: We don't need the MouseEnter/MouseLeave check
14469 to fire just one MouseHover event when HoverSelection is true, since
14470 .Net does fire more than one MouseHover event in that scenario. Also,
14471 fix the selection in HoverSelection, by invoking UpdateMultiSelect
14472 if MultiSelect is true, instead of only setting ListViewItem.Selected.
14473 Finally, we need to reset the Hover logic in MouseMove, even when we
14474 don't have a selected item.
14476 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
14478 * ToolStrip.cs: Add several missing methods, properties, and events.
14480 2007-04-04 Chris Toshok <toshok@ximian.com>
14482 * DataGridTextBoxColumn.cs: set the bounds of the text box to
14483 (0,0,0,0) in Commit, as MS does.
14485 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14486 make sure we set CurrentRow on a row header click *before* calling
14487 Select. This moves the current cell (and the textbox) to the new
14488 row. The call to Select then hides the textbox, giving us the
14489 correct behavior. Fixes #80362.
14491 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14492 (ListChangedHandler): reorder the position/current changed events,
14493 and call UpdateIsBinding in the ItemAdded case.
14495 * GridColumnStylesCollection.cs: add some columns events, one of
14496 which raises the CollectionChanged event.
14498 2007-04-04 Jackson Harper <jackson@ximian.com>
14500 * TextControl.cs: When we delete multiple selection lines
14501 invalidate the selection area, don't need to do that for single
14502 lines because the final update view will handle it.
14504 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
14506 * Control.cs: When we CreateControl, we need to also create all of the
14507 control's children. The child's OnLoad must also fire before the parent's
14508 OnLoad. Fixes the toolbox size in PDN.
14510 2007-04-04 Jackson Harper <jackson@ximian.com>
14512 * TextBoxBase.cs: When the user presses enter, insert a line
14513 ending into the text. (Maybe this would be a good spot for
14514 Environment.NewLine).
14515 * TextControl.cs: Remove undo manager hack, line endings get
14516 inserted properly now.
14518 2007-04-04 Everaldo Canuto <everaldo@simios.org>
14521 - Remove unneeded parameters in UpdateCursor.
14522 - Fix UpdateCursor to check if menu is active.
14523 - Call UpdateCursor when menu deactivate my click.
14524 [Fixes remaining issues from #80410]
14526 2007-04-04 Everaldo Canuto <everaldo@simios.org>
14528 * Control.cs: GetRealChildAtPoint method added, it make an
14529 recursive child control search for the point.
14531 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14534 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14536 2007-04-03 Everaldo Canuto <everaldo@simios.org>
14538 * Form.cs: Fix mouse position when send back mouse event after closes
14541 2007-04-03 Everaldo Canuto <everaldo@simios.org>
14543 * Form.cs: Simplify the BUTTONDOWN for active tracker.
14545 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
14547 * Control.cs: Fix an issue where if a user resized a control inside
14548 a sizing method like OnResize, we would overwrite their explicit
14549 value. Also, only call DefaultSize once in the constructor instead
14550 of 4 times. Also, do not call SetBoundsCore from SetBounds if
14551 nothing actually changed.
14553 2007-04-03 Jackson Harper <jackson@ximian.com>
14555 * TextControl.cs: Don't attempt to copy text for lines with no
14556 text in them (technically this shouldn't happen, but we aren't
14557 always inserting line endings when we should be).
14559 2007-04-03 Jackson Harper <jackson@ximian.com>
14561 * TextBoxBase.cs: Calculate the scrollbars before calculating the
14562 document, because this sets some of the document size properties
14565 2007-04-03 Jackson Harper <jackson@ximian.com>
14567 * TextBoxBase.cs: We need to calculate maximums even if this is
14568 not a multiline control, because the maxs are used for scrolling.
14569 - Display the caret after doing a page up/down, we need to
14570 manually display it because a proper CaretMoved event isn't
14571 triggered (this is because of the way the math is done to
14572 determine how far to scroll).
14574 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
14576 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14577 (ToolBar was relying on SetBoundsCore to default the values sent
14578 base off of BoundsSpecified.)
14580 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14582 * DateTimePicker.cs: Change Text so that when a null value or empty
14583 string is assigned to the test we always raise ValueChanged and
14584 TextChanged (earlier implementation would only raise ValueChanged
14585 if the current date value was different from DateTime.Now).
14587 2007-04-03 Andreia Gaita <avidigal@novell.com>
14589 * ButtonBase: Call update after invalidation, fixes #80194
14591 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14593 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14596 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14598 * XplatUIX11.cs: SetWMStyles: If the control is a form with
14599 FormBorderStyle = None, don't give the window any decorations.
14602 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14604 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14605 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14606 to check for is a mix of several styles (such as WS_CAPTION for
14608 * Control.cs: Don't paint an area bigger than the client area when
14609 painting the background colour. Add an internal GetCreateParams.
14610 Update calls to XplatUI.CalculateWindowRect due to API change.
14611 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14612 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14613 the size if it hasn't been handled by any windows. When creating
14614 and moving windows, X wants the location of the entire window, but
14615 the size of the client window, so add
14616 TranslateClientRectangleToXClientRectangle,
14617 TranslateWindowSizeToXWindowSIze and
14618 TranslatedXWindowSizeToWindowSize to cope with this, and call them
14619 before every window creation and move. Update CalculateWIndowRect
14620 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14621 In AddConfigureNotify don't do anything if the hwnd is a zombie
14622 (fixes the BadWindow we were getting while running the tests),
14623 always calculate the offsets when it's a parentless window, not
14624 only when reparented, and translate the window size, since we're
14625 getting the client size of the whole window, excluding entire
14627 * Theme.cs: Added BorderSizableSize.
14628 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14629 anymore. Update calls to XplatUI.CalculateWindowRect due to API
14631 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14632 change. Fake the window styles here instead of in XplatUIWin32 so
14633 that all back-ends get the same window styles (and it's Form that's
14634 deciding when to use wm, not the Win32 backend anyways)
14635 * Hwnd.cs: Completely reworked GetWindowRectangle and
14636 GetClientRectangle - they are now passed a CreateParams and they
14637 only use Style and ExStyle to determine the rectangles (they should
14638 now work just like Win32AdjustWindowRectEx - though quite a few
14639 special cases are probably missing). They should also be 100%
14640 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14641 == rect), and all numbers (borders, menu sizes) are taken from the
14642 current theme. Added a GetBorders helper function that will return
14643 the borders for any given CreateParams (including captions and
14644 menus), and GetBorderSize that returns the given border size only.
14645 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14646 Hwnd.GetClientRectangle.
14648 2007-04-02 Chris Toshok <toshok@ximian.com>
14650 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14651 logic between the values we present to the user and the values
14652 which are stored in the column's property. Also, don't call
14653 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14655 2007-04-02 Jackson Harper <jackson@ximian.com>
14657 * TextBoxBase.cs: Scroll faster!
14659 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
14661 * StatusStrip.cs: Layout fixes for PDN.
14662 * ToolStrip.cs: Set item's available to true, and placement to main when
14664 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14665 changing in setter before doing any work, add InternalVisible.
14666 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14667 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14670 2007-04-02 Jackson Harper <jackson@ximian.com>
14672 * TextBox.cs: LBUTTON does not make the textbox select all of it's
14675 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14677 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14678 Makes ToolStripComboBoxes show up again.
14680 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14682 * ListView.cs: Add a hover_pending field in ListView
14683 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14684 cycle (we are resetting the MouseHover logic in XplatUI
14685 to handle HoverSelection). Fixes #80429.
14687 2007-04-02 Jackson Harper <jackson@ximian.com>
14689 * TextControl.cs: Make sure the attributes get set on the last
14691 - Still have to do the end tag if we have stepped all the ways to
14694 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
14696 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14697 on an internal libgdiplus call when the information is already
14698 available via the public API.
14700 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14702 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14703 control is removed from a control collecftion.
14704 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14705 Fixes FormPropertyTest (failed on rare occasions).
14706 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14707 of Win32SetParent (when changing from no parent to a parent it
14708 might add the new parent's location in screen coordinates to this
14709 window's location).
14710 * Form.cs: Rework ChangingParent once again, now the handle is
14711 recreated whenever a FormWindowManager is added or removed (that is
14712 whenever a normal form is parented or abandoned). Also change
14713 CreateParams so that all non-toplevel windows always get the
14714 specified sice (StartupPosition is never considered for
14715 non-TopLevel forms).
14716 * ContainerControl.cs: Add ChildControlRemoved, the container control
14717 needs to be notified when a control is removed from it's
14718 collection, in the case the removed control is the active control.
14720 2007-04-02 Jackson Harper <jackson@ximian.com>
14722 * RichTextBox.cs: Use the new methods for setting the font and
14723 color, these methods set the specified attribute without
14724 overriding the other attributes.
14726 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
14728 * ToolStripPanel.cs: Fixes for better layouts in PDN.
14730 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
14732 * TextBox.cs: Added internal ChangeBackColor method to special-case
14733 Color.Empty. Added check for invalid ScrollBars value.
14734 * TextBoxBase.cs: Added internal ChangeBackColor method.
14735 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14736 internal ChangeBackColor method to special-case Color.Empty. Added
14737 check for invalid ScrollBars value.
14739 2007-03-30 Everaldo Canuto <everaldo@simios.org>
14741 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14743 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14745 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14746 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14747 [Based on submitted patch from Olivier Duff.]
14749 2007-03-30 Jackson Harper <jackson@ximian.com>
14751 * TextBox.cs: Only select all on initial focus if the user has not
14752 specified a selection area.
14754 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14756 * UserControl.cs: Override CreateParams.
14758 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14762 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14763 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14764 check for is a mix of several styles (such as WS_CAPTION for instance).
14765 * Control.cs: Don't paint an area bigger than the client area when painting
14766 the background colour. Add an internal GetCreateParams. Update calls to
14767 XplatUI.CalculateWindowRect due to API change.
14768 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14769 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14770 hasn't been handled by any windows. When creating and moving windows, X
14771 wants the location of the entire window, but the size of the client
14772 window, so add TranslateClientRectangleToXClientRectangle,
14773 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14774 to cope with this, and call them before every window creation and move.
14775 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14776 removing DeriveStyles). In AddConfigureNotify don't do anything if the
14777 hwnd is a zombie (fixes the BadWindow we were getting while running the
14778 tests), always calculate the offsets when it's a parentless window, not
14779 only when reparented, and translate the window size, since we're getting
14780 the client size of the whole window, excluding entire window.
14781 * Theme.cs: Added BorderSizableSize.
14782 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14783 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14784 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14785 Fake the window styles here instead of in XplatUIWin32 so that all
14786 back-ends get the same window styles (and it's Form that's deciding when
14787 to use wm, not the Win32 backend anyways)
14788 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14789 they are now passed a CreateParams and they only use Style and ExStyle
14790 to determine the rectangles (they should now work just like
14791 Win32AdjustWindowRectEx - though quite a few special cases are probably
14792 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14793 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14794 sizes) are taken from the current theme. Added a GetBorders helper
14795 function that will return the borders for any given CreateParams
14796 (including captions and menus), and GetBorderSize that returns the given
14798 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14799 Hwnd.GetClientRectangle.
14801 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14803 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14804 layout of the mdi children is handled by CreateParams. Fixes
14807 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14809 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14812 * Form.cs: When active tracker mouse down is not processed, send event
14813 back to control inside mouse position. [Fixes #81227]
14815 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14817 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14818 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14819 stealing focus from the active form on Windows. (Control will be made
14820 visible in ShowWindow.)
14822 2007-03-29 Mike Kestner <mkestner@novell.com>
14824 * ImageList.cs : add internal Changed event.
14825 * ListView.cs : hook up to StateImageList.Changed to perform
14826 invalidations when the the state icon list changes. [Fixes #81191]
14828 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14830 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14831 to prevent tooltips from stealing focus from the active form on Windows.
14833 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14835 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
14837 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14839 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14841 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14844 2007-03-29 Jackson Harper <jackson@ximian.com>
14846 * TextControl.cs: When deleting text from non multiline textboxes,
14847 we need to update the entire document, because line offsets will
14850 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14852 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14853 added to theme, now we can create themes that uses diferent notify engines
14854 like notification-daemon from galago project or growl for Mac OS.
14856 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14858 * NotifyIcon.cs: Prevent Balloon to show in task bar.
14860 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14862 * XplatUIX11.cs: Prevent system to open more than one balloon.
14864 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14865 some compiler warning messages.
14867 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14871 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14873 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
14874 implemented, this methods is used by NotifyIcon.BalloonWindow class.
14876 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
14879 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14881 * ListViewItem.cs: Forgot to make Invalidate internal.
14883 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14885 * ListView.cs: Add a InvalidateSelection method to
14886 invalidate methods which are currently selected, and call
14887 it when setting FullRowSelect and HideSelection, instead of
14890 2007-03-28 Chris Toshok <toshok@ximian.com>
14892 * XplatUIX11.cs (UnmapWindow): reindent this block.
14894 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14895 the selection_start if we're moving the selection (that is, not
14896 extending it). Fixes bug #80461.
14898 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14900 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14901 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14902 create private ControlCollection.
14904 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14906 * Control.cs: We need to call OnVisibleChanged for our implicit
14907 children as well as our normal children. Fixes scrollbars in
14908 comboboxes not showing up.
14910 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14912 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14913 the check for IsHandleCreated first. The check in CreateHandle is not
14914 good enough because CreateHandle can be overriden, and the override
14915 should not be called if the handle is already created.
14917 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14919 * ToolStrip.cs: Remove MonoTODO for tooltips.
14920 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14921 * ToolStripContainer.cs: Add custom ControlCollection class.
14922 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14923 * ToolStripDropDown.cs: Add some missing properties/methods.
14924 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14925 * ToolStripItem.cs: Remove MonoTODO for tooltips.
14926 * ToolStripManager.cs: Add IsShortcutDefined.
14927 * ToolStripOverflow.cs: Override LayoutEngine.
14928 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14929 * ToolStripSeparator.cs: Add ImageKey.
14931 2007-03-28 Jackson Harper <jackson@ximian.com>
14933 * TextControl.cs: If a char delete removes a line ending, we need
14934 to update the ending style.
14935 - Make sure the line ending calcs get called.
14937 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14939 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14940 it was making the new code not work. Fixed a typo in the new code
14941 as well. Fixes #79826.
14943 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14946 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14947 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14948 - SystrayBalloon method implemented.
14949 [Add support for notifyicon balloon on win32, #79149]
14951 2007-03-27 Mike Kestner <mkestner@novell.com>
14953 * ThemeWin32Classic.cs : update StateImageList selection to mirror
14954 the ms behavior when only one image is added to the list.
14957 2007-03-27 Jackson Harper <jackson@ximian.com>
14959 * TextControl.cs: Improvements to non multiline line ending
14962 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14964 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
14966 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14969 - Balloon message handling added.
14970 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
14972 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14973 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
14974 to SystrayBalloon to me like other Systray method, also a
14975 handle parameter added.
14977 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14979 * ListView.cs: Show scrollbars even when items.Count == 0
14980 but the columns Width is bigger than the ListView.Width.
14981 Also, when columns.Count == 0 set layout_wd and layout_ht
14982 to the ClientRectangle values, so we don't show any scrollbar
14985 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14987 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14989 2007-03-27 Jackson Harper <jackson@ximian.com>
14991 * RichTextBox.cs: The RTF library decodes the text properly for us
14994 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14996 * ListView.cs: Display HeaderControl even when columns.Count == 0.
14997 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14998 ListView header (HeaderControl), instead of Control.BackColor.
15000 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15002 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15003 Fixes tab control issues where controls would not show up because they
15004 never received their OnVisibleChanged call.
15006 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15008 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15011 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15013 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15014 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15015 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15016 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
15017 the handle. Fix WindowState by using the internal variable until we are
15018 sure that we've been shown.
15019 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15023 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15025 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15026 (at least borders). Fixes #79386 on Linux (with a small difference
15027 in behaviour: when trying to resize a caption-less window metacity
15028 shows the sysmenu. Resizing is still possible though).
15029 * XplatUIWin32.cs: When setting window styles send request an extra
15030 WM_NCCALCSIZE when it's a form without title (due to no text and no
15031 caption), since Win32 seems to calculate it wrong the first time we
15032 get the message, though the second time things work as they should.
15033 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15034 newly reparented window might show up unparented. Update
15035 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15036 there's no title text. Fixes #79386.
15038 2007-03-27 Mike Kestner <mkestner@novell.com>
15040 * ListBox.cs : don't perform invalidations if the handle hasn't been
15041 created. [Fixes #80753]
15043 2007-03-27 Mike Kestner <mkestner@novell.com>
15045 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15048 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15050 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
15051 needed to implement Balloon.
15053 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15055 * ListViewItem.cs: In the constructors that take
15056 an array of strings, don't use ListViewSubItemCollection.AddRange
15057 method to add items, since we need to have a different behaviour (in
15058 the constructors we add an item for each null string, opposed to
15059 the behaviour of AddRange, which adds nothing).
15061 2007-03-26 Andreia Gaita <avidigal@novell.com>
15063 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15065 2007-03-26 Jackson Harper <jackson@ximian.com>
15067 * TextControl.cs: Draw and measure line endings when in non
15069 - When searching the text, count the end of the last line as a
15072 2007-03-26 Jackson Harper <jackson@ximian.com>
15074 * RichTextBox.cs: The selection_start and selection_end don't
15075 really track the correct tags for the selection. So we'll manually
15076 compute the correct tag here.
15078 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15080 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15081 and Continuous styles. Fixes #79469.
15083 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15085 * ToolStrip.cs: Implement Tooltips.
15086 * ToolStripItem.cs: Create internal method for determining tooltip.
15088 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15090 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15092 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15094 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15095 it prevents a problem thak keeps icon visible after application
15098 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15100 * NotifyIcon.cs: Balloon properties and methods created.
15102 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15103 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15105 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
15107 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15109 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
15111 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
15112 parameter indicates which aspects were explicit/user-set.
15113 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15115 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
15117 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15118 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15119 SmallChange, and Value (2.0).
15120 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15122 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15124 * ListView.cs: Always set item_control.Width in LayoutDetails
15125 if View is Details. Setting it later in CalculateScrollBars
15126 in a not-so-corner scenario (the sum of columns width is
15127 not bigger than the ListView width when handle is created, and then
15128 that sum gets bigger by increasing the width of the columns)
15129 causes a very weird recursion path (which shouldn't be happening,
15130 since header_control sets it in CalculateScrollBars too). This bug
15131 appeared after Chris' fixes for handle created issues, so probably
15132 it's related to some handle-creation time.
15134 2007-03-23 Chris Toshok <toshok@ximian.com>
15136 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15137 case where there's an add row, just so we don't end up in a case
15138 where it's not displayed (this happens when the row is partially
15139 obscured). Fixes bug #79574.
15141 2007-03-23 Jackson Harper <jackson@ximian.com>
15145 * RichTextBox.cs: Preserve line endings in the lines text buffer,
15146 also added an enum that represents the line ending type.
15148 2007-03-23 Andreia Gaita <avidigal@novell.com>
15150 * NumericUpDown.cs: Fix logic so Text and Value properties are not
15151 messed with in every method call, but only from DownButton,
15152 UpButton, UpdateEditText() and ValidateText. Fixes #80346
15154 2007-03-23 Chris Toshok <toshok@ximian.com>
15156 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15157 format objects if the format spec is "". Fixes bug #80889.
15159 2007-03-22 Miguel de Icaza <miguel@novell.com>
15161 * ToolStripPanel.cs (Join): added stubs to build PDN3
15163 * Control.cs (AutoScrollOffset): Add.
15165 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15166 property, its only implemented for Win32, on X11 it defaults to
15167 some hardcoded value.
15169 * ToolStripItem.cs (AllowDrop): Add property
15171 2007-03-22 Mike Kestner <mkestner@novell.com>
15173 * ListView.cs : in FullRowSelect Details mode, only enable box
15174 selection if the user clicks over the "item" column outside of the
15175 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
15177 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15179 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15180 handle is not created yet.
15181 * Form.cs: Select: Don't call CreateHandle if the handle is already
15182 created, avoids a stack overflow on Windows when we are recreating
15184 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15185 they are made visible, and override AfterTopMostControl to keep
15186 them on top when other controls are brought to front.
15187 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15188 or force_*scroll_visible is true (old implementation always shows
15189 scrollbars when needed, no matter what auto_scroll was set to).
15190 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15191 IsHandleCreated check.
15193 2007-03-22 Andreia Gaita <avidigal@novell.com>
15195 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15196 row or col separator.
15197 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15199 2007-03-22 Everaldo Canuto <everaldo@simios.org>
15201 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15203 2007-03-22 Everaldo Canuto <everaldo@simios.org>
15205 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15206 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
15207 every time. Fixes #80410.
15209 2007-03-22 Chris Toshok <toshok@ximian.com>
15211 * BindingSource.cs (AddNew): partially implement.
15213 remove a couple of NotImplementedException's
15214 to get bug #81148 closed.
15216 2007-03-22 Everaldo Canuto <everaldo@simios.org>
15221 - UpdateCursor method added to update the screen cursor.
15222 - GetAvailableCursor method added to return cursor for enabled tree,
15223 it searches for cursor on control and it's parent's for enabled control.
15224 - Call UpdateCursor method on setter of Cursor property.
15225 - On setter of Enabled call UpdateCursor when it is false, we need to
15226 change cursor to normal (or to this parent cursor) because cursor
15227 setting theres no effect to disabled controls.
15228 - Some minor source changes to follow the coding style guidelines.
15230 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
15233 2007-03-22 Chris Toshok <toshok@ximian.com>
15235 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15238 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15240 * XplatUIX11.cs: Implement default locations for forms.
15241 * Form.cs: Completely rework startup location for forms. Fixes #79964.
15242 * Hwnd.cs: Add previous_child_startup_location (to track the current
15243 startup location for any child forms of the current form) and
15244 previous_main_startup_location (to track the startup location for
15245 the current toplevel form).
15247 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
15249 * Control.cs: Don't trigger a layout if an implicit control is added
15250 that isn't visible. Also, don't notify the owner when an implicit control
15251 is added. (Owners shouldn't even know about their implicit controls.)
15253 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
15255 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15256 to save some re-layouts.
15258 2007-03-21 Everaldo Canuto <everaldo@simios.org>
15260 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15263 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
15265 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15266 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15268 2007-03-21 Mike Kestner <mkestner@novell.com>
15270 * ListView.cs : disable selection update for non-left button clicks
15271 with mods and over selected items. [Fixes #80524]
15273 2007-03-20 Jackson Harper <jackson@ximian.com>
15276 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15279 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15281 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15282 very probably a more complicated calculation there. Update the
15283 textbox' ForeColor and BackColor when the ComboBox' colors are
15284 changed. Change the border change in LayoutComboBox to only affect
15285 the textbox, not all the calculations there. Seems to fix most of
15288 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15290 * ComboBox.cs: Handle Home and End keys as well as all combinations of
15291 modifiers + navigation keys as input keys, enables advanced text
15292 selection in the combobox (like Shift+Left Arrow for instance).
15293 ComboTextBox now overrides Focused and returns whatever
15294 ComboBox.Focused returns, since it really should be focused
15295 whenever the ComboBox is. Fixes #80795. Also make the border around
15296 the text box one pixel bigger, as mentioned in #79436.
15298 2007-03-20 Jackson Harper <jackson@ximian.com>
15300 * TreeView.cs: Don't offset the images, this was causing some
15301 artifacts when expanding/collapsing with images that were the
15302 exact height of the treenode.
15304 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15306 * TrackBar.cs: Query the theme for the correct value when the mouse
15307 moves and the thumb is pressed.
15308 * Theme.cs: Added TrackBarValueFromMousePosition
15309 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15310 implementation was updating the trackbar value when drawing, now
15311 the drawing methods only draw. Fixes #80900. Refactored the
15312 calculations out to TrackBarValueFromMousePosition and
15313 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15314 according to the mouse position whenever it wants to. Changed the
15315 light coloured pen when drawing the thumb from ControlLight to
15316 ControlLightLight, because the ControlLight is the same colour as
15317 the background so the 3D effect is lost.
15319 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15321 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15322 defined. Fixes #80784.
15324 2007-03-20 Marek Habersack <mhabersack@novell.com>
15326 * ContextMenuStrip.cs: align with the change introduced in
15329 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15331 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
15332 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
15335 2007-03-19 Chris Toshok <toshok@ximian.com>
15337 * Control.cs (WmPaint): don't make use of the Handle property
15338 after an event is emitted, as the user could have closed the
15339 form/destroyed the control. Store the Handle in a local variable
15340 and make use of that. Fixes bug #80768.
15342 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15344 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15345 behavior in X11 environments.
15347 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15349 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15350 because on setter of topmost we dont call SetTopmost when handle is not
15353 2007-03-20 Jackson Harper <jackson@ximian.com>
15355 * TextControl.cs: Need to use SelectionLength () not
15356 selection_length, since that var is reset to -1.
15357 - Draw the caret when we don't have focus.
15358 * TextBox.cs: The selectall actually doesn't occur until the first
15360 * TextBoxBase.cs: Need to update the caret position after a
15363 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15365 * ListView.cs: Enable scrolling when using Tile view.
15367 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15371 * XplatUIDriver.cs: Abstract SetOwner method created.
15373 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
15374 must be implemented and was masked as todo.
15376 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
15379 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
15380 cheking for null owner to remove transient. The SetTopmost will be change
15383 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15384 SetTopmost. Now owned forms will work properly in win32 and X11.
15386 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15388 * MdiWindowManager.cs: Update function name.
15389 * Form.cs: After closing a form MdiParent is always null.
15390 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15391 better what it should do: necessary book-keeping when the form is
15392 closed, it should not close the form itself.
15394 2007-03-19 Andreia Gaita <avidigal@novell.com>
15396 * ListViewItem.cs: Fix back and fore color. The subitems only
15397 use their own colors if they are set, otherwise use the listview's
15398 colors. Don't set default colors on constructor for subitem.
15401 2007-03-19 Mike Kestner <mkestner@novell.com>
15403 * ListView.cs : make box selection for Details views with
15404 FullRowSelect conform to MS behavior when clicking in the "item"
15405 column and clicking outside the defined columns.
15406 [Fixes case 5-6 of #80374]
15408 2007-03-19 Chris Toshok <toshok@ximian.com>
15410 * ScrollableControl.cs: create the controls from within the ctor,
15411 but don't actually add them until our handle is created. this
15412 fixes a NRE possibility jpobst found (if you override OnLayout in
15413 a subclass, it's called before your ctor). Also, add a
15414 IsHandleCreated guard to UpdateSizeGripVisibility as well.
15416 2007-03-19 Jackson Harper <jackson@ximian.com>
15418 * TextBox.cs: Reduce the amount of invalidation we do.
15419 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15420 some of them are true by default on MS.
15421 - Add some functions to reduce the amount of invalidates we do.
15422 * TextControl.cs: Less invalidation.
15424 2007-03-19 Chris Toshok <toshok@ximian.com>
15426 [ Fixes #81773, and *seems* to fix #81553 as well ]
15428 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15429 AccumulateDestroyedHandles. We need to do it *after* we send
15430 WM_DESTROY, as the user's code can access Control.Handle in
15431 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
15432 move the WM_DESTROY/zombie handling to before the call to
15433 XDestroyWindow. For some reason without this ordering
15434 FormTest.RecreateHandle hangs. This ordering is semantically
15435 equivalent, however, as XDestroyWindow is async anyway.
15437 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
15439 * RichTextBox.cs: Reset backcolor_set after setting default.
15441 2007-03-19 Chris Toshok <toshok@ximian.com>
15443 * ScrollableControl.cs: the scroll position should not effect the
15444 canvas size. commit patch from georgegiolfan@yahoo.com, which
15445 fixes some really bizarre behavior on resizing. Fixes bug #80778.
15447 2007-03-19 Chris Toshok <toshok@ximian.com>
15449 * ScrollableControl.cs: clean this up a bit. create the
15450 scrollbars in the ctor and just show/hide them as needed. Also,
15451 make hscroll_visible/vscroll_visible internal to Recalculate, and
15452 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15453 everywhere else. This seems to fix the scrollbars appearing
15454 beneath the content for me (i have *no* idea why that is,
15457 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
15459 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
15460 some redundacy for stuff in Anchor and Dock that base will take care of.
15463 2007-03-19 Mike Kestner <mkestner@novell.com>
15465 * ListView.cs : make box selection for Details views without
15466 FullRowSelect dependent on the text bounds, not item bounds.
15467 * ListViewItem.cs : add an internal property to obtain the TextBounds
15468 in Details view. [Fixes case 1-4 of #80374]
15470 2007-03-19 Andreia Gaita <avidigal@novell.com>
15472 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15473 we're < 2.0. #78448 && #80316
15475 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
15477 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15478 have the same style available as the previously selected one. Also,
15479 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
15481 2007-03-19 Jackson Harper <jackson@ximian.com>
15483 * TextControl.cs: Add an alignment property that all new lines
15485 - Make sure to use the align shift when calculating the line's X
15487 * TextBox.cs: Set the alignment on the document as well as on all
15488 the document lines.
15490 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15492 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15493 throw if setting the parent of an mdichild that already has an
15494 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15495 AssemblyProductAttribute in the assembly, use the type's namespace (as
15496 MS seems to do). CreateControl: don't create the handle if the control
15497 is not visible (according to MS behaviour and spec). SetTopLevel: Only
15498 create handle if the control is not a form. Change FocusInternal to
15499 virtual so that it can be overriden by Form.
15500 * TextBox.cs: Update call to FocusInternal.
15501 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15502 form is not a toplevel form when it's a mdi child, so update is_toplevel
15503 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15504 hasn't been created. Show (IWin32Window): Don't allow this overload for
15505 toplevel windows. CenterToParent/CenterToScreen/Select: create the
15506 handle as MS does. SetVisibleCore: if called on a MdiChild and the
15507 parent isn't visible yet, save the visibility and restore it when the
15508 parent is made visible.
15509 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15510 methods, since the visibility of the scrollbars can be changed from
15511 several places, not only from AutoScroll.
15514 2007-03-19 Jackson Harper <jackson@ximian.com>
15516 * RichTextBox.cs: Enable shortcuts by default.
15517 * TextBoxBase.cs: Add conditional shortcuts.
15519 2007-03-19 Everaldo Canuto <everaldo@simios.org>
15521 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
15523 2007-03-19 Chris Toshok <toshok@ximian.com>
15525 [ Fixes bug #80604]
15527 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15528 swallow the message we're waiting on, instead of delivering it, as
15529 this is only used for the WM_SHOWWINDOW raised from
15530 MapWindow/UnmapWindow, and the message needs to be generated
15531 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15532 before doing the Map/Unmap. Also make sure that the Hwnd is still
15533 alive after the message has been handled.
15535 *before* the window is shown.
15537 * Control.cs (CreateControl): guard a few more things inside the
15538 if (!is_created) block, as we might end up being called again -
15540 (WmShowWindow): call CreateControl if we're showing the control.
15542 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15544 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15545 controls without a handle if they have any parent with a handle. In
15546 Dispose add a check whether the handle is created or not before
15547 calling BeginInvoke, this removes the need of the extra disposing
15548 parameter (which was bogus anyway since it didn't prevent the
15549 invoke from happening, it only skipped the check for an existing
15550 handle, meaning that the invoke would call on an inexistent
15553 2007-03-19 Everaldo Canuto <everaldo@simios.org>
15555 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15556 appears in taskbar.
15558 2007-03-18 Everaldo Canuto <everaldo@simios.org>
15561 - Fixed a problem that dont show help button for messages with 3 buttons.
15562 - Refactory button size and position calculations, now dont use fixed
15563 values, also fixed button sizes (#80043) and form's border space.
15564 - AddButton method created, now all other AddButton methods call this one.
15565 - Some other source code cosmetic changes.
15567 2007-03-18 Jackson Harper <jackson@ximian.com>
15569 * RichTextBox.cs: Don't do this all fonts must match check if
15570 there is only one char selected.
15572 2007-03-18 Jackson Harper <jackson@ximian.com>
15574 * TreeView.cs: ScrollWindow works properly now, so we don't need
15575 to screw around with the scroll area. This fixes some artifacts
15576 when expanding and collapsing.
15578 2007-03-18 Jackson Harper <jackson@ximian.com>
15580 * TextBoxBase.cs: Allow updating the selection position when the
15581 cursor is outside the textarea, but we have a capture.
15582 * TextControl.cs: A special case for when the cursor is outside
15583 the bounds of the TB.
15585 2007-03-18 Jackson Harper <jackson@ximian.com>
15587 * TextBoxBase.cs: Remove image pasting code for now. There is no
15588 way to get an image on the clipboard right now anyways.
15590 * RichTextBox.cs: Use the new RTF Picture class for pictures.
15592 2007-03-18 Everaldo Canuto <everaldo@simios.org>
15595 - Set window properties in constructor intead of on CreateParams.
15596 - Remove topmost from Window ExStyle.
15597 - Set ShowInTaskbar to false.
15598 - Set form border to FixedDialog.
15599 - Some cosmetic changes and remove unneeded comments.
15600 - It fixes itens 2,3 and 4 of bug #80043.
15602 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
15604 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15605 none was explicitly set. Fixes part of bug #79949.
15607 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
15609 * ToolStripComboBox.cs: Add AutoComplete*.
15611 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
15613 * ToolStripComboBox.cs: Add FlatStyle.
15615 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
15617 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15618 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15620 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15622 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15623 CheckBox.cs, RadioButton.cs, BindingSource.cs,
15624 DataGridColumnStyle.cs: Remove warnings.
15626 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15628 * Menu.cs: MergeMenu: Check menu argument for null before looping over
15630 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15631 visibility of mdi child forms. FormSizeChangedHandler: update the
15632 maximized size if size has changed while maximized.
15633 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15634 creating the handle.
15635 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15636 avoid creating the handle if not created.
15637 * XplatUI.cs: Update debug output.
15638 * XplatUIStructs.cs: Added ToString's for a couple of structs.
15640 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
15642 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15644 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
15645 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15646 Implement keyboard shortcuts.
15648 2007-03-15 Everaldo Canuto <everaldo@simios.org>
15650 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15651 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
15652 ColorDialog and all derived classes.
15654 2007-03-15 Everaldo Canuto <everaldo@simios.org>
15656 [ Fixes bug #79828 ]
15659 - Rename ToolBarButtonInfor to ToolBarItem.
15660 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15661 - Maintain an array of ToolBarItem, used instead of ToolBarButton
15662 collection to be able add same button more than one time on a toolbar.
15663 - Refactory all properties and methods to use ToolBarItem.
15665 * ToolBarButton.cs:
15666 - Remove all propeties and methods that is now in ToolBarItem.
15667 - Rectangle propery now gets the rectangle from first ToolBarItem to
15668 mimic win32 behavior.
15669 - Size calculation and layout methods also removed.
15671 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15672 ToolBarItem instead of ToolBarButton to right drawing buttons when
15673 same button/separator was added more than one time to ToolBar.
15675 * ThemeNice.cs: Same as above.
15677 2007-03-15 Andreia Gaita <avidigal@novell.com>
15679 * XplatUIX11.cs: Fire extra MouseMove events right after
15680 MouseDown and MouseUp, emulating win32's <censored> behaviour
15681 for apps that rely on it.
15683 2007-03-15 Jackson Harper <jackson@ximian.com>
15686 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15687 it is drawn on the controls client window and there is no NC
15689 - Set the background color to gray on 2.0 when we are readonly.
15691 2007-03-15 Chris Toshok <toshok@ximian.com>
15693 [ Fixes bug #81144 ]
15695 * XplatUIX11.cs: implement VirtualScreen independently of
15696 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15699 2007-03-15 Chris Toshok <toshok@ximian.com>
15701 * Hwnd.cs: add an internal field for the cached_window_state.
15703 * XplatUIX11.cs: cache the window state, invalidating the cache
15704 (and thus re-querying the X server) only when we see an update to
15705 the _NET_WM_STATE property.
15707 2007-03-15 Chris Toshok <toshok@ximian.com>
15709 * BindingSource.cs: get a lot of the unit tests working.
15711 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
15713 * Control.cs: Modify UpdateStyles to store distances when bounds >=
15714 0 instead of just bounds > 0. [Fixes bug #80912]
15716 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
15718 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15721 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
15723 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15724 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15725 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15726 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15728 2007-03-15 Chris Toshok <toshok@ximian.com>
15732 * Control.cs: add Ivan's fix for 81101, with a slight modification
15733 - you can set control.Target to null.
15735 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
15737 * ToolStripItem.cs: If our OwnerItem is null, we can't use
15738 HideDropDown, use Hide instead to prevent an NRE.
15741 2007-03-14 Jackson Harper <jackson@ximian.com>
15743 * TextBoxBase.cs: Mess with the creation stuff a little. We need
15744 to calculate the document before the handle is created, in some
15745 cases. (Actually just one case).
15747 2007-03-14 Jackson Harper <jackson@ximian.com>
15749 * TextBoxBase.cs: Need to display the caret after letting the base
15750 wndproc handle the focus methods, because the caret display
15751 methods check the focus state.
15752 - Try to display the caret after updating it's position with SelectWord.
15753 - Don't need to do an immediate update on this recalc, since there
15754 will be an invalidate anyways.
15756 2007-03-14 Jackson Harper <jackson@ximian.com>
15758 * TreeView.cs: Some workarounds so that we can match event order a
15761 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
15763 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15764 #80803. Avoid NullReferenceException when Control does not have
15765 parent. Fixed different blinkstyle issues. Only subscribe to Tick
15766 event a single time. Only draw error icon when control is created and
15767 visible. Fixes failing unit tests.
15769 2007-03-14 Andreia Gaita <avidigal@novell.com>
15771 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15772 Selecting events. Fire Leave and Enter events when changing tabs.
15774 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
15776 * TreeView.cs: Add TreeViewNodeSorter.
15777 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15779 2007-03-14 Chris Toshok <toshok@ximian.com>
15781 * Form.cs: go ahead and remove the RecreateHandles that jpobst
15782 removed earlier and I had him add back it. It turns out metacity
15783 *does* in fact handle the MOTIF_WM_HINTS property changing, it
15784 just doesn't redraw the window titlebar until you resize the
15785 window. This also means we aren't recreating the entire window
15786 hierarchy on X when you change this property. And it looks better
15789 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15792 * ListView.cs: Collecting selection information
15793 is now done in SelectedIndexCollection rather than in
15794 SelectedListViewItemCollection. This is done so we can
15795 have the selection information code in one single place
15796 (virtual mode selection information entirely depends on
15797 SelectedIndexCollection).
15799 2007-03-13 Miguel de Icaza <miguel@novell.com>
15801 * ErrorProvider.cs: Add stubs for ISupportInitialize
15803 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15805 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15806 in the right order with the right values, from the Checked property,
15807 just as MS does (instead of triggering them from ListView).
15809 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15811 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15813 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
15814 the correct handler in OnItemCheck method (ItemCheckEventHandler
15815 instead of EventHandler). This used to throw an InvalidCastException.
15817 2007-03-13 Jackson Harper <jackson@ximian.com>
15819 * TextBoxBase.cs: Calculate the document before the handle is
15820 created, so there isn't an extra invalidate called.
15822 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
15824 * Form.cs: Don't set owner in ShowDialog until we are sure
15825 that we aren't going to throw an exception. [Fixes bug #80773]
15827 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
15829 * TreeView.cs: Make it compile.
15831 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15833 * Control.cs: Another place we don't call SizeFromClientSize.
15834 * Form.cs: Another place we don't call SizeFromClientSize.
15837 2007-03-12 Jackson Harper <jackson@ximian.com>
15839 * TreeView.cs: Basically emulating some strangness here with
15840 exanding nodes and setting node positions when windows aren't
15842 - Also attempting to walk the node tree less than previously, and
15843 just use visible order calculations for determining offsets.
15844 - oops made scrolling backwards.
15845 * TreeNode.cs: We need to start nodes with a zero visible order,
15846 because the order calcs are based on the first nodes order.
15848 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15850 * Form.cs: Don't exit the program if RecreateHandle is called on
15853 2007-03-12 Chris Toshok <toshok@ximian.com>
15855 * XEventQueue.cs: remove the use of PostQuitState.
15857 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
15858 WM_QUIT message in GetMessage, return false (and if we're in the
15859 nested WaitForHwndMessage, repost the WM_QUIT message).
15861 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15863 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15864 or the MaximizeBox properties. [Part of bug #80640]
15866 2007-03-12 Everaldo Canuto <everaldo@simios.org>
15868 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15871 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15873 * ToolStripItem.cs: Fix some tests I broke by checking Visible
15874 instead of visible.
15876 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
15878 * FileDialog.cs: Use text of File name combobox to determine what
15879 files the user selected. Added tokenizer to parse the file names.
15882 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15884 * Control.cs: We can't call SizeFromClientSize in the constructor,
15885 but we still need to do the same work, so make an internal version.
15888 2007-03-12 Jackson Harper <jackson@ximian.com>
15892 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15895 2007-03-12 Jackson Harper <jackson@ximian.com>
15897 * TextBoxBase.cs: Now that the handles are being created a little
15898 later, we need to make sure that the document is recalculated when
15899 the handle is created.
15901 2007-03-11 Everaldo Canuto <everaldo@simios.org>
15903 * Theme.cs: GetLinkFont abstract method added.
15906 - Remove CalcTrimRectangle, no longer needed.
15907 - Factor also remove, position issues must be fixed in libgdiplus.
15908 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15909 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
15910 care about font used to draw links.
15911 - Set TabStop to true when control is "Selectable", control is selectable
15912 when have one or more links. Fixes #80501 (test case is also added).
15913 - Set the LinkArea values after links change, LinkArea values must be
15914 based in first link position and size, a test case was created.
15915 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
15916 the attribute must be true LinkArea.Length > 0. The same was applied to
15919 * ThemeWin32Classic.cs:
15920 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
15922 - Use CPDrawStringDisabled to draw disabled text instead of hard code
15924 - Draw focus rectangle for every parts focused, including parts that
15925 is on another line, its because regions returns various rectangles
15926 and not only one. Needed to mimic W32 look.
15927 - Uses Graphics.Clip to delimite region painted, it mean that now
15928 complete text is passed to DrawString, with this we solve layout
15929 issues without create another text renderer.
15930 - Uses Region.Intersect to fix some flickers problems, now only needed
15931 parts will redrawed.
15932 - This changes fixes #79614 and some other unreported issues, on Linux
15933 some layout problems still remain, the problem is under
15934 MeasureCharacterRanges but it is an libgdiplus bug.
15936 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
15938 * TextBox.cs: Set for foreground color.
15939 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15940 this is already done in Control.
15942 2007-03-10 Jackson Harper <jackson@ximian.com>
15944 * TextBox.cs: Set the background color, but reset the
15945 backcolor_set flag which is just for the user setting the
15948 2007-03-09 Chris Toshok <toshok@ximian.com>
15950 * Control.cs: really remove the call to XplatUI.SetVisible from
15951 CreateHandle(), like I said I did when I merged the branch.
15953 * BindingSource.cs: implement some more of this stuff.
15955 2007-03-09 Jackson Harper <jackson@ximian.com>
15957 * TextBox.cs: Don't explicitly set our background colors.
15959 * TextBoxBase.cs: Draw readonly text.
15960 - Need to invalidate when backcolor or readonly are changed.
15962 2007-03-09 Jackson Harper <jackson@ximian.com>
15964 * TextBoxBase.cs: Don't set the forecolor until the handle is
15966 - Do not raise OnPaint, and removed some old debug code.
15968 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
15970 * ScrollableControl.cs: Fix mouse wheel scrolling.
15972 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15974 * Control.cs: Wire up MouseDoubleClick event.
15976 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15978 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15980 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15981 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15982 item is added. This logic was moved to ToolStrip.OnItemAdded.
15985 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15987 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15989 2007-03-08 Jackson Harper <jackson@ximian.com>
15991 * TreeView.cs: Show the correct image for selected node (this used
15992 to work, not sure how the code got deleted). Also implemented 2.0 feature
15995 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15998 * ListViewItem.cs: Cache index in items when retrieving them
16001 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16003 * ToolStripItem.cs: Don't return the explicit_size if we are using
16004 AutoSize. Fixes invalidation issue when user has explicitly set a
16005 size and has AutoSize = true.
16007 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16009 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16011 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16013 * DataGridView.cs: Remove event handler from DataView when a
16014 DataTable is used as DataSource.
16016 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16018 * Control.cs: Create internal setter for client_size to allow it to be
16019 set without triggering resizing code.
16020 * Form.cs: Calculate client_size in constructor, only change client_size
16021 in FormBorderStyle property if Handle has been created.
16022 [Fixes #80574, #80791]
16024 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
16026 * SystemInformation.cs: Add TerminalServerSession.
16028 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16030 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16033 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16035 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16036 Handle before we were supposed to. Now checks ActivateOnShow property
16038 * Control.cs: Add internal ActivateOnShow property.
16039 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16040 for ActivateOnShow.
16041 * Hwnd.cs Remove no longer needed no_activate field.
16043 2007-03-07 Jackson Harper <jackson@ximian.com>
16045 * TreeView.cs: Implement owner draw tree nodes. And a couple more
16047 * DrawTreeNodeEventHandler.cs: Add
16048 * DrawTreeNodeEventArgs.cs: Correct default value.
16050 2007-03-07 Chris Toshok <toshok@ximian.com>
16052 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16053 to be called before NativeWindow.WndProc. Put the HwndCreating
16054 magic there to hook up our Hwnd's to handles.
16056 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
16058 * DataGridView.cs: Comment out debug code.
16060 2007-03-07 Chris Toshok <toshok@ximian.com>
16062 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16063 to make the rest of the world happy]
16065 * Control.cs (CreateHandle): there's no need to call
16066 XplatUI.SetVisible here, it's effectively done by
16067 XplatUI.CreateWindow on X now, and always was on windows.
16069 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16070 shortcircuit out of the loop if we have a message loop running on
16073 [Changelog from merge]
16075 2007-03-05 Chris Toshok <toshok@ximian.com>
16077 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16078 causes handle creation.
16080 2007-02-28 Chris Toshok <toshok@ximian.com>
16082 * ApplicationContext.cs: Add a flag to make sure we only raise the
16083 ThreadExit event once (ExitThreadCore can be indirectly called
16084 from a few places.) I don't like the additional flag, but it
16085 makes the event ordering/count correct.
16087 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16088 without locking the collection. An enumerator doesn't give us any
16089 protection from modification anyway. Lock the thread hash and
16090 replace the complicated enumerator loop with a foreach.
16091 (Application.CloseForms): make internal so it can be called from
16092 ApplicationContext. This should probably be moved to MWFThread.
16093 (Application.ExitThread): don't call MWFThread.Current.Exit()
16094 here. just call XplatUI.PostQuitMessage. We'll exit the thread
16095 when the runloop exits (in response to WM_QUIT.)
16096 (Application.RunLoop): add a comment (and check) for
16097 context.MainForm being null after setting context.MainForm.Visible
16098 = true. This is because you're perfectly free to dispose of a
16099 form in VisibilityChanged. Chalk this up to another case where we
16100 need to synchronously generate WM_ACTIVATE from Control.Show.
16101 Also, add handling for WM_QUIT here so we'll exit the loop.
16103 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
16104 fact that we don't wait if we're only unmapping the whole_window
16105 makes me a bit nervous, but it doesn't seem to cause any problems
16108 also, add a comment about the stupid, broken and wrong resetting
16109 of PostQuitState to false in GetMessage().
16111 In PostQuitMessage, we need to add a WM_QUIT message to the
16112 thread's queue. We use the FosterParent to get the right
16115 Lastly, in SetVisible, we need to unmap both windows, since the
16116 waiting only happens when we're unmapping the client window. So
16117 now, the *only* time we unmap just the whole_window is in the hack
16118 for resizing a control to 0,0.
16120 2007-02-21 Chris Toshok <toshok@ximian.com>
16122 * Application.cs (CloseForms): rewrite this so that we don't
16123 modify the list while we're traversing it.
16125 2007-02-20 Chris Toshok <toshok@ximian.com>
16127 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16128 of OnHandleCreated.
16129 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16130 handle is created. otherwise we'll create it here.
16131 (VerticalScrollEvent): same here.
16133 * Application.cs (CloseForms): call Form.Dispose, don't post
16136 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16137 here. Application should Dispose() of the Form's.
16139 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16140 WM_DESTROY as well.
16141 (MapWindow,UnmapWindow): only actually do the waiting for
16142 SHOWWINDOW if the control we're dealing with is a Form.
16143 (CreateWindow): if the control isn't a form, SendMessage
16144 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16146 * Control.cs (SetVisibleCore): always use is_visible here, not
16147 value. If we use value, we can end up re-setting something
16148 visible if, for instance, you do Control.Hide() in a delegate
16149 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16151 2007-02-20 Chris Toshok <toshok@ximian.com>
16153 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16154 the message we need. PeekMessage returning false should not be a
16155 condition under which we exit the loop.
16157 2007-02-15 Chris Toshok <toshok@ximian.com>
16159 * Control.cs (Refresh): only refresh if we've got a handle and are
16161 (CreateAccessibilityInstance): CreateControl() here.
16162 (UpdateChildrenZOrder): complicate the code loop even more by
16163 taking into account controls that haven't had their handle
16164 created, and those that aren't visible. But on the flip side,
16165 simplify the code by splitting it into two loops. one which
16166 builds up the list of child controls we're interested in, and the
16167 other that sets the z order of those children.
16169 2007-02-14 Chris Toshok <toshok@ximian.com>
16171 * Control.cs: Control.AccessibilityObject causes the control to be
16172 created, not just the handle.
16174 2007-02-14 Chris Toshok <toshok@ximian.com>
16176 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16177 problem on X where a window might have its handle created (and be
16178 visible) while the window is unmapped. calling XConfigureWindow
16179 on an unmapped window is bad, and generates X errors.
16181 2007-02-13 Chris Toshok <toshok@ximian.com>
16183 * Control.cs (CreateHandle): don't loop over our children setting
16184 their parent here. do it when in WndProc when we're shown.
16185 (UpdateChildrenZOrder): make this internal so we can call it from
16187 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16188 creating its handle. Also, remove the calls to PerformLayout from
16189 here. they're done in ScrollableControl.OnVisibleChanged. Also,
16190 OnVisibleChanged only seems to be called directly here for the
16191 toplevel control. It's propagated down the window hierarchy by
16192 calls to child.OnParentVisibleChanged.
16193 (OnVisibleChanged): don't do layout here - it's done (oddly
16194 enough, according to a glance at stack traces on ms.net..) in
16197 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16198 z order of our children before calling PerformLayout.
16200 2007-02-12 Chris Toshok <toshok@ximian.com>
16202 [big change, fixes #80020]
16204 * AccessibleObject.cs: we need to make owner internal again to fix
16205 some of ControlAccessibleObject.
16207 * Control.cs: lots of changes here. add support for WM_CREATE,
16208 for which we generate OnHandleCreated. Remove the OnHandleCreated
16209 call from CreateHandle. Also add support for WM_SHOWWINDOW where
16210 we create child controls. leave the MonoTODO's for the
16211 accessibility calls, but fix the exceptions so the tests pass.
16213 Add the InvalidOperationExceptions to Invoke methods, and remove a
16214 couple of InvokeInternal methods we aren't using.
16216 Also, add a couple of CreateHandle calls in places where we know
16217 the handles are being created but our code doesn't reference
16220 Make SetVisibleCore call OnVisibleChange if the handle isn't
16221 created. If the handle is created, we rely on XplatUI.SetVisible
16222 generating the event synchronously.
16224 Lastly, make sure we don't use this.Handle inside CreateHandle,
16225 because we can call back into client (and that code can dispose of
16228 * XplatUIStructs.cs: misc/cleanup.
16230 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16231 although we don't populate the wParam properly.
16232 (CreateWindow): generate WM_CREATE.
16233 (MapWindow,UnmapWindow): make these calls synchronous, at great
16234 performance expense (particularly in the unmap case), to match
16237 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16239 (set_MdiParent): don't recreate the handle unless it's been
16242 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16245 * NativeWindow.cs: this is probably the weirdest part of the
16246 patch. We need a way to link up the window being created to the
16247 WM_CREATE message. Since we can only be creating one window at a
16248 time on a given thread, we keep track of a per-thread reference so
16249 we can dispatch it properly. We also need to keep track of the
16250 Hwnd currently being created so that the win32 backend doesn't
16253 * XplatUIWin32.cs: a similar change to the one we made in
16256 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16258 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16259 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16260 to draw the menu shortcut string.
16262 2007-03-07 Jackson Harper <jackson@ximian.com>
16264 * TreeNode.cs: Add the 2.0 collapse method.
16266 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16268 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16270 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16272 * DataGridView.cs: Change DataSource will clear column and row
16273 lists. Call Invalidate() to reflect DataSource change.
16275 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16277 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16278 and a new row is added to it.
16280 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16282 * DataGridView.cs: Add columns when DataSource is en empty list but
16283 is a System.Data.DataView (from a System.Data.DataTable).
16285 2007-03-06 Andreia Gaita <avidigal@novell.com>
16287 * Label.cs: Implement AutoEllipsis (2.0)
16289 2007-03-06 Jackson Harper <jackson@ximian.com>
16291 * TreeView.cs: Implement 2.0 TopNode setter property.
16292 - Use a local var instead of the skipped_nodes field for computing
16293 how many nodes to skip. Otherwise we won't scroll because the
16294 valuechanged handler checks if skipped_nodes is equal to the new
16296 - Implement 2.0 Sort method.
16297 - Add useless 2.0 DoubleBuffer property
16298 - Implement 2.0 LineColors property. Lets you change the color of
16299 the lines in the tree. Terribly useful for creating non cohesive
16301 - Implement 2.0 image key feature.
16303 2007-03-06 Jackson Harper <jackson@ximian.com>
16305 * TreeView.cs: We can't get the bounds of the nodes before raising
16306 the AfterSelect event, because that event could change the node's
16307 bounds (scrolling, font change, etc).
16309 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16311 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16312 * Form.cs: Don't recreate handle when creating FormWindowManager, just
16313 update window styles. In CreateParams us VisibleInternal instead of
16314 VIsible to get the actual visible flag set for this form.
16315 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16316 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16317 handle the case when the form is already maximized, in which case
16318 it should be restored. Fixes #81043.
16320 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16322 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16324 2007-03-05 Jackson Harper <jackson@ximian.com>
16326 * TreeViewHitTestInfo.cs: implement.
16328 2007-03-05 Jackson Harper <jackson@ximian.com>
16330 * InternalWindowManager.cs: class status fix.
16332 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16334 * InternalWindowManager.cs: All windows that have a parent
16335 are confined to their parent when they're being moved.
16338 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
16340 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16341 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16343 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16345 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16346 buttons invisible before deciding which ones should be visible
16347 (fixes minimize/maximize buttons showing up in toolwindows). Remove
16348 an unused variable.
16349 * InternalWindowManager.cs: Remove warning.
16351 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16353 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16354 to throw an InvalidOperationException is virtual mode is being used.
16356 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
16358 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16359 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16360 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16361 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16362 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16363 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16365 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16367 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16368 driver.KeyboardDelay from XplatUI.KeyboardDelay
16369 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16370 (patch by Sergey Volk)
16372 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16374 * ToolWindowManager.cs: Added, contains logic for
16376 * CreateParams.cs: Add a few helper methods and an
16377 internal variable to know which control the CreateParams belongs
16379 * Control.cs: Call Form.ChangingParent when the
16380 parent is about to be changed.
16381 * XplatUIX11.cs: DeriveStyles (): Set
16382 caption_height for all windows that have captions and are children.
16383 Update to use ToolWindowManager instead of InternalWindowManager
16385 * XplatUIWin32.cs: Set fake window styles for all
16386 windows that have window managers.
16387 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16388 now duplicated for mdi windows when they are
16389 maximized, first for the buttons the window itself has, then for
16390 the buttons that appear in the menu bar. Makes things a little
16391 easier). Updated UpdateWindowDecorations, SetWindowState and the
16392 mouse eventhandlers accordingly.
16393 * Form.cs: Add ChangingParent (), contains the
16394 logic of what should happen when the parent changes. In MdiParent
16395 don't set things that ChangingParent () is doing. When handling
16396 WM_CLOSE, we can close the form if there are any other modal forms
16397 and the current form is a descendent of the modal form.
16398 * InternalWindowManager.cs: A lot of refactoring,
16399 the title buttons are now extracted to a separate container class
16400 that takes care of all button code (clicks, tooltips, etc). Moved
16401 Iconic|Maximized|Normal Bounds properties to this class from
16402 MdiWindowManager, so that the window state logic can succeed for
16403 other than mdi wm's. Implemented general window state change logic.
16404 Moved CreateButtons to ThemeWin32Classic, since the theme might
16405 override which buttons are available when as well as the exact
16407 * FormWindowManager.cs: Added, contains logic for
16409 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16410 which buttons go where (and if they are at all visible).
16411 Removed special handling of maximized windows, since they aren't special.
16412 In DrawManagedWindowDecorations don't try to draw the text if it is
16414 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
16415 use whatever the wm gives us.
16417 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
16419 * ButtonBase.cs: Add 2.0 properties.
16420 * Button.cs: Override Draw for 2.0.
16421 * Control.cs: Add Entered and Selected properties.
16422 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16423 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16424 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16426 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16428 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
16430 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
16432 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
16434 * XplatUIWin32.cs: Register a new class with Windows each time we get
16435 a new ClassStyle. [Fixes bugs #79432, #80817]
16436 * Controls.cs: Set the correct ClassStyle in CreateParams.
16437 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16439 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
16441 * ListView.cs: Add fireEvent argument to ReorderColumn since the
16442 ColumnReordered event must not be signaled when modifying DisplayIndex
16443 of a ColumnHeader. Added internal ReorderColumns method which takes
16444 care of drawing, and updating the internal DisplayIndex of the
16445 ColumnHeader. Added AddColumn method which is invoked from
16446 ColumnHeaderCollection when adding or inserting columns, and which
16447 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16448 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16449 Recalculated dispay indices after removing a ColumnHeader.
16450 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16451 match MS. Allows last display index to be returned after ListView
16452 is disposed. Update actual location of ColumnHeader when DisplayIndex
16455 2007-03-01 Everaldo Canuto <everaldo@simios.org>
16457 * LinkLabel.cs: Improve CalcTrimRectangle.
16459 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16461 2007-02-28 Everaldo Canuto <everaldo@simios.org>
16463 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16464 get rectangle as a result value.
16466 2007-02-28 Everaldo Canuto <everaldo@simios.org>
16468 * LinkLabel.cs: Theres some diferences between rectangle return from
16469 MeasureCharacterRanges and the area used for DrawString to fix this
16470 CalcMeasurementFactor method was created, it calcules the diferences
16471 to be use later to adjust rectangle in draw operations. Fixes #80473.
16473 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16474 to adjust draw rectangle.
16476 2007-02-27 Everaldo Canuto <everaldo@simios.org>
16478 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16479 text and some other changes to reduce and optimize source code.
16481 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
16483 * RadioButton.cs: Implement 2.0 event.
16484 * RelatedImageListAttribute.cs: Implement new class.
16486 2007-02-27 Everaldo Canuto <everaldo@simios.org>
16488 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16490 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
16492 * CheckBox.cs: Implement 2.0 functionality.
16494 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16496 * ListView.cs: Refactor Add and AddRange methods of
16497 ListViewItemCollection, to not update the ListView
16498 everytime an item is added in AddRange. Also move the update
16499 code to a new CollectionChanged method, and call it
16500 from other methods that need it as well (this should also fix some
16501 bugs when Sorting is used).
16503 2007-02-27 Jackson Harper <jackson@ximian.com>
16505 * TextControl.cs: Try to never let the caret stay in a non-text
16507 * TextBoxBase.cs: Update the caret.
16509 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
16511 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16512 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16513 delete POINT structure, duplicate of one in XplatUIStructs.
16514 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16516 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
16518 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16519 edit box since otherwise the Label would immediately be set (even if
16520 the user did not modify the label). In OnKeyDown set Handled to true
16521 if Return or Escape was pressed. In ColumnHeaderCollection unlink
16522 columns that are to be removed. In ListViewItemCollection unlink items
16523 that are to be removed.
16525 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
16527 * TextRenderer.cs: If we set a GDI clip region, we need to clear
16528 it when we are done. [Fixes bug #80949]
16530 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16532 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16534 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16536 * ListView.cs: I forgot to commit the changes for ListView
16537 in my previous patch.
16539 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16541 * Clipboard.cs: Partially implement an overload of SetDataObject.
16542 * Form.cs: Implement ShowWithoutActivation.
16543 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16545 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16547 This is a first set of changes to make the Virtual mode works,
16548 by avoiding the retrieval of ListViewItem instances until
16551 * ListView.cs: Store item position in the ListView instead of the
16552 ListViewItem, this way we don't request the Bounds property of
16553 ListViewItem inside the ListView calculations, as well as cache the item
16554 size in item_size field. Store indexes instead of ListViewItem
16555 instances in the matrix used by icon view. Add a ItemMatrixLocation
16556 struct to hold the row and col info of the matrix info.
16558 * ListViewItem.cs: Don't store the location anymore, and only cache
16559 the rectangles for GetBounds. Use the ListView.GetItemLocation
16560 method to retrieve the actual location.
16562 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16564 * TextRenderer.cs: Add clipping support, thanks to George.
16567 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
16569 * ListViewItem.cs: Cancel label edit when item is removed from
16571 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16572 event before the edit textbox is displayed. Added CancelEdit method
16573 which is used end to editing while ignoring the value set by the
16574 user. In EndEdit, set focus to ListView to avoid losing focus to
16575 other controls. In ListViewItemCollection.Clear, cancel editing of
16576 any of the items. In Remove, cancel editing of item being removed.
16577 Avoid udplicate code by modifing RemoveAt to invoke Remove.
16579 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
16581 * FileDialog.cs: Update FSEntry when move is successful. Fixes
16584 2007-02-23 Everaldo Canuto <everaldo@simios.org>
16586 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
16587 compatible with non X11 systems. Fixes #80901.
16589 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
16591 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16592 whether the item should be unselected and reselect. We do no want this
16593 when we're starting to edit the label. Do not fire the
16594 SelectedIndexChanged event from ListView when its already been fired
16595 by modifying ListViewItem.Selected. Fixes bug #80943.
16597 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16599 * TextRenderer.cs: Previos commit logic was backwards.
16601 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16603 * TextRenderer.cs: Don't add padding on MeasureText if we were
16604 sent the NoPadding flag.
16606 2007-02-23 Everaldo Canuto <everaldo@simios.org>
16608 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16609 after DrawButton. To prevent image overlaps button borders SetClip and
16610 ResetClip added before and after draw image. Fixes #79129.
16612 2007-02-23 Everaldo Canuto <everaldo@simios.org>
16614 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
16615 window size, it fix problem when you run under win32 that theres
16616 Size diferent than ClientSize. Also fix controls size and positions
16617 to mimic Win32. Fixes #80837.
16619 2007-02-22 Everaldo Canuto <everaldo@simios.org>
16621 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
16622 menu area to fix some problems for non X11 systems. Fixes #80613.
16624 2007-02-22 Jackson Harper <jackson@ximian.com>
16626 * TreeNode.cs: When a node is expanded, set its is_expanded flag
16627 even if it doesn't have any children.
16629 2007-02-22 Jackson Harper <jackson@ximian.com>
16631 * TreeView.cs: Calculate the top node 'on the fly', this
16632 eliminates issues where you need to click on the tree before
16633 scrolling it to get the top node computed correctly.
16634 * TreeNodeCollection.cs: We don't need to mess with the top node
16637 2007-02-22 Jackson Harper <jackson@ximian.com>
16639 * DataGridViewRow.cs: Fix typo so height can actually be set.
16640 Patch by Peter Grimm.
16642 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
16644 * FileDialog.cs: Fixed support for renaming files and directories.
16645 * ListView.cs: Do not lose focus when edit is canceled. Process
16646 Escape as regular key (to prevent closing of dialogs).
16648 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
16650 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16651 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16653 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
16655 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16656 did not modify label.
16657 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16658 modified the text. Reset Label when user presses Escape in edit mode.
16659 Move focus to ListView after having cancelled or finished editing the
16662 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
16664 * ComboBox.cs: Removed unnecessary initializations. Marked items field
16665 private. Clear textbox when Text is set to null and SelectedIndex is
16667 * FileDialog.cs: Removed unnecessary initializations. Removed
16668 workarounds for ComboBox bugs that are now fixed. Modified
16669 DefaultExt, InitialDirectory and Title property to change null to
16670 zero-length string in getters. Avoid directly accessing fields.
16672 2007-02-20 Jackson Harper <jackson@ximian.com>
16674 * TextControl.cs: Remove RecalAlignments call, that was some
16675 debugging leftovers.
16676 - Don't use the line indent when we shouldn't.
16677 * RichTextBox.cs: Add support for paragraph left indents.
16679 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16681 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16682 Seems like the class status pages doesn't catch params differences.
16684 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
16686 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16688 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
16690 * ComboBox.cs: Setting Text should have no effect if item text of
16691 selected item exactly matches value. First lookup text using
16692 case-sensitive comparison, and fallback to case-insensitive comparison.
16693 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
16694 allow startIndex to be last index. Changed ArgumentOutOfRangeException
16695 paramname to match MS. Restart from first item if string is not found
16696 after startIndex. Fixed paramname of ArgumentNullException that is
16697 thrown for null value in ObjectCollection.Contains.
16699 2007-02-19 Everaldo Canuto <everaldo@simios.org>
16701 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16703 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16705 * ListControl.cs: In SelectedValue use value.Equals to compare for
16706 equality instead of ==, otherwise it will fail for strings.
16709 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16711 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16712 since the caret won't show up unless ShowSelection is true.
16715 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16717 * Application.cs: When disabling all forms but the main form, do not
16718 disable any descendants of the main form (such as mdi children or
16719 other parented forms). Fixes #80822 on Windows.
16720 * Form.cs: If we have a parent, set the WS_CHILD style.
16721 * Control.cs: Update the window styles if the control whose parent has
16722 changed is a form (the WS_CHILD style has to be switched).
16724 2007-02-19 Everaldo Canuto <everaldo@simios.org>
16726 * XplatUIStructs.cs: MsgUIState structure added.
16728 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16730 * FileDialog.cs: Removed need for separate fileName field. On 2.0
16731 profile, do not check filename(s) for illegal character if filename(s)
16732 were set non-interactively but always check on 1.0 profile. Fixed NRE
16733 in DefaultExt and only strip off first leading dot. Improve exception
16734 message when invalid Filter is set. Do not ignore InitialDirectory if
16735 it does no exist. Store specified Title, and if empty use default
16736 title (depending on type of dialog). Added an internal DialogTitle
16737 property for retrieving dialog title. Fixed logic of displayed dir to
16738 more closely match MS. Avoid setting ComboBox.Text to a zero-length
16739 string as its buggy.
16740 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16741 FileName is a zero-length string (it can never be null). Override
16742 DialogTitle property to set default title of dialog box.
16743 * SaveFileDialog.cs: Override DialogTitle property to set default
16744 title of dialog box.
16746 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16748 * FileDialog.cs: Modify default text of filename and filetype labels
16749 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16750 after we've updated the SelectedIndex. Fixes part of bug #80887.
16751 * SaveFileDialog.cs: Set text of filetype label.
16753 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16755 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16756 label field. Needed by latest Jackson's fixes for ListView.
16758 2007-02-16 Andreia Gaita <avidigal@novell.com>
16760 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
16761 print preview images.
16763 2007-02-16 Jackson Harper <jackson@ximian.com>
16765 * ListView.cs: Make AfterLabelEdit work correctly.
16766 * FileDialog.cs: After changing the name of the folder, we have to
16767 make sure that it is created, or that we pop up an error because
16770 2007-02-16 Jackson Harper <jackson@ximian.com>
16772 * X11Dnd.cs: Implement aliases on mime handlers, so things like
16773 System.String are mapped to text.
16774 - Handle dataobjects, getting all the possible formats out of them
16775 - We dont need the drag event args before we give feedback. This
16776 allows feedback cursors to be immediate before selections have
16779 2007-02-16 Jackson Harper <jackson@ximian.com>
16781 * TextBoxBase.cs: Modified the method for inserting images to
16782 taking a line and position instead of tag and position.
16783 * RichTextBox.cs: Handle PngBlip data by inserting the png image
16785 * TextControl.cs: Allow images to be inserted as the first tag of
16787 - Fix some off by one issues when we assume the first tag is a
16788 text tag, not an image tag.
16790 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16792 * ListView.cs: Set focus to ListView when ItemControl gets a
16793 WM_RBUTTONDOWN message, to mimic .Net behaviour.
16794 Fixes part of #80467.
16796 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16798 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16799 validate Text input (if null or empty string reset Value to default
16800 value). Fixes #80830.
16802 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16804 * ListView.cs: Set owner as null for columns and items when
16805 Dispose is invoked. Fixes #80607.
16807 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
16809 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16810 showing DropDowns, don't show a Grip when doing Flow layout.
16811 [This fixes the toolbox in PDN 2.72.]
16812 * ToolStripItem.cs: Add Anchor property and some internal properties to
16813 reduces needed changes to FlowLayout.
16814 * ToolStripOverflow.cs: Remove unused variable.
16815 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16816 use it in the layout calculations.
16818 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16820 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16821 reported in #79640.
16823 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16826 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16828 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
16829 MeasureString format, it can make button very large in some cases, it is
16830 strange but is what win32 do.
16832 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16834 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
16837 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16838 rendering, the value is based on MenuAccessKeysUnderlined.
16840 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16842 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16845 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16847 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16848 and use MenuAccessKeysUnderlined instead.
16850 2007-02-13 Andreia Gaita <avidigal@novell.com>
16852 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16853 A selected control would not get a Focus call if:
16854 - the default active control of the container is the same as
16855 the one that was selected
16856 - we are switching from one container to another
16857 Under these conditions, the container being selected already has
16858 an active_control, which is the same as the one being activated,
16859 so set_ActiveControl would always return and not send the Focus
16860 call. Fix to check if the currently active control of the container
16861 is actually focused.
16863 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
16865 * StatusStrip.cs: Implement the spring layout.
16866 * ToolStripControlHost.cs: Make sure the hosted control's visibility
16867 always matches the host.
16868 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16869 and TextAfterImage.
16871 2007-02-13 Andreia Gaita <avidigal@novell.com>
16873 * Control.cs: Code reorganization only.
16874 - Reorganize the WndProc cases so that each case has it's own handling method,
16875 to help with the no-line-numbering stack traces.
16876 - Formatting changes (it's vstudio's fault, really :p)
16878 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16880 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16881 Thread.CurrentUICulture to match DateTimePicker's (and MS)
16884 2007-02-12 Jackson Harper <jackson@ximian.com>
16887 * TextBox.cs: By default we have a non multiline document
16888 - use the multiline property instead of the internal variable
16889 * TextBoxBase.cs: Treat multiline and non multiline the same in
16891 - Use the documents multiline flag instead of tracking it ourself
16892 * TextControl.cs: Attempt at getting multiline to match MS
16893 behavior. Lines now track an offset, which is either their X or Y
16894 offset depending on whether or not we are in multiline mode.
16895 - Update all the methods to understand that lines have an X value.
16896 - Fix crash in Undo::Duplicate when empty lines are deleted.
16898 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16900 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
16901 code moved to properties PreferredHeight and PreferredWidth. It solve the
16902 all problems when preferred sizes must be recalculated. Fixes #80801.
16904 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16906 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16907 font height when compatible_text_rendering is false. Partially fix #80801.
16909 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16911 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16913 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16915 * Form.cs: Improved exception messages in ShowDialog.
16917 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16919 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16920 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16921 if not set. Fixes bug #80764. Avoid accessing current_settings field
16924 2007-02-08 Everaldo Canuto <everaldo@simios.org>
16926 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16929 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16930 public in 2.0 and for easy maintenance and dont break compatibility it is
16933 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16935 * ToolStripItem.cs: Implement using images from ImageList.
16937 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16939 * DateTimePicker.cs: Change default date-formatting culture from
16940 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16941 seems to be the way MS does it.
16943 2007-02-08 Andreia Gaita <avidigal@novell.com>
16945 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
16946 (the 6 was cut off on the right side)
16948 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16950 * Form.cs: Tell MenuStrips to close when the form is clicked.
16951 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
16952 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16953 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16954 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
16955 support for Overflow, where items that do not fit are automatically
16956 reparented to a drop down menu.
16957 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16958 Also: fixes bug #80747.
16960 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16962 * ComboBox.cs: Remove warning (unused code).
16963 * ScrollableControl.cs: Remove warning for 1.1 profile.
16965 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16967 * Form.cs: Remove a warning.
16969 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16971 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16972 'g' specifier, not documented anywhere, but seems to always show up
16973 as a single space (might have something to do with the DateTime 'g'
16974 specifier, which is the era format, but since DateTimePicker can't
16975 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16976 won't crash if the format has an unmatched quote. Now shows
16977 single-character formats correctly. Fixes #80744.
16979 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16981 * StatusStrip.cs: Stretch property needs to call base.Stretch,
16982 not this.Stretch to fix stack overflow. [Fixes bug #80760]
16984 2007-02-07 Chris Toshok <toshok@ximian.com>
16986 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16987 background color. it overwrites the background image we've
16988 already painted. Fixes #80599.
16990 2007-02-07 Chris Toshok <toshok@ximian.com>
16992 * DataGrid.cs: return immediately from Edit() when there are no
16993 columns. Fixes #80662.
16995 2007-02-07 Chris Toshok <toshok@ximian.com>
16997 * MessageBox.cs: fix #80625. don't always show the Help button in
16998 2.0. use the displayHelpButton parameter to determine if we
16999 should show it. Also, make the internal show_help field private.
17001 2007-02-07 Chris Toshok <toshok@ximian.com>
17003 * Control.cs (SetVisibleCore): check in the proposed patch for
17004 80604, and set is_visible before calling CreateControl.
17006 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
17008 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
17009 MonoInternalNote. This is added automagically by VS2005, so let's not crash
17012 2007-02-06 Everaldo Canuto <everaldo@simios.org>
17014 * MenuAPI.cs: hotkey_active internal field added, it is required because
17015 we need to know when hotkeys must be draw, before this change a keystate
17016 Navigating was used but we can have menu in navigating state without
17017 hotkeys. Fixes #80694.
17019 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17021 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17023 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17024 corresponding events and methods to be internal for 1.1 profile and
17025 public for 2.0 profile (required by SizeGrip).
17026 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17027 implicit control list). Don't set the size nor the location of the
17028 SizeGrip anymore as it's not needed.
17029 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17030 draw directly on the captured control (fixes #80656). Removed
17031 ShowGrip (it wasn't used anywhere), redraw (always true), added
17032 GetDefaultSize and GetDefaultRectangle to calculate defaults.
17033 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17034 be called from SizeGrip.
17036 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17038 * Timer.cs: Throw ArgumentException if Interval <= 0.
17040 2007-02-05 Jackson Harper <jackson@ximian.com>
17042 * TreeView.cs: We need to check scrollbar visibility when window
17043 visibility is updated, because non visible trees don't ever add
17045 * Cursor.cs: We want the override cursor to be reset to NULL when
17046 we set current cursor to the default cursor.
17048 2007-02-05 Jackson Harper <jackson@ximian.com>
17050 * TextControl.cs: Don't have crlfs when we are non multiline.
17051 - Consolidate the line position.
17053 2007-02-05 Jackson Harper <jackson@ximian.com>
17055 * X11Keyboard.cs: BACK+CTRL gets a special char code.
17057 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17059 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17060 handling LeaveNotify->NotifyUngrab in order to send
17061 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17062 after calling XUngrabPointer, so we call WindowUngrabbed directly
17063 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17064 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17065 MouseCaptureChanged correctly. Also create handles if changing
17066 Capture (matches MS behaviour).
17068 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17070 * SizeGrip.cs: Make the last change 2.0 only.
17072 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17074 * SizeGrip.cs: If resizing and the capture is lost, revert any size
17075 changes to initial size (fixes #80597).
17077 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17079 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17081 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17083 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17084 background) and only allow dragging if enabled. This way the
17085 sizegrip can be used to fill the open square that otherwise would
17086 have been shown in the bottom right corner of ScrollableControl
17087 when ScrollableControl is not suppose to support sizing.
17088 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17089 sizegrip is shown and enabled, and hook up with necessary events.
17091 2007-02-01 Chris Toshok <toshok@ximian.com>
17093 * DataGridTextBoxColumn.cs: clean up the
17094 GetFormattedString/GetColumnValueAtRow combination of functions.
17095 Also fix UpdateUI, and the initial state of
17096 IsInEditOrNavigateMode.
17098 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17099 aren't supposed to scroll the textbox here, we're supposed to
17100 scroll the datagrid.
17102 2007-02-01 Chris Toshok <toshok@ximian.com>
17104 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17105 setting the position.
17107 2007-02-01 Chris Toshok <toshok@ximian.com>
17109 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17110 here, since the most recent focus fixes keep us from generating
17111 the Leave event when our textbox gets focus.
17112 (Edit): we should be passing null for the column style's
17113 instantText parameter.
17115 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
17117 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
17118 raised. Fixes menu text/icons not showing up in PDN.
17120 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17122 * Control.cs: Remove code in constructor that makes every
17123 control with WS_CHILD set have initial location -1, -1.
17125 2007-01-31 Jackson Harper <jackson@ximian.com>
17127 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17129 * XplatUIX11.cs: Give teh keyboard to teh dnd.
17131 2007-01-31 Jackson Harper <jackson@ximian.com>
17133 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17134 - Remove some debug code.
17136 2007-01-31 Jackson Harper <jackson@ximian.com>
17138 * XplatUIX11.cs: If you set the override cursor during a grab, it
17139 should actually override the grab cursor. This comes into play
17140 when you are setting custom cursors in a DND feedback method.
17142 2007-01-31 Jackson Harper <jackson@ximian.com>
17144 * X11Dnd.cs: Add support for handling the QueryContinue and
17145 GiveFeedback events.
17146 - Cancel drag and drop actions when the escape key is clicked.
17147 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17148 can handle the ESCAPE key.
17149 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
17150 done when dnd events are continued after the button is released.
17151 - Add a new helper method so that dnd can translate key events.
17153 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
17155 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17156 make it more obvious what is happening.
17158 2007-01-30 Jackson Harper <jackson@ximian.com>
17160 * XplatUIX11.cs: Don't break when handling button release in drag
17161 and drop operations. We need that BUTTONUP message to get through
17162 so capture is released.
17163 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17164 this is handled automatically when the mouse is down.
17166 2007-01-30 Jackson Harper <jackson@ximian.com>
17168 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17169 is closed, so we need to make sure that we aren't changing the
17170 dialog result when the OK (Open or Save) button has been clicked
17171 and we are closing the window ourselves. Note we don't need to
17172 worry about the cache being written in this case, because it was
17173 already done in the previous FilOk call.
17175 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17177 * DateTimePicker.cs: Remove a warning.
17178 * ComboBox.cs: Remove a couple of warnings.
17180 2007-01-29 Chris Toshok <toshok@ximian.com>
17182 * XplatUIX11.cs: don't crash, and remove the icon if the user has
17183 set one, if SetIcon is passed a null icon.
17185 2007-01-29 Andreia Gaita <avidigal@novell.com>
17187 * TextBox.cs: Redraw when the password characters changes
17188 * TextControl.cs: Check if textbox has a password char and draw
17189 a line of password chars instead of the text in the line. LineTag gets
17190 an extra Draw() method which allows document.Draw to override the text
17191 that will be drawn. Removes 1024 char limitation on length of passworded
17194 2007-01-29 Jackson Harper <jackson@ximian.com>
17196 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
17197 single chars is not.
17199 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
17201 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17202 one pixel. Fix a StackOverflowException caused by an overload wrongly
17205 2007-01-26 Everaldo Canuto <everaldo@simios.org>
17207 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17208 also remove ProcessArrowKey and put the code inside ProcessKeys.
17210 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
17212 * PaddingConverter.cs: Added.
17214 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
17216 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17217 ShowPanels is false (fixes #80600). Only draw up to 127 characters
17218 of text (fixes #80601). For panels clip the text to draw to the
17219 panel (fixes #80603).
17221 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
17223 * ComboBox.cs: Fixed implementation of ResetText.
17225 2007-01-25 Jackson Harper <jackson@ximian.com>
17227 * TextControl.cs: For the last char of a line we need to use the
17228 line size, not that chars width, since it won't actually be
17229 computed since the right side of a char is based on the start of
17230 the left side of the next char, and the next char does not exist.
17232 2007-01-25 Chris Toshok <toshok@ximian.com>
17234 * Splitter.cs: fix the new unit tests, and reindent some switch
17237 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
17239 * ComboBox.cs: Implemented 2.0 methods and events.
17240 * TextBoxBase.cs: Added OnTextUpdate, so that
17241 ComboBox.ComboTextBox can inform ComboBox of it.
17243 2007-01-25 Jackson Harper <jackson@ximian.com>
17245 * TextControl.cs: Respect ShowSelection when deciding whether or
17246 not to display the caret, this allows comboboxes to have carets
17247 when the combotextbox does not have focus.
17249 2007-01-25 Jackson Harper <jackson@ximian.com>
17251 * TextControl.cs: Add a Suspend/Resume for updating, basically the
17252 same as the Suspend/Resume for recalc, except this will do actual
17254 - New Undo manager, works much like the MS version.
17256 * TextBoxBase.cs: The Cut operation is undoable.
17258 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
17260 * TextBoxBase.cs: Don't antialias text. Makes it look way better
17261 on Windows (no difference on Linux).
17263 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
17265 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17266 we don't want to activate any windows. Fixes #79433.
17268 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
17270 - ButtonBase.cs: Fix capitalization of parameter: disposing.
17273 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
17276 - Move to using System.ComponentModel.EventHandlerList
17277 - Replace Refresh with Invalidate
17278 - Clear the mime filecache on closing
17279 - Some other memory reducing work. After beeing closed FD now uses
17280 only about 300 KB for the fdo mime stuff plus the memory of the
17282 * Mime.cs: Changed coding style and removed unnecessary commented
17283 code. Some more memory memory reducing work.
17285 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
17287 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17288 a few other missing 2.0 properties.
17289 * Theme.cs: Added DrawFlatStyleComboBox.
17290 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17292 2007-01-24 Chris Toshok <toshok@ximian.com>
17294 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17295 wake_waiting flag, not just when there's data to be read. if we
17296 don't, then future wakeup's won't reach us and we'll be doomed to
17297 wait for the entire 1 second timeout forever (unless there are X
17300 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
17302 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17303 until you pass Items.Count, not Items.Count - 1 like 1.1.
17305 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
17307 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17309 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
17311 * ToolStripContainer.cs: The recent Dock fix exposed that I was
17312 adding the panels in the wrong order.
17314 2007-01-24 Jackson Harper <jackson@ximian.com>
17316 * TextBoxBase.cs: When we move the caret we also need to move the
17317 selection, this fixes some random crashing after doing select
17318 text, unselect, delete a char, paste.
17320 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
17322 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17324 2007-01-23 Everaldo Canuto <everaldo@simios.org>
17326 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17327 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
17328 * ToolBar.cs: Force redraw in BackgroundImageChanged.
17330 2007-01-23 Everaldo Canuto <everaldo@simios.org>
17333 - Implement support for vertical toolbars. Fixes #80539;
17334 - Call LayoutToolBar when resize, it fix some other problems in layout.
17335 - Rename requested_height to requested_size, as we can have width on it
17336 when toolbar is vertical.
17337 - Create a private property "Vertical" that uses Dock to verify when
17338 toolbar is vertical or not.
17339 - Set ControlStyles when change Dock property.
17340 - Refactory in LayoutToolBar to have better variables names and to support
17342 - Fixes default value for ButtonSize when button count is equal zero, size
17343 must be (39, 36) test case writed.
17345 2007-01-23 Chris Toshok <toshok@ximian.com>
17347 * Control.cs: fix the checks so that they work correctly for mdi
17350 2007-01-23 Chris Toshok <toshok@ximian.com>
17352 * Control.cs: ControlCollection seems to have super-secret
17353 abstraction breaking knowledge of Mdi containers. allow MdiClient
17354 to add toplevel controls.
17356 2007-01-23 Chris Toshok <toshok@ximian.com>
17358 * Control.cs: throw an ArgumentException if a toplevel control is
17359 added to our control collection from ControlCollection.Add, as
17360 well as from ControlCollection.IList.Add. This fixes the
17361 ControlSetTopLevelTest.TestTopLevelAdd unit test.
17363 Also, in ControlCollection.IList.Add, don't through an
17364 ArgumentNullException, throw an ArgumentException, when value ==
17365 null. This matches MS.
17367 2007-01-23 Chris Toshok <toshok@ximian.com>
17369 * BindingSource.cs: initial, incomplete, implementation of
17372 2007-01-23 Jackson Harper <jackson@ximian.com>
17375 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17376 that I can fix a broken unit test (TextBoxTest::ClearUndo)
17378 2007-01-23 Everaldo Canuto <everaldo@simios.org>
17380 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17382 2007-01-23 Andreia Gaita <avidigal@novell.com>
17384 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17385 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17386 IndexOfKey() for 2.0
17388 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17390 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17391 to prevent it from changing z-order.
17392 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17393 leave UI updates in MdiWindowManager.
17394 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17395 1 sized (NC handling goes weird on Linux otherwise).
17396 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17397 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17398 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17399 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17400 and SetWindowState(s) to allow for changing the size of an activated child
17401 before activating it (reduces a lot of flicker).
17403 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
17405 * Form.cs: Changing FormBorderStyle has different semantics based
17406 on whether the Form is visible or not. If not visible, don't change
17407 the Size. But InvalidateNC needs to be called to force the window
17408 to pick up the changes and redraw itself. [Fixes bug #80574]
17410 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
17413 * ContainerControl.cs: ProcessCmdKey.
17414 * ErrorProvider.cs: new constructor.
17415 * Form.cs: fix AutoValidateEvent compiler warning.
17416 * Label.cs: fix OnAutoSizeChanged compiler warning.
17417 * MenuStrip.cs: fix CanOverflow compiler warning.
17418 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17419 * TextBox.cs: Dispose.
17420 * ToolStrip.cs: CanOverflow, re-enable double buffering.
17421 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17422 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17423 * ToolStripItem.cs: Overflow, RightToLeft properties.
17425 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17427 * Form.cs: Move the layout of the main form to MdiWindowManager.
17428 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17429 do a layout of the main window to update MdiClient's client area to
17430 the right area. Fixes #80533. Remove the calculation of nc size,
17431 it was just wrong and the correct one is the same as for
17432 InternalWindowManager.
17434 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
17436 * Control.cs: Setting Anchor or Dock needs to reset the other
17437 to its default. [Fixes bug #80556]
17439 2007-01-20 Chris Toshok <toshok@ximian.com>
17441 * CheckedListBox.cs: class status changes.
17443 * ScrollableControl.cs: same.
17445 * RichTextBox.cs: same.
17447 * ContainerControl.cs: same.
17449 * ListView.cs: same.
17451 * NotifyIcon.cs: same.
17453 * MenuStrip.cs: same.
17455 * RadioButton.cs: same.
17457 * CheckBox.cs: same.
17459 * PrintPreviewDialog.cs: same.
17463 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
17465 * TreeNode.cs: Apply Alan's patch for Name property.
17467 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17469 * Form.cs: Implemented SizeGripStyle.
17470 * SizeGrip.cs: Check for minimum and maximum size for the
17471 control being resized and only resize if size has actually
17474 2007-01-19 Chris Toshok <toshok@ximian.com>
17476 * DataGridColumnStyle.cs: stop setting _readonly in the
17477 PropertyDescriptor setter. fixes a unit test failure.
17479 also, rename ParentReadOnly to TableStyleReadOnly, and have it
17480 just consult our table style (if we have one). We don't need to
17481 consult the datagrid readonly attribute because that's passed in
17482 as the _ro arg to Edit. this simplifies things a little.
17484 * DataGrid.cs: use CurrentColumn instead of
17485 current_cell.ColumnNumber just to simplify some of the code.
17487 switch the order of some things in the CurrentCell setter to keep
17488 the previous cell from getting a textbox again -
17489 EnsureCellVisibility causes scrolling to happen, which calls Edit.
17490 So we need to set the new cell before calling it.
17492 call Edit in OnEnter, as does Microsoft.
17494 also, make sure the current table style isn't the one we create
17495 initially when checking to see if it's different than the one
17496 we're setting it to in BindColumns (this fixes #80421).
17498 * GridTableStylesCollection.cs: table styles can have "" for a
17499 mapping name. part of the fix for #80421.
17501 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17502 Edit significantly.
17504 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17506 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17507 and less GDI object leaky-er.
17509 2007-01-18 Andreia Gaita <avidigal@novell.com>
17511 * LinkLabel.cs: Add opaque control style
17513 2007-01-18 Jackson Harper <jackson@ximian.com>
17515 * TextControl.cs: Calculate width properly.
17516 - Don't store the tag's X offset, this can be figured out very
17518 - When getting the caret tag make sure to get the last empty tag.
17520 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17522 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17525 * Control.cs: Color.Empty shouldn't count for previous transparent
17528 2007-01-18 Jackson Harper <jackson@ximian.com>
17532 * TextControl.cs: Starting to merge in some pieces of my older
17533 undo work. Basically just some slight cleanup of the undo API.
17535 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17537 * TrackBar.cs: Fix signature of RightToLeftLayout.
17538 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17539 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17540 * Application.cs: Implemented UseWaitCursor.
17542 2007-01-18 Jackson Harper <jackson@ximian.com>
17544 * TextControl.cs: We can't skip tags if any part of the tag is
17547 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17549 * ContainerControl.cs: Override OnLayout.
17551 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17553 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17555 * ContextMenuStrip.cs: Make sure context menu is shown on top of
17558 2007-01-18 Chris Toshok <toshok@ximian.com>
17560 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17561 (leftover from the container_selected days, I'd wager). fixes bug
17564 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17566 * Control.cs: Apply patch from George to fix the new testcase on
17567 bug #80451. We can't just check for Color.Transparent, we need
17568 to check if the back color's alpha channel is < 255.
17570 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17572 * Form.cs: Move setting show_icon = true to before the constructor
17573 so that the base constructor has that information when it calculates
17574 the form's size. Was causing forms to be (6, 6) bigger than they
17575 were supposed to be. Thanks for catching this Rolf!
17577 2007-01-18 Jackson Harper <jackson@ximian.com>
17579 * TextControl.cs: When replacing a selection we need to invalidate
17580 from the initial selection start, because selection start is moved
17581 to the end of the replacement.
17583 2007-01-18 Andreia Gaita <avidigal@novell.com>
17585 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17587 2007-01-18 Chris Toshok <toshok@ximian.com>
17589 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17592 2007-01-17 Everaldo Canuto <everaldo@simios.org>
17594 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
17595 layout methods and properties from ToolBarButton must be available
17596 into ToolBarButtonInfo.
17598 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
17600 * Control.cs: If the control has a transparent background, we
17601 need to refresh it when it moves and when it's parent's background
17602 image changes. [Fixes bug #80451]
17604 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
17606 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
17608 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
17610 * XplatUIWin32.cs: Implement proper double buffering for Windows.
17611 [Fixes bug #80447, and probably speeds up things as well]
17613 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17615 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17616 * XplatUIWin32.cs: We need to recalculate NC size after changing
17617 window style to toolwindow (otherwise the client rectangle will be
17618 3 pixels to small for some reason).
17619 * MdiWindowManager.cs: Revert NC size calculations to match how
17620 they are calculated only based on window styles (to match
17621 Win32AdjustWindowRectEx, since otherwise when setting size or
17622 location, Control will call Win32AdjustWindowRectEx to update client
17623 size, which would provoke a paint, then we'd get a NCCALCSIZE and
17624 calculate a different value of client size causing another paint
17626 * InternalWindowManager.cs: When moving or resizing a window only
17627 update size or location if they actually changed.
17628 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17629 (seems to match Windows behaviour better). Cleaned up
17630 ManagedWindowDecorations to draw what's needed and nothing else
17631 (was drawing borders and lines where they shouldn't be)
17632 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17633 (style = 0xFFFF) and takes into account caption height when
17634 calculating window rectangle.
17636 2007-01-16 Everaldo Canuto <everaldo@simios.org>
17638 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
17639 can be added to toolbar multiple times, we need to maintain a list of
17640 button information for each positions.
17642 2007-01-16 Everaldo Canuto <everaldo@simios.org>
17644 * ToolBar.cs: Some small stetic changes.
17646 2007-01-16 Jackson Harper <jackson@ximian.com>
17648 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17649 that allow us to have nested recalc = false blocks.
17650 - Add paste support for images in the RichTextBox
17651 * RichTextBox.cs: flush the text after the color is changed, so
17652 the change takes effect.
17653 - Use SuspendRecalc
17654 - Some extra debugging info
17655 * TextControl.cs: Tags no longer track their length, it is just
17656 computed from the next tags length, this makes things a little
17657 simpler and reduces places that we have to track length changes.
17658 - Refactored the linetag class a little so we could make it
17659 a base class for different kinds of tags
17660 - Created a image tag, a tag that can have a single image inserted
17662 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17663 that we can call suspend multiple times.
17664 - Add some debugging methods
17666 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17668 * MdiClient.cs: Add ActivatePreviousChild for
17669 mdi child window navigation.
17670 * Form.cs: Use MdiClient.ActivateNextChild/
17671 ActivatePreviousChild instead of Form.SelectNextControl
17672 to select the next/previous child since
17673 SelectNextControl doesn't do it in the same order
17674 as mdi children should do it.
17676 2007-01-16 Chris Toshok <toshok@ximian.com>
17678 * Control.cs: remove container_selected field.
17680 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17682 * MdiClient.cs: Update main form's ActiveChild when
17683 updating keyboard focus for the mdi child.
17685 2007-01-16 Jonathan Pobst <jpobst@novell.com>
17687 * Control.cs: PreferredSize fix.
17689 * Form.cs: Add several 2.0 events, properties, and methods.
17691 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
17693 * Form.cs: Provide meaningful message when MdiParent is assigned a
17694 Form that is not an MdiContainer.
17696 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17698 * MdiClient.cs: Update main form's ActiveChild when
17699 activating a mdi child.
17701 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17703 * MdiWindowManager.cs: Fix NRE when merging menus and main form
17704 doesn't have a menu.
17706 * Form.cs: Request NCRecalc after creating a mdi child window.
17707 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
17708 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17710 * MdiClient.cs: Add new method SendFocusToActiveChild that either
17711 sends keyboard focus to the active child, or to the MdiClient
17712 if there are no child forms.
17714 2007-01-15 Chris Toshok <toshok@ximian.com>
17716 * ListView.cs: drop the *Internal overrides, just do our work in
17717 ItemControl's WndProc instead.
17719 * UpDownBase.cs: a few large changes. Fix up the Selectable state
17720 of the various controls, and forward the events properly (in the
17721 same manner as MS) from the textbox to the UpDown. Also the
17722 ActiveControl of the UpDownBase gets set properly now. Finally,
17723 we don't call UpdateEditText from the ctor. Fixes bug #79957.
17725 * NumericUpDown.cs: set Text in the ctor.
17727 * DomainUpDown.cs: call UpdateEditText in the ctor.
17729 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17730 so even a Selectable = false textbox can be focused if you click
17733 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
17734 just add their handling in their respective WndProc's. Also add
17735 an explicit FocusInternal method that doesn't consult CanFocus
17736 before calling Select(this).
17738 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17739 do our work in WndProc instead.
17741 * TabControl.cs: same.
17743 * ComboBox.cs: same.
17745 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17747 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17750 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17753 * ThemeWin32Classic.cs: Don't draw the item text outside
17754 item bounds in Details view, as well as use trimming.
17757 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17759 * Form.cs: Implement Form.ShowIcon.
17761 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17762 null, which when combined with the DlgModalFrame window style removes
17763 the icon from the title bar.
17765 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17767 * Control.cs: Call OnMouseClick after OnClick. (2.0)
17769 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17771 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17772 menu when mdi child windows theres a menu, uses insert to get icon
17773 at first position. Partially fix #80006.
17775 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17777 * Clipboard.cs: Implement 2.0 methods.
17779 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17781 * Menu.cs: Implement Insert method of MenuItemCollection class
17784 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17786 * ListView.cs: Implement 2.0 FindItemWithText method.
17788 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17790 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17791 to calculate menu bar size. Fixes #80290.
17793 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17795 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17797 2007-01-11 Chris Toshok <toshok@ximian.com>
17799 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17802 2007-01-11 Chris Toshok <toshok@ximian.com>
17804 * LinkLabel.cs: make sure to call base.Select in our Select method
17805 if it turns out we're going to be selected (i.e. if we have a link
17806 that is going to receive focus). That way our container's
17807 ActiveControl is updated properly.
17809 2007-01-11 Chris Toshok <toshok@ximian.com>
17811 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17812 they have 1 or more links. this fixes the crash gert reported.
17814 2007-01-11 Andreia Gaita <avidigal@novell.com>
17816 * ContainerControl.cs: Remove ContainerSelected flag, not needed
17819 * Control.cs (Controls.Add): Check if control to be added to the collection
17820 is a top level control, and throw an ArgumentException if it is.
17821 Remove ContainerSelectedFlag, not needed anymore.
17823 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17824 top most control doesn't activate the form. This fixes a problem in the
17825 MessageBox, where the default button wouldn't get focus because the form
17826 was activated before being Loaded - when the Owner is set, SetTopMost is
17827 called, and it would activate it.
17829 2007-01-11 Jonathan Pobst <jpobst@novell.com>
17831 * Button.cs: When clicked and setting the parent form's DialogResult,
17832 use FindForm instead of Parent, since parent could be a container
17833 control and not the Form. Fixes bug #80495.
17835 2007-01-10 Chris Toshok <toshok@ximian.com>
17837 * Form.cs: move the call to SendControlFocus into the same
17840 2007-01-10 Chris Toshok <toshok@ximian.com>
17842 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17843 It breaks in the face of the new ActiveControl stuff, and should
17846 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17847 activecontrol's focus if it's not already set, after we set
17848 ActiveControl, but before we call OnActivated. Re-fixes #79667
17849 after the previous focus/active control fixes regressed it.
17851 * Control.cs: reindent some code.
17853 2007-01-10 Chris Toshok <toshok@ximian.com>
17855 * Splitter.cs: clearing some outstanding changes from my tree.
17856 Replace all accesses (not writes) to the internal dock_style field
17857 with the Dock property.
17859 2007-01-10 Chris Toshok <toshok@ximian.com>
17861 * Control.cs: make FireEnter, FireLeave, FireValidating, and
17862 FireValidated virtual.
17864 * Form.cs: override and don't chain up calls to FireEnter and
17867 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17869 * ListView.cs: Add more text padding space when using
17870 auto resize for columns (the previous value didn't work fine).
17872 * ThemeWin32Classic.cs: Update text position inside columns,
17873 to match the appeareance of .Net.
17875 * ColumnHeader.cs: When using auto resize, only the Width should
17876 depend on the sub items, not the Height. Also, set width after
17877 auto resizing (the value of Width should never remain as -1 or -2).
17879 2007-01-10 Chris Toshok <toshok@ximian.com>
17881 * Application.cs: fix compilation errors when debug is enabled.
17883 2007-01-10 Chris Toshok <toshok@ximian.com>
17885 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17886 add some nice ascii art pictures and explanation of the process).
17887 (GetMostDeeplyNestedActiveControl): new utility function we need
17888 because our ActiveControl can refer to a child container with its
17891 * Form.cs (OnActivated): remove the call to SelectActiveControl
17892 from here, since you can override this method and not chain up,
17893 and winforms still sets the active control.
17894 (OnCreateControl): also remove the unnecessary SelectActiveControl
17896 (WndProc): it's actually called from the WM_ACTIVATE block, just
17897 before calling OnActivated.
17899 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17900 inside the else. the ActiveControl setter will end up setting
17901 focus on @control. This keeps us from setting it again (and
17902 generating an extra LostFocus/GotFocus pair).
17903 (Select (bool, bool)): reindent.
17905 2007-01-10 Jonathan Pobst <jpobst@novell.com>
17907 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17908 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17909 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17910 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17911 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17912 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17913 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17914 ToolStripTextBox.cs: Another wave of corcompare work.
17916 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17918 * ColumnHeader.cs: Implement 2.0 AutoResize method using
17919 the Width property.
17921 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17922 methods by callling Column.AutoResize method on columns.
17924 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17926 * Control.cs: Provide proper implementations of PreferredSize
17927 and GetPreferredSize (2.0).
17929 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17931 * Form.cs: Remove one character (!) to make my previous OnClosing
17932 stuff work for modal windows like MessageBox.
17934 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17937 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17938 ListView.Columns to get the last displayed column. Fixes #80452.
17940 2007-01-09 Everaldo Canuto <everaldo@simios.org>
17942 * Label.cs, LinkLabel.cs: Source code identation fixes.
17944 2007-01-08 Everaldo Canuto <everaldo@simios.org>
17946 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17947 we dont need to invalidate only borders because when we invalidate four
17948 border lines the invalidate's generates a complete redraw of button,
17949 because it now invalidate a complete rect some other redraws operations
17950 are fixed. Fixes #80196.
17952 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17953 Remove ToolBarInvalidateEntireButton as it is not used.
17955 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17957 * Form.cs: Make sure that both OnClosing and OnFormClosing are
17958 called for 2.0 profile.
17959 * CloseReason.cs: Make class internal for 1.1.
17961 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17963 * ToolStripManager.cs: Implement FindToolStrip functionality.
17964 * ToolStrip.cs: Register and unregister with ToolStripManager.
17966 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17968 * Control.cs: This was messy. 2.0 moves much of ControlCollection
17969 to ArrangedElementCollection. Implemented this with as few #if's as
17970 possible (which is still too many).
17972 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17974 * Control.cs: Implement SizeFromClientSize() [2.0].
17976 2007-01-07 Everaldo Canuto <everaldo@simios.org>
17978 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17979 use Theme.BorderSize to calculate area instead of static value 1,
17980 by the way use new BorderStaticSize instead Border3DSize when
17981 border_static is true. Fixes #79537.
17983 * XplatUIOSX.cs: Fix call to GetClientRectangle.
17985 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17988 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17990 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17992 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17994 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17995 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17998 - border_static field added, it will used to define when a control
17999 theres 3D border but it must be static (thin).
18000 - In GetWindowRectangle use Theme.BorderSize to calculate area
18001 instead of static value 1, by the way use new BorderStaticSize instead
18002 Border3DSize when border_static is true.
18004 * XplatUIX11.cs, XplatUIOSX.cs:
18005 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18007 * Theme.cs: BorderStaticSize field added.
18009 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18011 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18013 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18015 * Control.cs: Under InternalBorderStyle call RecreateHangle to
18016 mimic same behavior than win32 that set border only in CreateParams,
18017 it fix problems under CreateParams overrides. Fix #79442 and partial
18020 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18021 of thi control you must call recreate handle.
18023 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18024 need to do anything as RecreateHangle will take care about borders.
18026 2007-01-05 Mike Kestner <mkestner@novell.com>
18028 * ListView.cs: hack to eliminate Lost/Got focus notifications on
18029 cycles between the ItemControl and parent. Fixes #80388.
18031 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
18033 * Control.cs: Lazy init layout engine. Do not directly use
18034 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18036 2007-01-05 Chris Toshok <toshok@ximian.com>
18038 * DataGrid.cs: don't forceably rebind columns in SetDataSource
18039 unless our list manager has changed (i.e. unless we have reason to
18040 believe our columns have changed). Fixes #80422.
18042 also, disable the call do BindColumns in
18043 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
18044 1.1 the event isn't raised in response to a column addition on a
18047 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18049 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18050 that inheritors can not call it if they choose. Fixes bug #80456.
18052 2007-01-05 Andreia Gaita <avidigal@novell.com>
18054 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
18055 doesn't blow up with a null exception on marshalling.
18057 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18059 * Control.cs: Implement several 2.0 protected properties and methods.
18060 Ensure that all necessary events are being called when properties
18063 2007-01-05 Mike Kestner <mkestner@novell.com>
18065 * ListView.cs: implement PgUp/PgDn for Details view. Also
18066 fixes First/LastVisibleIndex to use the item_control.ClientRect
18067 instead of the parent control. Fixes #80378.
18069 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
18071 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18072 determine whether to use yard-pound or not (bug #78399).
18074 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
18076 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18077 problems. So it is time to bring back the old popupbutton colors.
18079 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18082 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18083 property by using the internal information of the
18084 columns order in ListView.
18086 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
18088 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18089 Add 2.0 Tag properties.
18091 * LinkArea.cs: Add 2.0 ToString method.
18093 2007-01-03 Chris Toshok <toshok@ximian.com>
18095 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18096 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
18097 when we're editing, which fixes #80047.
18099 2007-01-03 Chris Toshok <toshok@ximian.com>
18101 * Form.cs: apply patch contributed by Dominik Seichter. fixes
18104 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
18106 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18107 property and implementation.
18109 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18110 for MdiWindowListItem property.
18112 * ToolStripDropDown.cs: Don't consider hidden menu items while
18113 laying out the menu.
18115 2007-01-03 Andreia Gaita <avidigal@novell.com>
18117 * SendKeys.cs: window handle is not needed in win32, so just
18118 get the active window for X after parsing keys and don't use
18119 it when building the message; it is passed by parameter to the
18120 Xplat method and used there to build the message instead. Also,
18121 wait for events to be processed on SendWait, as opposed to Send,
18122 which doesn't wait :) Playing with threads and Send() completely
18123 hangs on ms.net, only SendWait() works.
18126 X11Display.cs: Check for valid window handle.
18128 2007-01-03 Jackson Harper <jackson@ximian.com>
18130 * TextControl.cs: Need to prevent wrap calculations when replacing
18131 text (this was there before i removed it accidently).
18132 - Don't update the cursor during the positioning, just set it to
18133 selection_start at the end of the operaion.
18135 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18138 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18140 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
18142 * MonthCalendar.cs: Added Click and DoubleClick events again,
18143 but this time they only hide Control's Click and DoubleClick.
18145 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
18147 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18148 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18150 2007-01-02 Jackson Harper <jackson@ximian.com>
18152 * TextBoxBase.cs: We move the caret with the split now, so we
18153 don't need to explicitly move the caret after splitting. This
18154 fixes the caret bumping down an extra line on Enter.
18156 2007-01-02 Miguel de Icaza <miguel@novell.com>
18158 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18161 * ScrollableControl.cs: Add Scroll event.
18163 2007-01-02 Mike Kestner <mkestner@novell.com>
18165 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
18166 to fix all hdr height padding codepaths. Fixes #80207.
18168 2007-01-02 Chris Toshok <toshok@ximian.com>
18170 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18171 setting it to the Control defaults anyway, and it being after the
18172 Dock set was screwing up layout.
18173 (set_Dock): don't short circuit out of setting base.Dock. Also,
18174 no need to call UpdateStatusBar here, as it'll be re-layed out if
18177 2007-01-02 Mike Kestner <mkestner@novell.com>
18179 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18180 to header height for width == -1. Fixes the rest of #80207.
18182 2007-01-02 Mike Kestner <mkestner@novell.com>
18184 * ListView.cs: rework the mouse event forwarding everaldo added
18185 to translate the coordinates to the parent control not
18186 raise the parent events until after we've done our work. Hover
18187 needs more work, in the case where HoverSelection is on, because
18188 the item control receives more than one MouseHover per Enter
18189 event, so we need to ensure only the "first" hover gets forwarded.
18190 Opening a minor bug for that.
18192 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
18194 * CheckedListBox.cs: Fixed SelectionMode to match MS.
18195 * ListControl.cs: Implemented AllowSelection property. Removed extra
18197 * ListBox.cs: Implemented AllowSelection property.
18199 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18201 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18202 SelectedItem, it prevent for errors when you must disable item
18203 before perform click. Fixes #80409.
18205 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18207 * MenuAPI.cs: Prevent second level and beyond submenus to close
18208 until first level when move out side of popup.
18210 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18213 - Down submenu positin in three pixels.
18214 - Closes sub menu when mouse leaves from menu. Fixes #80402.
18216 2007-01-02 Everaldo Canuto <everaldo@simios.org>
18218 * ThemeWin32Classic.cs:
18219 - Fix popup menu size adding one pixel on the top.
18220 - Down menu item border from two to one to mimic Win32.
18221 - Some source identation fixes.
18223 2007-01-01 Everaldo Canuto <everaldo@simios.org>
18225 * ThemeWin32Classic.cs: Use float numbers to calculate size and
18226 position of menu arrows, it fix wrong arrow size.
18228 2007-01-01 Everaldo Canuto <everaldo@simios.org>
18230 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18231 instead of line, it simplify draw operation and fix it using 3D
18232 borders to mimic Win32.
18234 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
18236 * StatusStrip.cs: Add implementation of the sizing grip.
18238 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18239 StatusStrip rendering.
18241 2006-12-31 Chris Toshok <toshok@ximian.com>
18243 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
18244 override the layout style (anchor/dock) of the control. assign to
18245 Dock instead. Fixes bug #80416.
18247 * ToolStrip.cs: same.
18249 2006-12-31 Andreia Gaita <avidigal@novell.com>
18251 * ContainerControl.cs: Use ContainerSelected flag to check if
18252 a Container is directly selected, or if Select is called on a
18253 non-container. If a container is directly selected, focus events
18254 should not be raised.
18255 Apply #80411 patch to throw exception on set_ActiveControl if
18256 control is the same as the current one.
18258 * Control.cs: Use ContainerSelected flag (see above).
18259 Add invalidation check to raise event but not invalidate if
18261 Apply #80411 patch.
18264 2006-12-31 Everaldo Canuto <everaldo@simios.org>
18266 * MenuAPI.cs: After click, dont close popup menu when menu is
18267 ContextMenu. Fixes #80399.
18269 2006-12-30 Chris Toshok <toshok@ximian.com>
18271 * ContainerControl.cs: make sure we throw the exception if the
18272 container control doesn't contain the control we're setting
18275 2006-12-30 Chris Toshok <toshok@ximian.com>
18277 * Control.cs (SetTopLevel): fix the exception raised by
18278 SetTopLevel for child controls.
18279 (set_Anchor): call UpdateDistances when setting the anchor type.
18280 This fixes bug #80336.
18282 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
18284 * Theme.cs: For now, revert back to 8pt font.
18286 2006-12-29 Everaldo Canuto <everaldo@simios.org>
18288 * MenuAPI.cs: Set popup as active when open a ContextMenu.
18291 2006-12-29 Chris Toshok <toshok@ximian.com>
18293 * Control.cs: reorder the code in OnResize to give the same event
18296 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
18298 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18299 TileHorizontally and TileVertically.
18301 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
18303 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18304 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18305 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18306 Corrected copyright and email adress.
18308 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
18310 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18311 of Exception in FullPath property if no TreeView is associated with
18314 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
18316 * Theme.cs: Marked default_font as private, and initialize it in ctor
18317 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18319 * ThemeGtk.cs: Removed default_font intialization.
18320 * ThemeWin32Classic.cs: Removed default_font initialization.
18322 2006-12-28 Chris Toshok <toshok@ximian.com>
18324 * Control.cs: fix a couple of place where we were creating handles
18325 more aggressively than we should be. Fixes ControlRefresh unit
18328 2006-12-28 Chris Toshok <toshok@ximian.com>
18330 * Control.cs: contrary to what the comment said, Control.Dock does
18331 not supercede Control.Anchor - the last one you assign to decides
18332 the layout behavior. so we need to keep track of which was the
18333 last set. Also, fix some of the affected property arguments in
18334 PerformLayout calls, and remove an redundant parent.PerformLayout
18337 Add a VisibleInternal property, which returns is_visible. We
18338 can/should get rid of all the usage of this field elsewhere.
18340 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18342 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18343 control style, not DoubleBuffer. Added UseDoubleBuffering property
18344 that indicates whether doublebuffering is enabled and supported.
18345 (comment from and code based on Gert Driesen's patch in #80324).
18348 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18350 * Control.cs: Fixed a NRE.
18352 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18354 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18357 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18359 * Control.cs: Rewrote double buffering, now a seperate
18360 class handles all the buffering, no Graphics is disposed of
18361 until the painting is finished (earlier implementation
18362 would crash if the control was resized in the OnPaint,
18363 since it would cause the double buffer to be recreated
18364 and the old one disposed), a separate Graphics is
18365 created for every paint (MS behaviour and anyways the state
18366 of the Graphics would have to be saved and restored otherwise)
18368 * XplatUIDriver.cs:
18370 * XplatUI.cs: Added and implemented GetOffscreenGraphics
18371 so that we can get the graphics for the back buffer without
18372 having to create a new one and remove the offscreen_dc parameter
18373 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18375 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18377 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18378 Also make virtual all the key-related methods.
18380 * ListViewItem.cs: Make virtual the key related methods for
18381 ListViewSubItemCollection.
18383 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18387 * ThemeWin32Classic.cs:
18388 * Theme.cs: Initial support for Tile view in ListView,
18389 as well as the implementation of the required bits for it (Item
18392 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18394 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18395 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18396 Provide useful exception messages.
18398 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18400 * TrackBar.cs: Remove a warning.
18401 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18402 when used by DateTimePicker, fixes #80287. This also requires that
18403 MonthCalendar implements it's own drawing for the yearly updown control,
18404 otherwise the Capture tracking would be too complicated. Removed the Click
18405 and DoubleClick events (according to comments they were hiding the base class
18406 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18407 raise these events, not that they cannot be raised. It is possible to raise
18408 them by calling OnClick and OnDoubleClick). Added two internal fields in
18409 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18410 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18411 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18412 event, no longer needed.
18414 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18416 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18417 true if new value differs from current value.
18419 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18421 * Control.cs: ControlCollection.Count must be public. Fixed build of
18424 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18426 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18428 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18430 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18432 2006-12-26 Everaldo Canuto <everaldo@simios.org>
18434 * Control.cs: Invalidates control including when Width and Height is
18435 equal zero or is not visible, only Paint event must be care about
18436 this. Fixes #79913.
18438 2006-12-26 Chris Toshok <toshok@ximian.com>
18440 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18441 more corcompare work.
18443 * DataGridView.cs: fix compiler warning.
18445 * ColumnHeader.cs: some corcompare work, and also take the
18446 opportunity to make the internal fields private.
18448 * ListView.cs: fix the fallout from the above field change.
18450 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
18452 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18453 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18454 ToolStripTextBox.cs: Fixes to events and corcompare.
18456 2006-12-26 Everaldo Canuto <everaldo@simios.org>
18458 * ListView.cs: Call owner.OnMousexx event to propagate events from
18459 item to ListView. Fixes #80367.
18461 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
18463 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18464 if value is less than one. ItemHeight should not be set to a value
18465 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
18466 Removed extra tabs.
18468 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
18470 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18471 * ToolStripStatusLabel.cs: Add Spring for Moma.
18473 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
18475 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18476 Fixed code formatting. Removed debug code.
18477 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18479 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
18481 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18482 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18483 ArgumentOutOfRangeException if ColumnCount is negative. In
18484 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18485 less than 4 or higher than 32768.
18486 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18487 Fixed FormatProvider to return CurrentCulture unless explicitly set.
18488 Fixed IsFormatProviderDefault to return true if FormatProvider has
18489 not been explicitly set.
18491 2006-12-25 Chris Toshok <toshok@ximian.com>
18493 * Application.cs: add a couple of 2.0 events.
18495 2006-12-25 Chris Toshok <toshok@ximian.com>
18497 * Control.cs: fix compiler warning.
18499 * AxHost.cs: corcompare fixes.
18501 * ApplicationContext.cs: corcompare fixes.
18503 2006-12-25 Chris Toshok <toshok@ximian.com>
18505 * Control.cs: only update dist_right/dist_bottom if the
18506 width/height is > 0. this fixes anchored controls being resized
18507 smaller until they disappear and then resized larger again.
18509 2006-12-25 Chris Toshok <toshok@ximian.com>
18511 * Control.cs: a couple of changes. Remove dist_left and dist_top,
18512 since they're nothing more than X/Left and Y/Top, respectively.
18514 Also, move back to a per-control Bitmap/Graphics for
18515 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18516 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
18519 2006-12-25 Miguel de Icaza <miguel@novell.com>
18521 * MessageBox.cs: Implemented overload that takes a new "bool
18522 displayHelpButton" by adding a new internal field "show_help".
18523 When clicked this will raise the HelpRequested on the owner or the
18526 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18527 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18529 * ListView.cs: Add support ColumnWidthChanged and
18530 ColumnWidthChanging.
18532 Add support for ColumnReordered event.
18533 (ReorderColumn): Add NET_2_0 specific support for cancelling the
18536 Very nice codebase!
18538 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18540 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18542 2006-12-24 Chris Toshok <toshok@ximian.com>
18544 * GridTablesFactory.cs: 2.0 corcompare work.
18546 * ToolStripContainer.cs: add "override" to
18547 ContextMenuStripChanged, and remove the local event object.
18549 * ToolStripDropDown.cs: same with a couple properties.
18551 * ToolStripPanel.cs: same with AutoSizeChanged event.
18553 * TextBoxBase.cs: add "override" to AutoSizeChanged.
18555 * Form.cs: add the remaining 2.0 events, and do some corcompare
18558 * DateTimePicker.cs: add "new" to padding.
18560 * ButtonBase.cs: use Control's use_compatible_text_rendering.
18562 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18564 * DataGridView.cs: PaddingChanged is overridden.
18566 2006-12-24 Chris Toshok <toshok@ximian.com>
18568 * Control.cs: corecompare work here too.
18570 * DataGridViewElement.cs, DataGridView.cs,
18571 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18572 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18573 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18574 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18577 2006-12-24 Miguel de Icaza <miguel@novell.com>
18579 * Control.cs: Switched the error message on the console for a
18580 todo. A review of the code will have to cope with this anyways
18581 (since its a large feature, it is in our radar) and it was
18582 producing too much output when running PDN.
18584 * ToolStripComboBox.cs: Set the text when the SelectedIndex
18585 changes. Applications depend on this (PDN 2.72)
18587 2006-12-23 Chris Toshok <toshok@ximian.com>
18589 * TableLayoutSettings.cs: finish up the corcompare work for this
18592 2006-12-23 Chris Toshok <toshok@ximian.com>
18594 * Control.cs: make SetImplicitBounds internal, do some futzing
18595 with LayoutEngine so that it's available in 1.1, and remove the
18596 entire duplicated code mess from PerformLayout. Use
18597 System.Windows.Forms.Layout.DefaultLayout instead.
18599 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18601 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
18603 * Form.cs: Add MainMenuStrip property.
18605 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
18607 * Control.cs: Add ContextMenuStrip property and implementation.
18608 Fix ContextMenu implementation to show menu centered on control when
18609 activated using the keyboard instead of showing at screen (0,0).
18611 * ToolStripDropDown.cs: Fix needed overload of Show ().
18613 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18615 * Menu.cs: Name property added for 2.0 profile.
18617 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18619 * Menu.cs: Update information about FindMenuItem, method to be
18622 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18624 * MenuAPI.cs: When deselect items deselect also selected subitems.
18626 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18628 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18629 FindSubItemByCoord to found itens that is not active, also an
18630 cheking added to FindSubItemByCoord to search for items only
18631 in visible popup windows. Fixes #80274.
18633 2006-12-22 Everaldo Canuto <everaldo@simios.org>
18635 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18636 internal property, it be care about change ExStyle.
18638 2006-12-22 Andreia Gaita <avidigal@novell.com>
18640 * ContainerControl.cs: set activeControl for parent forms up the
18641 tree when the new activecontrol is a container.
18642 When validating the active control, if it is a container, also
18643 raise up the validation for it's active control. Fixes #80280
18645 * Control.cs: Add internal property flag and check to prevent
18646 Focus events from getting raised when Select() is called for
18647 a ContainerControl. There are still too many focus events being
18648 raised at the moment though.
18649 Cleaned up the code a bit.
18651 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18653 * Control.cs: Added all missing 2.0 events.and
18654 fixed a couple of corcompare issues.
18655 * TrackBar.cs: Implemented missing 2.0 bits.
18656 * MonthCalendar.cs,
18657 * DateTimePicker.cs,
18658 * MdiClient.cs: Fixed some corcompare issues.
18660 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18662 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18663 SplitterPanel.cs: corecompare work.
18665 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18667 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18668 Clean up warnings for BackgroundImageChanged and PaddingChanged
18669 events now that they are implemented in Control.cs.
18671 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18673 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18675 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18676 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18677 of TableLayoutPanel and supporting cast.
18679 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
18682 - GrabWindow now confines the mouse pointer to the confine window.
18683 - Added Win32ClipCursor and Win32GetClipCursor.
18686 - Added CaptureWithConfine to be able to capture and confine
18689 * InternalWindowManager.cs:
18690 - Call CaptureWithConfine instead of Capture if we're an
18691 MdiChild (fixes #79982).
18693 2006-12-21 Chris Toshok <toshok@ximian.com>
18695 * DataGrid.cs: guard against the initial state of selection, where
18696 selection_start == -1. make sure we only select from index >= 0.
18699 2006-12-21 Chris Toshok <toshok@ximian.com>
18701 * Control.cs: we don't need to be so draconian with
18702 UpdateDistances, and we thusly don't need to call it before
18703 calling PerformLayout in ResumeLayout. Fixes bug #80289.
18705 2006-12-21 Daniel Nauck <dna@mono-project.de>
18708 TextBox.cs: Implemented AutoComplete properties.
18710 2006-12-20 Chris Toshok <toshok@ximian.com>
18712 * DataGridView*.cs: some corecompare work.
18714 2006-12-20 Jackson Harper <jackson@ximian.com>
18716 * XplatUIX11.cs: We need to hide the caret when deleting it,
18717 otherwise you get carets left lying around everywhere.
18718 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
18719 prevents getting some weird half drawn caret tracers when
18721 * TextControl.cs: Attempt to reduce the number of times we need to
18722 recreate the caret.
18724 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
18726 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18728 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18730 * DateTimePicker.cs:
18731 - Implemented missing 2.0 bits.
18732 - Changed some default values to match MS.
18734 2006-12-20 Jackson Harper <jackson@ximian.com>
18736 * TextBoxBase.cs: When changing the font across the document we
18737 can't recalculate after changing each line, since that will cahnge
18739 - PreferredHeight is a little different than i thought.
18740 - When backspacing, move the caret before we do the actual char
18741 delete, because when that delete crosses a wrap boundary the
18742 positional information will change.
18744 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18746 * Control.cs: Added some missing 2.0 bits:
18747 BackgroundImageLayout, BackgroundImageLayoutChanged,
18748 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
18749 add IBindableComponent and IDropTarget implementation.
18751 * MonthCalendar.cs:
18752 - Added all missing 2.0 features:
18753 BackgroundImageLayout, RightToLeftLayout,
18754 OnHandleDestroyed, RightToLeftLayoutChanged,
18755 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18757 - Rewrote all the BoldDate code, it was completely broken.
18758 - Fixed all the tests (the tests can now be re-enabled, the
18759 problems were not with the tests, but with the control, it was
18762 * DateTimePicker.cs: Changed the location where the
18763 MonthCalendar is shown.
18765 2006-12-19 Chris Toshok <toshok@ximian.com>
18767 * DataGridView.cs: add IDropTarget implementation.
18769 * ToolStripPanel.cs: add IDropTarget implementation.
18771 2006-12-19 Jackson Harper <jackson@ximian.com>
18773 * TextControl.cs: soft now means something different than what it
18774 used to mean, we want to move the caret regardless of whether or
18775 not this break was soft (would we really have wanted the caret
18776 to not move with the break in the old context?)
18777 * TreeView.cs: Make sure we factor in the vert scrollbar when
18778 calculating the horizontal scrollbar's maximum.
18780 2006-12-19 Andreia Gaita <avidigal@novell.org>
18782 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18783 check for keywords in alternate casing, close bug #80049.
18785 2006-12-19 Chris Toshok <toshok@ximian.com>
18787 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18788 methods (which all do nothing).
18790 * IDropTarget.cs: add the 4 missing methods.
18792 2006-12-19 Chris Toshok <toshok@ximian.com>
18794 * TableLayoutRowStyleCollection.cs: corcompare work.
18796 * TableLayoutSettings.cs: same.
18798 * TableLayoutStyle.cs: same.
18800 * TableLayoutColumnStyleCollection.cs: same.
18802 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
18804 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18805 TableLayoutPanel I've had in my local tree for way too long.
18807 2006-12-19 Miguel de Icaza <miguel@novell.com>
18809 * TableLayoutSettings.cs: Finish the public API (still needs all
18810 the logic to update on changes).
18812 * TableLayoutPanelCellPosition.cs: new file.
18814 * TableLayoutRowStyleCollection.cs,
18815 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18816 TableLayoutSettings.cs: Track the final 2.0 table api.
18818 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18820 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18821 and Image List 2.0 members for ColummnHeader.
18822 * ListView.cs: Add key-related 2.0 methods for
18823 ColumnHeaderCollection.
18825 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18827 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18828 ArgumentNullException if items argument is null. Ignore null item in
18829 arrays. Removed extra tabs.
18831 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18833 * MonthCalendar.cs: Fixed InvalidCastException.
18835 2006-12-19 Jackson Harper <jackson@ximian.com>
18837 * TextControl.cs: Don't increment the position here.
18838 - When calculating char positions only add in the line break size
18839 for hard line breaks.
18841 2006-12-19 Andreia Gaita <avidigal@novell.org>
18843 * SendKeys.cs: Changed some things to match ms.net behaviour
18844 when parsing shifted capital letters.
18846 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
18847 Add window handle as parameter to SendInput. X11 needs the
18848 window handle, and the handle being passed to it in the keys
18849 queue is the active control handle (which windows needs), not
18852 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
18853 to support SendKeys on X.
18855 * X11Keyboard: Implement helper method to lookup a linux keycode
18856 given the virtual keycode. Added table of keycode-2-virtualkey
18857 values to support this.
18859 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18861 * ListView.cs: Add support for SelectedIndexCollection
18862 and SelectedItemCollection 2.0 methods. Implement support
18864 * ListViewItem.cs: Add support for ListViewSubItemCollection
18865 2.0 methods. Also, fix an incorrect behavior of AddRange method
18866 (it shouldn't call Clear).
18867 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18869 2006-12-19 Jackson Harper <jackson@ximian.com>
18872 * TextBoxBase.cs: New args for FormatText
18873 * TextControl.cs: Rewrote the main drawing method, this version
18874 feels a little easier to understand and debug to me. Hopefully it
18875 does to others also
18876 - Fix FormatText to OR in the new formating values. Added
18877 FormatSpecified param, basically this works in the same way as
18878 BoundsSpecified in Control.
18879 - Set the caret properties when the caret is positioned.
18880 - When wrapping text make sure that we calculate the width of the
18882 - when calculating alignments we might have wrapped down to the
18883 next line, so don't search for an individual tag, search for the
18885 - We need to invalidate the selection area when we replace the
18888 2006-12-19 Daniel Nauck <dna@mono-project.de>
18890 * Application.cs: add Restart () 2.0 support
18892 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18894 * MenuItem.cs: Invalidate menu item rectangle after change Enable
18895 property. Fixes #80268.
18897 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18899 * MenuAPI.cs: Dont trigger select event when closes top menu
18900 item. Fixes #80270.
18902 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18904 * MenuAPI.cs: When you click on menuitem only trigger onselect
18905 event for top menu itens. Fixes #80271.
18907 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18909 * MdiWindowManager.cs: Make IconicBounds depend on
18910 the bottom of MdiClient, not the top (fixes #80267)
18912 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18914 * MdiClient.cs: Added missing 2.0 attribute
18916 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18918 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18919 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18921 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18923 * MenuAPI.cs: Fix click when menuitem is not popup,
18924 this regression was caused by last commit (#80272).
18926 2006-12-17 Everaldo Canuto <everaldo@simios.org>
18928 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18929 fire click event or close menu. Fixes #80272.
18931 2006-12-17 Daniel Nauck <dna@mono-project.de>
18933 * ListViewHitTestInfo.cs: add
18935 2006-12-17 Daniel Nauck <dna@mono-project.de>
18937 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18938 * FlatButtonAppearance.cs: add
18939 * DockingAttribute.cs: add
18941 2006-12-17 Chris Toshok <toshok@ximian.com>
18943 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18944 and rebind our columns when it does - this way, if you make
18945 changes to the DataTable (or set the Table attribute on a DataView
18946 after setting it as the DataGrid's DataSource, the changes are
18947 made visible.) Fixes bug #80107.
18949 2006-12-17 Daniel Nauck <dna@mono-project.de>
18951 * ListViewGroup.cs: add internal Location property for layouting.
18952 * Theme.cs: add abstract ListViewGroupHeight function.
18953 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18955 2006-12-16 Andreia Gaita <avidigal@novell.com>
18957 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18958 Added reset of selected index to 0 when adding first tab page.
18961 * NumericUpDown.cs: Fix NET_2_0 check
18963 2006-12-16 Daniel Nauck <dna@mono-project.de>
18965 * ListViewGroup.cs: fixed DefaultValueAttribute value
18967 2006-12-16 Daniel Nauck <dna@mono-project.de>
18969 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18971 2006-12-15 Miguel de Icaza <miguel@novell.com>
18973 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18974 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18975 ScrollableControl.cs: Add a handful of methods that are
18978 2006-12-15 Chris Toshok <toshok@ximian.com>
18980 * XplatUIWin32.cs: initial implementation of the Reversible
18981 drawing functions. there are some problems. DrawReversibleFrame
18982 doesn't seem to work at all for Dashed FrameStyle, and in the
18983 Thick case there are drawing errors at the corners (we probably
18984 need to bind Rectangle instead of doing moveto/lineto's.)
18986 2006-12-16 Andreia Gaita <avidigal@novell.com>
18988 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
18989 to send blocks of key messages. Send accumulates keys to send with Flush,
18990 while SendWait sends all keys immediately.
18992 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18993 XplatUIX11.cs, XplatUIX11-new.cs:
18994 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18995 to Win32 SendInput.
18996 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18998 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
18999 testing for ms.net on this class is very tricky, as the tests run too fast
19000 to allow the hook to release, essentially freezing the keyboard and the
19001 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
19004 2006-12-16 Daniel Nauck <dna@mono-project.de>
19006 * Padding.cs: fixed serialization compability to MS ("_var" field names),
19007 added missing attributes.
19009 2006-12-15 Daniel Nauck <dna@mono-project.de>
19011 * ListViewGroup.cs: Added missing attributes.
19012 * ListViewGroupCollection.cs: Added missing attributes.
19014 2006-12-15 Daniel Nauck <dna@mono-project.de>
19016 * ListViewItem.cs: fixed ListViewSubItem text property.
19018 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19020 * Control.cs: Added missing 2.0 attributes
19022 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19024 * MdiClient.cs: Added missing 2.0 attribute.
19025 * MonthCalendar.cs: Added some missing 2.0 attributes
19028 2006-12-15 Daniel Nauck <dna@mono-project.de>
19030 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19032 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
19034 * MainMenu.cs: Add the new 2.0 constructor to help out people
19035 using the MainMenu in VS2005.
19037 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19039 * MdiChildContext.cs: Removed it, no longer used.
19040 * MdiClient.cs: Added missing 2.0 attributes.
19042 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19044 * InternalWindowManager.cs: Fix a NullRef with previous
19045 changes for toolwindows.
19047 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19050 - Added AfterTopMostControl to allow for certain controls
19051 to always stay on top when normal controls are brought to
19055 - (DrawInversibleRectangle): Get window rectangle from Win32
19056 in stead of from control, since Win32 doesn't calculate
19057 screen coords correctly from control's Location if it
19058 have docked siblings.
19060 * MdiWindowManager.cs:
19061 - Correct the control menu popup location when clicked on
19062 the maximized form icon. (fixes #80223.1)
19063 - Don't show moving rectangle if mouse hasn't moved from
19064 the original clicked point.
19065 - Removed FormGotFocus handler (not used).
19066 - Calculate the control buttons location from the main
19067 window's size and not client size (fixes #79770).
19068 - Form is now closed when the form icon is double-clicked
19070 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19072 * InternalWindowManager.cs:
19073 - Moved some MDI-only methods to MdiWindowManager.
19074 - Removed unused properties and methods.
19075 - Unified method naming for methods handling wm messages.
19076 - Moved all message handling to seperate methods for
19079 * ThemeWin32Classic.cs:
19080 - DrawManagedWindowDecorations now draws the title bar
19081 with a gradient brush.
19082 - Add a CPDrawButtonInternal that allows us to specify
19083 light, normal and dark colors for the buttons (control
19084 buttons for MDI children were drawn with the same light
19085 color as the background, therefore loosing the 3D effect).
19088 - Add a CapturedControl property that is used to
19089 determine the control to resize (defaults to parent).
19090 Needed for MdiClient, since its SizeGrip's parent is
19091 MdiClient, but the control to resize is the main form.
19094 - Set SizeGrip's CapturedControl to the main form in order
19095 to resize the main form and not the MdiClient.
19096 - Override AfterTopMostControl to leave the scrollbars
19099 2006-12-15 Daniel Nauck <dna@mono-project.de>
19101 * ListView.cs: fixed ListViewItemCollection AddRange and
19102 implemented ListViewItemCollection AddRange 2.0 support.
19104 2006-12-15 Daniel Nauck <dna@mono-project.de>
19106 * ListViewGroup.cs: Add.
19107 * ListViewGroupCollection.cs: Add
19108 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19109 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19110 stub for ImageKey 2.0 support.
19112 2006-12-14 Mike Kestner <mkestner@novell.com>
19114 * ListView.cs: add text padding to the autocalculation for columns
19115 of width -2. Fixes #80207.
19117 2006-12-14 Mike Kestner <mkestner@novell.com>
19119 * ListView.cs: add some index guarding for partial row navigation
19120 logic. Fixes #80250.
19122 2006-12-14 Mike Kestner <mkestner@novell.com>
19124 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19125 are added or inserted to the collection. Fixes #81099.
19127 2006-12-13 Everaldo Canuto <everaldo@simios.org>
19129 * MenuAPI.cs: Closes menu when right click out side of popup
19130 it fix problem in ContextMenu and MainMenu. Fixes #80252.
19132 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19134 * ListViewItem.cs: Fix dumb error.
19136 * ListView.cs: Add Find and ContainsKey methods in
19137 ListViewItemCollection, and also return true for IsReadOnly
19138 and IsFixedSize (changes for 2.0).
19140 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
19142 * Control.cs: Allow Region to be set to null.
19144 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
19146 * MdiWindowManager.cs: Remove unused (commented out) code.
19147 * Form.cs: When the MdiChild is maximized, the form needs
19148 WM_NCMOUSELEAVE, so request it.
19149 * InternalWindowManager.cs:
19150 - Added tooltips to control buttons.
19151 - Removed duplicated control button handling code.
19152 - Removed unused (commented out) code.
19154 2006-12-12 Everaldo Canuto <everaldo@simios.org>
19156 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
19157 was used because we must set cursor without trigger ChangeCursor event
19158 and without change Cursor control property. Fixes #79963.
19160 2006-12-12 Andreia Gaita <avidigal@novell.com>
19162 * Control.cs: Check if Region setter value is null, and ignore
19164 2006-12-12 Jackson Harper <jackson@ximian.com>
19166 * TextControl.cs: We were almost always drawing one more line then
19167 needed, since the GetLineByPixel will return the last line found
19168 at that pixel. In most cases though, we were invalidating up to
19169 the junction between two lines.
19170 - Improve debug code.
19172 2006-12-12 Chris Toshok <toshok@ximian.com>
19174 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19175 and FillReversibleRectangle.
19177 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19178 and FillReversibleRectangle.
19180 * XplatUIWin32.cs: add stubs which do nothing for
19181 DrawReversibleFrame, DrawReversibleLine, and
19182 FillReversibleRectangle.
19184 * XplatUIOSX.cs: add stubs which raise NIE for
19185 DrawReversibleFrame, DrawReversibleLine, and
19186 FillReversibleRectangle.
19188 * XplatUIX11.cs: add working implementation for
19189 DrawReversibleFrame, DrawReversibleLine, and
19190 FillReversibleRectangle.
19192 * ControlPaint.cs: implement DrawReversibleFrame,
19193 DrawReversibleLine, and FillReversibleRectangle, by calling into
19194 the appropriate XplatUI method.
19196 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19198 * Form.cs: Make MdiClient have the focus even if it's
19199 not selectable, since it should receive WM_KEY* and WM_MOUSE
19200 messages. Fixes #79907.
19202 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19204 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19205 queried after the window is created.
19207 * XplatUIX11.cs: Added SendParentNotify to implement
19208 WM_PARENTNOTIFY logic. Fixes #79965.
19210 * Control.cs: Added MakeParam.
19212 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19214 * MdiClient.cs: Resume Layout before setting window
19215 states (fixes #80201).
19217 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
19219 * MenuAPI.cs: Deselect a menu item after performing
19220 the click (fixes #80197).
19222 2006-12-11 Jackson Harper <jackson@ximian.com>
19224 * TextBoxBase.cs: We need to cap this value, since Maximum -
19225 ViewPortHeight can be less than zero.
19226 - Only do selection with the left mouse button.
19227 * TextBox.cs: Don't tell the world that we have a context menu.
19228 * Control.cs: New method so that we can control whether or not the
19229 context menu is visible outside MWF.
19231 2006-12-11 Everaldo Canuto <everaldo@simios.org>
19233 * ToolBarButton.cs: Fix text positon.
19235 2006-12-11 Miguel de Icaza <miguel@novell.com>
19237 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19239 * Control.cs (DoubleBuffered): Add implementation.
19241 * Application.cs (OpenForms): Add.
19243 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
19245 * Form.cs: Use opacity instead of Opactiy to determine if we need
19246 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
19248 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
19250 * Control.cs: Fix NRE if Control.Site was set to null.
19252 2006-12-11 Chris Toshok <toshok@ximian.com>
19254 * Control.cs: ControlCollection.Remove should return if the arg is
19255 null, and ControlCollection.SetChildIndex should raise a ANE.
19257 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
19259 * Control.cs: Verify value set for Dock property. Code formatting
19262 2006-12-11 Jackson Harper <jackson@ximian.com>
19264 * TextControl.cs: Draw the caret and the selection when a flag is
19266 * TextBoxBase.cs: We want to draw the caret and the selection for
19267 TextBox but not for TextBoxBase.
19268 - If the window is resized and scrolling is no longer needed (the
19269 whole doc is visible) set the scroll position to zero.
19270 - The default SelectWord (the one TextBox uses) should move the
19271 caret to the end of the word.
19272 - SelectAll moves the caret to the end of the selection.
19273 * TextBox.cs: We don't selectall on focus, we just do it when the
19274 control is created.
19276 2006-12-11 Mike Kestner <mkestner@novell.com>
19278 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19280 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19282 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
19284 * ListViewItem.cs: Add Name 2.0 property.
19286 2006-12-11 Andreia Gaita <avidigal@novell.com>
19288 * TabControl.cs: Set visibility on selected or default tab
19289 when tabcontrol handle is created, so that it's contents
19290 actually show up (duh). Fixes #80193
19291 Don't redraw the control if there is no handle created, as
19292 the selected index might be completely invalid. Added some tests
19295 2006-12-11 Everaldo Canuto <everaldo@simios.org>
19297 * ToolBar.cs: Uses maximun width and height of all buttons as
19298 button rectangle when ButtonSize specified, it looks strange but
19299 is what happens in Win32. Fixes #80189.
19301 2006-12-11 Jackson Harper <jackson@ximian.com>
19303 * TextControl.cs: Need to track undo levels ourself, since
19304 compound actions will mess them up.
19306 2006-12-10 Andreia Gaita <avidigal@novell.com>
19308 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19309 SelectedIndex value is changed (even if it's not valid).
19310 Reset SelectedIndex to 0 when the handle is created and if
19311 the current index is invalid.
19312 Fixes SelectdeIndex unit tests and #80128
19314 2006-12-08 Chris Toshok <toshok@ximian.com>
19316 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19317 calls EndEdit, it needs to be called before we set current_cell to
19318 its new value. Otherwise, we end up committing the value in the
19319 textbox to the new cell as well. Fixes bug #80160.
19321 2006-12-08 Chris Toshok <toshok@ximian.com>
19323 * Form.cs (set_CancelButton): if the button's DialogResult is
19324 None, set it to Cancel. Fixes bug 80180.
19326 2006-12-08 Jackson Harper <jackson@ximian.com>
19328 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19329 to watch ourselves when setting the canvas size and setting the
19332 2006-12-08 Chris Toshok <toshok@ximian.com>
19334 * DataGrid.cs: comment out the two MakeTransparent calls for the
19335 time being so people using trunk (and not 1.2.2) on windows can
19336 actually use the datagrid. This deals with bug #80151.
19338 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
19340 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19341 Graphics.DrawImage (image, int, int, int, int) overload instead
19342 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
19343 the dpi difference and was blurring images it drew.
19346 2006-12-08 Chris Toshok <toshok@ximian.com>
19348 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19349 rowcnt is 0 (such as with an empty datasource), and make sure we
19350 initialize not_usedarea.Y to cells.Y, so we don't draw over the
19351 other areas (caption, parent row, etc, etc). Fixes bug #80095.
19353 2006-12-08 Chris Toshok <toshok@ximian.com>
19355 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19358 2006-12-08 Chris Toshok <toshok@ximian.com>
19360 [ Fixes bug #80167 ]
19362 * ThemeWin32Classic.cs: don't draw the image if the button's flat
19363 style is FlatStyle.System.
19365 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19366 ButtonBase.flat_style private, and switch uses of it to the public
19369 2006-12-08 Chris Toshok <toshok@ximian.com>
19371 [ Fixes bug #80121 ]
19373 * ThemeWin32Classic.cs: center the caption text in the datagrid
19376 * DataGrid.cs: lessen the amount we add to the caption height from
19377 6 to 2. 6 was making it huge.
19379 2006-12-08 Andreia Gaita <avidigal@novell.com>
19381 * UpDownBase: Handle MouseWheel call directly instead of capturing
19382 the inner textbox's OnMouseWheel. Fixes #80166
19384 2006-12-08 Jackson Harper <jackson@ximian.com>
19386 * TextControl.cs: We need to invalidate the textbox when we empty
19387 it (how had this not been discovered before?)
19389 2006-12-08 Jackson Harper <jackson@ximian.com>
19391 * TextBoxBase.cs: Reworked the mouse down code so I could get it
19392 to behave like MS, we now ignore the eventargs.Click and just
19393 track state ourself, which we were already doing anyways.
19394 - Constrain the double click handler to the double click size.
19396 2006-12-08 Chris Toshok <toshok@ximian.com>
19398 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19399 direction if that scrollbar isn't shown. fixes bug #80158.
19401 2006-12-08 Andreia Gaita <avidigal@novell.com>
19403 * NumericUpDown.cs: Update value on getter. Fixes #79950
19405 2006-12-08 Chris Toshok <toshok@ximian.com>
19407 * MenuItem.cs: add back in the event cloning code. I didn't know
19408 how to do it in the face of the EventHandlerList work i'd done
19409 last week. Fixes bug #80183.
19411 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
19413 * Control.cs: Add an invalidate to the BackgroundImage setter.
19416 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
19418 * ToolStrip*: Add some small properties reported by MoMA, fix event
19419 firing and default properties based off of unit tests, and add some
19420 attributes based off of the class status page.
19422 2006-12-07 Jackson Harper <jackson@ximian.com>
19424 * TextBoxBase.cs: Take HideSelection into account when determining
19425 whether or not to show the selection.
19426 * RichTextBox.cs: After inserting the RTF into the document move
19427 the cursor to the beginning of the document.
19429 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
19431 * Control.cs: Remove static ArrayList "controls" which maintained
19432 a reference to every control created.
19433 * Application.cs: Create a static FormCollection to maintain a reference
19434 to every form created. Use it in places that formerly enumerated through
19435 the controls one looking for forms.
19436 * Form.cs: Add and remove self from above FormCollection.
19438 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
19440 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19441 not libgdk (though it makes me wonder why I didn't have any
19444 2006-12-07 Chris Toshok <toshok@ximian.com>
19446 [ you had to know this was coming after that last commit...]
19448 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19449 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19450 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19453 2006-12-07 Chris Toshok <toshok@ximian.com>
19455 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19456 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19457 all the behavior we need for double buffering.
19459 * XplatUIDriver.cs: implement the 3 double buffer methods using a
19460 client side Bitmap, just like the old Control-based double buffer
19461 code did. The methods are virtual, so each XplatUI driver
19462 subclass can replace the implementation to use a faster, platform
19465 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19466 double buffer code, and clean things up a bit in the process.
19468 2006-12-06 Chris Toshok <toshok@ximian.com>
19470 * Control.cs: reindent WndProc.
19472 2006-12-06 Chris Toshok <toshok@ximian.com>
19474 [ I wanna be like BenM when I grow up ]
19476 * Hwnd.cs: create a single static Graphics object on the static
19477 Bitmap we create. use this for our text measurements.
19479 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19480 This was causing us to allocate a backbuffer for every control,
19481 even when it wasn't flagged as double buffered. Instead use the
19482 single graphics instance. This might have implications for
19483 multithreaded applications. If we run into problems we can switch
19484 to creating 1 Graphics per control, on the static Hwnd bitmap.
19486 this change nets us a 7M savings in private dirty mappings when
19487 running FormsTest.exe.
19489 2006-12-06 Chris Toshok <toshok@ximian.com>
19491 * ListView.cs: the BackgroundImage override is just to set
19492 attributes. chain up to base.BackgroundImage.
19494 * RichTextBox.cs: same.
19496 * ToolBar.cs: same, but we need to also redraw the toolbar when it
19497 changes, so instead a handler for BackgroundImageChanged.
19499 * Control.cs: make background_image private.
19501 2006-12-06 Chris Toshok <toshok@ximian.com>
19503 * ScrollBar.cs: change the assignment of cursor to Cursor. not
19504 sure we even need this assignment, but roll with it for now.
19506 * Control.cs: make the cursor field private.
19508 2006-12-06 Chris Toshok <toshok@ximian.com>
19510 * Form.cs: we don't need to explicitly set ImeMode to
19511 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19512 behavior in the face of ImeMode.Inherit.
19514 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19515 change the ctor's assignment to use ImeMode instead of ime_mode.
19517 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19518 ImeModeInherit. Only check for the parent's imemode (and return
19519 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19520 This fixes the button unit test, which sets both ImeMode and
19521 DefaultImeMode to ImeMode.Disable.
19523 also make the ime_mode field private.
19525 2006-12-06 Chris Toshok <toshok@ximian.com>
19527 * Control.cs: make control_style private.
19529 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
19530 setting the styles to true, then setting them to false instead of
19531 reverting to their previous values.
19533 also, call SetStyle on the scrollbars instead of using
19534 control_style directly.
19536 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
19538 * FormCollection.cs: Implement. [2.0]
19540 2006-12-06 Chris Toshok <toshok@ximian.com>
19542 * Control.cs: make tab_stop private.
19544 * Label.cs: set TabStop, not tab_stop. reformat some event
19545 add/remove methods to make them more compact.
19547 2006-12-06 Chris Toshok <toshok@ximian.com>
19549 * RadioButton.cs: fix TabStop handling.
19551 2006-12-06 Chris Toshok <toshok@ximian.com>
19553 * TextBox.cs: remove the explicit assignments to has_focus.
19556 * ButtonBase.cs: remove the assignment to has_focus. Control will
19559 2006-12-06 Chris Toshok <toshok@ximian.com>
19561 * ButtonBase.cs: remove all uses of is_enabled from this code.
19562 it's always true when any of the code containing the checks is
19565 2006-12-06 Chris Toshok <toshok@ximian.com>
19567 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19568 with different semantics (some are present in both 1.1 and 2.0
19569 profiles) so that we match MS's behavior in our unit tests.
19571 2006-12-06 Jackson Harper <jackson@ximian.com>
19573 * TextControl.cs: Make this operation undoable.
19574 * TextBoxBase.cs: Factor the border width into the preferred
19576 - implement Modified as per the spec.
19578 2006-12-06 Chris Toshok <toshok@ximian.com>
19580 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19582 2006-12-06 Chris Toshok <toshok@ximian.com>
19584 * Control.cs: make right_to_left and context_menu fields private.
19586 2006-12-06 Chris Toshok <toshok@ximian.com>
19588 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19589 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19590 Control.child_controls private. switch all uses over to
19593 2006-12-06 Chris Toshok <toshok@ximian.com>
19595 * System.Windows.Forms/GroupBox.cs,
19596 System.Windows.Forms/AccessibleObject.cs,
19597 System.Windows.Forms/ErrorProvider.cs,
19598 System.Windows.Forms/Control.cs,
19599 System.Windows.Forms/UpDownBase.cs,
19600 System.Windows.Forms/ScrollBar.cs,
19601 System.Windows.Forms/DateTimePicker.cs,
19602 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19603 System.Windows.Forms/ToolTip.cs,
19604 System.Windows.Forms/RadioButton.cs,
19605 System.Windows.Forms/LinkLabel.cs,
19606 System.Windows.Forms/Splitter.cs,
19607 System.Windows.Forms/TextBoxBase.cs,
19608 System.Windows.Forms/ToolStripTextBox.cs,
19609 System.Windows.Forms/ContainerControl.cs,
19610 System.Windows.Forms/ThemeWin32Classic.cs,
19611 System.Windows.Forms/SizeGrip.cs,
19612 System.Windows.Forms/ToolStripDropDown.cs,
19613 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19614 private. switch all uses over to Control.Parent.
19616 2006-12-06 Chris Toshok <toshok@ximian.com>
19618 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19619 Control does this before calling emitting these events.
19621 * TabControl.cs: same.
19623 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19624 Control.client_rect.
19626 * ButtonBase.cs: use the ClientSize property instead of the
19629 * ScrollableControl.cs: same.
19631 * Control.cs: another pass at making properties private. also,
19632 move the initialization of tab_stop to the ctor.
19634 2006-12-05 Andreia Gaita <avidigal@novell.com>
19636 * TabControl.cs: Let the selected index be set freely if the
19637 control handle is not yet created.
19639 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
19641 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
19642 internal until I can rewrite DefaultLayout.
19643 * ToolStrip.cs: Fix build error and some general cleaning.
19644 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19645 Fix build errors caused by making some of Control's fields private.
19647 2006-12-05 Jackson Harper <jackson@ximian.com>
19649 * TextControl.cs: Redo Insert a little so that it use IndexOf
19650 instead of Split, this prevents it from messing up on things like
19651 \n\n\n. Also more effecient since the split array doesn't need to
19653 * TextBoxBase.cs: AppendText doesnt handle multiline and non
19654 multiline text differently, this is the first of many fixes that
19655 will make multiline/non-multiline the same thing as far as the
19656 TextBoxBase is concerned.
19657 - Don't split the text and insert lines, this can lose some line
19658 endings (like is the last line a soft or hard break). Instead use
19660 - Fix an off by one when combining all the lines in the Text
19662 - Remove separate multiline handling from the Text getter/setter.
19664 2006-12-05 Chris Toshok <toshok@ximian.com>
19666 * ButtonBase.cs: a few changes:
19668 - don't reinitialize internal Control fields in the ctor when they
19669 have the same values as Control sets them.
19671 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
19672 this before calling those methods.
19674 - we don't need to call Refresh for anything. use Invalidate
19677 - OnEnabledChanged doesn't need to redraw at all - Control.cs
19678 calls Refresh in its OnEnabledChanged.
19680 - several of the events we were registered for in the ctor to
19681 redraw ourselves already include calls to Invalidate in the
19682 property setters that raise the events. remove the extra
19685 - reformat a switch statement that was 83274658 columns wide.
19687 2006-12-05 Mike Kestner <mkestner@novell.com>
19689 * ComboBox.cs: fix a unit test regression from a TextBox
19690 SelectionLength return of -1 when there's no selection.
19692 2006-12-05 Chris Toshok <toshok@ximian.com>
19694 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19695 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19696 cleaning up some of the internal Control fields being used by
19699 2006-12-05 Mike Kestner <mkestner@novell.com>
19701 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
19702 listbox after AddImplicit calls since it defaults to hidden. Add a
19703 hack to preserve requested heights across DropDownStyle changes.
19705 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
19707 * PropertyGrid.cs: Hide FindFirstItem method from public API.
19709 2006-12-05 Chris Toshok <toshok@ximian.com>
19711 * DataGridView.cs: fix compiler warnings.
19713 * PrintControllerWithStatusDialog.cs: same.
19715 * ToolBar.cs: same.
19717 * FolderBrowserDialog.cs: same.
19719 * Splitter.cs: same.
19721 * DataGridViewComboBoxCell.cs: same.
19723 * XplatUIWin32.cs: same.
19725 * PictureBox.cs: same.
19727 * Win32DnD.cs: same.
19729 * PageSetupDialog.cs: same.
19731 * FileDialog.cs: same.
19733 * PrintDialog.cs: same.
19735 * DataGridTextBoxColumn.cs: same.
19737 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19739 2006-12-05 Chris Toshok <toshok@ximian.com>
19741 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19742 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19743 System.ComponentModel.EventHandlerList work.
19745 2006-12-05 Jonathan Chambers <joncham@gmail.com>
19747 * DrawTreeNodeEventArgs.cs: Added.
19749 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19751 * InternalWindowManager.cs: Remove an unused field.
19753 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19755 * InternalWindowManager.cs:
19756 - Save the point where the title bar is clicked.
19758 * MdiWindowManager.cs:
19759 - Only allow moving of the window as long as the
19760 clicked point on the title bar does not get out of
19761 MdiClient's rectangle. Fixes #79982.
19764 - Added Horizontal/VerticalScrollbarVisible.
19765 - Simplified the scrollbar sizing algorithm.
19766 - Cache the difference in scrolled value in
19767 H/VBarValueChanged and move the calculation out
19770 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19772 * Control.cs: Make the Console.WriteLine in WndProc
19775 2006-12-05 Chris Toshok <toshok@ximian.com>
19777 * ToolStripManager.cs, ToolStripButton.cs,
19778 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19779 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19780 ToolStripSplitButton.cs, ToolStripSeparator.cs,
19781 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19782 ToolStripProgressBar.cs, ToolStripContainer.cs,
19783 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19784 to using System.ComponentModel.EventHandlerList.
19786 2006-12-04 Chris Toshok <toshok@ximian.com>
19788 * LinkLabel.cs: fix up compiler warnings.
19790 * TableLayoutSettings.cs: same.
19792 * TreeView.cs: same.
19794 * ToolBar.cs: same.
19796 * TabControl.cs: same.
19798 * RichTextBox.cs: same.
19800 * ListViewItem.cs: same.
19802 * PropertyGrid.cs: same.
19804 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19808 * TextRenderer.cs: fix up compiler warnings.
19812 * Form.cs: corcompare fixes.
19814 * PictureBox.cs: fix up compiler warnings.
19816 * ImageListStreamer.cs: same.
19818 * TrackBar.cs: corcompare fix.
19820 * Control.cs: fix up compiler warnings.
19822 * SplitterPanel.cs: same.
19824 * NumericTextBox.cs: same.
19826 * ImageList.cs: same.
19828 * StatusStrip.cs: same.
19830 * ProgressBar.cs: corcompare fix.
19832 * ToolStripButton.cs: fix up compiler warnings.
19834 * ToolStripStatusLabel.cs: same.
19836 * ToolStripSplitButton.cs: same.
19838 * ToolStripSeparator.cs: same.
19840 * ToolStripProgressBar.cs: same.
19842 * ToolStripDropDownMenu.cs: same
19844 * ToolStripDropDown.cs: same.
19846 * ToolStripDropDownButton.cs: same.
19848 * ToolStrip.cs: same.
19850 * ToolStripControlHost.cs: same.
19852 * ToolStripContentPanel.cs: same.
19854 * ToolStripDropDown.cs: same.
19856 * ToolStripContainer.cs: same.
19858 * ToolStripPanel.cs: same, and add "new" where we need it to work
19859 with the new ArrangedElementCollection.
19861 * ToolStripItemCollection.cs: add "new" where we need it to work
19862 with the new ArrangedElementCollection.
19864 2006-12-04 Andreia Gaita <avidigal@novell.com>
19866 * TabControl.cs: Fix default tab selection to after TabControl
19867 gets focus and not before. Fixes #80128
19869 2006-12-04 Chris Toshok <toshok@ximian.com>
19871 * DataGridTableStyle.cs: remove the gross calling of
19872 datagrid.Refresh from here. It's a broken idea and it doesn't
19875 * DataGrid.cs: instead, just register/unregister from the
19876 DataGridTableStyle events in CurrentTableStyle. we play it
19877 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19878 even though some would most likely not require it. Fixes bug
19879 #80115 (and one portion of #80117 as a side effect).
19881 2006-12-04 Chris Toshok <toshok@ximian.com>
19883 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19884 so the textbox (if any) goes away. Fixes bug #80117.
19886 2006-12-04 Chris Toshok <toshok@ximian.com>
19888 * DataGridColumnStyle.cs: set the column's readonly property
19889 initially based on the property descriptor's IsReadOnly. Fixes
19892 2006-12-04 Chris Toshok <toshok@ximian.com>
19894 * ComboBox.cs: wrap the dropdown style changing work in
19895 SuspendLayout/ResumeLayout. Fixes bug #79968.
19897 2006-12-04 Jackson Harper <jackson@ximian.com>
19899 * TextBoxBase.cs: Fix off by one, since these are one-based.
19900 * TextBox.cs: Select all the text when we get focus. The TextBox
19901 does this but the RTB does not.
19903 2006-12-04 Chris Toshok <toshok@ximian.com>
19905 * DataGridTextBoxColumn.cs: remove some spew.
19907 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19908 but some part of me is saying "it shouldn't be here.." At any
19909 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
19912 2006-12-04 Chris Toshok <toshok@ximian.com>
19914 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19915 to reassign the propertydescriptor.
19917 2006-12-04 Jackson Harper <jackson@ximian.com>
19920 * TextControl.cs: Remove some unused variables. Maybe this will
19921 patch things up between mike and I.
19922 - don't split lines less then one char wide, if the viewport is
19923 that small text won't be visible anyways.
19925 2006-12-04 Jackson Harper <jackson@ximian.com>
19927 * TextBoxBase.cs: Default selection length is -1, need to do some
19928 more testing on windows to see when this is used for the property.
19929 - Redid the Lines [] property to that we properly remove soft line
19931 - added support for preserving carriage returns
19932 - CanUndo is not a variable like 'is undo enabled' it just returns
19933 true if there is undo operations available.
19934 - AppendText doesn't need to grab the last tag itself anymore,
19935 this happens automatically when we move the cursor.
19936 * TextControl.cs: Add CompoundActions to the undo class. This
19937 allows combining the other operations into one big option. ie a
19938 paste will combine { delete old, insert new, move cursor }
19939 - Add InsertString undo operation
19940 - New method for deleting multiline text
19941 - Add carriage returns to lines. So we can preserve carriage
19942 returns when text is 'roundtripped'
19944 2006-12-04 Chris Toshok <toshok@ximian.com>
19946 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19947 minimum 0. Fixes the scrollbar exception in bug #80136.
19949 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19952 * MdiWindowManager: Removed unused fields and methods.
19954 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19956 * StatusBar.cs: Update all panels when a AutoSize=Contents
19957 panel needs updating.
19959 * StatusBarPanel.cs: Remove twidth and only use initialize.
19962 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19964 * Form.cs: When a form's MdiParent is set add it directly
19965 on top of the z-order in stead of relying on MdiClient's
19966 ActivateChild to do it. Fixes #80135.
19969 - Remove original_order, mdi_child_list is already doing
19971 - Create mdi_child_list on construction in
19972 stead of first use (avoids a few null checks).
19974 * MenuItem.cs: Use an already existing list of mdi children
19975 to get the correct order of children and remove the other
19978 2006-12-04 Chris Toshok <toshok@ximian.com>
19980 * PropertyGridView.cs: cached_splitter_location is only used in
19981 !DOUBLEBUFFER code.
19983 * PropertyGrid.cs: implement the ComComponentNameChanged event
19984 using Events, hoping that would fix the warning. Looks like a
19985 compiler bug instead (#80144).
19987 * PropertyManager.cs: remove unused method.
19989 2006-11-04 Everaldo Canuto <everaldo@simios.org>
19991 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
19992 include parentesis to fix expression evaluation. Fixes #79634.
19994 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19997 - Changes to fix behavior in Menu control, some reported in #80097
19998 and other detected during behavior refactory like a select event
20000 - Remove unneded "if's" conditions.
20001 - Created an internal to flag when popup is active in control, we need
20002 it because in .NET you can have menu active but without popup active
20003 when you active menu using popup without visible items.
20004 - Mimic win32 behavior for Select and Popup events.
20005 - Dont open popup menu when you dont have visible subitems.
20006 - Do nothing when click on disabled menu item.
20007 - Some small changes to follow the coding style guidelines.
20008 - Unselect menu only when another control gives focus. Fixes #80097.
20009 - Remove unused code.
20011 * MenuItem.cs: internal VisibleItems method to check if menu
20012 theres visible subitems, it will be usefull to fix some
20013 behavior in Menu control.
20015 2006-11-01 Everaldo Canuto <everaldo@simios.org>
20017 * Timer.cs: Tag property for 2.0 profile.
20019 2006-12-01 Chris Toshok <toshok@ximian.com>
20021 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20023 * Win32DnD.cs: comment out some unused fields.
20025 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20026 some unused properties/methods.
20028 * XplatUIX11.cs: fix MousePosition so we override the base class's
20029 property instead of conflicting with it.
20031 * PictureBox.cs: comment out some unused fields
20033 * OSXStructs.cs: make some struct fields public.
20035 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20036 MousePosition so we override the base class's property instead of
20037 conflicting with it.
20039 * X11Dnd.cs: comment out some unused fields
20041 * X11DesktopColors.cs: fix some struct field visibility to quiet
20044 * X11Dnd.cs: remove some debug code.
20046 * ThemeClearlooks.cs: comment out unused field.
20048 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20050 * ThemeGtk.cs: comment out some unused pinvokes.
20052 * Timer.cs: remove some unused fields.
20054 * ThemeClearlooks.cs: comment out unused field.
20056 * UpDownBase.cs: comment out unused field.
20058 * DataObject.cs: comment out unused field.
20060 * DataGridBoolColumn.cs: reomve unused field.
20062 * DataGrid.cs: remove unused field.
20064 * Cursor.cs: remove old ToBitmap code.
20066 * ControlPaint.cs: remove unused method.
20068 * ScrollBar.cs: remove unused fields.
20070 * ComboBox.cs: remove unused field, and chain up to
20071 AccessibleObject ctor.
20073 * ListBox.cs: remove unused field.
20075 * ButtonBase.cs: wrap a couple fields in NET_2_0.
20077 * GridEntry.cs: remove unused fields.
20079 * Binding.cs: remove unused fields.
20081 * AxHost.cs: remove unused method.
20083 * ContainerControl.cs: remove unused field.
20085 * ScrollableControl.cs: remove unused fields.
20087 2006-12-01 Chris Toshok <toshok@ximian.com>
20089 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20090 the Where/WhereString stuff. it's easy enough to CWL
20091 Environment.StackTrace.
20093 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20094 unused private fields.
20096 2006-12-01 Jackson Harper <jackson@ximian.com>
20098 * TextControl.cs: Do not update the view while inserting multiline
20099 text. If we update the view we might wrap lines, before entering
20100 the new lines, which causes the new line insertion calculations to
20101 be totally fubared.
20102 - Remove an old TODO
20103 - Make debug output a little nicer
20105 2006-12-01 Chris Toshok <toshok@ximian.com>
20107 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20109 2006-12-01 Chris Toshok <toshok@ximian.com>
20111 [ fix the majority of the CS0108 warnings we've been suppressing ]
20113 * TreeView.cs: mark BackgroundImageChanged as 'new'.
20115 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
20116 to "LayoutToolBar" to quiet mcs.
20118 * TabControl.cs: mark our ControlCollection class as 'new'.
20120 * TextBoxBase.cs: mark some events as 'new'.
20122 * Splitter.cs: TabStop is 'new'.
20124 * ControlBindingsCollection.cs: mark a few methods as new since
20125 they change the visibility from protected to public.
20127 * RadioButton.cs: DoubleClick -> base class, and remove unused
20130 * MonthCalendar.cs: ImeMode property -> base class, and mark many
20133 * NumericUpDown.cs: TextChanged -> base class.
20135 * CheckedListBox.cs: mark our ObjectCollection class as new to
20138 * FolderBrowserDialog.cs: make HelpRequest event new and have it
20139 muck with the base class.
20141 * StatusBar.cs: fix some mcs warnings about Update being the same
20142 name as a base class method.
20144 * RichTextBox.cs: mark some events as new, and make them do things
20145 to the base class impl.
20147 * UserControl.cs: mark TextChanged as new, and have it manipulate
20150 * UpDownBase.cs: mark some things new.
20152 * CheckBox.cs: mark DoubleClick "new", and add some text about
20153 what we need to look at.
20155 * Panel.cs: make the events "new", and manipulate the base
20156 version. these are just here for attributes.
20158 * AccessibleObject.cs: make owner private.
20160 * Control.cs: deal with AccessibleObject.owner being private.
20161 cache our own copy if we need it.
20163 * Button.cs: add "new" to the DoubleClickEvent.
20165 * ListBox.cs: no need to track our own has_focus here. let
20166 Control.has_focus do it for us. Also some other work to clear up
20167 warnings about not overriding base class methods of the same name.
20169 * ComboBox.cs: clear up some warnings about not override base
20170 class methods of the same name.
20172 2006-12-01 Chris Toshok <toshok@ximian.com>
20174 * Form.cs: flag a few things as "new" to quiet some of the mcs
20179 * PrintPreviewDialog.cs: same.
20181 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
20182 now DGV isn't so horrible on the class status page. also, move
20183 all events to using System.ComponentModel.EventHandlerList. my
20186 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
20188 * MdiWindowManager.cs:
20189 - Set form to active mdi child if shown,
20190 and update the active mdi child to the next
20191 remaining child in the z-order if the form is hidden.
20194 - Track if the form has been visible and if its
20195 visibility is beeing changed, so that the MdiClient
20196 can properly decide the ActiveMdiChild. The MdiClient
20197 cannot track this since the form can change visibility
20198 before MdiClient is created.
20201 - Don't activate anything of the parent form is changing
20203 - Rework ActiveMdiChild to only return visible mdi
20204 children and take into account several other corner
20207 2006-12-01 Chris Toshok <toshok@ximian.com>
20209 * IBindableComponent.cs: new 2.0 interface.
20211 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
20213 * DataGrid.cs: Font for caption area is bold by default.
20215 2006-12-01 Everaldo Canuto <everaldo@simios.org>
20217 * Menu.cs: Tag property for 2.0.
20219 2006-11-01 Everaldo Canuto <everaldo@simios.org>
20221 * ThemeWin32Classic.cs: Adjust menu separator drawing.
20223 2006-12-01 Chris Toshok <toshok@ximian.com>
20225 * TreeView.cs: doh, the Begin* events should be
20226 TreeViewCancelEventHandler.
20228 2006-12-01 Chris Toshok <toshok@ximian.com>
20230 * Form.cs: Form.ControlCollection already stores off the
20231 form_owner field. don't access the base class's internal "owner"
20234 * Control.cs: make all the fields in Control.ControlCollection
20235 private. there's no need for any internal fields here.
20237 2006-12-01 Chris Toshok <toshok@ximian.com>
20239 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20240 OnHandleCreated. Fixes bug #80109.
20242 2006-12-01 Chris Toshok <toshok@ximian.com>
20244 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20245 SplitContainer.cs, Control.cs, StatusStrip.cs,
20246 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20247 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20248 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20249 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20250 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20251 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20252 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20253 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20254 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20255 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20257 do most of the work to convert our code over to use
20258 System.ComponentModel.Component.Events for
20259 adding/removing/dispatching events.
20262 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
20264 * DataGridView.cs: Fix an ArgumentNullException reported
20265 twice today in IRC.
20267 2006-11-30 Mike Kestner <mkestner@novell.com>
20269 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
20270 grabbed listbox. Fixes #80036 and #80101.
20272 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
20274 * Message.cs: Changed ToString() to match MS.
20276 2006-11-30 Jackson Harper <jackson@ximian.com>
20278 * TextBoxBase.cs: You can still change the selected text on a read
20280 * TextControl.cs: Lower magic number for wrap calculations. This
20281 lets text get closer to the right (far) edge.
20283 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
20285 * Control.cs: Tweak 2.0 layout properties.
20286 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20287 * TextRenderer.cs: Add a new overload.
20288 * ToolStrip*: Huge amount of changes and new features.
20290 2006-11-30 Mike Kestner <mkestner@novell.com>
20292 * ComboBox.cs: fixes for LargeChange and Maximum to get the
20293 scroll range correct. Fixes #79994.
20295 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
20297 * MdiWindowManager.cs: Update main form's text when
20298 a form is closed. (fixes #80038)
20300 2006-11-30 Everaldo Canuto <everaldo@simios.org>
20303 - Fix an regression in ButtonSize.
20304 - Get ImeMode default value change to "Disable".
20305 - Get ShowTooltips default value change to true, default value is
20306 "false" but after make a test in .NET we get "true" result as default.
20308 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
20310 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20312 2006-11-29 Chris Toshok <toshok@ximian.com>
20314 * XplatUIWin32.cs (GetWindowTransparency): check return value of
20315 GetLayeredWindowAttributes. if it's 0, return 1.0, as
20316 SetWindowTransparency hasn't been called.
20318 2006-11-29 Chris Toshok <toshok@ximian.com>
20320 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20322 (set_AllowTransparency): reorder things a little so that the
20323 WS_EX_LAYERED style is removed properly.
20325 2006-11-29 Chris Toshok <toshok@ximian.com>
20327 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20329 * Form.cs: only call the XplatUI transparency method (get/set) if
20330 SupportsTransparency says it's supported. Otherwise fallback to
20331 doing nothing (in the set case) or returning the instance field we
20332 cache (in the get case).
20334 * XplatUIStructs.cs: add TransparencySupport flag enum.
20336 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20337 change to SupportsTransparency.
20339 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20340 TransparencySupport.None from SupportsTransparency.
20342 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20343 TransparencySupport.Set from SupportsTransparency.
20345 * XplatUIWin32.cs: implement GetWindowTransparency calling
20346 GetLayeredWindowAttributes, and implement SupportsTransparency by
20347 checking whether or not both
20348 GetWindowTransparency/SetWindowTransparency are available
20349 entrypoints. We need to do this since SetWindowTransparency is
20350 available as of win2k, but GetWindowTransparency requires winxp.
20353 * XplatUI.cs: Add GetWindowTransparency, and change
20354 SupportsTransparency to allow for either/both Get/Set.
20356 2006-11-29 Chris Toshok <toshok@ximian.com>
20358 * DataGrid.cs: keep from going into an infinite loop redrawing a
20359 datagrid that has no datasource. Fixes bug #80033.
20361 2006-11-29 Chris Toshok <toshok@ximian.com>
20363 * MenuItem.cs: fix the NRE when we assign text (and therefore call
20364 Invalidate) before the mainmenu has been assigned to a control.
20366 2006-11-29 Chris Toshok <toshok@ximian.com>
20368 * DataGrid.cs: detect when we should be double the double click
20369 row/column autosize stuff, although that codepath has yet to be
20370 written. part of the work for bug #79891.
20372 2006-11-29 Chris Toshok <toshok@ximian.com>
20374 * Binding.cs (SetControl): fix unit test.
20376 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20378 * PageSetupDialog.cs: Validate the margins and set them in
20380 * NumericTextBox.cs: New class to mimic the behavior of the
20381 textboxes used in the printing dialogs.
20383 2006-11-29 Andreia Gaita <avidigal@novell.com>
20385 * Form.cs: Revert previous change (remove call UpdateBounds
20386 from form constructor), because it messes with the handle creation
20387 order, and that one needs lots and lots of love.
20388 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20389 for valid printer and throw InvalidPrinterException if document
20390 is set but printer not valid), adding a MonoTODO. Once
20391 handle creation is done properly, we can put this back in.
20393 2006-11-28 Everaldo Canuto <everaldo@simios.org>
20395 * MenuItem.cs: Create a invalidate method for menu item, to be
20396 calling from set text, it make text changes to imadiate update
20397 on screen. Fixes #80013.
20399 2006-11-28 Everaldo Canuto <everaldo@simios.org>
20401 * ToolBar.cs: Fixes and simplify toolbar button layout, it
20402 fixes bug #80070 and some other problem on toolbar buttons
20405 2006-11-28 Everaldo Canuto <everaldo@simios.org>
20407 * ThemeWin32Classic.cs: Paint toolbar toggle button background
20408 with dotted brush. Fixes #79564
20410 2006-11-28 Andreia Gaita <avidigal@novell.com>
20412 * Form.cs: Removed call to UpdateBounds on Form
20413 constructor, it was causing a call to CreateHandle
20414 before it was supposed to.
20415 * PrintControllerWithStatusDialog: Applied patch
20416 by Chris Toshok to hide controller when there are
20417 no printers available.
20418 PrintDialog.cs: initialize printer settings to
20419 null - correct DefaultValues test #5
20420 * PrintPreviewControl.cs: Move PrintController
20421 initialization to GeneratePreview
20422 * PrintPreviewDialog.cs:
20423 - Remove Preview generation from Document_set(). It is
20425 - Throw InvalidPrinterException on CreateHandle if
20426 a Document is set but there are no printers or
20427 printer is not valid.
20428 * ThemeWin32Classic: don't paint PrintPreviewControl
20429 if there is nothing to paint
20431 2006-11-28 Miguel de Icaza <miguel@novell.com>
20433 * Form.cs: Add another popular method.
20435 * TabPage.cs: ditto.
20437 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20439 * MenuItem.cs: Fixed a warning.
20440 * InternalWindowManager: Fixed a warning.
20442 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20445 - When cloning a menu also clone MdiList and clone the
20446 window menu items properly (as the forms and menuitems
20447 are kept in an internal hashtable, these need updating
20449 - Rewrote the window menu code, menu items are added in the
20450 order the forms were added to their parent, and they are
20451 updated every time the window menu is shown (before the
20452 list was only generated once, in the current order of the
20453 forms, and would never be updated). A checkmark is shown
20454 next to the item corresponding to the active mdi child.
20456 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20458 * XplatUIStructs.cs:
20459 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20462 - Added TME_NONCLIENT to TMEFlags.
20463 - Handles WM_NCMOUSEMOVE in GetMessage to
20464 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20466 * MdiWindowManager:
20467 - Now merges mdi child menu to parent menu when maximized.
20468 - Recalculate NC areas of both mdi child and mdi parent.
20470 on window state and size changes.Fixes #79844 (3).
20471 - Handle WM_NCCALCSIZE to properly calculate borders.
20474 - Add/remove to the mdi containers list of mdi children
20475 in the order they are added.
20476 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
20477 to the maximized mdi child.
20479 * InternalWindowManager.cs:
20480 - Only execute a click on the control buttons on the mouse up,
20481 not on the mouse down. Show the state of the button
20482 (was only showing Normal state, never Pressed state). The
20483 pressed button now follows the mouse (if you click the Close
20484 button and move the mouse over the Maximize button, the
20485 Maximize button will be shown as pressed). Since Win32 does
20486 not generate WM_NCLBUTTONUP if you release the button outside
20487 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20490 * ThemeWin32Classic.cs:
20491 - Draw a missing border around mdi child forms. Fixes #79844 (2).
20494 - Added a list of forms which contains the order the forms are
20495 added to the mdi parent.
20496 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20497 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20498 - If the active form changes set the scrollbars to the top
20499 of the Z order, otherwise the form could hide them.
20500 - Scrollbars are now sized according to ClientSize, not
20501 to Size, and they take into account the other scrollbar
20502 to determine maximum.
20504 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20507 * XplatUIDriver.cs:
20511 - Added RequestAdditionalWM_NCMessages for windows to
20512 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20513 Currently only implemented in XplatUIWin32.
20515 2006-11-27 Chris Toshok <toshok@ximian.com>
20517 * Hwnd.cs: only add the hwnd to the windows hash in
20518 set_WholeWindow and set_ClientWindow if whole_window/client_window
20519 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
20521 2006-11-27 Mike Kestner <mkestner@novell.com>
20523 * ComboBox.cs: remove redundant OnDropDown call. It is called
20524 from the ComboListBox.ShowWindow code. Fixes #79969.
20526 2006-11-27 Chris Toshok <toshok@ximian.com>
20528 * Hwnd.cs: remove the setters for ExposePending and
20529 NCExposePending - noone uses them.
20531 2006-11-27 Jackson Harper <jackson@ximian.com>
20533 * TextControl.cs: new param for ReplaceSelection which determines
20534 whether we select the new selection, or set the cursor to the end
20535 of the new selection.
20536 * TextBoxBase.cs: Use new param for ReplaceSelection. When
20537 pasting, select the new text.
20538 * RichTextBox.cs: Use new param for ReplaceSelection.
20540 2006-11-27 Jackson Harper <jackson@ximian.com>
20542 * TextBoxBase.cs: Set the selection to the caret after the caret
20543 is moved, otherwise they get out of sync.
20545 2006-11-26 Everaldo Canuto <everaldo@simios.org>
20547 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20550 2006-11-26 Everaldo Canuto <everaldo@simios.org>
20552 * ThemeWin32Classic.cs:
20553 - Fix toolbar drop down arrow position.
20554 - Fix drop down appearance when ToolBar.Appearance is normal,
20557 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
20559 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20560 * Control.cs: Same.
20561 * UpDownBase.cs: Same.
20562 * ButtonBase.cs: Same.
20563 * ScrollBar.cs: Same.
20564 * TrackBar.cs: Same.
20565 * PictureBox.cs: Same.
20566 * UserControl.cs: Same.
20568 * ListControl.cs: Same.
20569 * TextBoxBase.cs: Same.
20570 * ListView.cs: Same.
20571 * RichTextBox.cs: Same.
20572 * TreeView.cs: Same.
20574 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
20577 - Text label for where
20578 - Text label comment was not shown
20580 2006-11-23 Everaldo Canuto <everaldo@simios.org>
20582 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20584 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
20586 * InternalWindowManager.cs:
20587 - Handle WM_PARENTNOTIFY to activate the form
20588 if any child control is clicked.
20589 - The form is only sizable if not minimized.
20591 * MdiWindowManager.cs:
20592 - Save the IconicBounds if the form is moved.
20593 - Rework SetWindowState, now the window bounds
20594 are stored only if the old window state is Normal.
20597 - In SetWindowStates store the old window state if
20598 the window is maximized and restore window state if
20599 the window looses focus.
20600 - Don't handle any scrollbar value changes if
20601 initializing the scroll bars. Fixes #79771.
20602 - Reworked ArrangeIconicWindows. Current algorithm
20603 tests bounds agains all other minimized windows, if
20604 any intersections create new bounds (going left to
20605 right, bottom to top) and then test again. When
20606 successful the bounds are saved and never computed
20607 again. Fixes #79774.
20609 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
20611 * InternalWindowManager.cs: Added HandleTitleBarUp.
20613 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
20615 * NumericUpDown.cs: In .NET 1.1, user entered text is still
20616 hexadecimal in ParseUserEdit.
20619 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
20621 * MdiWindowManager.cs:
20622 - Handle a click on the form's icon to show the
20623 system menu (when maximized). Fixes #79775.
20624 - Change the existing click handler for the form's
20625 icon when not maximized to show on MouseUp.
20628 * Form.cs: In OnResize only layout the mdi child's
20629 parent if it actually has a parent. Might not if
20630 the window is closing.
20633 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
20635 * MdiClient.cs: Ignore active MDI client for text of parent, if
20636 child has no text set.
20638 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
20640 * ToolBar.cs: Fixed ToString to match MS.
20642 2006-11-22 Andreia Gaita <avidigal@novell.com>
20645 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
20646 update inner values on set. Fixes #79966.
20647 - Override OnLostFocus to update value on NET 2. Fixes #79950.
20648 - Fix hexadecimal parsing.
20650 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
20651 parent. Fixes #79957
20653 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
20655 * Control.cs: After calling SetWindowsPos in SetBoundsCore
20656 the actual size has to be queried, since if height /
20657 width is negative Win32 changes it to 0.
20658 Fixes #79999 on Windows.
20660 * XplatUIX11.cs: Set height / width to 0 if negative
20661 in SetWindowPos. Fixes #79999 on Linux.
20663 2006-11-22 Everaldo Canuto <everaldo@simios.org>
20665 * ThemeWin32Classic.cs: Fix text redenring when button is
20668 2006-11-22 Everaldo Canuto <everaldo@simios.org>
20670 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20671 and later navigate by mouse. Fixes #79528.
20673 2006-11-21 Everaldo Canuto <everaldo@simios.org>
20675 * ToolBar.cs: Set default value for TabStop to false in
20676 constructor, it fixes remaining behavior of bug #79863.
20678 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
20680 * MdiWindowManager.cs:
20681 * InternalWindowManager.cs:
20682 - Moved a few methods specific to Mdi from
20683 InternalWindowManager to MdiWindowManager.
20686 2006-11-21 Chris Toshok <toshok@ximian.com>
20688 * XplatUIOSX.cs: stub out InvalidateNC.
20690 * XplatUIWin32.cs: implement InvalidateNC using the call I found
20691 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20693 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20695 * XplatUIDriver.cs: add InvalidateNC abstract method.
20697 * XplatUI.cs: add InvalidateNC.
20699 2006-11-21 Everaldo Canuto <everaldo@simios.org>
20701 * ToolBar.cs: Invalidate complete button area when pressed status
20703 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20704 * ThemeWin32Classic.cs: Increase vertical and horizontal position
20705 by 1 when button is pressed.
20707 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20709 * ToolButton.cs: Invalidate middle of DropDown button when
20710 ToolBar theres DropDownArrows.
20711 * ThemeWin32Classic.cs: Change position of DropDown arrow and
20712 fix DropDown drawing operations.
20714 2006-11-20 Chris Toshok <toshok@ximian.com>
20716 * NativeWindow.cs: fix the formatting of functions ('{' on the
20717 following line), and enable the thread exception dialog.
20719 * Application.cs: remove the duplicate exception catching from
20722 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20724 * Toolbar.cs: Triggers button click event when click on icon
20725 of dropdown ToolBarButton. Fixes #79912.
20727 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20730 * ThemeWin32Classic.cs:
20731 - Added a property WindowBorderFont to enable themeing
20732 of mdi child windows' Text.
20734 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20736 * InternalWindowManager.cs:
20739 * MdiWindowManager.cs:
20740 - If mdi child is maximized, set mdi parent's
20741 text to "Parent - [Child]". Fixes #79770.
20742 - If there is any maximized mdi child windows, only the active
20743 window (and any new windows) is maximized, the rest are normal.
20744 - On a WindowState change only save mdi child's window bounds
20745 if the old window state was normal. Fixes #79774.
20746 - The scroll bars are now calculated on hopefully all
20747 necessary events. Fixed #79771 / #79844->6 / #79906.
20748 - MdiClient.SizeScrollBars() now takes into account docked
20749 controls in the parent when calculating available space.
20750 - InternalWindowManager now always repaints the entire title
20751 area. Fixes #79844->1/4/5.
20752 - Added RequestNCRecalc on mdi child windowstate changes.
20755 2006-11-20 Mike Kestner <mkestner@novell.com>
20757 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20758 in the MouseUp handler of the listbox and move the return handling
20759 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
20761 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20763 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
20765 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20767 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20768 working in 1.2.x anymore. So, updated.
20770 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
20772 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20773 NumberGroupSeparator of current culture instead of assuming en-US.
20776 2006-11-17 Mike Kestner <mkestner@novell.com>
20778 * Control.cs: Add the concept of implicit bounds setting so that
20779 dock/undock round trips preserve explicitly set size/locations.
20782 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20784 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20785 can't handle those filters. (Fixes bug #79961)
20787 2006-11-17 Chris Toshok <toshok@ximian.com>
20789 [ fixes the exit/crashes associated with #79835. it's clearly
20790 suboptimal though, we need to figure out a better way to solve
20793 * PrintPreviewControl.cs: deal with the new invalid printer
20796 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20797 and return false (so CommonDialog.ShowDialog doesn't actually show
20800 * PrintDialog.cs: enable/disable the Ok button depending on
20801 whether or not the printer is valid.
20803 * CommonDialog.cs (ShowDialog): only actually show the form if
20804 RunDialog returns true.
20806 2006-11-17 Jackson Harper <jackson@ximian.com>
20808 * TextControl.cs: When soft splitting a line, mark it as a soft
20809 split line. Also carry over the current line break to the next
20812 2006-11-17 Chris Toshok <toshok@ximian.com>
20814 * XplatUIX11.cs: when scrolling a window with an invalid area, we
20815 only want to shift the part of the invalid area that overlaps the
20816 area we're scrolling. we also don't want to clear the invalid
20817 area unless the invalid area was entirely contained within the
20820 2006-11-16 Chris Toshok <toshok@ximian.com>
20822 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20823 also make sure to free the memory returned by XGetWindowProperty
20826 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20828 2006-11-16 Chris Toshok <toshok@ximian.com>
20830 * XplatUI.cs: add a new super secret way to get at the totally
20831 unsupported X11 backend.
20833 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
20835 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20837 2006-11-16 Jackson Harper <jackson@ximian.com>
20839 * TreeView.cs: Allow more explicit setting of top node position
20840 for scrollbars. Slower algo, but more accurate.
20841 - CollapseAll should maintain the current top node.
20842 * TextBoxBase.cs: When positioning the caret, use the line, pos
20843 method, since the x, y method does not grab the correct tag, and
20844 the caret height never gets set correctly. (Maybe I should just do
20845 away with the caret having its own height, and always use the
20846 carets current tag for height).
20848 2006-11-16 Jonathan Pobst <monkey@jpobst.com
20850 [Fixes 79778, 79923]
20852 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20853 Parent to the FosterParent instead.
20855 2006-11-16 Jackson Harper <jackson@ximian.com>
20857 * TreeView.cs: Need to recalc the topnode when we expand or
20858 collapse. The scrolling methods can't handle this on their own,
20859 since they use differences between the last scroll position, and
20860 those difference get completely messed up since we are expanding
20861 nodes. This problem should probably be fixed in the scrolling
20862 methods, so they can figure out exactly where they are, but this
20863 will slow things down a little.
20864 * ThemeWin32Classic.cs: Special case for groupboxes with empty
20865 strings, makes nunit-gui look a lot nicer.
20867 2006-11-16 Chris Toshok <toshok@ximian.com>
20869 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20870 the broken multithreaded event handling we have in here. File
20871 this entry under "Why we should move to the new X11 backend".
20873 Any thread can make it into UpdateMessageQueue, which gets events
20874 from the X socket - some of which could belong to hwnds being
20875 managed by a different thread. We can also have multiple threads
20876 in UpdateMessageQueue at the same time, with each one reading from
20877 the X socket. This leads to many problems, with the following
20880 We can't use hwnd.Queue.Enqueue anywhere in here and must use
20883 The MotionNotify compression we do can't work across threads
20884 (without locking the entire queue, perhaps) since we call
20885 hwnd.Queue.Peek, so we just punt and don't compress motion events
20886 unless the owning thread is the one which got the X event.
20888 ConfigureNotify is another fun one, since it modifies the hwnd's
20889 bounds and then enqueues the event. We add a lock to Hwnd which
20890 is held when setting configure_pending to true (and enqueuing the
20893 There is a race wrt the wake socket. we need to make sure that
20894 only 1 thread is waiting on that socket, or else a thread could
20895 sleep waiting for data that never comes. It's difficult (but not
20896 impossible) to make happen, because it seems to require something
20897 like the following:
20899 1. Thread 1 polls on wake_receive
20901 2. poll returns saying there's data to be read on
20904 3. Thread 2 polls on wake_receive and immediately returns
20905 saying there's data to be read.
20907 4. Thread 2 reads the wakeup byte from wake_receive
20909 5. Thread 1 attempts to read the wakeup byte from
20912 6. Thread 2 exits (due to a form closing, perhaps).
20914 7. Thread 1 blocks forever.
20918 Fixing the Expose handling isn't done yet, and the races inherent
20919 in that piece of code are responsible for the drawing mistakes you
20920 see when generating expose events in a MT app (like NPlot). This
20921 one is the likely to be the hardest to bandaid, and it doesn't
20922 appear to cause anything but drawing problems. The other issues
20923 caused apps to exit or hang.
20925 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20926 called from a different thread than the one that should be calling
20929 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20931 2006-11-15 Chris Toshok <toshok@ximian.com>
20933 * Application.cs: null out the context's MainForm when we exit
20934 RunLoop. Fixes a newly checked in unit test as well as the last
20935 ODE from bug #79933.
20937 2006-11-15 Chris Toshok <toshok@ximian.com>
20939 * Form.cs (set_Owner): allow a null value so we can clear the
20941 (Dispose): set all our owned_form's Owner properties to null, and
20942 clear the owned_forms collection.
20943 (WM_CLOSE): clean up this a little bit.. still not right though.
20945 * ApplicationContext.cs: OnMainFormClosed should only call
20946 ExitThreadCore if the main form isn't recreating. Fixes unit
20949 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20953 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20955 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20959 * Hwnd.cs: Add a flag to show a window, but not activate it, to
20960 keep popup window types from stealing focus from the main form
20963 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20965 * MenuAPI.cs: Set above flag to true.
20967 2006-11-15 Chris Toshok <toshok@ximian.com>
20969 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20970 the button being released is not in wParam.
20972 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20974 * Form.cs: Add the released button to MouseEventArgs.Button
20975 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
20978 2006-11-15 Chris Toshok <toshok@ximian.com>
20980 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20981 GetText(). untested because it's unused in our implementation.
20982 Control.Text always caches the text, even if
20983 ControlStyles.CacheText is not set.
20987 2006-11-15 Chris Toshok <toshok@ximian.com>
20991 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20992 message. no hiding, no disposing.
20994 in the WM_CLOSE handler, hide the form if it's modal.
20996 2006-11-15 Chris Toshok <toshok@ximian.com>
20998 * XplatUIX11.cs: use AddExpose instead of sending a message.
20999 fixes textbox border drawing.
21001 2006-11-15 Chris Toshok <toshok@ximian.com>
21003 * PropertyGridView.cs: keep from crashing on mouse move/down when
21004 the property grid is empty.
21006 2006-11-14 Jackson Harper <jackson@ximian.com>
21008 * TextControl.cs: Make PageUp and PageDown more like the MS
21010 * TextBoxBase.cs: When we set the text property position the
21011 cursor at the beginning of the document.
21013 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21015 * Form.cs: if a mdi child's WindowState has changed
21016 before it's creation, it would display wrong control
21019 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
21021 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21024 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21026 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
21027 the window gets to paint its borders even if the window is
21030 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
21031 otherwise the old control buttons would still be painted
21032 if the window gets bigger.
21034 * PaintEventArgs.cs: add an internal method so that the clip
21035 rectangle can be changed.
21037 2006-11-13 Chris Toshok <toshok@ximian.com>
21039 [ fixes bug #79745 ]
21041 * NotifyIcon.cs: lots of cleanup.
21043 * X11Structs.cs: add an enum for XEMBED messages.
21045 * XplatUIX11.cs: reindent one of the giant switch statements, it
21046 was taking up an additional tab stop, and this file is already way
21047 too wide for my laptop's screen.
21049 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
21050 we get it, resize the hwnd to the WMNormalHints max_width/height.
21052 2006-11-13 Jackson Harper <jackson@ximian.com>
21054 * TextBoxBase.cs: Compute the value changes for the mouse wheel
21057 2006-11-13 Chris Toshok <toshok@ximian.com>
21059 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21060 #79898. force a reference to the Region to stick around so the
21061 unmanaged object isn't collected (rendering our handle in the MSG
21064 2006-11-13 Chris Toshok <toshok@ximian.com>
21066 * XplatUIX11.cs: fix #79917 for window managers which support
21068 using XStoreName on the raw utf8, and we need to convert to
21069 COMPOUND_TEXT if it's non-latin1.
21071 2006-11-13 Chris Toshok <toshok@ximian.com>
21073 * Form.cs (set_DialogResult): we need to set closing to false if
21074 we're setting our result to None. fixes bug #79908.
21076 2006-11-13 Jackson Harper <jackson@ximian.com>
21078 * TextControl.cs: When formatting text, compute the adjusted tag
21079 lengths correctly, using FindTag for the end tag instead of trying
21080 to figure it out outselves.
21081 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21082 the item, ItemHeight doesn't work, because trees with large
21083 imagelists use those for their height
21084 * TreeView.cs: ActualItemHeight factors in the image height
21085 - compute left edge of checkboxes correctly
21086 - when expanding/collapsing move the bottom down one pixel, so we
21087 aren't moving part of the node
21089 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21091 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21092 stack in PaintEventStart so that it won't get disposed by the gc
21093 before reaching PaintEventEnd.
21095 2006-11-13 Jackson Harper <jackson@ximian.com>
21097 * TextBoxBase.cs: Don't select the word if we are on a line with
21099 - We don't need to position the caret on mouse up, since the mouse
21100 move handler should be doing this
21101 - When double clicking a blank line, the caret is advanced to the
21104 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
21106 * TreeNodeCollection.cs: Avoid duplicating indexer code.
21108 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
21110 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21111 Fixes part of bug #79910.
21113 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
21115 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21116 (bug #79903). Some minor string updates to match ms.
21118 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21120 * FileDialog.cs: Don't add an extension if the filename
21121 already ends with that extension.
21123 2006-11-10 Jackson Harper <jackson@ximian.com>
21125 * TreeView.cs: Use the currently highlighted node for the
21126 BeforeSelect event.
21127 * TextBoxBase.cs: There is no need to expand selection on
21129 - CanUndo means 'is there any undo operations', not 'is undo
21130 allowed on this textcontrol. Fixed ClearUndo unit test.
21132 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
21134 * Button.cs: only perform click when button is Selectable (so as
21135 not to activate default buttons when they're disabled)
21137 * Control.cs: Rewrite of the SelectNextControl and related
21138 methods. HandleClick now selects next control if the current one
21141 * Form.cs: OnActivated selects next active control only if Load
21142 has already occurred. If Load hasn't run, there's no point in
21143 selecting here, Load might change the state of controls.
21145 * FocusTest.cs: Tests marked as working again for these fixes
21147 2006-11-10 Chris Toshok <toshok@ximian.com>
21149 * XplatUIX11.cs: a couple of fixes.
21151 - use XInternAtoms with almost all the atoms we need to register,
21152 instead of many, many calls to XInternAtom. should help a bit on
21153 startup time, at the expense of making the code look a little
21156 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21157 isn't reparented (which seems to be a clue that we're running fon
21158 compiz) and they have an Owner form. This fixes the tool windows
21159 in paint.net when running under compiz.
21161 - when setting the opacity of a window, support both the case
21162 where the window has been reparented and also when it hasn't been.
21163 Since compiz/beryl doesn't seem to reparent windows, and these are
21164 the only window managers which support translucency, I'm not sure
21165 why we need the hwnd.reparented case at all.. but leave it in.
21166 now we get translucent windows in paint.net under compiz/beryl.
21168 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21170 * FileDialog.cs: Always return the value for FilterIndex that
21171 was set. Internally convert it to values that make sense.
21173 2006-11-10 Everaldo Canuto <everaldo@simios.org>
21175 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21177 2006-11-10 Everaldo Canuto <everaldo@simios.org>
21179 * Toolbar.cs: Change default value of DropDownArrows to true, the
21180 signature still using false to make it compatible with MS but the
21181 initial value is true. Fixes #79855.
21183 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
21185 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21186 only available on Linux.
21188 2006-11-09 Everaldo Canuto <everaldo@simios.org>
21190 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21191 reduce number of calls to redraw method during toolbar creation.
21193 2006-11-09 Mike Kestner <mkestner@novell.com>
21195 * ListView.cs : raise SelectedIndexChanged when an item is selected
21196 programmatically via the Item.Selected property. Gert's nice
21197 ListViewSelectedIndexChanged test fixture now runs clean.
21199 2006-11-09 Mike Kestner <mkestner@novell.com>
21201 * ListView.cs : raise SelectedIndexChanged when a selected item is
21202 removed from the item collection using Remove or RemoveAt.
21204 2006-11-09 Mike Kestner <mkestner@novell.com>
21206 * ListView.cs : raise SelectedIndexChanged once per selected item
21207 for compat with MS. Fixes #79849+.
21209 2006-11-09 Chris Toshok <toshok@ximian.com>
21211 * TabControl.cs: initialize row_count to 0, and set it to 1 when
21212 we need to (if we have any tab pages). Fixes unit test.
21214 2006-11-09 Chris Toshok <toshok@ximian.com>
21216 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21217 width is 0, not 3. Fixes a unit test.
21219 2006-11-09 Mike Kestner <mkestner@novell.com>
21221 * ListView.cs : use Implicit scrollbars so that focus isn't
21222 stolen from the listview when they are clicked. Fixes #79850.
21224 2006-11-09 Chris Toshok <toshok@ximian.com>
21226 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21227 have a root item. Fixes #79879.
21229 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
21233 - An ArgumentException is now thrown if a wrong filter
21234 is applied (matches ms). The previous filter doesn't change
21235 anymore if an exception is thrown.
21236 - Changing the FileName property also affects FileNames
21237 * ColorDialog.cs: The length of the CustomColors array is always
21238 16. It doesn't matter if we use a smaller array or null to update
21239 or change the custom colors property.
21240 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21241 for RootFolder if we get a undefined value.
21243 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
21245 * StatusBarPanel.cs:
21246 - Width is set to MinWidth if Width is smaller than
21247 MinWidth. Fixes #79842.
21248 - MinWidth now always overrides Width (MSDN says MinWidth
21249 is set to Width when AutoSize = None, but they do not
21251 - Style has now the the correct default value.
21253 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
21256 - The control is completely invalidated on
21257 Got/LostFocus to draw the focus rectangle correctly.
21258 - When AutoSize then height is always 45 (width for
21259 vertical controls).
21261 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21262 on the mouse when moved and it doesn't move when grabbed
21263 until the mouse moves as well. Also fixed some wrong
21264 calculations when clicking on the thumb (control thought
21265 click was outside of thumb and didn't grab it).
21266 Fixes some of the issues in #79718.
21268 2006-11-08 Everaldo Canuto <everaldo@simios.org>
21270 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21272 2006-11-08 Chris Toshok <toshok@ximian.com>
21274 * PropertyGridView.cs: only call ToggleValue if the item is not
21277 2006-11-08 Jackson Harper <jackson@ximian.com>
21279 * TextBoxBase.cs: The RichTextBox and textbox have very different
21280 word selection methods. Implement the textbox's simple word
21281 selection here, and let the RichTextBox override and provide it's
21283 - Don't do extra selection on mouseup
21284 * RichTextBox.cs: Use the documents word selection algorithm, I
21285 think ideally, this function will be pulled into the
21286 RichTextBox.cs code someday.
21288 2006-11-08 Chris Toshok <toshok@ximian.com>
21290 * RootGridEntry.cs: new class to represent GridItemType.Root.
21292 * CategoryGridEntry.cs: reformat, and add boilerplate.
21294 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21295 returns the UI parent anyway, and we need special handling to
21296 implement the GetTarget method in the face of it. Also, implement
21299 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
21300 a root grid item, and use that instead of PropertyGrid.grid_items.
21301 Also, make use of TypeConverters (and add limitted support for
21302 ICustomTypeDescriptors) when initially populating the grid.
21303 Arrays now show up more or less properly.
21305 2006-11-08 Chris Toshok <toshok@ximian.com>
21307 * Application.cs: set the modal dialog to non modal after we close
21308 it. Fixes bug #79866.
21310 2006-11-08 Jackson Harper <jackson@ximian.com>
21312 * TextControl.cs: When combining lines carry over the line end
21313 style from the end line.
21314 - Invalidate the selected area when setting it, if it is visible.
21315 * TextBoxBase.cs: Only rich text box can do full line selects.
21316 - Make sure to set the cursor position when there is a click,
21317 otherwise two clicks in separate areas could cause a large chunk
21320 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21322 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
21325 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21327 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21328 time. Remove tooltips when ToolButton click events. Fixes #79856.
21330 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21332 * MenuAPI.cs: Ignore right click for menu actions and fixes
21333 menu border when clicked. Fixes #79846.
21335 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21337 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21338 MouseState after create wParam for message, this fixes mouse button
21339 equal none in mouse up events.
21341 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
21343 * Control.cs : Focus() now calls Select to set the Container's
21344 Active Control and to give it focus. To avoid infinite recursion
21345 (because ActiveControl also calls Focus at one point), a check
21346 is made in Focus with the help of a new internal variable
21349 2006-11-07 Mike Kestner <mkestner@novell.com>
21351 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21352 if there's a selection. Fixes #79849.
21354 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
21356 * PropertyGrid.cs: Avoid fixed height of help description label.
21357 Fixes part of bug #79829.
21359 2006-11-07 Chris Toshok <toshok@ximian.com>
21361 * XplatUIX11.cs: fix #79790 again, by using the
21362 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21364 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21366 * ToolBar.cs: Fix left click checking.
21368 2006-11-07 Chris Toshok <toshok@ximian.com>
21370 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
21372 2006-11-07 Chris Toshok <toshok@ximian.com>
21374 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
21375 PropertyManager unit tests.
21377 * PropertyManager.cs: make property_name internal.
21379 2006-11-07 Chris Toshok <toshok@ximian.com>
21381 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21382 pass a unit test. Also, don't set image_index to anything in
21383 response to setting the ImageList property.
21385 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21387 * ToolBar.cs: Ignore click events when mouse button is not a
21388 left button, only accepts other button for dropdown menus.
21391 2006-11-07 Chris Toshok <toshok@ximian.com>
21393 * DataGrid.cs: make the back and parent row buttons a little less
21396 2006-11-07 Jackson Harper <jackson@ximian.com>
21398 * TextBoxBase.cs: When converting to Text don't put line breaks in
21399 for soft line breaks.
21400 * TextControl.cs: There is an initial "fake" line in the document,
21401 this is now a soft break line, so that an extra line feed doesn't
21402 get added to the end of documents.
21404 2006-11-07 Chris Toshok <toshok@ximian.com>
21408 * CurrencyManager.cs: if the list is readonly, don't bother
21409 checking if IBindingList.AllowNew is true.
21411 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21412 for non-DataRowView datasources.. or rather, make it not crash.
21413 (DataGridPaintRelationRow): make sure we limit the row painting to
21414 the area not covered by the row header, and make our cell width at
21415 least large enough to cover the relation area. This allows grids
21416 that have relations but no rows to render correctly.
21417 (DataGridPaintRowContents): same type of changes here.
21418 (SetDataSource): move back to always calling
21419 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
21420 navigating back through relations.
21421 (HitTest): handle the case where we have no cells but have
21422 relations. Right now we generate a hit in cell 0 of whatever the
21423 row is, not sure if this is strictly correct, but it works for our
21426 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21427 bother doing anything.
21429 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
21431 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21432 early version of StatusStrip. Not responsible for eaten
21433 application or firstborn children.
21435 2006-11-06 Chris Toshok <toshok@ximian.com>
21437 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21438 call GetTabRect with a -1 index. Fixes #79847.
21440 2006-11-06 Jackson Harper <jackson@ximian.com>
21442 * TreeNodeCollection.cs: Update scrollbars after clearing.
21444 2006-11-06 Chris Toshok <toshok@ximian.com>
21446 * NumericUpDown.cs: fix the ToString method for some unit test
21449 2006-11-06 Chris Toshok <toshok@ximian.com>
21452 - set the initial SelectedGridItem if we can.
21454 - Exclude non-mergable properties only if we're merging > 1
21455 object. Merging 1 object isn't really merging, obviously.
21457 - Handle PropertySort.NoSort just like Alphabetical, which is
21458 wrong of course, but at least gets things on the screen.
21460 * PropertyGridView.cs:
21461 - Add method "FindFirstItem" which finds the first property grid
21462 item, so we can select it by default.
21464 - make use of GridEntry.CanResetValue.
21466 - Don't call RedrawBelowItemOnExpansion here anymore, the
21467 individual GridEntry's will do that.
21469 - Remove the ITypeDescriptorContextImpl internal class.
21472 - this class needs to implement ITypeDescriptorContext, as it's
21473 what MS's PropertyDescriptorGridEntry does, which means we can
21474 remove the ITypeDescriptorContextImpl internal class from
21475 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
21477 - keep a reference to our PropertyGridView, and move the call to
21478 RedrawBelowItemOnExpansion here from PGV. This means
21479 programmaticly setting Expanded actually does something visible.
21481 - add a CanResetValue() function which takes into account our
21482 possibly multiple "selected_objects" in the merged case. Shifting
21483 PropertyGridView to use this method fixes another unreported
21484 crasher found running the test for #79829.
21486 - when Top or Bounds is updated, make sure the PropertyGridTextBox
21487 is updated to reflect this.
21489 * CategoryGridEntry.cs: the ctor takes the PGV now.
21491 2006-11-06 Jackson Harper <jackson@ximian.com>
21493 * TextControl.cs: These are 1 based.
21494 * TextBoxBase.cs: When setting the selected text, don't change the
21495 selected text tags, this is done by ReplaceText, just position the
21496 cursor at the end of the new text.
21498 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
21500 * ListView.cs: Allow label edit only when, when LabelEdit is
21503 2006-11-06 Jackson Harper <jackson@ximian.com>
21505 * TextControl.cs: If a suitable wrapping position isn't found,
21506 just wrap right in the middle of a word.
21508 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
21510 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21513 2006-11-06 Jackson Harper <jackson@ximian.com>
21515 * TreeView.cs: Can't use the VisibleCount property when setting
21516 scrollbar heights, because this doesn't take into account whether
21517 or not the horz scrollbar just came visible.
21519 2006-11-05 Everaldo Canuto <everaldo@simios.org>
21521 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21522 activated. Fixes #79369, #79832.
21524 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
21526 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21527 had to remove support for links that point to a directory. FileInfo
21528 returns no usefull information (means, the directory they point to)
21529 for such links. Replaced some empty string ("") with String.Empty.
21531 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
21533 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
21534 NullReferenceException when attempting to remove node that is not in
21535 collection. Throw NullReferenceException when null is passed to
21536 Remove. Allow first element of the collection to be removed. Fixes
21537 bug #79831. In GetEnumerator ().Current return null if positioned
21538 before the first element of the collection. In GetEnumerator ().Reset,
21539 position before first element of the collection.
21541 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
21543 * PropertyGrid.cs: To match MS, remove default title and description
21544 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21547 2006-11-04 Chris Toshok <toshok@ximian.com>
21549 * Theme.cs: add a Clamp method, just for kicks.
21551 * ThemeWin32Classic.cs: clamp all color components to [0..255].
21553 2006-11-04 Chris Toshok <toshok@ximian.com>
21555 * Form.cs: if the form isn't visible, Close() does nothing.
21557 2006-11-03 Chris Toshok <toshok@ximian.com>
21559 * Form.cs (Close): if the form is modal, don't Dispose of it, only
21561 (WndProc): don't Dispose after handling the WM_CLOSE message.
21563 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21564 them as such, instead of using casts from Control to Form. Also,
21565 don't Dispose of the modal dialog when we fall out of the loop -
21566 Close() it instead.
21570 2006-11-03 Chris Toshok <toshok@ximian.com>
21572 * Control.cs (Dispose): only go through the dispose thing if we're
21573 @disposing, and we haven't already been disposed. Fixes bug
21576 * Form.cs: no reason to call "base.Dispose()" here instead of
21579 2006-11-03 Mike Kestner <mkestner@novell.com>
21581 * ComboBox.cs : use ToString instead of casts in AddItem for
21582 sorting functionality. Fixes #79812.
21584 2006-11-03 Chris Toshok <toshok@ximian.com>
21586 * Application.cs: pave the way for actually using the thread
21587 exception dialog. it's ifdefed out at the moment.
21589 2006-11-03 Chris Toshok <toshok@ximian.com>
21591 * ThreadExceptionDialog.cs: until we get a better layout, actually
21592 hide the details textbox and label when we shouldn't see them.
21594 2006-11-03 Jackson Harper <jackson@ximian.com>
21596 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21597 multiline textboxes anymore. This method also determines the
21598 width/height of a textboxes canvas area.
21599 - Sorta a revert of the last patch. For multiline just position
21600 the controls, then bail. This way the scrollbar width won't be
21603 2006-11-03 Everaldo Canuto <everaldo@simios.org>
21605 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21606 it dont need. Fixes #79537.
21608 2006-11-02 Jackson Harper <jackson@ximian.com>
21610 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
21611 send the status after firing the DndOver event.
21613 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
21615 * TrackBar.cs: Now orientation only switches height / width if
21616 the control's handle is created (Win32 does it like this). Also
21617 fixed a typo in ToString() for a test to pass, changed the
21618 exception thrown in set_LargeChange and set_SmallChange to
21619 match Win32 behaviour, and added TrackBar tests to the unit
21622 2006-11-02 Chris Toshok <toshok@ximian.com>
21624 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21625 not _NET_WM_STATE_NO_TASKBAR.
21627 2006-11-02 Jackson Harper <jackson@ximian.com>
21629 * TextControl.cs: Increment count by one, since in the update view
21632 2006-11-02 Jackson Harper <jackson@ximian.com>
21634 * TextBoxBase.cs: Use client rectangle not bounds for checking if
21635 the mouse is in the client rectangle (duh).
21637 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
21639 * TrackBar.cs: Fixed trackbar jumping around when clicking
21640 on it - the trackbar was not detecting correctly at which
21641 side of the thumb the click was done. (fixes #79718)
21643 2006-11-02 Everaldo Canuto <everaldo@simios.org>
21645 * ListBox.cs: scroll visible area when change SelectedIndex to
21646 a non visible area. Fixes #79481.
21648 2006-11-01 Jackson Harper <jackson@ximian.com>
21650 * TextControl.cs: When replacing the selection move the selection
21651 start/end/anchor to the end of the new text.
21653 2006-11-01 Jackson Harper <jackson@ximian.com>
21655 * XplatUIWin32.cs: When setting the parent change the controls
21656 visibility to it's visibility flag, not to it's old parents
21657 visibility (.Visible walks the parent chain).
21659 2006-11-01 Chris Toshok <toshok@ximian.com>
21661 * XplatUIX11.cs: revert the #79790 fix, as the simple.
21662 XSetTransientForHint fix breaks paint .net's tool windows. more
21663 work needed for that one.
21665 2006-11-01 Chris Toshok <toshok@ximian.com>
21667 * ScrollBar.cs: throw ArgumentException instead of Exception in
21668 LargeChange/SmallChange setters. fixes unit tests.
21670 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
21672 * ContainerControl.cs: reverted rev.67183 (which was itself
21673 a reversion of rev.66853... eh).
21675 * Control.cs: Fixes Reflector hang by changing Focus() call
21676 to what it was before rev.66643 (calling Select() here sets
21677 ActiveControl, which in some situations calls back Focus and
21678 eventually does a stack overflow). Temp fix.
21679 Changes to GetNextControl() to not look for children to select when
21680 parent cannot be selectable (so it looks for siblings instead)
21682 2006-10-31 Mike Kestner <mkestner@novell.com>
21684 * CheckedListBox.cs : off by one error in returned index from
21685 ObjectCollection.Add. Fixes #79758.
21687 2006-10-31 Chris Toshok <toshok@ximian.com>
21689 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21690 calls for the textbox/spinner, to keep from recursing to the point
21691 where we crash. Fixes #79760.
21693 2006-10-31 Chris Toshok <toshok@ximian.com>
21695 * ListControl.cs (set_SelectedValue): don't throw exceptions on
21696 null/"" value, just return. matches ms's behavior and fixes some
21699 2006-10-31 Chris Toshok <toshok@ximian.com>
21701 * Control.cs (set_Capture): make a logic a little easier to
21704 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21705 if it's being destroyed. A necessary fix surely, but a bandaid
21706 also, to fix the stuck capture problem in bug #78413.
21708 2006-10-31 Chris Toshok <toshok@ximian.com>
21710 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21711 convention of clearing hwnd.ClientRect when we set the
21712 width/height (so it'll be recalculated by Hwnd).
21714 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
21716 * ContainerControl.cs: reversed Contains check from
21717 ActiveControl due to hanging problems. This fix
21718 partly regresses #79667 (button does not have
21719 initial focus), so this might be a symptom for
21720 a larger parenting problem (set_ActiveControl
21721 is being called but the child control does
21722 not have the parent set yet?)
21724 2006-10-31 Mike Kestner <mkestner@novell.com>
21726 * MenuAPI.cs : fix keynav when menu is click activated.
21728 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
21730 * ToolStrip*: Version 0.2.
21732 * MenuStrip.cs: Version 0.1.
21734 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21736 2006-10-30 Chris Toshok <toshok@ximian.com>
21738 [ fixes the oversized notify icon issue in bug #79745 ]
21740 * NotifyIcon.cs: scale the icon down to the size we're given by
21741 the XplatUI layer (this would be faster if we did it once instead
21742 of whenever we paint..) Also, remove the WM_NCPAINT handling,
21743 since it's never invoked.
21745 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21746 pixels high by default, so let's hardcode our systray icon to that
21747 size. The SYSTEM_TRAY protocol should really have a way for
21748 client apps to query for the correct icon size.. but oh well. A
21749 couple of patches to deal with the screwy client_window ==
21750 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21751 instance, and also make sure we don't XSelectInput twice).
21753 2006-10-30 Chris Toshok <toshok@ximian.com>
21755 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21756 recreating forms. Control recreation is the bane of my existence.
21757 Fix it in a way that keeps everyone happy.
21759 2006-10-30 Chris Toshok <toshok@ximian.com>
21761 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21762 just non-CHILD ones. otherwise sometimes scrollbars end up with
21763 client_windows not being resized to the proper size (ReportBuilder
21764 shows this extremely well).
21766 2006-10-30 Chris Toshok <toshok@ximian.com>
21768 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21769 for non-WS_EX_APPWINDOW windows. This is what keeps them from
21770 showing up in the gnome taskbar. Fixes bug #79790.
21772 2006-10-30 Chris Toshok <toshok@ximian.com>
21774 * ApplicationContext.cs: guard against a NRE.
21776 * Application.cs: null out the old MainForm for the context, so we
21777 don't try to use it again once it's disposed. Fixes bug #79783.
21779 2006-10-30 Chris Toshok <toshok@ximian.com>
21781 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21782 BindingContext, set the data source directly, otherwise do the
21783 lazy approach - the actual ListManager will be created when we get
21784 a BindingContext. Fixes bug #79700.
21786 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21788 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21789 XplatUIX11.cs: Remove old 2 parameter SetVisible.
21791 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21793 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21795 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21796 of SetVisible that allows a window to be shown, but not activated.
21797 This is needed on Windows for MenuStrip, and can probably be used
21798 with MainMenu and ComboBox to fix the focus stealing issues on
21801 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21803 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
21805 * PictureBox.cs: Fix the output of the ToString method.
21807 2006-10-29 Chris Toshok <toshok@ximian.com>
21809 * Control.cs (get_TopLevelControl): fix bug #79781.
21811 2006-10-29 Chris Toshok <toshok@ximian.com>
21813 * ListControl.cs (set_DataSource): throw Exception here, not
21814 ArgumentException, to match MS behavior.
21816 2006-10-29 Chris Toshok <toshok@ximian.com>
21818 * Form.cs: remove the try-catch's around calls to GetWindowState.
21819 We can just check the return value.
21821 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21824 * XplatUI.cs: Add note about additional return value for
21827 2006-10-29 Chris Toshok <toshok@ximian.com>
21829 * Control.cs (CreateHandle): when we create our handle, we also
21830 create the handles of our child controls. Fixes one of the
21831 Control unit tests (CH11).
21833 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21835 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21837 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21839 * ThemeClearlooks.cs: A little speedup.
21841 2006-10-27 Chris Toshok <toshok@ximian.com>
21843 * Control.cs: implement Control.FromChildHandle in a way that
21844 matches the docs (and fixes the failed test.)
21846 2006-10-27 Chris Toshok <toshok@ximian.com>
21848 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21851 * DataGrid.cs: implement ResetForeColor such that the tests
21854 2006-10-27 Chris Toshok <toshok@ximian.com>
21856 * ToolBarButton.cs: setting text/tooltiptext to null results in it
21857 being set to "". Fixes bug #79759.
21859 2006-10-27 Jackson Harper <jackson@ximian.com>
21861 * TextControl.cs: We need to clear the entire selection area when
21862 setting the start, otherwise multiline selections are still
21865 2006-10-26 Chris Toshok <toshok@ximian.com>
21867 * PropertyGridView.cs:
21869 - ifdef all the code specific to the double
21870 buffer case, and provide some alternatives in the non-doublebuffer
21871 code, which makes heavy use of XplatUI.ScrollWindow to move things
21872 around without having to invalidate (and cause flicker). There
21873 are still some drawing problems in the non-doublebuffered case, so
21874 DOUBLEBUFFER is defined by default.
21876 - Fix the way dropdowns are handled. now we explicitly watch for
21877 the events which might cause the dropdown to close, and break out
21878 of the nested event loop there. This gets rid of all Capture
21879 code, at the expense of the Msg special casing. Seems to work,
21880 though, and fixes bug #79743.
21882 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
21883 * Control.cs: SetIsRecreating now recreates implicitly added
21884 child controls as well. Finally fixes #79629. The flag passed to
21885 SetIsRecreating has also been removed since it wasn't used.
21887 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21889 * PageSetupDialog.cs: Clean some code, fix some bits,
21890 add some checks, and add a printer sub-dialog.
21892 2006-10-26 Chris Toshok <toshok@ximian.com>
21894 * PropertyGrid.cs: make set_SelectedObject call
21895 set_SelectedObjects, and move the duplicate logic to the
21896 SelectedObjects setter. Also, raise SelectedObjectsChanged.
21898 * PropertyGridView.cs: hide the textbox when we get a
21899 SelectedObjectsChanged event.
21903 2006-10-26 Chris Toshok <toshok@ximian.com>
21905 * PropertyGridView.cs: deal with the type converter not supporting
21906 GetStandardValues() or GetStandardValues() returning null, which
21907 is does in the default case. Fixes #79742.
21909 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21911 * CheckedListBox.cs: nunit no longer crashes when selecting
21912 Project/Edit menu option
21914 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21916 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21917 is no menu selected. fixes #79739
21919 2006-10-25 Chris Toshok <toshok@ximian.com>
21921 * PropertyGridView.cs: factor out the splitter invalidation code
21922 into the SplitterPercent setter, and for kicks implement the
21923 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21924 amount in either direction.
21926 2006-10-25 Chris Toshok <toshok@ximian.com>
21928 * PropertyGridView.cs: do some cleanup of the brush used to draw
21929 text - read only fields should be grayed out. not sure how to do
21930 this with the textbox, though. but the textbox's should also be
21931 readonly now at least. Also, hide/show the textbox when resizing
21934 * CursorConverter.cs: use System.Reflection when getting the
21935 properties of Cursors, as TypeDescriptor.GetProperties isn't
21936 returning static properties.
21938 2006-10-25 Chris Toshok <toshok@ximian.com>
21940 * PropertyGridView.cs: factor out the up/down handling, and reuse
21941 it for page up/down. also add End/Home support.
21943 2006-10-25 Chris Toshok <toshok@ximian.com>
21945 * PropertyGridView.cs:
21947 - ensure the selected grid item is visible in the scrolled area,
21950 - fix Keys.Down handling when you're on the last item in the
21953 2006-10-25 Mike Kestner <mkestner@novell.com>
21955 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
21956 clicks too. Fixes #79725.
21958 2006-10-24 Chris Toshok <toshok@ximian.com>
21960 * PropertyGrid.cs: use property.Converter instead of
21961 TypeDescriptor.GetConverter(property.PropertyType), so we catch
21962 TypeConverters declared on the property as well as on the
21963 PropertyType. Fixes bug #79678.
21965 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
21967 * MimeIcon.cs, Mime.cs:
21968 Fallback to the default platform handler if no shared mime info
21969 stuff exists (fixes #79693).
21971 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21972 * ContainerControl.cs: Incorrect contains check in ActiveControl
21973 from previous fix (duh).
21975 2006-10-20 Chris Toshok <toshok@ximian.com>
21977 * PropertyGridView.cs: the dropdown should be MIN(number of items
21978 in list, 15). Fixes #79551.
21980 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21981 Fixes #79384, #79394, #79652, #79667
21984 - Modal windows are now destroyed in the proper order for windows
21986 * ContainerControl.cs:
21988 - ActiveControl setter has more conditions on when to return:
21989 - if we're reselecting the active control, but it actually
21990 didn't have focus (window hidden or some such), it runs
21991 - if the active control being selected doesn't actually
21992 exist in the container, it returns
21996 - The ShowDialog now gets the current form as the owner when
21997 invoking without parameters, and correctly activates the owner
22002 - MessageBox now catches the Escape key to exit
22004 2006-10-20 Chris Toshok <toshok@ximian.com>
22006 * PropertyGridView.cs: fix a number of issues (bug #78565, and
22007 most of bug #79676):
22009 - you can navigate around the property grid with the arrow keys.
22011 - the dropdown is sized properly when the pg has a vertical
22014 - fix the indentation for subentries, and properly select the
22017 - fix the gray bar's drawing (only draw it to the last element,
22018 not for the height of the control. Also make sure we draw that
22019 last horizontal grid line.
22021 - use the same mechanism the datagrid uses wrt the editing textbox
22022 when scrolling/resizing/etc. Namely, we hide it first, do the
22023 operation, then show it again (if it's still visible).
22025 - aggressively remove a lot of unnecessary refreshes (and also
22026 calls to Invalidate(). call more limited variants, and only redraw
22031 - when we're populating the merged collection, fill in the UI
22032 parent with either the passed in item, or the category item we
22035 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22037 * GridItem.cs: drop some fully qualified names.
22039 * GridEntry.cs: add a "UIParent", which is basically the parent
22042 * GridItemCollection.cs: add an IndexOf method.
22044 2006-10-20 Mike Kestner <mkestner@novell.com>
22046 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
22047 a working win32 NC invalidation mechanism, we can't invalidate
22048 menus. [Fixes #79705]
22050 2006-10-20 Mike Kestner <mkestner@novell.com>
22052 * ListBox.cs : don't update the VScrollbar if the list is empty,
22053 just hide it. [Fixes #79692]
22055 2006-10-20 Jackson Harper <jackson@ximian.com>
22057 * RichTextBox.cs: Handle some special chars better, and don't skip
22058 the entire group when we encounter a special char that we don't
22061 2006-10-18 Chris Toshok <toshok@ximian.com>
22063 * PropertyGridView.cs: address a number of issues from bug #79676,
22064 mostly of the cosmetic variety.
22066 - The highlight rectangle for indented items not extends all the
22069 - Indented items aren't indented so much.
22071 - the dropdown is properly sized width-wise if the pg has a
22072 vertical scrollbar.
22074 2006-10-18 Chris Toshok <toshok@ximian.com>
22076 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22077 systray stuff is rather convoluted to begin with.
22079 systray icons are a single window for some reason (that I haven't
22080 figured out yet), and for them, client_window == whole_window.
22081 Given the way the tests are structured elsewhere to determine
22082 which paints are pending (client vs. nc), that situation will
22083 always yield PAINT, not NCPAINT. So, if we have a pending
22084 nc_expose and no pending expose, remove the hwnd from the paint
22085 queue, and also set nc_expose_pending to false, to keep us from
22086 blocking further expose's adding the hwnd to the paint queue.
22088 phew. like i said, a rather convoluted change. Fixes the
22089 notifyicon repaint issues in bug #79645.
22091 2006-10-18 Chris Toshok <toshok@ximian.com>
22093 * Form.cs: when getting the backcolor of the form, don't get
22094 base.BackColor, as this allows parents to influence the background
22095 color. This breaks mdi forms. Instead, if the background_color
22096 is empty, return the default.
22098 2006-10-18 Chris Toshok <toshok@ximian.com>
22100 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22101 to being private instead of internal static.
22103 * Control.cs: remove all the stupid ParentWaitingOnRecreation
22104 crap, it wasn't working for more deeply nested controls anyway,
22105 and we already have the is_recreating flag - use that instead.
22106 Before calling DestroyHandle in RecreateHandle, recurse through
22107 the control tree setting it to true. this returns the recreate
22108 code to much of its original simplicity, while now guaranteeing we
22109 actually recreate everything we're supposed to. This change gets
22110 fyireporting actually showing mdi children.
22112 2006-10-17 Chris Toshok <toshok@ximian.com>
22114 * Form.cs: remove some debug spew, and collapse some duplicate
22115 code at the end of SetClientSizeCore.
22118 - add some more debug spew here too wrt Destroy handling.
22119 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22120 in Control's handling of WM_DESTROY.
22121 - Remove the handling of zombie window DestroyNotifies from the
22122 event loop - we don't need it. Now the only DestroyNotifies we
22123 actually handle are ones generated by X.
22124 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22125 match gtk's (functioning) handling of this. This keep metacity
22126 from leaving droppings in the form of wm borders with no window
22127 contents all over the place.
22130 - add a bunch of debug spew wrt control recreation.
22131 - fix a bug where we weren't tracking Visible properly on
22133 - fixed the WM_PAINT double buffer handling to support re-entrant
22134 calls (yes, i know it's gross, but it's happening to us).
22136 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22137 * ThemeWin32Classic.cs: changed drawing of selected days
22138 to make them look better.
22140 2006-10-16 Chris Toshok <toshok@ximian.com>
22142 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22143 drawing_stack. Nuke the ClientDC/NonClientDC properties.
22145 * XplatUIX11.cs: move away from using hwnd.client_dc and
22146 hwnd.non_client_dc and on to a stack of dc's (and in window's
22147 case, PAINTSTRUCT's), so we can deal with nested Paint calls
22148 without puking or not disposing of Graphics objects.
22150 * XplatUIOSX.cs: same.
22152 * XplatUIWin32.cs: same.
22154 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
22156 * FileDialog.cs: Don't call on_directory_changed inside
22157 OnSelectedIndexChanged (it changes the SelectedIndex too).
22158 Instead move it to OnSelectionChangeCommitted.
22160 2006-10-13 Chris Toshok <toshok@ximian.com>
22162 * XplatUIX11.cs: more Destroy work. the current code does the
22163 following things, in order:
22165 1. Enumerates all handles of all controls at or below the one
22166 being destroyed, in pre-order. As it is doing this, it marks the
22167 handles as zombie and clears all references to them.
22169 2. calls XDestroyWindow on the window passed in.
22171 3. SendMessage's WM_DESTROY to all he handles in the accumulated
22174 2006-10-13 Chris Toshok <toshok@ximian.com>
22176 * XplatUIX11.cs: set hwnd.zombie to true before calling
22177 SendMessage (WM_DESTROY). this keeps us from marking the new
22178 window a zombie, and also keeps us from calling sendmessage at
22181 2006-10-13 Jackson Harper <jackson@ximian.com>
22183 * TextControl.cs: Do not show the caret and selection at the same
22184 time. Reduces ugliness by 35%.
22186 2006-10-13 Chris Toshok <toshok@ximian.com>
22188 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22189 zombie after we do the recursive call, so we actually do call
22190 SendMessage on the children controls.
22191 (GetMessage): if we find a pending paint event for a zombie hwnd,
22192 remove the hwnd from the paint queue, or else it will always be
22193 there (and we'll effectively loop infinitely)
22195 2006-10-13 Mike Kestner <mkestner@novell.com>
22197 * MenuItem.cs : add Selected format under keynav too.
22200 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
22202 * PropertyGrid.cs: Fixed some NRE's and small difference between our
22203 implementation and that of MS.
22205 2006-10-13 Chris Toshok <toshok@ximian.com>
22207 * Control.cs (OnInvalidated) only futz with the invalid_region if
22208 the control is double buffered. this fixes the apparent hang in
22209 the ListView unit tests. Someone needs to make the
22210 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22212 2006-10-13 Chris Toshok <toshok@ximian.com>
22214 * PropertyGridView.cs:
22216 - do a little refactoring so that only one place calls
22217 dropdown_form.Hide, and that is CloseDropDown. make everywhere
22218 else call that. Also make it Refresh, since there are redraw bugs
22219 otherwise (we should take a look at that...)
22221 - do a little more refactoring work to share the body of code
22222 involved with the drop down. it was duplicated in the code
22223 dealing with the listbox handling and in the code dealing with the
22226 - add a Capture to the dropdown form's control once it's
22227 displayed, and add a MouseDown handler that checks to make sure
22228 the position is inside the control. If it's not, close the
22229 dropdown. This fixes #78190.
22231 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22232 if the value is different than the initial value.
22234 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
22236 * Control.cs: see #78650
22237 - Fixed GetNextControl for several cases:
22238 - Changed FindFlatForward to return
22239 correct sibling control when more than one
22240 control has same TabIndex as the currently
22242 - Changed FindFlatBackward to loop children
22243 from last to first and apply same logic as in
22245 - Changed FindControlForward to search for
22246 children when control is not a container
22247 but has children, or search for siblings if
22248 control is a container...
22249 - Changed FindControlBackward to continue
22250 searching for child controls when hitting
22253 - Fixed Focus method to update ActiveControl
22254 (FocusTest.FocusSetsActive failure)
22257 - Focus rectangle now refreshes when gaining
22259 - Removed grab for Tab key on IsInputKey that
22260 was keeping tab navigation from working (#78650)
22262 2006-10-13 Chris Toshok <toshok@ximian.com>
22264 * PropertyGridView.cs:
22265 - Rewrite SetPropertyValue to loop over SelectedGridItem's
22268 - Deal with GridItem.Value == null a few places.
22271 - replace the PopulateGridItemCollection with a pair of methods
22272 which compute the intersection of all the properties in the
22273 SelectedObjects array. Fixes #79615.
22275 - Throw ArgumentException from set_SelectedObjects if there's a
22278 - Add GetTarget method which can be used to traverse up the
22279 GridItem.Parent chain. It depends on the assumption that
22280 selected_objects for different GridEntries are always in the same
22281 order (a safe assumption). Use this method and loop over all the
22282 selected objects in the entry when calling RemoveValueChanged and
22285 * GridEntry.cs: Make this handle multiple selected objects.
22286 .Value returns null if not all the selected objects share the same
22289 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
22290 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22291 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22292 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22293 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22294 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22295 add additional functionality.
22297 2006-10-12 Mike Kestner <mkestner@novell.com>
22299 * ErrorProvider.cs : new ToolTipWindow ctor sig.
22300 * HelpProvider.cs : new ToolTipWindow ctor sig.
22301 * ToolTip.cs : remove ToolTip param from Window sig since it is
22303 * ToolBar.cs : add tooltip support. Fixes #79565.
22305 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22307 * ComboBox.cs: move the events in set_SelectedIndex to
22308 after the call to HighlightIndex in order to avoid
22309 possible recursion and subsequent problems with the call
22310 to HighlightIndex and include a range check in
22311 set_HighlightIndex. Fixes #79588
22313 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22315 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
22316 to ui thread's settings instead of sunday.
22317 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22319 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22321 * DateTimePicker.cs
22323 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22324 and implement missing functionality (selecting different parts
22325 of the date and edit them individually with the keyboard).
22327 2006-10-11 Chris Toshok <toshok@ximian.com>
22329 * Control.cs (OnInvalidated): fix NRE relating to last change.
22331 2006-10-11 Chris Toshok <toshok@ximian.com>
22333 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22334 atoms in _NET_WM_STATE here if the window is maximized. We need
22335 to do this because we're *replacing* the existing _NET_WM_STATE
22336 property, so those atoms will be lost otherwise, and any further
22337 call to GetWindowState will return Normal for a window which is
22338 actually maximized. Fixes #79338.
22340 2006-10-11 Jackson Harper <jackson@ximian.com>
22342 * TextControl.cs: Special case for setting selection end to
22343 selection start, we basically kill the anchor.
22344 - some todo comments.
22346 2006-10-11 Chris Toshok <toshok@ximian.com>
22348 * Control.cs: switch to using an "invalid_region" to track which
22349 parts of the image buffer need updating. This is more code than
22350 the simple fix from r66532. That version just attempted to always
22351 fill the entire buffer on redraw, which turns out to be
22352 inefficient when invalidating small rectangles. This version
22353 simply adds the invalid rectangle to the invalid region. When we
22354 get any WM_PAINT message we see if it can be filled using the
22355 image buffer, and if it can't (if the paint event's clip rectangle
22356 is visible in the invalid region) we first fill the image buffer.
22357 So, the image buffer is still a cache, we just fill it lazily.
22359 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22360 need it any longer.
22362 2006-10-11 Chris Toshok <toshok@ximian.com>
22364 * XplatUIX11.cs (SetWindowPos): we need to update both position as
22365 well as size after calling XMoveResizeWindow. This keeps us from
22366 ignoring future SetWindowPos calls. Fixes the disappearing
22367 DateTimePicker in the ToolBarDockExample from bug #72499.
22369 2006-10-11 Chris Toshok <toshok@ximian.com>
22371 * TextBoxBase.cs: reorder things a bit when it comes to
22372 resizing-causing-recalculation. we were recalculating the
22373 document when our position was changed, which shouldn't happen.
22374 We only care about size changes. Clear up some more redundant
22375 recalculation calls while I'm at it. This makes the toolbar dock
22376 example snappy when you're just dragging toolbars around (since it
22377 causes a relayout whenever you move one.)
22379 2006-10-11 Chris Toshok <toshok@ximian.com>
22381 * ToolBarButton.cs (get_Rectangle): this only returns
22382 Rectangle.Empty if Visible == false, or Parent == null.
22383 Parent.Visible doesn't matter.
22385 2006-10-10 Chris Toshok <toshok@ximian.com>
22387 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22388 by .net 1.1, so switch to an internal method instead.
22390 2006-10-10 Chris Toshok <toshok@ximian.com>
22392 * Control.cs (WM_PAINT): when a control is double buffered we draw
22393 initially to the ImageBuffer and then copy from there. But when a
22394 parent control which has child controls is double buffered, the
22395 initial drawing doesn't encompass the entire ClientRectangle of
22396 the parent control, so we end up with uninitialized bits (this is
22397 easily seen by dragging the top toolbar in
22398 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
22399 manually set the ClipRectangle of the paint_event (only the one we
22400 use to populate the ImageBuffer) to ClientRectangle. Fixes more
22401 of the nastiness in bug #72499.
22403 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22404 which we use in Control.cs's WM_PAINT handling.
22406 2006-10-10 Jackson Harper <jackson@ximian.com>
22408 * TextBoxBase.cs: Finish off the autoscrolling stuff.
22410 2006-10-10 Chris Toshok <toshok@ximian.com>
22412 * Cursor.cs: Apply a slightly different patch to the one suggested
22415 2006-10-10 Jackson Harper <jackson@ximian.com>
22417 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22418 not the parent form.
22419 * TextControl.cs: use difference in old line count vs new count to
22420 calculate how many lines were added, this takes into account soft
22421 line breaks properly.
22423 2006-10-10 Chris Toshok <toshok@ximian.com>
22425 * LinkLabel.cs: don't call MeasureCharacterRanges against a
22426 rectangle located at 0,0 and the size of the text. Use
22427 ClientRectangle instead. This fixes rendering of non-left aligned
22430 2006-10-10 Jackson Harper <jackson@ximian.com>
22432 * TextBoxBase.cs: When we set the selection start position the
22434 * TextControl.cs: Need to update the caret when we decrement it to
22436 - Make sure that the selection_visible flag gets reset to false if
22437 the selection isn't visible. Before this you could get it set to
22438 visible by changing the selection start, then changing the end to
22441 2006-10-09 Jackson Harper <jackson@ximian.com>
22443 * TreeView.cs: Don't update scrollbars when we aren't visible.
22444 * TreeNodeCollection.cs: Only need to update scrollbars if being
22445 added to an expanded visible node or the root node.
22447 2006-10-09 Chris Toshok <toshok@ximian.com>
22449 * XplatUIX11.cs (SendMessage): fix NRE.
22451 2006-10-09 Jackson Harper <jackson@ximian.com>
22453 * TextBoxBase.cs: Implement horizontal autoscrolling.
22454 * TextControl.cs: Add a movement types that allows moving forward
22455 and backwards without wrapping.
22457 2006-10-09 Mike Kestner <mkestner@novell.com>
22459 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22460 with focus "expansion" of labels. Fixes #79532 and then some.
22461 * ThemeWin32Classic.cs : add LineLimit to ListView label format
22464 2006-10-09 Jackson Harper <jackson@ximian.com>
22466 * TextBoxBase.cs: Set the default max values to MaxValue since
22467 we use the scrollbar for autoscrolling and the default value is
22468 100. If we don't do this the caret won't keep up with typing
22469 after about 18 characters.
22470 * TextControl.cs: Make sure the selection is offset by the
22471 viewport x. This fixes selection when using auto scrolling.
22473 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
22475 * Form.cs: The active control should be selected after the
22476 OnLoad so that any child control initialization that affects
22477 the selection is done. Fixes #79406
22479 2006-10-06 Chris Toshok <toshok@ximian.com>
22481 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22482 to have no evil effects.
22484 - Stop selecting StructureNotifyMask on non-toplevel windows.
22486 The only way children should be resized is by using the SWF api,
22487 and we already send WM_WINDOWPOSCHANGED messages in those cases.
22488 Toplevel windows can be interacted with via the window manager,
22489 and so we keep the input mask there.
22491 The other event StructureNotifyMask gives us (that we care
22492 about) is DestroyNotify. The code is already structured such
22493 that it assumes we won't be getting a DestroyNotify event for
22494 the window we pass to XDestroyWindow (which is what
22495 StructureNotifyMask is supposed to guarantee.) So, that code
22496 shouldn't be affected by this either.
22498 - Stop selecting VisibilityChangeMask altogether.
22500 We weren't doing anything with the resulting events anyway.
22502 This vastly reduces the number of X requests and events we see
22503 when resizing/laying out a large ui.
22505 2006-10-06 Chris Toshok <toshok@ximian.com>
22507 * ScrollableControl.cs (DisplayRectangle): we need to take into
22508 account the DockPadding regardless of whether or not auto_scroll
22509 == true. rework this slightly to this effect, and fix bug #79606,
22510 and part of #72499 (you can now see the drag handles and drag
22513 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
22515 * ListViewItem.cs: Collections of selected and checked items are now
22516 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22517 we mark the collection "dirty".
22518 * ListView.cs: Marked collections readonly. Modified UpdateSelection
22519 to only clear SelectedItems when a new item is selected and MultiSelect
22520 is enabled. CheckedItems and SelectedItems now subscribe to Changed
22521 event of ListViewItemCollection, and mark its list dirty whenever
22522 that event is fire. This allows us to return selected/checked items
22523 in the same order as they are in the Items collection. This matches
22526 2006-10-06 Chris Toshok <toshok@ximian.com>
22528 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22529 right mouse clicks. Fixes bug #79593.
22531 2006-10-06 Chris Toshok <toshok@ximian.com>
22533 * Splitter.cs: doh, fix splitters that don't want to cancel the
22534 movement when you drag them. Also, impose the limits on the
22535 values we send to the SplitterMovingEvent. Fixes #79598.
22537 2006-10-06 Jackson Harper <jackson@ximian.com>
22539 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22540 since we use this for auto scrolling also.
22542 2006-10-05 Chris Toshok <toshok@ximian.com>
22544 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
22545 beginning to think that most datagrid column types don't need this
22546 method. Fixes bug #79392.
22548 2006-10-05 Chris Toshok <toshok@ximian.com>
22550 * DataGrid.cs: move back to a more lazy scheme for creating the
22551 CurrencyManager, so we aren't updating it every time you set
22552 either DataSource or DataMember. Also, don't call
22553 RecreateDataGridRows if the currency manager hasn't changed.
22555 2006-10-05 Chris Toshok <toshok@ximian.com>
22557 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22558 emitted, SelectedIndex should already be updated. Fixes bug
22561 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
22563 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22564 ToolStripTextBox.cs: Initial commit.
22565 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22567 2006-10-05 Jackson Harper <jackson@ximian.com>
22569 * TabControl.cs: We need to invalidate the tab control area when
22570 new ones are added (duh).
22572 2006-10-03 Chris Toshok <toshok@ximian.com>
22574 * Form.cs (ProcessDialogKey): if the focused control is in this
22575 form and is a button, call its PerformClick method here. Fixes
22578 2006-10-04 Jackson Harper <jackson@ximian.com>
22580 * TabPage.cs: Ignore setting of Visible, and add an internal
22581 method for setting the controls visibility. TabPage's Visible
22582 property is a little strange on MS, this seems to make us
22583 compatible, and fixes cases where people set all the tab pages to
22585 * TabControl.cs: Use the new internal setting on tab pages
22588 2006-10-03 Mike Kestner <mkestner@novell.com>
22590 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22592 2006-10-03 Mike Kestner <mkestner@novell.com>
22594 * ListView.cs : use is_visible instead of Visible to check if
22595 scrollbars should be placed/sized. Also some max_wrap_width
22596 love for LargeIcon view. [Fixes #79533]
22598 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
22601 Make set_TextAlign() do actually update the align. Fixed #78403.
22603 2006-10-03 Chris Toshok <toshok@ximian.com>
22605 * DataGrid.cs: fix a crash when switching datasources if the
22606 vertical scrollbar is at someplace other than Value = 0. Also,
22607 reduce the number of recalculation passes we do in SetDataSource
22610 2006-10-03 Jackson Harper <jackson@ximian.com>
22612 * TextBoxBase.cs: Move the if value the same bail check up, we
22613 don't want to empty the document if it is already empty, this
22614 seems to severly mess up the caret. TODO: I should probably fix
22615 the empty statement to update teh caret somehow.
22617 2006-10-03 Chris Toshok <toshok@ximian.com>
22619 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22620 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22621 reflection, an internal row type, properties on said type, etc.)
22622 will work with our datagrid. Fixes #79531.
22624 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
22626 * FileDialog.cs: Don't crash if a path is not accessible
22627 (System.UnauthorizedAccessException). Fixes #79569.
22628 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22629 a ':' too. Return unknown icon for those paths/files.
22631 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
22633 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
22634 GetContainerControl returns null.
22636 2006-10-02 Chris Toshok <toshok@ximian.com>
22638 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22639 call to XGetWindowAttributes instead of "handle". fixes an X
22640 error using notifyicon after the NotifyIconWindow to Form base
22643 2006-10-02 Chris Toshok <toshok@ximian.com>
22645 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22646 server grab and looping we need to do to get down to the most
22647 deeply nested child window.
22648 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22649 QueryPointer again after the WarpPointer so we can generate a
22650 proper (fake) MotionNotify event to be enqueued in the destination
22652 (GetCursorPos): call QueryPointer.
22656 2006-10-02 Jackson Harper <jackson@ximian.com>
22658 * NotifyIcon.cs: Derive the notify icon from a form, so things
22659 like FindForm work on it.
22660 - Swallow the WM_CONTEXTMENU message, since that is generated on
22661 mouse down, and context menu is a mouse up kinda guy. I believe
22662 the correct fix here is probably to make the notify icon entirely
22663 NC area, but this seems to work fine for anyone not manipulating
22666 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
22668 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22669 ToolStripItemCollection.cs, ToolStripLabel.cs,
22670 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22671 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22672 Initial implementation.
22673 * TextRenderer.cs: Provide padding to MeasureText.
22675 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
22677 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22678 of ButtonBaseAccessibleObject. Fix bug #79552.
22680 2006-10-02 Jackson Harper <jackson@ximian.com>
22682 * MdiWindowManager.cs: When maximizing use the containers client
22683 rect, not it's bounds, so nc area is accounted correctly.
22684 - Use the parent form's size for the menu position, since the
22685 client isn't always the full form size.
22687 2006-10-01 Chris Toshok <toshok@ximian.com>
22689 * ScrollableControl.cs: make sure neither right_edge or
22690 bottom_edge are < 0, since they're used as LargeChange for the
22691 horiz/vert scrollbars respectively. Fixes #79539.
22693 2006-10-01 Chris Toshok <toshok@ximian.com>
22695 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22696 the xplatuix11 code can cause us to destroy/recreate our handle.
22700 - this code can be invoked many times for the same Hwnd. Make
22701 sure we only destroy the client window once (the first time this
22702 method is called). This fixes bug #79544.
22703 - Remove the call to the improperly bound XSync. why we had two
22704 bindings to this, I will never know, but this call resulted in
22705 events being discarded from the queue(!).
22706 - correct a misunderstanding of _XEMBED_INFO - the second atom is
22707 not our current state but the state we wish to be in. So, 0 if
22708 we don't want to be mapped. Change it to 1.
22709 (SystrayRemove): The XEMBED spec makes mention of the fact that
22710 gtk doesn't support the reparent of client windows away from the
22711 embedder. Looking at gtksocket-x11.c seems to agree with this.
22712 The only avenue we have for removing systray icons is to destroy
22713 them. We don't want the handle to go away for good, though, so
22714 call InternalRecreateHandle on the NotifyIconWindow. Fixes
22717 2006-10-01 Chris Toshok <toshok@ximian.com>
22719 * Form.cs (WndProc): inline the native_enabled variable usage into
22720 the cases in which it's used. Fixes #79536.
22722 2006-09-29 Mike Kestner <mkestner@novell.com>
22724 * ListView.cs : toggle the selection state for ctrl clicks in
22725 multiselect mode. [Fixes #79417]
22727 2006-09-29 Mike Kestner <mkestner@novell.com>
22729 * ListView.cs : kill CanMultiSelect and refactor the selection
22730 code to support multiselection in the absence of mod keys. Steal
22731 arrow/home/end keys by overriding InternalPreProcessMessage to
22732 restore regressed keynav behavior.
22735 2006-09-29 Jackson Harper <jackson@ximian.com>
22737 * MdiClient.cs: Repaint the titlebars when the active window is
22740 2006-09-29 Chris Toshok <toshok@ximian.com>
22742 * Application.cs: when entering a runloop with a modal, make sure
22743 the hwnd is enabled. Fixes #79480.
22745 2006-09-29 Chris Toshok <toshok@ximian.com>
22747 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22748 when ListManager.CanAddRows == false, bump us back one.
22750 * DataGridColumnStyle.cs (ParentReadOnly): remove the
22751 listmanager.CanAddRows check. This makes ArrayLists uneditable
22752 using a datagrid, which is not right.
22753 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22754 is an IEditable, but call property_descriptor.SetValue regardless.
22757 2006-09-29 Chris Toshok <toshok@ximian.com>
22759 * DataGridBoolColumn.cs: we need to test equality in the face of
22760 possible null values (as is the case with the default NullValue).
22761 This patch keeps us from crashing in that case.
22763 2006-09-29 Jackson Harper <jackson@ximian.com>
22765 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22766 here, since it will get called for every node collection in the
22767 tree. This is now done in the treeview once the sorting is
22769 * TreeView.cs: Recalculate the visible order, and update the
22770 scrollbars after sorting, set the top nope to the root so that the
22771 recalc actually works.
22773 2006-09-29 Chris Toshok <toshok@ximian.com>
22775 * LinkLabel.cs: more handling of the default link collection in
22776 the face of LinkArea manipulation. The default link collection
22777 contains 1 element (start=0,length=-1). If the user sets LinkArea
22778 to anything and the links collection is the default, clear it.
22779 Then only add the link if its nonempty. Fixes #79518.
22781 2006-09-29 Chris Toshok <toshok@ximian.com>
22783 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22784 piece correctly when we hit a '\n'. Fixes #79517.
22786 2006-09-29 Chris Toshok <toshok@ximian.com>
22788 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22789 change the binding of gdk_init_check to take two IntPtr's, and
22790 pass IntPtr.Zero for both of them. Fixes #79520.
22792 2006-09-29 Mike Kestner <mkestner@novell.com>
22794 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22797 2006-09-28 Jackson Harper <jackson@ximian.com>
22799 * XplatUIX11.cs: When translating NC messages make sure we go from
22800 whole window to screen, not client window to screen.
22801 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22802 method doesn't exist
22803 - Skip over controls that aren't forms when arranging.
22805 2006-09-28 Jackson Harper <jackson@ximian.com>
22807 * XplatUIWin32.cs: Clip the rect to the parent window.
22808 * XplatUIStructs.cs: Add clipping modes struct.
22809 * InternalWindowManager.cs: New private method that factors title
22810 bar heights in when calculating the pos of an NC mouse message.
22811 - Use SendMessage to force a paint when the form's size is changed
22812 instead of painting the decorations immediately.
22813 - Don't let the NC button click messages get to DefWndProc,
22814 because they will attempt to handle windowing themself, and this
22815 messes up z-order (it will put them in front of the scrollbars).
22816 * XplatUIX11.cs: Make sure that we don't reset window managers if
22817 we already have one (ie the window is an MDI window).
22819 2006-09-28 Chris Toshok <toshok@ximian.com>
22821 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
22822 menu code really needs going over.
22824 2006-09-27 Chris Toshok <toshok@ximian.com>
22826 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
22827 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22828 window is maximizable. So, we need to make sure that even if we
22829 clear the border/wm frame of those functions, they're still
22830 available (basically, we remove the decoration without removing
22831 the function). Half the fix for #79338.
22833 2006-09-27 Chris Toshok <toshok@ximian.com>
22835 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22838 2006-09-27 Chris Toshok <toshok@ximian.com>
22840 * Splitter.cs: reorder things a bit so that we don't actually
22841 draw/move the splitter until after calling OnSplitterMoving. This
22842 lets users cancel/disallow the movement by explicitly setting
22843 event.SplitX/SplitY. Fixes #79372.
22845 2006-09-27 Jackson Harper <jackson@ximian.com>
22847 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22848 because it is most likely on a window being destroyed, and that
22849 will give us an X11 error.
22851 2006-09-27 Chris Toshok <toshok@ximian.com>
22853 * PropertyGridView.cs: half of the fix for #78190. Clicking on
22854 the dropdown button now toggles between showing and hiding the
22855 dropdown. Also, get rid of dropdown_form_showing and just use
22856 dropdown_form.Visible. We still don't do a grab, but I'll leave
22857 that part to someone who has handled Capture-fu before.
22859 2006-09-27 Chris Toshok <toshok@ximian.com>
22861 * DataGrid.cs: return false if alt isn't pressed when '0' is
22862 pressed. this keeps the '0' key from being swallowed, and fixes
22865 2006-09-27 Chris Toshok <toshok@ximian.com>
22867 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22868 Calling Refresh (in response to a scrollbar event) screws up the
22869 scrollbar painting. Fixes bug #78923.
22871 2006-09-27 Chris Toshok <toshok@ximian.com>
22873 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22874 then insert into hashtable" blocks threadsafe.
22876 2006-09-27 Chris Toshok <toshok@ximian.com>
22878 * MessageBox.cs (CreateParams): the styles should be |'ed with our
22879 baseclass's, since otherwise the
22880 ControlBox/MinimizeBox/MaximizeBox assignments above have no
22881 effect. This gets the close button back in messageboxes.
22883 2006-09-27 Chris Toshok <toshok@ximian.com>
22885 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22886 flag, not just != 0. this makes flags that are actually multiple
22887 bits (like WS_CAPTION) work. fixes bug #79508.
22889 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
22891 * PageSetupDialog.cs: add support for getting and settings the
22892 paper size, source and orientation.
22894 2006-09-26 Chris Toshok <toshok@ximian.com>
22896 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22897 and caption == "", we need to remove the resize handles as well as
22900 * Control.cs (set_Text): turns out that setting Text on a form
22901 should change the WM styles on the window, since if ControlBox ==
22902 false, the only way to get a window border is to have a non-""
22903 Text property. check winforms/forms/text.cs for an example. so,
22904 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22905 update both window styles and title. This fixes a lot of dialogs
22906 (including the preferences dialog in MonoCalendar.)
22908 2006-09-26 Chris Toshok <toshok@ximian.com>
22910 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22911 control isn't a Form), call Win32ShowWindow to hide the window,
22912 but don't update the control Visible property. When we reparent
22913 back to a parent control, call SetVisible in order for the
22914 window's visibility to be reinstated.
22916 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22919 * Control.cs (ControlCollection.Remove): remove that value.Hide()
22920 call for good, since it breaks MonoCalendar (and other things I'm
22921 sure.) Also, set all_controls to null *after* the owner calls,
22922 which end up regenerating it.
22923 (ChangeParent): allow new_parent to be == null, passing
22924 IntPtr.Zero down to XplatUI.
22926 this fixes #79294 the right way.
22928 2006-09-26 Mike Kestner <mkestner@novell.com>
22930 * GridEntry.cs : internal SetParent method.
22931 * PropertyGrid.cs : attach to property changed on the proper
22932 target if we have a hierarchical grid with subobjects. Setup
22933 GridItem.Parent for hierarchical items.
22934 * PropertyGridView.cs : Set value on the correct target for
22935 hierarchical grids. [Fixes #78903]
22937 2006-09-26 Chris Toshok <toshok@ximian.com>
22939 * Control.cs (ChildNeedsRecreating): this should return true if
22940 either we're being recreated and the child is in our list, or our
22941 parent is waiting for our recreation.
22943 2006-09-26 Chris Toshok <toshok@ximian.com>
22945 * Control.cs (ControlCollection.Remove): reinstate the
22946 value.Hide() call as suggested in bug #79294.
22948 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
22950 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22951 coordinates (versus a relative move).
22953 2006-09-26 Chris Toshok <toshok@ximian.com>
22955 * Control.cs: rework child recreation a little bit. It turns out
22956 that we race between the DestroyNotify the WM_DESTROY message. If
22957 the parent gets its DestroyNotify before the child gets the
22958 WM_DESTROY message, the child ends up not recreating (since the
22959 parent finishes its recreation on DestroyNotify, and the child
22960 checks ParentIsRecreating.)
22962 So, instead we store off a list of all the child controls which
22963 need to be recreated when the parent control starts to recreate
22964 itself. Then, when child controls get their WM_DESTROY message we
22965 check to see if they're in the parent's pending recreation list,
22966 and if so, we recreate. This removes all dependency on ordering
22967 from the code and fixes the initial MonoCalendar upgrade dialog.
22969 2006-09-26 Jackson Harper <jackson@ximian.com>
22971 * TextControl.cs: Use the Line to get the length of the line,
22972 since soft line breaks can change the end line.
22974 2006-09-26 Chris Toshok <toshok@ximian.com>
22976 * Control.cs (ControlCollection.AddImplicit): don't add the
22977 control again if it's already in one of our lists. This keeps us
22978 from adding controls over and over again for comboboxes when their
22979 handle gets recreated (as the combobox adds implicit controls in
22980 OnHandleCreated). Fixes the X11 errors in bug #79480.
22982 2006-09-26 Jackson Harper <jackson@ximian.com>
22984 * TextControl.cs: When deleting characters make sure that any
22985 orphaned zero lengthed tags get deleted.
22986 - Fix ToString for zero lengthed tags.
22988 2006-09-25 Jackson Harper <jackson@ximian.com>
22990 * TextControl.cs: When getting a tag at the location there can be
22991 multiple tags at the same spot, these are 0-lengthed tags that
22992 appear when extra formatting has been stuck in a location. We
22993 need to pull out the last of these 0 lengthed tags.
22995 2006-09-25 Jackson Harper <jackson@ximian.com>
22997 * TextControl.cs: Fix print out in debug method.
22998 * TextBoxBase.cs: When text is set bail if we are setting to the
23001 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
23003 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23004 It is now possible to change the selected index in a FontXXXListBox
23005 with the up and down arrow keys from the FontXXXTextBoxes.
23006 Also, send the FontXXXTextBox mouse wheel event to the corresponding
23007 FontXXXListBoxes to match ms.
23009 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
23011 * SystemInformation.cs: Return a clone of the theme's MenuFont because
23012 anyone can dispose it, anytime. All other properties returns enums,
23013 structs or basic types so they don't need such tricks.
23015 2006-09-22 Jackson Harper <jackson@ximian.com>
23022 * XplatUIDriver.cs: Update interface to add a primary selection
23023 flag, so the driver can use the primary selection buffer if
23025 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23027 * RichTextBox.cs: We need to supply the data object to paste now
23028 (so we can choose to supply CLIPBOARD or PRIMARY).
23029 * TextBoxBase.cs: Supply data object to paste (see above).
23030 - Middle click uses the primary selection data object.
23032 2006-09-21 Chris Toshok <toshok@ximian.com>
23034 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23035 of SetWMStyles. It's still a rat's nest and is largely
23036 order-dependent which I dislike immensely. This also fixes the X
23037 button disappearing from toplevel forms.
23039 2006-09-21 Mike Kestner <mkestner@novell.com>
23041 * ListBox.cs: move Jordi's click/dblclick raising code to the
23044 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23046 * ListBox.cs: Fixes 79450
23048 2006-09-21 Mike Kestner <mkestner@novell.com>
23050 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23051 to deal with people updating the TreeNodeCollection after the tree
23052 is disposed. "Fixes" 79330.
23054 2006-09-20 Jackson Harper <jackson@ximian.com>
23056 * TextControl.cs: Push the cursor record onto the undo stack
23057 before the delete action. This fixes 78651.
23059 2006-09-20 Jonathan Chambers <joncham@gmail.com>
23061 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23062 CreateParams. Fixes 79329.
23064 2006-09-19 Chris Toshok <toshok@ximian.com>
23066 * XplatUIX11.cs: a couple of blanket code massage passes to clean
23067 things up a bit. First, get rid of the NetAtoms array (and the NA
23068 enum), and just embed the atoms as static fields. Also, add a
23069 couple of functions (StyleSet and ExStyleSet) to clean up all the
23070 bitmask testing of styles.
23072 * X11Structs.cs: remove the NA enum, not needed anymore.
23074 2006-09-19 Chris Toshok <toshok@ximian.com>
23076 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23077 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
23078 added cleanup to get MessageBox titles appearing again, which were
23079 broken by my earlier fix for caption-less/ControlBox-less windows.
23081 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
23083 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23084 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23085 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23086 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23087 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23088 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23089 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23090 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23091 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23092 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23093 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23095 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23096 ToolStripButton.cs: Stubs needed for above.
23097 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23099 2006-09-15 Chris Toshok <toshok@ximian.com>
23102 - make the MessageQueues hashtable Synchronized.
23104 - SendMessage: if the Hwnd is owned by a different thread, use the
23105 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23106 thread. Fixes bug #79201.
23108 2006-09-15 Chris Toshok <toshok@ximian.com>
23110 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
23111 ControlBox == false, we disallow maximize/minimize/close. If the
23112 form Caption is "" we also disallow move (and get rid of the Title
23113 decoration). Unfortunately, regardless of how things are set,
23114 we're stuck with the Title and WM menu.
23116 2006-09-15 Chris Toshok <toshok@ximian.com>
23118 * Application.cs: add locking around the static message_filters
23119 ArrayList, part of #79196.
23121 2006-09-15 Chris Toshok <toshok@ximian.com>
23123 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23124 Form.ControlBox == false, the window has no titlebar nor resize
23125 handles. fixes bug #79368.
23127 2006-09-15 Chris Toshok <toshok@ximian.com>
23129 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23130 >= 0. Fixes bug #79370.
23132 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
23133 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23135 Add properties: LayoutEngine, Margin, DefaultMargin.
23136 Add method: GetPreferredSize.
23137 Move layout logic from PerformLayout to layout engines.
23139 2006-09-13 Chris Toshok <toshok@ximian.com>
23141 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
23142 fix for #79326 broke #78718, so this change addresses that.
23144 - in SendWMDestroyMessages remove the call to
23145 CleanupCachedWindows, since we might be recreating the control and
23146 need to maintain the references to right Hwnd handles. Also, set
23147 the zombie flag to true for each of the children in the hierarchy
23148 instead of calling hwnd.Dispose. This will cause GetMessage to
23149 ignore all events for the window except for DestroyNotify.
23151 - In GetMessage, ignore messages except for DestroyNotify for
23154 * Control.cs: revert the is_recreating fix from the last
23155 ChangeLog. It's definitely "right", but it breaks switching from
23156 an MDI form to a non-MDI form. Will need to revisit that.
23158 * Hwnd.cs: add a zombie flag, which means "the
23159 client_window/whole_window handles are invalid, but we're waiting
23160 for the DestroyNotify event to come in for them". Set the flag to
23161 false explicitly if setting WholeWindow/ClientWindow, and also
23164 2006-09-13 Chris Toshok <toshok@ximian.com>
23166 * XplatUIX11.cs: rework window destruction slightly.
23168 - when destroying the windows associated with a control, we don't
23169 need 2 separate XDestroyWindow calls. Just the one for the
23170 whole_window (or for client_window if whole_window is somehow
23171 IntPtr.Zero -- can this happen?) is enough.
23173 - reworked SendWMDestroyMessages slightly, so we always dispose
23174 the child control hwnd's after sending the messages.
23176 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23177 the two places it was used (one was even using hwnd.Handle and the
23178 other hwnd.client_window. ugh), adding another call in
23179 SendWMDestroyMessages. We need this new call because now the
23180 DestroyNotify events in the queue will be ignored for the child
23181 controls (as their hwnd's were disposed, and the window id's
23182 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23184 - this fixes bug #79326.
23186 2006-09-13 Chris Toshok <toshok@ximian.com>
23188 * Control.cs: don't always set is_recreating to false at the end
23189 of RecreateHandle, since sometimes we're not done (and won't be
23190 until WndProc handles the WM_DESTROY message). Also, set
23191 is_recreating to false in the WM_DESTROY handling code. Part of
23192 the fix for bug #79326.
23194 2006-09-13 Miguel de Icaza <miguel@novell.com>
23196 * X11DesktopColors.cs: Start the droppage of debugging messages.
23198 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23200 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
23202 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23204 2006-09-12 Chris Toshok <toshok@ximian.com>
23206 * DataGrid.cs (get_ListManager): if the list_manager is null, try
23207 to create it using SetDataSource. Fixes bug #79151.
23209 2006-09-11 Chris Toshok <toshok@ximian.com>
23211 * XEventQueue.cs: add a DispatchIdle property.
23213 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23214 either the queue is null, or the queue has DispatchIdle set to
23216 (DoEvents): set queue.DispatchIdle to false around the
23217 peek/translate/dispatch message loop in this method. This keeps
23218 Application.Doevents from emitting idle events. Part of the fix
23221 2006-09-11 Chris Toshok <toshok@ximian.com>
23223 * DataGrid.cs (set_DataSource): make this work for both the
23224 winforms/datagrid test and ReportBuilder. It seems as though when
23225 we've created a ListManager (or maybe it's if we have a
23226 BindingContext?), when we set the DataSource it clears the
23227 DataMember to "". otherwise we reuse the datamember. Fixes bug
23230 2006-09-11 Chris Toshok <toshok@ximian.com>
23232 * XplatUIX11.cs: deal with queue being null, which happens in all
23233 the Clipboard functions. Fixes one of the two problems mentioned
23236 2006-09-11 Chris Toshok <toshok@ximian.com>
23238 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23239 button on various spots (including outside the menu) works closer
23240 to MS, and doesn't crash. Fixes #79343.
23242 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
23244 * ListView.cs: Do not initialize item_sorter in init. To match MS,
23245 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23246 and the internal comparer is set. When a new ListViewItemSorter is set,
23247 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23248 was specified. No further processing is necessary if SortOrder is set
23249 to it's current value. If Sorting is modified to None, and View is
23250 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23251 (either custom or our internal ItemComparer) to null, on 1.0 profile
23252 only set item_sorter to null if its our internal IComparer. If Sorting
23253 is modified to Ascending or Descending, then use our internal IComparer
23254 if none is set, and if the current IComparer is our internal one then:
23255 on 2.0 profile always replace it with one for new Sorting, and on 1.0
23256 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23257 Enum.IsDefined to verify whether a valid View value is specified in
23258 its setter. Automatically sort listview items when listview is
23259 created. In Sort, do nothing if ListView is not yet created, or if
23260 no item_sorter is set (no Sorting was set, Sorting was explicitly set
23261 to None or ListViewItemSorter was set to null). Added Sort overload
23262 taking a bool to indicate whether the ListView should be redrawn when
23263 items are sorted (we use this in ListViewItemCollection to avoid double
23264 redraws). Modified our internal IComparer to take the sort order into
23265 account. In Add and AddRange methods of ListViewItemCollection, also
23266 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23267 view), but use overload with noredraw option to avoid double redraw.
23268 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23269 true when View is Tile, and do the same when attempting to set View to
23270 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23271 for selected/checked indices, as it involves overhead when sorting is
23272 done while these collections are not used all that often. Instead
23273 we'll build the indices on demand. Modified IList implementation of
23274 CheckedIndexCollection to use public methods if object is int.
23275 Modified CheckedListViewItemCollection to hide checked items if
23276 ListView.CheckBoxes is false. Removed LAMESPEC remark in
23277 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23278 IList implementation in SelectedIndexCollection to use public methods
23279 if object is int. Modified SelectedListViewItemCollection to hide
23280 selected items if listview is not yet created.
23281 * ListViewItem.cs: CheckedIndices list no longer needs to be
23282 maintained separately (see ListView changes). Also clone font, fixes
23285 2006-09-11 Mike Kestner <mkestner@novell.com>
23287 * ComboBox.cs: if we are updating the contents of the currently
23288 selected index, refresh the control or the textbox selection.
23291 2006-09-11 Mike Kestner <mkestner@novell.com>
23293 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
23294 the 'specified' logic has been moved there. This seems like a bug
23295 in Control.cs, since our current SetBoundsCore completely ignores
23296 the specified parameter. Peter's commit seems to indicate that is
23297 the way the MS control implementation works. [Fixes #79325]
23299 2006-09-10 Jonathan Chambers <joncham@gmail.com>
23301 * XplatUI.cs: Set default_class_name to be composed
23302 of current domain id. This allows MWF to be loaded in multiple
23305 2006-09-09 Miguel de Icaza <miguel@novell.com>
23307 * X11Keyboard.cs: If we are unable to obtain the input method, do
23308 not call CreateXic to create the input context. Should fix
23311 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
23313 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23314 Simplified gnome support by adding more pinvokes to get the
23315 icon for a file or mime type.
23317 2006-09-08 Jackson Harper <jackson@ximian.com>
23319 * MenuAPI.cs: Deslect popup context menu items before closing the
23320 window, so that you don't see the previously selected item
23321 selected when you reopen the menu.
23322 * TextControl.cs: Update the cursor position even if we don't have
23323 focus. This fixes typing in things like the ComboBox. I'm not
23324 totally sure we should always set the visibility if we don't have
23325 focus, but couldn't find any corner cases where the cursor showed
23326 up when it shouldn't.
23328 2006-09-08 Chris Toshok <toshok@ximian.com>
23330 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23331 our arrays are length 256. & 0xff before indexing. Fixes the
23332 crash in bug #78077.
23334 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23336 * ThemeWin32Classic.cs:
23337 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23338 is true. Handle that check box too.
23340 2006-09-07 Chris Toshok <toshok@ximian.com>
23342 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
23345 2006-09-07 Chris Toshok <toshok@ximian.com>
23347 * Control.cs: in set_BackColor only do the work if
23348 background_color != value.
23350 * XplatUIX11.cs: move the clearing of invalid areas (both client
23351 and nc) to the same block of code where we set (nc_)expose_pending
23352 to false. That is, move it from PaintEventEnd to PaintEventStart,
23353 so things that cause invalidates from within OnPaint will trigger
23354 another call to OnPaint. Fixes bug #79262.
23356 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
23358 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23359 * FileDialog.cs: Fix typo
23361 2006-09-07 Jackson Harper <jackson@ximian.com>
23363 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
23364 for tab pages if they have any.
23366 2006-09-06 Mike Kestner <mkestner@novell.com>
23368 * Splitter.cs: use the "current" rect when finishing drag handle
23369 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
23371 2006-09-06 Mike Kestner <mkestner@novell.com>
23373 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23374 support offset splitters. [Fixes #79298]
23376 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
23378 * Mime.cs: Fixed a bug that could override the global mime type
23381 2006-09-05 Jackson Harper <jackson@ximian.com>
23383 * TabControl.cs: Better calculation method for setting the slider
23384 pos. Prevents crashes on really wide tabs.
23385 - Draw Image on tab pages if an image list is used.
23387 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23389 * MonthCalendar.cs: When Font changes, the Size should be
23390 updated to fit the new font's space requirements.
23392 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
23394 * ListBox.cs: If the items are cleared with Items.Clear set
23397 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23399 * MonthCalendar.cs: Handle arrow keys as input keys. Also
23400 fire DateChanged event instead of DateSelected event when
23401 the date was changed by keyboard interaction.
23403 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23405 * DateTimePicker.cs: Handle DateChanged for the associated
23406 month_calendar control, and set month_calendar.Font from
23407 OnFontChanged method, as well as resize the height of the
23408 control when needed. Make PreferredHeight proportional.
23410 2006-09-01 Chris Toshok <toshok@ximian.com>
23412 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23415 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23417 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
23419 * FileDialog.cs: Set ClientSize instead of window size, to allow space
23420 for decorations (Fixes #79219)
23422 2006-09-01 Mike Kestner <mkestner@novell.com>
23424 * ComboBox.cs: first stab at sorting plus some selection handling
23425 fixes to bring us more in line with MS behavior. Also switches back
23426 to index based selection. Alternative patches for index-based
23427 selection were provided by Jackson Harper, Carlos Alberto Cortez,
23428 and latency@gmx.de on bug 78848. I assume they were similar to this
23429 code I've had simmering in my tree forever.
23432 2006-09-01 Chris Toshok <toshok@ximian.com>
23434 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23435 when setting list position guard against ending up with a -1 index
23436 (the other part of the fix for #78812). Should probably make sure
23437 we don't need the analogous fix in the ItemDeleted case.
23440 - in SetDataSource, work around the fact that the way
23441 OnBindingContextChanged is invoked will cause us to re-enter this
23442 method. I'll remove the hack once I investigate
23443 OnBindingContextChanged.
23445 - fix the logic in set_DataSource and set_DataMember (basically
23446 what to do if the other of the two is null.)
23448 - in OnListManagerItemChanged, we need to take into account the
23449 edit row when deciding whether or not to call RecreateDataGridRows
23450 (part of the fix for #78812).
23452 2006-09-01 Jackson Harper <jackson@ximian.com>
23454 * Splitter.cs: Don't do anything if there is no control to affect
23455 (prevents us from crashing in weird tet cases).
23456 * TreeView.cs: Bounding box for the mouse movement reverting
23457 focus/selection back to previously selected node. This matches
23458 MS, and makes the tree a lot more useable.
23459 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23460 use clipping so they are not drawn. This fixes when the control
23461 is set to have a transparent background, or if it was over an
23464 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
23466 * MimeIcon.cs: Improved handling for reading default icons when
23467 using gnome (2.16 made it necessary). Check and read svg icons
23468 first, then 48x48 and then 32x32 icons.
23470 2006-08-31 Chris Toshok <toshok@ximian.com>
23472 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23475 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23476 ProcessKeyPreview. Fixes part of #77806.
23478 * DataGrid.cs: big patch.
23480 - revert the queueing up of DataSource/DataMember if inside
23481 BeginInit/EndInit calls. That's not the way the datagrid achieves
23482 its delayed databinding. Instead, call SetDataSource in
23483 OnBindingContextChanged. This mimic's MS's behavior, and fixes
23486 - Also, it wasn't mentioned in #78811, but the test case exhibits
23487 behavior that was lacking in our datagrid implementation - Columns
23488 that have mapping names that don't exist in the datasource's
23489 properties aren't shown. Yuck. To fix this I added the bound
23490 field to the column style, and basically any calculation to figure
23491 out anything about columns uses a loop to find the bound columns.
23492 still need to investigate if I can cache an array of the bound
23493 columns or if the indices must be the same.
23495 - When setting CurrentCell, we no longer abort if the cell being
23496 edited was in the add row. This fixes the other part of #77806.
23498 - The new code also fixes #78807.
23500 * ThemeWin32Classic.cs: perpetrate the same disgusting
23501 column.bound field hack, and only render bound fields.
23503 2006-08-31 Chris Toshok <toshok@ximian.com>
23505 * DataGridColumnStyle.cs: add bound field. this field is true if
23506 the datasource has a property corresponding to the mapping name.
23508 * DataGridTableStyle.cs: set the bound field on the column styles
23509 depending on whether or not we have a column for that property.
23511 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
23513 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
23514 splitter control (fixes #79228)
23516 2006-08-31 Chris Toshok <toshok@ximian.com>
23518 * DataGridColumnStyle.cs: we need to delay the assignment of
23519 property descriptor until the last possible moment due to the lazy
23520 databinding stuff in the datagrid. Also, fix the exceptions
23521 thrown by CheckValidDataSource to match MS.
23523 2006-08-31 Jackson Harper <jackson@ximian.com>
23525 * Form.cs: When activated select the active control, if there is
23526 no active control, we select the first control.
23527 * XplatUIX11.cs: If there is no focus control when we get a
23528 FocusIn event, find the toplevel form and activate it. This
23529 occurs when you popup a window, it becomes the focus window, then
23530 you close that window, giving focus back to the main window.
23532 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23534 * MonthCalendar.cs:
23535 * ThemeWin32Classic.cs: Cache Font in bold style, as well
23536 as StringFormat with Center alignments in MonthCalendar,
23537 instead of creating new ones when drawing the control.
23538 Also, draw the month name in bold style.
23540 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
23543 - PerformLayout(): It would seem MS performs the fill even if the
23544 control is not visible (part of #79218 fix)
23545 - ResetBackColor(): Use the setter to reset the color, to allow
23546 overriders to catch the change.
23548 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23549 - CreateHandle(): dito (part of $79218 fix)
23550 - Don't set an icon if we have a dialog
23551 * ScrollableControl.cs:
23552 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23553 - ScrollIntoView(): No need to scroll if control is already visible
23554 (resolves fixme and fixes #79218)
23556 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23558 * MonthCalendar.cs: Change proportions in SingleMonthSize
23559 to match the aspect of the original control.
23561 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
23563 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23564 get updated when they get maximized.
23566 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
23568 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23570 2006-08-29 Chris Toshok <toshok@ximian.com>
23572 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23574 2006-08-29 Jackson Harper <jackson@ximian.com>
23576 * TreeView.cs: Need to track selected node and highlighted node,
23577 they aren't always the same thing, when the mouse is down on a
23578 node it is hilighted, but not selected yet.
23579 - Do the HideSelection stuff right
23580 - Need to focus on rbutton mouse down. And redraw selection when
23581 right click is mouse upped.
23583 2006-08-29 Mike Kestner <mkestner@novell.com>
23585 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23586 when SubItems.Count < Columns.Count. [Fixes #79167]
23588 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
23590 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23592 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
23594 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23595 from X. Only send based on ConfigureNotify if we don't have the
23596 correct location in hwnd (if the window manager moved us)
23598 2006-08-28 Mike Kestner <mkestner@novell.com>
23600 * ListView.cs: remove a TODO.
23601 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23602 [Fixes ListView part of #79166]
23604 2006-08-28 Mike Kestner <mkestner@novell.com>
23606 * ListView.cs: move wheel handler to parent since it is focused
23607 instead of the item_control now. [Fixes #79177]
23609 2006-08-28 Mike Kestner <mkestner@novell.com>
23611 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23612 when the control is focused. [Fixes #79171]
23614 2006-08-28 Mike Kestner <mkestner@novell.com>
23616 * ListView.cs: size the item and header controls for empty and
23617 unscrollable views.
23618 * ThemeWin32Classic.cs: draw disabled backgrounds.
23621 2006-08-28 Chris Toshok <toshok@ximian.com>
23623 * Form.cs: remove unused "active_form" static field.
23625 * Hwnd.cs: lock around accesses to static windows collection.
23627 * Application.cs: lock threads in Exit ().
23629 2006-08-28 Chris Toshok <toshok@ximian.com>
23631 * NativeWindow.cs: lock around accesses to window_collection.
23633 2006-08-28 Chris Toshok <toshok@ximian.com>
23635 * Control.cs: err, fix this the right way, by locking on controls
23636 when using it. not by making it synchronized.
23638 2006-08-28 Chris Toshok <toshok@ximian.com>
23640 * Control.cs: make the static "controls" field synchronized, as it
23641 gets updated from multiple threads.
23643 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23645 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23646 Prevent other threads from exiting when calling thread sets quit state.
23647 * XEventQueue.cs: Added PostQuitState property
23649 2006-08-27 Chris Toshok <toshok@ximian.com>
23651 * AsyncMethodData.cs: add a slot for the window handle.
23653 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23654 window (the destination control's window, not the foster window).
23656 * Control.cs (BeginInvokeInternal): store the window's handle in
23657 the AsyncMethodData.
23660 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23663 - PostQuitMessage: Removed resetting S.D display handle, we might have
23664 another loop started after calling PostQuitMessage (Fixes #79119)
23665 - Created destructor to reset S.D handle
23667 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23669 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23671 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23673 * TextControl.cs (Insert): Update the caret position even if we don't
23674 have a handle yet, just don't call the driver in that case.
23675 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23676 to the end of the new selection text (Fixes #79184)
23678 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23680 * Form.cs (Activate): Only activate if the handle is created)
23682 - Mark window as invisible when it's disposed
23683 - Check if window handle is created when setting window visible,
23684 instead of relying just on the is_created variable
23685 - Check if object is disposed when creating the control (Fixes #79155)
23687 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23689 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23690 when allowing layout again. Otherwise we re-generate the anchoring
23691 distance to the border again and actually alter what the user wanted
23692 This is ugly, it'd be better if we used DisplayRectangle instead of
23693 ClientRectangle for Control.UpdateDistances, but that causes us to
23694 have other problems (initial anchoring positons would be wrong)
23697 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23700 - The size and location setters shouldn't go directly to
23701 SetBoundsCore, but to SetBounds, which triggers layout on the
23702 parent, then calls SetBoundsCore. (Related to fix for #78835)
23703 - SetBounds: Moved actual location update code into this function
23704 from SetBoundsCore, to match MS. Added call to PerformLayout if
23705 we have a parent (to trigger resizing of anchored parents if the
23706 child size has changed (see testcase for #78835)
23707 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
23709 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23711 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23713 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23714 System.Drawing when a toplevel window gets closed; there might
23715 be other toplevel windows belonging to the same app (Fixes #78052)
23717 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
23719 * FileDialog.cs: After reading FileDialog settings from mwf_config
23720 use Desktop prefix only if a real folder doesn't exist anymore.
23721 * FontDialog.cs: Added char sets.
23722 It is now possible to select the font, size or style with the
23725 2006-08-25 Kornél Pál <kornelpal@gmail.com>
23727 * PrintPreviewDialog.cs: Use assembly name constants.
23729 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23731 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23732 scrollbar from whacking it's buttons)
23734 2006-08-24 Chris Toshok <toshok@ximian.com>
23736 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
23737 in this patch (aggregating setting Left/Top/Width/Height to
23738 setting Bounds on the scrollbars), but the crux of the fix is in
23739 Recalculate, where we scroll by the remaining scroll_position if
23740 we're hiding a scrollbar. The 2*$5 reward in the comment is
23743 2006-08-24 Jackson Harper <jackson@ximian.com>
23746 * MdiWindowManager.cs: If the form is made a non-mdi window we
23747 need to remove the form closed event so that closing forms works
23750 2006-08-24 Jackson Harper <jackson@ximian.com>
23752 * Control.cs: Make IsRecreating internal so that the driver can
23754 - Temporarily remove the Hide when controls are removed, its
23755 making a whole bunch of things not work because visibility isn't
23756 getting reset elsewhere correctly
23757 * Form.cs: Need to do a full handle recreation when the mdi parent
23759 * XplatUIX11.cs: If we are recreating handles don't dispose the
23760 HWNDs. What was happening is the handles were being recreated in
23761 SendWMDestroyMessages, but then flow continued on in that method
23762 and destroyed the new handles.
23764 2006-08-23 Jackson Harper <jackson@ximian.com>
23766 * Form.cs: MdiClient is always at the back of the bus
23767 * Control.cs: When the order of items in the collection is changed
23768 we need to reset the all_controls array
23769 - do the same sorta setup thats done when adding a control when a
23770 control is set on the collection.
23772 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23774 * TextBoxBase.cs (get_Text): Return an empty array if our document
23775 is empty (fixes #79052)
23777 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23779 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23780 on WM_SYSCHAR messages (fixes #79053)
23782 2006-08-23 Chris Toshok <toshok@ximian.com>
23784 * DataGrid.cs: fix flickering when scrolling vertically.
23786 2006-08-23 Chris Toshok <toshok@ximian.com>
23788 * DataGrid.cs (EndEdit): only invalidate the row header when we
23791 2006-08-23 Chris Toshok <toshok@ximian.com>
23793 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23794 methods. fixes the flicker when scrolling around.
23796 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23798 * FileDialog.cs: Making sure the control is created before we get a
23799 chance to use it with BeginInvoke (Fixes #79096)
23801 2006-08-23 Chris Toshok <toshok@ximian.com>
23803 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23804 width to use when painting the rows.
23806 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23809 - Throw ArgumentException if a negative value is passed to SelectionLength
23810 - Update the selection end if start is moved. end needs to be always
23811 after start. (Fixes #79095)
23812 - Track selection length; MS keeps the selection length even if start
23813 is changed; reset on all other operations affection selection
23815 2006-08-22 Jackson Harper <jackson@ximian.com>
23817 * TreeView.cs: Make sure both scrollbars get displayed and sized
23818 correctly when the other bar is visible.
23819 - Use the original clip rectangle for checking if the area between
23820 the two scrollbars is visible, not the viewport adjusted clipping
23823 2006-08-22 Jackson Harper <jackson@ximian.com>
23825 * Binding.cs: We don't use IsBinding because it requires the
23826 control to be created, which really shouldn't be necessary just to
23827 set a property on the control.
23829 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23831 * ComboBox.cs: Some CB.ObjectCollection methods must throw
23832 ArgumentNullReferenceException when the argument is null.
23834 2006-08-21 Jackson Harper <jackson@ximian.com>
23836 * Timer.cs: Track the thread that the timer is started in (NOT
23837 CREATED), this way messages for it will only be triggered on its
23839 * XEventQueue.cs: Track the timers here, this makes timers per
23841 * XplatUIX11.cs: The timers are moved to the XEventQueue.
23843 2006-08-19 Chris Toshok <toshok@ximian.com>
23845 * XplatUIX11.cs: after further communication with pdb, we get the
23846 best of both worlds. SetZOrder working for un-Mapped windows, and
23847 no X errors for un-mapped windows.
23849 2006-08-19 Chris Toshok <toshok@ximian.com>
23851 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23852 as it was causing pdn toolbars to not have the correct stacking.
23854 2006-08-18 Mike Kestner <mkestner@novell.com>
23856 * ListView.cs : guard against negative ClientArea.Width in scrollbar
23857 calculation. Not sure why control should ever be setting a negative
23858 width though. Fixes #78931.
23860 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23862 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23863 null items in ObjectCollection class.
23864 * ListBox.cs.: Likewise.
23866 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
23868 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23869 as the base method in ThemeWin32Classic should work fine.
23872 2006-08-18 Jackson Harper <jackson@ximian.com>
23874 * Binding.cs: When validating if the value entered doesn't convert
23875 properly reset to the old value.
23876 * RadioButton.cs: Don't fire click when we get focus.
23878 2006-08-18 Jackson Harper <jackson@ximian.com>
23880 * FileDialog.cs: Paint the selection on the directory combobox the
23883 2006-08-17 Jackson Harper <jackson@ximian.com>
23885 * ErrorProvider.cs: Don't allow the error control to be selected.
23886 * Control.cs: Don't send the SetFocus messages, the control
23887 activation will do this, and if we do it blindly here validation
23890 2006-08-17 Jackson Harper <jackson@ximian.com>
23893 * ContainerControl.cs: Make validation events fire in the correct
23894 order. TODO: For some reason the first validation event is not
23897 2006-08-17 Mike Kestner <mkestner@novell.com>
23899 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23901 2006-08-17 Mike Kestner <mkestner@novell.com>
23903 * ComboBox.cs : implement scroll wheel support for popped-down
23904 state. Fixes #78945.
23906 2006-08-17 Jackson Harper <jackson@ximian.com>
23908 * TreeView.cs: Specify treeview actions (old patch that didn't get
23909 committed for some reason).
23910 - Don't let the mouse wheel scroll us too far. Just want to make
23911 the bottom node visible, not scroll it all the ways to the top.
23913 2006-08-17 Jackson Harper <jackson@ximian.com>
23915 * XplatUIX11.cs: Mouse wheel events go to the focused window.
23917 2006-08-17 Mike Kestner <mkestner@novell.com>
23919 * ComboBox.cs : don't do mouseover selection in simple mode.
23921 2006-08-16 Jackson Harper <jackson@ximian.com>
23923 * Form.cs: Fire the closing events for all the mdi child windows
23924 when a window is closed. If the cancel args are set to true, the
23925 main window still gets the event fired, but it doesn't not close.
23926 * MdiWindowManager.cs: Do this closing cleanup in a Closed
23927 handler, instead of when the button is clicked, so cancelling the
23928 close works correctly.
23929 * ComboBox.cs: Send the mouse down to the scrollbar.
23931 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23933 * ListBox.cs: When passing 'null' to SelectedItem,
23934 set SelectedIndex to -1, to unselect items. This is the
23935 observed behaviour in .Net.
23937 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
23939 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23940 MS flags saying there won't be any. (fixes #78800)
23941 * Control.cs (HandleClick): Made virtual
23943 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
23945 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23946 cultures. Fixed bug #78399.
23948 2006-08-16 Jackson Harper <jackson@ximian.com>
23950 * Form.cs: Use the MdiClients MdiChildren property to access
23951 MdiChildren instead of creating the array from the child controls.
23952 * MdiClient.cs: Maintain a separate array of the mdi children, so
23953 that insertion order is maintained when the Z-order is changed.
23955 2006-08-16 Mike Kestner <mkestner@novell.com>
23957 * ListView.cs : add an ItemComparer and default to it for sorting.
23958 Fixes #79076, but sorting needs a complete overhaul to be compat with
23961 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23963 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23965 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23967 * Hwnd.cs (Mapped): Properly traverse the tree
23969 2006-08-15 Chris Toshok <toshok@ximian.com>
23971 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
23972 pass manager.Current.GetType() to ParseData. It has to be the
23973 property type. So, hold off doing the ParseData until we're in
23974 SetPropertyValue where we know the type. This fixes the crash in
23975 #78821 but the textbox is still empty.
23977 2006-08-15 Chris Toshok <toshok@ximian.com>
23980 - when we're scrolling, only call Edit() again if the
23981 current cell is still unobscured. Fixes bug #78927.
23982 - when handling mousedown on a cell, ensure the cell is visible
23983 before calling Edit.
23984 - remove the properties from DataGridRow, and remove the
23985 DataGridParentRow class altogether.
23988 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23990 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23991 fire OnTextChanged by ourselves. There's no point calling base,
23992 we don't set the base value anywhere else. Fixes #78773.
23994 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23996 * ListBox.cs: Call CollectionChanged when modifying
23997 an item from Items indexer, to update the actual items
24000 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24002 * PrintDialog.cs: Small fixes for focus and a pair of checks,
24003 to match .Net behaviour.
24005 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24007 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24009 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24011 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24013 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24015 * MessageBox.cs: Prevent potential NRE exception.
24016 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24018 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24020 * MessageBox.cs: Calculate the owner of a messagebox, also make
24021 it topmost. Fixes #78753
24023 2006-08-14 Chris Toshok <toshok@ximian.com>
24025 * XplatUIX11.cs: A couple of fixes so that metacity will let us
24026 programmatically move windows. first, set the PPosition hint as
24027 well as the USPosition hint. Second include some code from pdb
24028 that sets the window type to NORMAL when we set the transient for
24029 hint. This is because, in the absence of a window type, metacity
24030 thinks any window with TransientFor set is a dialog, and refuses
24031 to let us move it programmatically. fascists.
24033 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24035 * XplatUIX11.cs: When setting normal hints, take into consideration
24036 an different hints previously set so we don't delete them (fixes #78866)
24038 2006-08-12 Chris Toshok <toshok@ximian.com>
24040 * ToolBarButton.cs: make Layout return a boolean, if something to
24041 do with the button's layout changed.
24044 - add another parameter to Redraw, @force, which all existing
24046 - make the Layout function return a boolean which is true if the
24047 layout has actually changed. Redraw now uses this (and @force)
24048 to determine when to invalidate. At present the only place
24049 where @force can be false is the call from OnResize, when
24050 background_image == null. So, resizing a toolbar when the
24051 layout doesn't change results in no drawing.
24053 2006-08-12 Chris Toshok <toshok@ximian.com>
24055 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
24056 the VScrollBar and HScrollbar reversed. oops.
24058 * DataGrid.cs: fix the logic that assigns sizes to the implicit
24059 scrollbars. we were assigning them twice (once in
24060 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24061 therefore causing two scrollbar resizes (and redraws?) to happen
24064 2006-08-12 Chris Toshok <toshok@ximian.com>
24066 * ToolBarButton.cs: redraw the entire button if the theme tells us
24069 * Theme.cs: add ToolBarInvalidateEntireButton.
24071 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24072 buttons, just the border.
24074 * ThemeNice.cs: redraw the entire toolbar button since we need to
24075 draw the highlight image.
24077 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24078 we need to redraw the entire button (not just the border).
24080 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24082 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24083 for vertical bars. Fixes the mismatches shown by #78513
24085 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
24087 * FileDialog.cs: If a saved/remembered path doesn't exist
24088 anymore, fall back to "Desktop".
24090 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24092 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24093 parent. It's apparently legal to not have one
24095 - SetZOrder: Don't try to set Z-Order on an unmapped window
24096 - CreateWindow: 0,0 are legal coordinates for a window. don't move
24097 it unless the coordinates are negative
24099 2006-08-10 Mike Kestner <mkestner@novell.com>
24101 * ListControl.cs: allow null for DataSource. Clear DisplayMember
24102 when setting to null per msdn docs. Fixes #78854.
24104 2006-08-10 Chris Toshok <toshok@ximian.com>
24106 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24107 flickering by setting a clip rectangle on the Graphics when we
24108 need to redraw just a particular menuitem. Also, rename "OnClick"
24109 to "OnMouseDown" to reflect what it actually is.
24111 * Form.cs: track the OnMouseDown change.
24113 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
24115 * CommonDialog.cs: Properly inherit the CreateParams from the form
24116 and only change what we need. Fixes #78865
24118 2006-08-10 Chris Toshok <toshok@ximian.com>
24120 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24121 flickering in flat mode (and most of the flickering in general) by
24122 only invalidating the button border (and not the entire rectangle)
24123 when the state changes. A couple of cases still flicker:
24124 ToggleButtons, and the dropdown arrow case when the user mouse
24127 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
24129 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24130 for german keyboards. Numlock state shouldn't affect the behaviour
24131 of the Del key. Fixes bug #78291.
24133 2006-08-10 Chris Toshok <toshok@ximian.com>
24135 * ListControl.cs: remove the items.Clear line from BindDataItems,
24136 as this is the first thing done by both subclasses in their
24137 SetItemsCore overrides. Also, add a ItemChanged handler, and when
24138 passed -1, refresh the list. This gets databinding working when
24139 the datasource is set on the list before the datasource is
24140 populated (as in wf-apps/ReportBuilder.)
24142 * ComboBox.cs: remove the argument to BindDataItems. This call
24143 should really go away, and be initiated by the ListControl code.
24145 * ListBox.cs: same.
24147 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24149 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24150 if no data is in the document when the control is displayed
24152 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24154 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24157 - PositionCaret: Allow positioning of caret but don't call methods
24158 requiring a handle if the window isn't created yet
24159 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24160 - owner_HandleCreated: Don't position the caret, just update it's
24161 location. User might have already set a different position
24163 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
24165 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24166 windows. Screws up the returned coordinates for child windows.
24167 Fixes #78825. I'm hoping this doesn't break something, since the
24168 code was explicitly put in 8 months ago, but no bug was attached.
24169 Menus still seem to work properly.
24171 2006-08-08 Chris Toshok <toshok@ximian.com>
24173 * DataGrid.cs: make BeginInit/EndInit actually do what they're
24174 supposed to do - delay data binding until the EndInit call. Also,
24175 make the table style collection's CollectionChangeAction.Refresh
24178 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24179 (with action = Refresh) when a consituent table's MappingName is
24182 2006-08-08 Chris Toshok <toshok@ximian.com>
24184 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24185 Invalidate, since changing the text can change the size of the all
24188 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
24190 * Form.cs (AddOwnedForm): Still need to add the form to our listif
24191 we don't have it yet
24193 2006-08-08 Chris Toshok <toshok@ximian.com>
24195 * PrintControllerWithStatusDialog.cs: don't .Close() the status
24196 dialog, as this causes X errors later on, since we actually
24197 destroy the window. Instead, .Hide() it.
24199 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
24201 * ComboBox.cs: Added focus reflection for popup window
24203 - Removed transient setting for non-app windows for now, not sure it
24205 - Fixed logic checking if we have captions when deciding
24206 override_redirect, WS_CAPTION is two bits and a 0 check was not
24208 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24211 - AddOwnedForm: Don't just add the form to the list, call the property
24212 to ensure the driver is informed about the ownership as well
24213 - CreateHandle: Set the TopMost status in the driver if we have an owner
24214 * XplatUI.cs: Fixed debug statement
24216 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
24217 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24218 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24219 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
24220 TrackBarRenderer.cs: Make constructor private.
24221 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24222 * ProfessionalColorTable.cs: Make properties virtual.
24224 2006-08-06 Duncan Mak <duncan@novell.com>
24226 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24229 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
24230 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24231 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24232 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24233 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24234 Initial import of new 2.0 classes.
24236 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
24237 * Application.cs: Add 2.0 VisualStyles properties.
24239 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
24240 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24241 XplatUIX11.cs: Create property to allow access to existing private
24242 variable "themes_enabled"
24244 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24246 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24247 file size, as otherwise our class libraries fail using windows. Fixes
24250 2006-08-04 Jackson Harper <jackson@ximian.com>
24253 * XplatUIX11.cs: Move the toolwindow window manager creation into
24254 the X11 driver, this way on win32 we can let windows create/handle
24257 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24259 * PrintDialog.cs: Remove some redundant checks, add some others,
24260 clean some code, and move the focus to the text boxes when the
24261 values are incorrect.
24263 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
24265 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24267 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
24269 * NumericUpDown.cs: Setting the Minimum and Maximum is now
24270 handled correctly. Fixes bug #79001.
24272 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24274 * PrintDialog.cs: The "Copies" numeric up down must have
24275 set the Minimum property to 1; only if the value is bigger
24276 than 1, activate "Collate" check box. This is the behaviour of .Net.
24277 Also modify the Document elements only if it is not null.
24279 2006-08-03 Jackson Harper <jackson@ximian.com>
24281 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24282 length. (We have a larger array then actual node count).
24284 2006-08-03 Jackson Harper <jackson@ximian.com>
24286 * ComboBox.cs: Don't show selection by default.
24287 - The SelectAll isn't needed here, since the focus code should do
24289 - DDL style lists to manual selection drawing, so when they
24290 get/lose focus they have to invalidate.
24292 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
24294 * TextBoxBase.cs: Don't always show all selections by default.
24296 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
24297 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24298 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24299 Fixed various typos.
24301 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
24303 * Control.cs: Removing the controls in a ControlCollection with
24304 Clear now hides the controls as expected. Fixes bug #78804.
24306 2006-08-03 Jackson Harper <jackson@ximian.com>
24308 * Control.cs: Revert previous focus patch, it breaks reflector.
24310 2006-08-03 Jackson Harper <jackson@ximian.com>
24312 * ComboBox.cs: Cleanup selection and focus with the combobox.
24313 This also eliminates some duplicated keyboard code, since now
24314 everything is handled by the main class.
24315 - Make list selection work on mouse up instead of down, to match
24318 2006-08-02 Jackson Harper <jackson@ximian.com>
24320 * Control.cs: Setting focus needs to go through the whole
24321 selection mechanism.
24323 2006-08-02 Chris Toshok <toshok@ximian.com>
24325 * PrintPreviewDialog.cs: change MinimumSize to use
24326 base.MinimumSize so it works.
24328 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
24331 - UpdateCaret: Added sanity check in case caret isn't defined yet
24332 - Line.Delete: Now updating selection and caret markers if we're
24333 transfering a node (Properly fixes #78323)
24334 - SetSelectionEnd: Added sanity check
24335 * TextBoxBase.cs: Removed broken attempt to fix #78323
24337 2006-08-01 Chris Toshok <toshok@ximian.com>
24339 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24340 Close() call is handled in Form, not here.
24342 2006-08-01 Chris Toshok <toshok@ximian.com>
24344 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24347 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24348 for sizes < 100% zoom. The code now aggressively attempts to keep
24349 from calling document.Print (), and tries not to use the scaling
24350 g.DrawImage whenever possible (it still does if you scale to >
24351 100%, since usually that involves huge images).
24353 * PrintPreviewControl.cs: hook up the close button.
24355 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
24356 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24357 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24358 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24359 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24360 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24361 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24362 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24363 Removed [Serializable] for 2.0 Event Handlers.
24365 2006-07-31 Jackson Harper <jackson@ximian.com>
24367 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24368 * TextControl.cs: Uncomment out the body of this method.
24370 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
24372 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24375 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24377 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24378 that embed TextBox and need selections visible even if textbox is not
24379 focused to enforce that behaviour.
24380 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24383 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24386 - Added new SetSelectionStart/SetSelectionEnd overloads
24387 - Fixed viewport width assignment to be accurate
24388 - Adjusted alignment line shift calculations to allow cursor on right
24389 aligned lines to be always visible at the right border (like MS)
24391 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24392 - TextBoxBase_SizeChanged: recalculating canvas on size changes
24393 - CalculateScrollBars: Use ViewPort size instead of window size, to
24394 properly consider space occupied by the border and scrollbars
24396 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
24397 calculations; no longer leaves artifacts
24398 - CaretMoved: Adjusted window scrolling to match MS and fixed several
24399 calculation bugs (Still missing right/center align calculations)
24401 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24403 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24404 use of both scroll rect and clip rect, as they do the same.
24406 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24408 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
24409 in the event handler (fixes #78912)
24411 2006-07-31 Chris Toshok <toshok@ximian.com>
24413 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24414 grid.ListManager.Count, since grid.ListManager might be null.
24415 This of course begs the question "why are we drawing rows for a
24416 grid with no list manager (and therefor no rows)?" Fixes the
24417 crash in bug #78929.
24419 2006-07-31 Chris Toshok <toshok@ximian.com>
24421 * RelatedPropertyManager.cs: Don't always chain up to the parent
24422 ctor. instead, call SetDataSource if the parent's position is !=
24423 -1. Fixes the crash in #78822.
24425 2006-07-31 Chris Toshok <toshok@ximian.com>
24427 * DataGrid.cs (get_ListManager): use field instead of property
24428 accessors for datasource and datamember.
24429 (RowsCount): make internal again.
24430 (OnMouseDown): end edits before resizing columns/rows.
24431 (OnMouseUp): restart edits after resizing columns/rows.
24433 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
24435 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24436 This fixes the situation where the last set cursor is displayed
24437 whenever the mouse is over scrollbars.
24439 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24441 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24442 Document properties, as well as initial values.
24444 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
24446 * XplatUIWin32.cs (SetBorderStyle): Setting both border
24447 and ClientEdge results in a 3-pixel border, which is
24450 2006-07-28 Jackson Harper <jackson@ximian.com>
24452 * TreeNodeCollection.cs: Fix the clear method.
24453 - Fix the Shrink also
24455 2006-07-27 Jackson Harper <jackson@ximian.com>
24457 * TreeView.cs: Make sure the visible order is computed when we
24458 attempt to size the scrollbars (for trees that mess with the
24459 scrolling when they shouldn't.
24460 - Make sure to give the scrollbars valid values.
24462 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
24464 * XplatUIX11.cs: Move motion compression code to where it
24465 has less performance impact
24467 2006-07-26 Jackson Harper <jackson@ximian.com>
24469 * UpDownBase.cs: When the control is selected make the child
24470 controls non selectable, so that a click on them won't do a
24471 focus/unfocus cycle.
24472 - Don't give focus to the text box when the spinner is selected.
24473 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24475 2006-07-26 Chris Toshok <toshok@ximian.com>
24477 * ThemeWin32Classic.cs: add print preview rendering. I'm not
24478 satisfied with this solution. If the bitmaps are small, we should
24479 just cache them in the PrintPreviewDialog and draw them here.
24480 Also, the layout is broken for the 2-up and 3-up cases.
24482 * Theme.cs: add PrintPReviewControlPaint.
24484 * PrintPreviewDialog.cs: first pass implementation.
24486 * PrintPreviewControl.cs: first pass implementation. No
24489 * PrintDialog.cs: only validate fields if that particular portion
24490 of the UI is enabled. Also, set the document's controller to a
24491 PrintControllerWithStatusDialog wrapping the document's print
24494 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24495 bring up a SaveFileDialog (i hope we don't want to match the
24496 behavior of the crappy windows file entry) and set the
24497 PrinterSettings.PrintFileName accordingly.
24499 2006-07-26 Jackson Harper <jackson@ximian.com>
24501 * ContainerControl.cs: Add a field that disables auto selecting
24502 the next control in a container when the container is activated.
24503 * UpDownBase.cs: Don't select the text box when the up down is
24506 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
24508 * XEventQueue.cs: Added methods for peeking (used for compression
24509 of successive events)
24510 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24511 mouse move events (fixes #78732)
24513 2006-07-25 Jackson Harper <jackson@ximian.com>
24515 * UpDownBase.cs: Use an internal class for the textbox so that we
24516 can control focus. the updown control should always have focus,
24517 if either the text area or the buttons are clicked.
24518 - Send the key messages to the textbox, since it never actually
24520 - Activate and decativate the textbox caret.
24522 2006-07-24 Jackson Harper <jackson@ximian.com>
24524 * Control.cs: Use the directed select when selecting a control,
24525 this way the container controls override will get called and the
24526 whole ActiveControl chain will get triggered. TODO: probably need
24527 to make sure this gets done everywhere instead of the old
24529 * ContainerControl.cs: Implement the directed Select method to
24530 find and activate the correct child control.
24532 2006-07-22 Mike Kestner <mkestner@novell.com>
24534 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24535 menu handling code so that clicks without a grab work too.
24538 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
24540 * FileDialog.cs: Enable the BackButton when dirstack has one element.
24541 Added some small optimizations.
24543 2006-07-21 Matt Hargett <matt@use.net>
24545 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24547 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
24549 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
24550 tests pass and match MS in some strange border cases.
24552 2006-07-21 Chris Toshok <toshok@ximian.com>
24554 * ThemeWin32Classic.cs: handle drawing of the relation links and
24555 parent row buttons.
24557 * Theme.cs: change args to DataGridPaintParentRow.
24559 * DataGrid.cs: Don't use controls for the relation links and
24560 parent buttons, so we have to handle all their interactions in
24561 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
24562 when we're navigating through child tables, so we can reinstate
24563 selection, expanded state, current cell, etc.
24565 2006-07-20 Chris Toshok <toshok@ximian.com>
24567 * ToolBar.cs: When we redraw a button, for whatever reason,
24568 there's no reason to redraw the entire toolbar. Also, don't call
24569 Control.Refresh from within Redraw, as it's much heavier than
24570 Invalidate (which is really what we want).
24572 2006-07-20 Chris Toshok <toshok@ximian.com>
24574 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24575 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24576 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24577 traces from within a debug IBindingList datasource
24578 (in mono/winforms/datagrid) for *days*, I've finally gotten things
24579 to work in a similar fashion.
24581 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24583 * ListBox.cs: Don't call Sort () when setting
24584 the Sorted property to false (avoid an unnecessary sort).
24586 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24588 * ListControl.cs: DataSource should throw an ArgumentException
24589 instead of a normal exception when the argument is not of the
24592 2006-07-20 Mike Kestner <mkestner@novell.com>
24594 * Control.cs: add InternalPreProcessMessage to allow us to steal
24595 key events before MWF gets its paws on them. Adapted from a
24597 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
24598 up/down/left/right navigation. Override the new internal control
24599 method to steal the events since they never make it to WndProc.
24600 * ToolBarButton.cs: don't worry about pushed when setting hilight
24601 since the drawing code prefers pushed to hilight. Invalidate on
24602 Hilight changes. Fixes #78547 and #78525.
24604 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
24606 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24607 the canvas size. Fixes #78868
24609 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
24611 * Splitter.cs: Track requested split position until first layout
24612 is performed. Fixes #78871
24614 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
24616 * Application.cs: Removed code that forces 1.x for the version
24617 number if the version started with 0. Not sure why that code was
24618 there and I couldn't find any bugs that indicated we needed it.
24621 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
24623 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24624 ResetDefaults(), just write some output to the console until it's
24625 implemented. Fixes bug #78907 for now. Eliminated two warnings.
24627 2006-07-19 Jonathan Chambers <joncham@gmail.com>
24629 * PropertyGridView.cs: set StartPosition of drop down forms
24630 so they appear in correct initial spot. Fixes #78190.
24632 2006-07-19 Mike Kestner <mkestner@novell.com>
24634 * ThemeWin32Classic.cs: use parent background color when drawing
24635 flat toolbars. Restructure the conditionals to make sure non-flat
24636 non-Divider toolbars are filled too. Fixes #78837.
24638 2006-07-19 Mike Kestner <mkestner@novell.com>
24640 * ListBox.cs: Sort on collection changes even if the handle
24641 isn't created yet. Fixes #78813.
24643 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24645 * ListControl.cs: DisplayMember should never be null,
24646 and now we assign String.Empty when null is passed to it (this
24649 2006-07-17 Mike Kestner <mkestner@novell.com>
24651 * ListViewItem.cs: restructure Font and subitem Font handling
24652 to hold a specific font and refer back to owner on null.
24655 2006-07-17 Mike Kestner <mkestner@novell.com>
24657 * ToolBar.cs: bandaid for side-effect of previous patch which was
24658 discarding explicit heights for non-AutoSize toolbars. Need to
24659 extend my format tester to deal with AutoSize=false. Fixes #78864.
24661 2006-07-15 Jackson Harper <jackson@ximian.com>
24663 * LabelEditTextBox.cs:
24664 * TreeView.cs: Use a new LabelEdit class for node editing, this
24665 class automatically 'closes' itself when it gets the enter key or
24667 - Use the client rectangle when setting the trees scrollbars, so
24668 border style is taken into account.
24670 2006-07-14 Jackson Harper <jackson@ximian.com>
24673 * TreeView.cs: Make the editing work similar to MSs, firing the
24674 events correctly and ending edits correctly.
24676 2006-07-14 Mike Kestner <mkestner@novell.com>
24678 * ToolBarButton.cs:
24679 * ToolBar.cs: layout restructuring and redraw enhancements to support
24680 formatting changes gracefully, like setting TextAlign, ImageList,
24681 ButtonSize, and Appearance. Handles explicit button sizing quirks
24682 of the MS controls. Things like flat toolbars ignoring button size
24683 but becoming constant sized at the largest button's size. Normal
24684 toolbars with an image set cannot be shrunk smaller than the image,
24685 but text can be clipped/ignored.
24686 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24687 is zero. Seems like DrawString should be smart enough to not put
24688 anything on screen though. Also trim labels and ellipsize at the char
24689 boundary, not word.
24690 Fixes #78711 and #78483.
24692 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24694 * FolderBrowserDialog.cs: Disable "New Folder" button and
24695 "New Folder" contextmenu menuitem if a folder like "My Computer"
24698 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24700 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24701 * FolderBrowserDialog.cs:
24702 - Use MWFConfig to store and read size and position settings
24703 - Added code to create a new folder (button or context menu).
24704 Use TreeView labeledit to change the name of the new folder.
24706 2006-07-14 Jackson Harper <jackson@ximian.com>
24708 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
24709 when the tree is scrolled we end editing.
24711 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24713 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24716 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24718 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24719 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24720 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24721 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24722 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24723 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24724 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24725 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24726 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24727 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24728 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24729 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24730 ListViewItemSelectionChangedEventHandler.cs,
24731 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24732 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24733 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24734 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24735 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24736 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24737 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24738 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
24739 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
24740 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24741 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24742 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24743 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24744 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24745 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24746 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24747 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24748 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24749 WebBrowserNavigatingEventHandler.cs,
24750 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24752 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24754 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24755 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24756 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24757 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24758 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24759 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24760 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24761 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24762 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24763 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24764 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24765 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24766 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24767 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24768 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24769 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24770 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24771 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24772 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24773 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24774 ListViewItemStates.cs, MaskFormat.cs: Added
24776 2006-07-13 Jonathan Chambers <joncham@gmail.com>
24778 * PropertyGridView.cs: Fix keyboard navigation of drop down.
24779 Patch from eno for bug 78558.
24781 2006-07-13 Jackson Harper <jackson@ximian.com>
24783 * TreeView.cs: When an edit is finished make sure that the
24784 selected node is visible.
24785 - When setting the top/bottom use the scrollbars is_visible, so
24786 everything will be set correctly even if the tree isn't visible
24789 2006-07-13 Jackson Harper <jackson@ximian.com>
24791 * ComboBox.cs: Revert the item->index part of my previous patch.
24792 * TreeView.cs: Use LostFocus instead of Leave for detecting when
24793 the edit box has lost focus (duh).
24794 - Just make the edit box not visible when we get return, that will
24795 take the focus, which will call EndEdit
24796 * TreeNode.cs When we start editing, notify the treeview.
24798 2006-07-12 Jackson Harper <jackson@ximian.com>
24800 * ComboBox.cs: Clear out old items before setting the item list.
24801 This prevents databound controls from having their items added
24803 - Switch the combobox to use indices whereever possible instead of
24804 using Item's. This allows usto navigate through lists that have
24805 more then one item with the same string value (ie a, b, b, a).
24806 - Scroll the listboxes scrollbar when a non visible item is
24808 - Allow keypress to cycle through all the possible values. For
24809 example if you have b1, b2, b3 and hold down the B key all the
24810 values will be cycled through.
24812 2006-07-12 Jackson Harper <jackson@ximian.com>
24815 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24816 this using the internal methods.
24817 * Control.cs: Add OnGotFocusInternal. A new method that allows
24818 controls to "override" OnGotFocus and change focus behavior if
24820 - Same thing for LostFocus
24821 * ComboBox.cs: Pass off focus to the text control properly.
24823 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
24825 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24826 * FolderBrowserDialog.cs: Almost a complete rewrite.
24827 - Better support for Environment.Specialfolders
24828 - Added support for MWFVFS
24829 - Made setting SelectedPath work
24831 2006-07-12 Jackson Harper <jackson@ximian.com>
24833 * Control.cs: Optimze getting all the controls.
24835 2006-07-11 Jackson Harper <jackson@ximian.com>
24837 * ContainerControl.cs: Override SETFOCUS in the container control,
24838 so that it is not selected on mouse click.
24840 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24842 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
24843 Hopefully we will have a better way once all of focus is complete.
24845 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24847 * ThemeWin32Classic.cs: Commented out some debug code and fixed
24848 a compile error with csc.
24850 2006-07-11 Jackson Harper <jackson@ximian.com>
24852 * Control.cs: When hiding a control only select the next control
24853 if the current control was focused.
24854 - Don't handle enter/leave when setting/killing focus, this is
24855 done by the container control.
24856 - Remove is_selected, it's not needed anymore.
24857 - Add utility methods for selecting a child control, and for
24858 firing the Enter/Leave events.
24859 * ContainerControl.cs: When a control is activated fire the
24860 enter/leave events.
24861 - Don't wrap when processing the tab key, so that focus can be
24862 moved outside of the container.
24863 - Use the correct active control
24865 2006-07-11 Jackson Harper <jackson@ximian.com>
24867 * ComboBox.cs: Remove some debug code that was blinding me.
24868 * UpDownBase.cs: These controls actually aren't implicit, they are
24869 visible to the user.
24871 2006-07-10 Chris Toshok <toshok@ximian.com>
24873 * DataGrid.cs: move back to the is_adding boolean field. god i
24874 hate this is_editing/is_adding/is_changing stuff.
24876 2006-07-10 Chris Toshok <toshok@ximian.com>
24878 * DataGridTableStyle.cs: just check if the property type is bool.
24879 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24880 Don't use CanRenderType.
24882 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24883 if our text == NullText. Remove CanRenderType.
24885 * DataGridBoolColumn.cs: nuke CanRenderType.
24887 * DataGrid.cs: reenable some code to end the current edit inside
24888 of set_CurrentCell. This fixes the other 1.1.16 regression.
24889 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24890 Also, remove the visible_row_count arg from CalcRowHeaders, since
24891 we don't need to worry about the actual height of the area.
24893 2006-07-10 Chris Toshok <toshok@ximian.com>
24895 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24898 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24899 the real sense of the IsInEditOrNavigateMode property (true =
24900 navigate, false = edit). Also, update OnKeyPress to reflect this.
24902 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24903 column style exists, we still need to set its property descriptor
24904 to match up with our list manager.
24906 2006-07-10 Chris Toshok <toshok@ximian.com>
24908 * ThemeWin32Classic.cs: implement the new row/header painting
24909 approach. The parent row painting will likely go away and
24910 replaced with label controls, but the rest seems to work ok (and
24913 * Theme.cs: change the way we draw datagrid rows. we don't draw
24914 the row headers as a block now. Instead we draw them in the
24915 normal draw-row loop. Add some calls for drawing parent rows and
24918 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24919 a default table style. Set the defaults from ThemeEngine.Current,
24920 not SystemColors. Fix lots of misc issues with property setters.
24922 * DataGrid.cs: move loads of style information out of this class
24923 as it's being duplicated with DataGridTableStyle. keep track of a
24924 special DataGridTableStyle for the properties we used to mirror
24925 here. Switch all the style properties to access this table style
24926 instead of instance fields of this class. Also add a internal
24927 class to represent parent rows (more needs to be stored here, like
24928 the selection state from the parent table, as well as the
24929 expansion state.) Also, for datasources with relations, do the
24930 right thing for collapse/expand, and add support for the
24931 navigation/parent row buttons.
24933 Lastly, fix the crash in the 1.1.16 build.
24935 * GridTableStylesCollection.cs: make the explicit interface
24936 implementations call the class's methods as opposed to duplicating
24939 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24940 0 so the text doesn't jump around when we move the cursor.
24942 2006-07-10 Jackson Harper <jackson@ximian.com>
24945 * ListBox.cs: Match MS's ToString (this makes debugging focus
24946 stuff infinitely easier).
24948 2006-07-10 Jackson Harper <jackson@ximian.com>
24950 * Control.cs (SelectNextControl): When checking the control's
24951 parent use this instead of ctrl.parent so that null can be passed
24952 to SelectNextControl. (I have unit tests for this).
24953 - Remove unused var.
24955 2006-07-10 Chris Toshok <toshok@ximian.com>
24957 * CurrencyManager.cs: correct one regression, the removal of the
24958 finalType field. Also, add a MonoTODO on CanAddRows, implement
24959 Refresh() correctly, and fix some event emission in
24960 ListChangedHandler.
24962 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24964 * FileDialog.cs: Don't use brackets for new folders if they exist
24965 under *nix. Instead use -(number of existing folders +1).
24967 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24970 - Fixed really nasty bug #78771
24971 - Don't block the whole GUI when reading directories with a lot of
24972 entries. Use an other thread instead and call BeginInvoke to
24973 update the ListView in MWFFileView
24975 2006-07-07 Chris Toshok <toshok@ximian.com>
24977 * Control.cs (Dispose): release any Capture when disposing.
24979 2006-07-07 Chris Toshok <toshok@ximian.com>
24981 * LinkLabel.cs (Select): if we chain up to the parent, set
24982 focused_index to -1 so we'll search for the first available link
24983 the next time the user tabs into us. Also, if the direction is
24984 backward and focused_index == -1, start the search from the last
24987 2006-07-07 Chris Toshok <toshok@ximian.com>
24989 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24990 is beyond the end of the text, don't do anything.
24991 (CreateLinkPieces): set our ControlStyles.Selectable based on
24992 whether or not we have any links.
24993 (Link.Invalidate): use a loop instead of foreach.
24994 (Link.set_Start): null out owner.sorted_links so it'll be
24995 recreated by CreateLinkPieces.
24997 2006-07-06 Chris Toshok <toshok@ximian.com>
24999 * LinkLabel.cs: revert the SetStyle change.
25001 2006-07-06 Chris Toshok <toshok@ximian.com>
25003 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25004 (OnEnableChanged): s/Refresh/Invalidate
25005 (OnGotFocus): if we have a focused index already, refocus it (so
25006 if we mouse out/in to the window it'll focus the right link).
25007 (OnKeyDown): move the tab handling out of here.
25008 (OnLostFocus): don't set focused_index to -1, so we can refocus it
25009 when we lose focus.
25010 (OnMouseDown): don't Capture here - Control handles it. Also,
25011 focus the active link.
25012 (OnMouseUp): don't deal with Capture.
25013 (OnPaintBackgroundInternal): remove.
25014 (OnTextAlignChanged): CreateLinkPieces before calling the
25015 superclass's method.
25016 (OnTextChanged): call CreateLinkPieces before calling superclass's
25018 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25020 (Select): implement this, moving the selection between different
25021 links, and call parent.SelectNextControl if we don't have another
25022 link to focus in the given direction.
25023 (CreateLinkPieces): call Invalidate instead of Refresh.
25025 2006-07-06 Chris Toshok <toshok@ximian.com>
25027 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25028 new LinkLabel internals.
25030 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
25031 over pieces looking for active/focused/etc links. also, deal with
25032 runs of text (and links) with embedded \n's in them, and use
25033 MeasureCharacterRanges instead of MeasureString to figure out the
25034 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
25037 2006-07-04 Jackson Harper <jackson@ximian.com>
25039 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25040 XKB or key auto repeat, do it manually. Without key auto repeat,
25041 when a key is held down we get key press, key release, key press,
25042 key release, ... with auto repeat we get key press, key press, key
25043 press ..., and then a release when the key is actually released.
25045 2006-07-03 Jackson Harper <jackson@ximian.com>
25048 * ThemeWin32Classic.cs: Tabs do not obey normal background color
25049 rules, they are always control color regardless of the background
25052 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
25054 * FileDialog.cs: Added internal class MWFConfig.
25055 Removed Registry support and replaced it with support for the new
25056 MWFConfig class. See MWFConfig comments for more information.
25058 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
25060 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25061 rectangle. Added some patches from eno from bug #78490 and fixed
25062 the arrow position for small up and down CPDrawScrollButtons.
25064 2006-06-30 Jackson Harper <jackson@ximian.com>
25066 * InternalWindowManager.cs: Remove some debug code.
25067 * Form.cs: When an MdiParent is set to null, the window is
25068 "detatched" and becomes a normal window.
25069 * MdiClient.cs: Don't bring the new child form to the front until
25070 it is activated (setting it as active does this), this makes the
25071 previously active forms titlebar get redrawn as inactive.
25073 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
25075 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25076 with later controls
25078 2006-06-29 Mike Kestner <mkestner@novell.com>
25080 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25081 arrow in keynav state. Fixes #78682.
25083 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25085 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
25086 order (fixes #78393)
25088 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
25090 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
25091 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25092 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25093 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25094 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25095 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
25096 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25097 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25098 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25099 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25100 enumerations (FlagsAttribute, SerializableAttribute, added/removed
25103 2006-06-28 Mike Kestner <mkestner@novell.com>
25105 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25107 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25110 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25111 item lines from other area (It also makes BackColor consistent and
25112 compatible with .NET). Fixed bug #78564.
25114 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
25116 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25117 Patch from Eno for #78555.
25119 2006-06-27 Chris Toshok <toshok@ximian.com>
25121 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25123 * DataGridColumnStyle.cs: same.
25125 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25127 * DataGridDrawingLogic.cs: nuke.
25129 2006-06-27 Chris Toshok <toshok@ximian.com>
25131 * DataGridTableStyle.cs: clean up the constructors, and build the
25132 list of child relations for this table. I have no idea if this is
25133 where we should be doing it (it probably isn't), but since we're
25134 already iterating over the properties..
25136 * DataGrid.cs: add row resizing. for now we add a DataGridRow
25137 struct and array for keeping track of row information, similar to
25138 what's shown in a hack on
25139 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25141 * Theme.cs: be consistent about the naming of DataGrid methods,
25142 prefering ColumnWidths and RowHeights over columnsWidths and
25145 * ThemeWin32Classic.cs: same, and also add support for variable
25146 sized rows (and the +/- expansion icons for related rows).
25148 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25150 * TextBoxBase.cs: Applied Eno's patch from #78660
25152 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25154 * Form.cs (ScaleCore): We don't want to scale our form if it's
25155 state is minimized or maximized, but we still need to scale our
25156 child windows. Also, added try/finally block to ensure layout
25157 gets reset (Fixes #78697)
25159 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25161 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25163 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
25165 * Form.cs: Fixed c+p error and added check to resize form if minimum
25166 size is bigger than current size (Fixes #78709)
25168 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
25170 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25172 2006-06-26 Mike Kestner <mkestner@novell.com>
25174 * ComboBox.cs: only do Keypress handling in the combo when there
25175 are items in the collection. Fixes #78710.
25177 2006-06-26 Chris Toshok <toshok@ximian.com>
25179 * Binding.cs: make this work bi-directionally. also, clear up
25180 other mixups between Push/Pull Data (e.g. we're supposed to pull
25181 data when validating).
25183 * BindingManagerBase.cs: trim some fully qualified collection
25186 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25188 2006-06-23 Chris Toshok <toshok@ximian.com>
25190 * PropertyManager.cs: It appears (according to the unit tests)
25191 that PropertyManager doesn't use
25192 PropertyDescriptor.AddValueChanged to track propery value changes
25193 in its datasource, but uses the same scheme as Binding, where it
25194 looks for a <Property>Changed event and binds to it.
25196 Also, according to the docs, IsSuspended always returns false for
25197 a property manager with a non-null datasource.
25199 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
25201 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25202 need to update the actual DialogResult. (Fixes #78613)
25204 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
25206 * Form.cs (ShowDialog): Release any captures before running the
25207 new message pump (fixes #78680)
25209 2006-06-22 Mike Kestner <mkestner@novell.com>
25211 * ListView.cs: Layout column widths properly in details mode even
25212 if HeaderStyle.None is set. Fixes #78691.
25214 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
25216 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25218 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
25220 * Control.cs (ContainsFocus): Using new driver method to get focused
25221 window, instead of trying to use internal tracking var, which can
25222 recursion issues (Fixes #78685)
25223 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
25224 XplatUIWin32.cs: Added GetFocus method to return focused window
25226 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25228 * ColorDialog.cs: when the mouse button is pressed inside the color
25229 matrix, don't let the cursor move out of it until the button is
25230 released, which is the behavior on windows. Changed 'colours' by
25231 'colors' to use the same word consistently.
25233 2006-06-21 Chris Toshok <toshok@ximian.com>
25235 * DataGrid.cs: add in some basic navigation stuff (navigating to a
25236 child relation and back, using a stack). Also, remove
25237 GetDataSource and the code that calls it - it's not needed. Also,
25238 track CurrencyManager.ListName's removal.
25240 2006-06-21 Chris Toshok <toshok@ximian.com>
25242 * CurrencyManager.cs: push some of the original type checking from
25243 BindingContext.CreateBindingManager to here, and remove some of
25244 the finalType stuff. Need more tests to make sure I've got the
25245 ListName part right, and we might need more in SetDataSource.
25247 * PropertyManager.cs: add a ctor that takes just the datasource,
25248 and no property name. Make SetDataSource work with a null
25249 property_name, and make Current return the data_source if the
25250 property descriptor is null. this makes 'string foo = "hi";
25251 BindingContext[foo].Current' return "hi" as it should.
25253 * RelatedCurrencyManager.cs: make this code more generic - there's
25254 no reason the parent manager has to be CurrencyManager, and
25255 there's no reason to pass the DataRelation. It suffices to use a
25256 BindingManagerBase and PropetyDescriptor.
25258 * RelatedPropertyManager.cs: make a similar change here.
25260 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25261 flower I knew it could be.
25263 2006-06-20 Chris Toshok <toshok@ximian.com>
25265 * PropertyManager.cs: the PropertyChangedHandler is invoked when
25266 data in the source has changed and we need to update the control,
25267 so s/PullData/PushData.
25269 * CurrencyManager.cs: Refresh is meant to update the control from
25270 data in the datasource. So, s/PullData/PushData.
25272 * BindingContext.cs: add more ugliness (we weren't handling the
25273 case where data_source = DataTable and data_member = column_name).
25275 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
25276 from the perspective of the datasource. PullData pulls from the
25277 control, PushData pushes to the control.
25279 2006-06-20 Chris Toshok <toshok@ximian.com>
25281 * BindingContext.cs: rewrite the CreateBindingManager code to
25282 handle navigation paths more or less properly. This could
25283 definitely stand some more work, in particular to push the
25284 recursion up to the toplevel. But that relies on fixes in other
25285 places (System.Data comes to mind).
25287 Also, move to a flat hashtable (and encode the twolevel nature of
25288 the dictionary into the hash key). This lets us implement the
25289 IEnumerable.GetEnumerator method.
25291 * RelatedCurrencyManager.cs: new class. Update our view based on
25292 our relation and our parent CurrencyManager's position.
25294 * CurrencyManager.cs: split out some logic from the ctor into
25295 SetView, so it can be called from the new RelatedCurrencyManager
25298 * RelatedPropertyManager.cs: new class. Update our datasource
25299 based on the position of our parent CurrencyManager.
25301 * PropertyManager.cs: split out some logic from the ctor into
25302 SetDataSource, so it can be called from the new RelatedDataSource
25303 subclass. Also, make the Current getter return the value
25304 of the PropertyDescriptor, not the data_source.
25306 * Binding.cs: no need to duplicate the string splitting code here.
25308 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
25311 - set_Enabled: OnEnabledChanged is not called if the inherited state
25312 of the control is not altered, even though we might be changing the
25313 internal state of the control (#78458)
25314 - set_Enabled: (Re)Moved the enabling/disabling of the window to
25315 OnEnabledChanged, to allow easy altering of any child window state
25316 - OnEnabledChanged: Added code to enable/disable driver window state
25317 - OnParentEnabledChanged: Instead of firing the event, call
25318 OnEnabledChanged, which will fire the event and also a) set driver
25319 window state and pass the enabled state to any grandchildren (#78458)
25321 2006-06-19 Jackson Harper <jackson@ximian.com>
25323 * InternalWindowManager.cs: We don't set the cursor explicitly
25324 thats done via the response to NCHITTESTs.
25325 - Don't need to adjust for titlebar heights anymore, the
25326 coordinates are coming in the correct coordinates now (see peters
25330 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
25332 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25333 being translated relative to whole window, instead of client window.
25334 That caused broken offsets on mouseclick (and caused gas for our
25335 InternalWindowManager)
25337 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
25340 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25341 - Undo(): Added replay of cursor move on DeleteChars action; added
25342 calling Undo() again if a recorded cursor move is invalid (to
25343 ensure that some action is performed on Undo)
25344 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25346 2006-06-16 Jackson Harper <jackson@ximian.com>
25348 * MdiClient.cs: Instead of just sizing maximized windows when
25349 there is a resize we also have to adjust the Y of minimized
25350 windows, so they stay pinned to the bottom of the mdi container.
25351 - Eliminate separate tracking of the active control, we can just
25352 get this from the controls collection.
25353 - Paint the decorations for the newly activated titlebar so we get
25355 * InternalWindowManager.cs:
25356 * ThemeWin32Classic.cs: Minimized windows get all three buttons
25357 even if they are a tool window.
25359 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
25361 * TextControl.cs (Undo): Handle non-existent cursor locations in the
25362 undo buffer, these can happen when text was deleted and the cursor
25363 was recorded first. Since we will also have a recorded cursor
25364 after the delete this is not an issue. (Fixes #78651)
25366 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
25368 * AccessibleObject.cs: Remove dependence on Control.is_selected;
25369 instead properly track control states internally (allows us to
25370 remove is_selected from Control)
25372 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25374 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25375 whose width is not a multiple of 8.
25377 2006-06-13 Jackson Harper <jackson@ximian.com>
25379 * MdiClient.cs: Only maximize the next child if the current one
25382 2006-06-13 Chris Toshok <toshok@ximian.com>
25384 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25385 modified. Also, guard against grid or grid_drawing being null in
25388 * DataGrid.cs: Reformat tons of getters/setters. In the
25389 DataMember setter, just call SetNewDataSource instead of
25390 duplicating some of its functionality. In SetNewDataSource, don't
25391 check ListManager for null, since the property getter creates the
25394 * DataGridTableStyle.cs: don't set TableStyle or call
25395 SetDataGridInternal on the column here, it's done in
25396 GridColumnStylesCollection.Add.
25398 * GridColumnStylesCollection.cs: fix all the explicit interface
25399 implementations to just call our methods. Nuke AddInternal() and
25400 move the body of it to Add(). Also, add a call to
25401 column.SetDataGridInternal to Add().
25403 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25404 base()+duplicate code. Also, use the Format property instead of
25405 format to generate an Invalidate ala MS. Lastly, create the
25406 textbox here, unconditionally.
25407 (set_Format): call Invalidate.
25408 (get_TextBox): no need to call EnsureTextBox.
25409 (Commit): remove the message box.
25410 (Edit) remove the call to EnsureTextBox.
25411 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25412 (EnterNullValue): no need to check textbox for null.
25413 (HideEditBox): no need to check textbox for null.
25414 (SetDataGridInColumn): add the textbox to the grid's controls.
25415 (EnsureTextBox): nuke.
25417 2006-06-13 Jackson Harper <jackson@ximian.com>
25419 * MdiWindowManager.cs: Hook up to the maximized menus paint event
25420 and redraw the buttons when needed. Unhook when the window is
25422 * MainMenu.cs: Add an internal Paint event, the mdi window manager
25423 needs this so that it can redraw its buttons when the menu is
25425 * InternalWindowManager.cs:
25426 * Form.cs: The method order has changed for DrawMaximizedButtons,
25427 so that it can be a PaintEventHandler.
25429 2006-06-13 Jackson Harper <jackson@ximian.com>
25431 * MdiClient.cs: When we close a maximized mdi window, the next mdi
25432 window is activated and maximized, even if it wasn't before.
25433 - When a new window is activated repaint the decorations of the
25434 old one, so that it no longer has the Active "look" (the blue
25436 * InternalWindowManager.cs: Open up CreateButtons to base classes
25437 so they can recreate the buttons on state changes.
25438 - If a window is maximized give it all three buttons
25439 * MdiWindowManager.cs: Create the titlebar buttons when the state
25440 is changed, this is needed because a toolwindow will not have all
25441 three buttons until it is maximized.
25443 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
25445 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25448 2006-06-12 Jackson Harper <jackson@ximian.com>
25450 * KeysConverter.cs: Make sure we handle the Ctrl special case
25451 if its the only key.
25453 2006-06-12 Jackson Harper <jackson@ximian.com>
25455 * Theme.cs: Add a method to get the size of a managed window
25457 * InternalWindowManager.cs: Remove the ButtonSize property, this
25458 should be retrieved from the theme.
25459 * MdiWindowManager.cs: Get the button size from the theme
25460 * ThemeWin32Classic.cs: Make the method to get the managed window
25461 titlebar button size public.
25462 - Handle the different button sizes of maximized toolwindows
25463 (should match any maximized window).
25464 - Get the titlebar height from the theme, not the WM (which gets
25465 it from the theme).
25467 2006-06-12 Jackson Harper <jackson@ximian.com>
25469 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25470 event down to the mdi window manager.
25471 - Expose some extra stuff to base classes
25472 - Make sure to end the Capture on an NC Mouse up, so that we can
25473 get double clicks properly, and the sizing doens't stick.
25474 - When doing PointToClient contain it in the workable desktop
25475 area, this prevents windows from changing size when the cursor is
25476 pulled outside of the working area while sizing.
25477 * MdiWindowManager.cs: When we get a double click maximize the
25479 - Reset the cursor after handling mode changes.
25481 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
25483 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
25484 current desktop, instead of just assuming a 0, 0 origin. This
25485 is needed for our internal window manager, to know the top
25486 margin of the desktop
25488 2006-06-12 Chris Toshok <toshok@ximian.com>
25490 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25491 we need this to get rid of the selected background in the bool
25493 (CancelEditing): move the ConcedeFocus call to above the Abort
25494 call. Also, set is_changing to false and invalidate the row
25495 header if we were changing before.
25496 (ProcessKeyPreviewInternal): remove, since noone outside this
25497 class calls it anymore. Roll the code into ProcessKeyPreview.
25498 (EndEdit): remove the internal version.
25499 (InvalidateCurrentRowHeader): make private.
25501 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
25502 Keys.Escape handling (and with it the last call to
25503 DataGrid.EndEdit from outside the class.)
25506 2006-06-12 Chris Toshok <toshok@ximian.com>
25508 * DataGridTextBox.cs (.ctor): isedit defaults to false.
25509 (OnKeyPress): set isedit to true.
25510 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
25511 already handled by the grid.
25513 * DataGrid.cs (set_CurrentCell): more work here. it's still not
25515 (set_DataSource): SetDataSource always returns true, so stop
25516 putting it in an if statement.
25517 (EndEdit): get rid of some {}'s
25518 (ProcessGridKey): return true in case Keys.Escape.
25519 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25520 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25521 PositionChanged, stopped connecting to CurrentChanged.
25522 (GetDataSource): simplify this a bunch.
25523 (SetDataSource): change return type from bool to void.
25524 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25525 to this, and make sure we don't set ListManager.Position inside
25527 (OnListManagerItemChanged): if we're passed an actual index,
25530 * CurrencyManager.cs (set_Position): don't call PullData here.
25532 2006-06-09 Jackson Harper <jackson@ximian.com>
25534 * TreeNode.cs: Recalculate the visible order before doing the
25535 Expand/Collapse Below calls, because those calls generate an
25537 - Reduce calls to the TreeView property, which is mildly expensive
25538 by using a local var.
25539 * Form.cs: Layout the MDI child windows when creating the parent
25541 - Don't use the internal constructor anymore
25542 * MdiClient.cs: use the parent form width/height (if available)
25543 when laying out the child windows, we do this because the
25544 mdiclient isn't docked yet when the initial layout is done.
25545 - Don't need an internal constructor anymore.
25547 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25549 * FileDialog.cs: handle access errors when trying to create a folder
25550 or changing to a directory. No need to initialize out parameters.
25552 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25554 * FileDialog.cs: Append a number when creating a new folder if the
25555 folder already exists (use parenthesis instead of square brackets)
25557 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25560 - Disabled registry support for windows and added better registry
25561 error checking for other systems (need to investigate why it
25562 works perfectly on my system)
25563 - If a folder already exist show an error MessageBox instead of
25564 trying to create an indexed name.
25565 - Fixed a non intentional typo.
25567 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25569 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25571 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25573 * FileDialog.cs: When creating a new folder don't crash if the
25574 folder already exists.
25576 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25578 * FileDialog.cs: Allmost a complete rewrite.
25579 - added a "virtual" file system that handles the differences
25580 between unix and windows file systems (especially the directory
25581 structure). Moved most of the directory and file handling code
25583 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25584 UnixFileSystem and FSEntry.
25585 - Recently used folder/directory, size, location and used file names
25586 (file name ComboBox) are now stored in the registry and get read
25587 before the dialog shows up (fixes part 6 of bug #78446).
25588 - Creation of new folders/directories is now possible (context menu
25589 or ToolBar). Added TextEntryDialog for this that fills in the gap
25590 until ListView.LabelEdit works.
25591 - Fixed cursor handling (bug #78527) and focus handling for
25593 - Various "Search in" ComboBox enhancements. The content of the
25594 dropdown listbox now almost matches ms.
25595 - Changed the behaviour when the user switches to SpecialFolder
25596 Recent to show the ListView in View.Details.
25597 - Beside using the ToolBar to change the View property of the
25598 file ListView it is now possible to use the context menu too.
25600 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25602 * ComboBox.cs: Don't create a new ObjectCollection when an item
25603 gets inserted. Just insert the item in the existing object_items
25606 2006-06-08 Jackson Harper <jackson@ximian.com>
25608 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25609 that the treeview and root node checks are done also, this fixes a
25610 regression i caused in the unit tests.
25612 2006-06-07 Wade Berrier <wberrier@novell.com>
25614 * RichTextBox.cs: More ISO8859-1 -> unicode
25616 2006-06-07 Mike Kestner <mkestner@novell.com>
25618 * ComboBox.cs : use items to hold highlight/selection so that
25619 collection insertions don't require synchronization.
25621 2006-06-07 Jackson Harper <jackson@ximian.com>
25623 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25624 routine. We now always keep the sized edge at the cursor instead
25625 of computing movement and adjusting rects. There is one buglet
25626 with this method though when the cursor is moved over area that
25627 the window can not expand too (such as the toolbars on the desktop).
25629 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25631 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25632 here. Fixes crash on startup in AlbumSurfer.
25634 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
25636 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25639 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25641 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25642 statement to avoid calling XNextEvent which will block if another thread
25643 took the event that we were expecting. Fixes bug #78605.
25645 2006-06-07 Mike Kestner <mkestner@novell.com>
25647 * ListView.cs : isolated checkbox clicking from the selection logic.
25648 Toggle check state on item doubleclicks. Really fixes #78454 part2.
25650 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25652 * Form.cs: Check that the value passed to Form.DialogResult
25653 is a valid enum value.
25655 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25657 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25658 Computer'. Clicking it in the network view goes to 'My Computer'.
25659 Added CIFS filesystem type. Display the mount point of filesystems.
25660 Avoid duplicate mount points (happens for me with CIFS);
25662 2006-06-06 Jackson Harper <jackson@ximian.com>
25664 * InternalWindowManager.cs: Draw the maximized windows buttons
25667 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25669 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25670 all other dialogs. Fixes bug #78585.
25672 2006-06-06 Mike Kestner <mkestner@novell.com>
25674 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25675 Only invalidate checkbox on checkstate changes to avoid flicker.
25676 * ListBox.cs : avoid unselect/select when clicking selected item.
25677 avoid reselection flicker for already multiselected items.
25680 2006-06-06 Jackson Harper <jackson@ximian.com>
25682 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25683 the parent form so that the menu is removed if needed.
25685 2006-06-06 Mike Kestner <mkestner@novell.com>
25687 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
25688 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
25690 2006-06-06 Mike Kestner <mkestner@novell.com>
25692 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
25695 2006-06-06 Jackson Harper <jackson@ximian.com>
25697 * Control.cs: Use the property (instead of the field) to get the
25698 default cursor so it is instantiated correctly.
25699 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25700 resizes so we need to manually repaint the window decorations here.
25701 - Set the titlebar button locations as soon as they are created,
25702 otherwise they are not set correctly on win32.
25704 2006-06-06 Chris Toshok <toshok@ximian.com>
25706 * CurrencyManager.cs (set_Position): call PullData before
25708 (AddNew): after calling IBindingList.AddNew, update our
25709 listposition, and call OnCurrentChanged/OnPositionChanged (without
25711 (OnCurrentChanged): remove the call to PullData from here.
25712 (OnItemChanged): remove the call to PushData from here.
25713 (OnPositionChanged): change the test from == null to != null to
25714 match the other methods.
25715 (ListChangedHandler): the grossest part of the patch. Implement
25716 this such that it passes the unit tests in CurrencyManagerTest and
25717 the output more or less matches that of MS's implementation.
25719 2006-06-06 Mike Kestner <mkestner@novell.com>
25721 * ListView.cs : only update check state on single click.
25722 * ThemeWin32Classic.cs : fix focus drawing for details view without
25723 fullrowselect. Fixes #78454.
25724 * XplatUIX11.cs : fix for double click emission.
25726 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
25728 * PropertyGridView.cs : Applied Atsushi's patch to fix
25729 font dialog bug (#78197).
25731 2006-06-05 Jackson Harper <jackson@ximian.com>
25733 * TreeNode.cs: Compute the next node for expanding/collapsing
25734 correctly. We now factor in nodes without a NextNode
25735 correctly. (Fixes somes cases in nunit-gui).
25736 * InternalWindowManager.cs: Set the bounds when updating the
25737 virtual position of a tool window.
25739 2006-06-05 Chris Toshok <toshok@ximian.com>
25741 * DataGrid.cs: rename cached_currencymgr to list_manager.
25742 (set_CurrentCell): move SetCurrentCell code here, and clean it up
25744 (CurrentRow, CurrentColumn): single accessors so we can make the
25745 cursor movement code a lot easier to understand.
25746 (CurrentRowIndex): implement this in terms of CurrentRow.
25747 (BeginEdit): clean this up a bit.
25748 (CancelEditing): sort out the is_editing/is_changing/is_adding
25750 (EndEdit): minor changes.
25751 (OnKeyDown): add a comment about a (most likely) unnecessary
25753 (OnMouseDown): cancel editing when we click on a row header. And
25754 use the CurrentRow setter, not CurrentCell.
25755 (ProcessDialogKey): directly call ProcessGridKey.
25756 (UpdateSelectionAfterCursorMove): factor out this common block of
25757 code (it's used everywhere that we move the cursor by updating row
25759 (ProcessGridKey): pretty substantial overhaul. Use the
25760 CurrentRow/CurrentColumn properties to make the code a lot more
25761 readable. Only use the CurrentCell property when we have to
25762 modify both row and column at once. Tab behavior is still broken,
25763 and Delete is untested.
25764 (Select): if we have no selected rows, set selection_start to
25766 (EditCurrentCell): rename EditCell this. It was only ever invoked
25767 with CurrentCell as the arg, so drop the arg and rename it.
25769 * DataGridColumnStyle.cs: clean up the constructors a little, and
25770 drop CommonConstructor().
25772 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25773 actually get notified when the user hits it.
25774 (ProcessKeyMessage): *substantially* simplify this method.
25775 There's no reason (that I can see) for the textbox to be making
25776 calls into the datagrid at all. Remove all of them but the ones
25777 for Enter handling. those will take some more work.
25779 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25780 calling HideEditBox.
25781 (HideEditBox): if we have an active textbox, render it invisible
25782 without causing a re-layout of the datagrid.
25784 2006-06-05 Mike Kestner <mkestner@novell.com>
25786 * ListView.cs : fix NRE crasher when focuseditem is cleared by
25787 collection changes by resetting it to Items[0]. Fixes #78587.
25789 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25791 * MessageBox.cs: if the height of the text is larger than the icon_size,
25792 use that. Fixes bug #78575.
25794 2006-06-05 Jackson Harper <jackson@ximian.com>
25796 * TreeView.cs: Fix line drawing when scrolling. To do this each
25797 node is basically responsible for drawing its entire horizontal
25798 area. When drawing a node it draws its parent node lines if
25800 - Adjust the clip area to the viewport rectangle
25801 - Fix Left/Right key handling to match MS. (It expand/collapses
25802 and moves to parents/first child but does not move selection to
25804 - Fix SetTop to work with new bound calculation code
25805 - When scrollbars are no longer needed we need to reset scrolling
25806 vars and recalculate the visible order so the redraw is correct
25807 * TreeNode.cs: We can't expand/collapse nodes with no children.
25809 2006-06-03 John Luke <john.luke@gmail.com>
25811 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25812 so the colors work without dev packages
25814 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
25817 - Select: Implemented to just use activate. Seems to match MS
25818 behaviour closest. Documented to only do actual control walking
25819 based on it's parameters if in a container control so I moved
25821 - Removed selection check logic from our internal Select() method
25822 * ContainerControl.cs:
25823 - Select: Moved selection logic from Control here, since MS documents
25824 that containers obey the bool arguments. No longer calling base
25826 2006-06-02 Jackson Harper <jackson@ximian.com>
25828 * TreeView.cs: If the selected node isn't changed when we get
25829 focus update the previously selected node so that we see the
25832 2006-06-02 Mike Kestner <mkestner@novell.com>
25834 * ComboBox.cs: restructure grab and general mouse event handling.
25835 Make the composite control raise mouse events like it was a single
25836 control for leaves/enters/motion/up/down events. fix dropdown list
25837 coordinate mangling and refactor it into the scrollbar subclass to
25838 reduce code duplication. Fixes #78282 #78361 and #78457.
25840 2006-06-02 Mike Kestner <mkestner@novell.com>
25842 * ScrollBar.cs: remove Capture setting/clearing, as it happens
25843 automatically in the Control.WndProc.
25845 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25847 * FileDialog.cs: fix crash when running SharpChess, which sets the
25848 FilterIndex to 2 with only one Filter.
25850 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25852 * ToolBar.cs: add SizeSpecified property.
25853 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25854 try to figure out our real size, otherwise fallback to what the
25857 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25859 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25860 * Control.cs (WndProc): MS always calls the DefWndProc to pass
25863 2006-06-01 Mike Kestner <mkestner@novell.com>
25865 * ListView.cs: revamp the focus management in ListView. It still
25866 causes churn of LostFocus/GotFocus emissions on clicks, but it's
25867 better than not handling focus at all. Will revisit when pdb feels
25868 the general focus handling is solid. Fixes #78526.
25870 2006-06-01 Jackson Harper <jackson@ximian.com>
25872 * TreeView.cs: Set the default border style in the constructor.
25873 - Move painting to use OnPaintInternal instead of capturing
25874 WM_PAINT, this is the correct way of doing things
25875 - UpdateBelow shouldn't invalidate the scrollbar area
25876 - Cap the top on update below in case the node was above the top
25877 of the viewport rectangle.
25878 - ExpandBelow and Collapse below need to obey Begin/End Update.
25879 * TreeNode.cs: Make is_expanded internal so the treenode
25880 collection can change it without firing the whole event chain.
25881 * TreeNodeCollection.cs: When clearing all the child nodes make
25882 sure to recalc the visible order.
25883 - Improve algo for remove the top node
25885 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25887 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25888 SendMessage directly calling window procedures, which in turn might
25891 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25893 * Control.cs: Don't handle WM_SETFOCUS if the same window already
25894 has focus (works around X11 sending a FocusIn after our SetFocus)
25895 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25897 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
25899 * Mime.cs: Fix for the NET_2_0 build.
25900 NameValueCollection needs StringComparer now.
25902 2006-05-31 Chris Toshok <toshok@ximian.com>
25904 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25905 return (via an out parameter) the starting X of the column.
25906 (UpdateVisibleColumn): track change to FromPixelToColumn.
25907 (HitTest): add a ColumnResize case here.
25908 (DrawResizeLine): new function, probably poorly named.
25910 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
25911 only need to keep one reference.
25912 (set_ListManager): same.
25913 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25914 Also, add support for HitTestType.ColumnResize.
25915 (OnMouseMove): add column resize behavior here, and change the
25916 cursor to the correct one as we move around the datagrid.
25917 (OnMouseUp): terminate the column resize if we're resizing.
25918 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25919 for the current cell.
25920 (ConnectListManagerEvents): use cached_currencymgr.
25921 (DisconnectListManagerEvents): fill this in, using
25922 cached_currencymgr.
25923 (SetCurrentCell): remove cached_currencymgr_events handling.
25924 (SetDataMember): only call DisconnectListManagerEvents if
25925 cached_currencymgr is != null.
25926 (SetDataSource): same.
25927 (OnListManagerCurrentChanged): cached_currencymgr_events ->
25928 cached_currencymgr.
25930 2006-05-31 Jackson Harper <jackson@ximian.com>
25932 * BindingManagerBase.cs: Remove somedebug code that creeped into
25934 * TreeNode.cs: We get the indent level dynamically right now, so
25935 don't track it as a member.
25936 * TreeNodeCollection.cs: Make sure all nodes added to the list
25937 have parents, treeviews/topnodes setup properly.
25938 - Don't attempt to track indent level.
25940 2006-05-30 Jackson Harper <jackson@ximian.com>
25942 * BindingContext.cs: Create the currency manager tables here.
25943 This allows us to more easily create null tables (when bad data
25944 members are used), and more easily create related currency
25946 * CurrencyManager.cs: All the table creation stuff is done by the
25947 binding context now.
25948 - Current should throw an exception if listposition is -1.
25949 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25952 2006-05-30 Mike Kestner <mkestner@novell.com>
25954 * ListView.cs: allow reexpansion of zero-width column headers.
25957 2006-05-28 Chris Toshok <toshok@ximian.com>
25959 * CurrencyManager.cs (get_Current): after the late binding
25960 listposition = -1 fix, we need to guard against it here and return
25961 null, otherwise we raise an exception (which is swallowed
25962 elsewhere, and breaks datagrid databinding.)
25964 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25966 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25967 than WM_SYSKEY, don't throw if get something unexpected (#78507)
25969 2006-05-26 Jackson Harper <jackson@ximian.com>
25972 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25973 values, it's faster and it's all we care about (we don't care if
25974 the names aren't equal).
25975 * KeyboardLayouts.cs: Eliminate some dead code.
25977 * X11Keyboard.cs: Lazy init keyboard detection.
25978 - Cleanup access modifiers a little.
25980 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25982 * XplatUIX11.cs: Once again, attempting to get layout just right.
25984 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25986 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25987 the sizes of each link section, that will result in sizes that
25988 match DrawString's layout (Fixes #78391)
25990 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
25992 * FileDialog.cs: If AddExtension property is true autocomplete the
25993 extensions in SaveFileDialog correctly. Fixes bug #78453.
25994 Set MyNetwork and MyComputer to "C:\" for windows. This should
25995 fix part 8 of bug #78446 for now.
25997 2006-05-26 Chris Toshok <toshok@ximian.com>
25999 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
26000 invalidate the current row header if we need to, but presumably
26001 we'll invalidate the row corrsponding to the bounds or
26003 (GridHScrolled): switch back to this method, as it's part of the
26004 public api. *sigh*.
26005 (GridVScrolled): same.
26006 (OnMouseWheel): hack up something that more or less works. Call
26007 GridHScrolled/GridVScrolled directly, instead of duplicating much
26008 of their code here.
26009 (EnsureCellVisibility): reinstate a bunch of this code, since we
26010 can't just set the scrollbar Value and expect to do all the work
26011 in the ValueChanged handler. Also, Call Update() after scrolling
26012 in one direction so the other XplatX11.ScrollWindow call has the
26013 proper stuff in the proper places.
26014 (EditCell): set is_editing to true before calling .Edit.
26016 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26017 don't bother comparing first.
26018 (OnKeyPress): call grid.ColumnStartedEditing before calling
26019 base.OnKeyPress. this will set is_changing and invalidate the row
26020 header if necessary.
26021 (ProcessKeyMessage): for WM_CHAR messages, call
26022 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
26025 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26026 it's done in the DataGrid.
26027 (NextState): call grid.ColumnStartedEditing, which takes care of
26028 invalidating the row header (and setting is_changing).
26030 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26031 here. it's done in the DataGrid.
26033 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26035 * Control.cs: allow changing the cursor when the mouse position is
26036 out of bounds but Capture is set.
26037 * LinkLabel.cs: handle the case when the mouse button is pressed on the
26038 linklabel but released somewhere else.
26040 2006-05-25 Jackson Harper <jackson@ximian.com>
26042 * TreeView.cs: When we get focus if there is no selected node make
26044 - Remove some uneeded setup code from Draw.
26045 * TreeNodeCollection.cs: If the tree doesn't have a top node when
26046 a new node is inserted make the new node the top.
26048 * Timer.cs: Use Utc time so that no local time zone stuff needs to
26049 be used (should be faster).
26051 2006-05-25 Chris Toshok <toshok@ximian.com>
26053 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26054 problem with the last commit.
26056 2006-05-25 Chris Toshok <toshok@ximian.com>
26058 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26059 need the invalidate call here, while scrolling right-to-left via
26060 the left arrow key (i.e. moving the editing cell while scrolling).
26062 * DataGrid.cs (.ctor): remove the initialization of
26063 ctrl_pressed/shift_pressed. We no longer track them using key
26064 up/down handlers, but by using Control.ModifierKeys. Also, switch
26065 to using ValueChanged handlers on the scrollbars instead of
26066 Scrolled event handlers. This simplifies a bunch of the scrolling
26068 (GridHValueChanged): rename from GridHScrolled, and change it to
26069 work with the new event args.
26070 (GridVValueChanged): same.
26071 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26072 (OnMouseWheel): actually scroll the datagrid. Don't change the
26074 (ProcessGridKey): correct all the keyboard navigation stuff I
26075 could find. Ctrl up/down/left/right/home/end work now.
26076 (EnsureCellVisibility): correct method name spelling. Also,
26077 simplify this a touch by not explicitly calling the
26078 ScrollToRow/ScrollToColumnInPixels methods. We just set the
26080 (OnKeyUpDG): no need for this method now.
26082 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26084 * LinkLabel.cs: display the OverrideCursor when hovering the label.
26087 2006-05-25 Chris Toshok <toshok@ximian.com>
26089 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26092 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26094 * Application.cs: Moved setting of is_modal and closing to before
26095 we create the control, to allow the event handlers called as a
26096 result of creation affect closing. Also removed Gonzalo's previous
26097 change to setting DialogResult, the behaviour has been moved to
26100 - ShowDialog(): Removed explicit creation of the form, let RunLoop
26102 - ShowDialog(): If no dialog result is set, we need to return Cancel
26103 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26104 the close is cancelled
26106 2006-05-25 Jackson Harper <jackson@ximian.com>
26108 * StatusBar.cs: We only need to update the sizes of the other
26109 panels when we have auto size contents. Also we are only updating
26110 the contents of the panel, not the borders, so compensate for the
26111 border width (TODO: get this width from the theme somehow).
26112 * TreeView.cs: Scrollable is true by default
26113 - Use invalidate instead of refresh where needed
26114 - Factor the scrollable value into scrollbar updating
26115 - Update the scrollbars if the Scrollable property is altered
26116 - Update the selected node if its ImageIndex is changed
26117 - Handle null nodes in UpdateNode (mainly so we don't have to
26118 check if selected is null when updating it
26119 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26120 are factored into the visible count
26121 - Use VisibleCount for clarity in the code
26122 - When the font is changed we need to recurse through all the
26123 nodes and invalidate their sizes
26125 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26127 * Application.cs: set the DialogResult to fixed when the main form is
26128 hidden or destroyed while being modal.
26130 2006-05-25 Miguel de Icaza <miguel@novell.com>
26132 * Theme.cs: Use Tangoified messagebox icons.
26134 (GetSizedResourceImage): Also cope with width = 0 and do not
26135 trigger a warning in that case (0 means "give me your icon from
26136 the resouce, no special size needed).
26138 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26140 * Application.cs: Leave runloop if the the main modal form is
26141 hidden (fixes #78484)
26143 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
26145 * BindingContext.cs : reject null datasource in Contains() and
26147 * CurrencyManager.cs : check data_member validity when data_source
26148 is dataset. When it is late binding, the initial position is -1.
26150 2006-05-24 Jackson Harper <jackson@ximian.com>
26152 * TreeNodeCollection.cs: Dont't recalculate the visible order on
26153 inserted nodes that aren't visible. This changes the
26154 max_visible_order which confuses scrollbar settings.
26155 - Use the enumerator to get the prev node instead of duplicating
26157 * TreeView.cs: Use new method for setting scrollbar values
26158 - Don't set the bounds every time the scrollbar is updated
26159 - When updating below the root node use an invalidate instead of a
26160 refresh to prevent the child controls (scrollbars) from being
26161 refreshed. (UpdateBelow still needs to be reworked anyways).
26162 - Reenable SetBottom now that visible orders are set correctly,
26163 added some debug code incase we ever get bad values there again.
26164 - Set the scrollbar max to 2 less then the max value, this
26165 compensates for the max value being one above the node count, and
26166 for scrollbars adding one extra "notch".
26167 - When drawing image nodes if there is an imagelist we draw the
26168 first image in the list if the supplied image index is out of the
26169 image list's bounds.
26171 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26173 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
26174 we receive a size change from the WM (Fixes #78503)
26176 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26178 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
26179 rectangle (Fixes #78501)
26181 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
26184 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
26186 - Fixed MouseMove to no longer switch pressed state unless the left
26187 mouse button is pressed. Atsushi provided the original patch (#78485)
26189 2006-05-24 Jackson Harper <jackson@ximian.com>
26191 * ScrollBar.cs: New internal methods that allow us to change a
26192 couple values on the scrollbar (the most common case is maximum
26193 and large change) without getting multiple invalidates.
26195 2006-05-24 Chris Toshok <toshok@ximian.com>
26197 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26198 (Edit): save off the original state in oldState, and set
26199 grid.is_editing to true.
26200 (OnKeyDown): abort editing if escape is pressed. also, call
26201 NextState if space is pressed.
26202 (OnMouseDown): call NextState.
26203 (NextState): factor out shared code from OnKeyDown and OnMouseDown
26204 here. Also, only invalidate the row header once (on the initial
26205 is_changing switch) to save on redraws.
26207 2006-05-24 Chris Toshok <toshok@ximian.com>
26209 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26210 if the value in the cell is different than it was before. This
26211 keeps us from triggering a layout when we move around a datarid
26212 with a highlighted cell.
26213 (Edit): suspend layout when creating/positining the text box, and
26214 resume passing false so we don't ever actually re-layout.
26215 (ReleaseHostedControl): same.
26216 (EnsureTextBox): reformat slightly, and set WordWrap to false.
26218 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26219 control-key sequences should go to the datagrid - remove that
26220 lock. Also, modify the conditions under which we move between
26221 cells when moving the cursor within a cell, and remove the "this"
26222 and "base" from field accesses. We weren't even consistent, given
26223 they all were in the base class.
26225 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
26227 * Binding.cs : (.ctor)
26228 An obvious NRE fix for BindingTest.CtorNullTest().
26230 2006-05-23 Chris Toshok <toshok@ximian.com>
26232 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26233 them between lines. This fixes some quirks editing cells in the
26236 2006-05-23 Jackson Harper <jackson@ximian.com>
26238 * TreeView.cs: Use begin/end update when doing expand/collapse all
26239 so that we don't get flicker on the scrollbar.
26241 2006-05-23 Jackson Harper <jackson@ximian.com>
26243 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
26244 treenode calculations to be independant of the painting code. To
26245 do this nodes track a visible order which is calculated by the
26247 - Call new methods for expanding/collapsing nodes. These methods
26248 use scrollwindow so we don't have to update everything below the
26250 * TreeView.cs: Refactored drawing and scrolling code. We don't
26251 need to update nodes when drawing anymore or calculate scrollbar
26253 - Added new methods for expanding/collapsing nodes. These methods
26254 use ScrollWindow so as to not have to redraw all the nodes below.
26255 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26256 we add/remove nodes or sort.
26257 - Handle removing the selected and the top node properly.
26259 2006-05-23 Chris Toshok <toshok@ximian.com>
26261 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26262 maybe this should actually happen in the datagrid code?
26263 (EndEdit): no need to invalidate anything, given that
26264 ReleaseHostedControl causes the datagrid to relayout, which
26265 invalidates everything anyway.
26267 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26268 in SetCurrentCell).
26269 (set_SelectionBackColor): call InvalidateSelection instead of
26271 (set_SelectionForeColor): same.
26272 (BeginEdit): Flesh this out a bit.
26273 (CancelEditing): only do any of this if we're editing/adding.
26275 (OnMouseDown): there's no need to cancel editing here, it's done
26277 (SetCurrentCell): only invalidate the current row header if it's a
26278 different row than the new one.
26279 (ShiftSelection): fix this to work like MS does.
26280 (ResetSelection): factor out the invalidation of selected_rows to
26281 InvalidateSelection.
26282 (SetDataSource): cancel any editing that's going on.
26284 * DataGridColumnStyle.cs
26285 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26286 call the non-interface version.
26288 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26289 header rectangle with the clip rectangle so we don't redraw the
26290 entire header for just a small area. Gets rid of the last flicker
26291 when horizontally scrolling.
26292 (DataGridPaintRow): same.
26294 2006-05-23 Mike Kestner <mkestner@novell.com>
26296 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26297 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
26298 poorly placed checkbox on the MS control. Fixes Alex's unfiled
26299 Critical bug report.
26301 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
26303 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26304 and this fixes #78493
26306 2006-05-23 Miguel de Icaza <miguel@novell.com>
26308 * Theme.cs (GetSizedResourceImage): Scale images if the proper
26311 * FileDialog.cs: Do not change the background for the side bar as
26312 it wont work nicely with the theme, and also reduces the artifacts
26313 in rendering the icons (which I want to fix too).
26315 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26316 resources, not resgen resources.
26318 (PlatformDefaultHandler): Pull images using the new API.
26320 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
26322 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26323 a reference to the hwnd and will not remove it unless there are
26324 no pending exposures (fixes #78341)
26325 * XplatUI.cs: Improved debug
26327 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
26329 * MenuAPI.cs : don't handle OnClick event when it was not the left
26330 button. Fixed bug #78487.
26332 2006-05-23 Mike Kestner <mkestner@novell.com>
26334 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26335 prefer submenus to the top menu for item lookup, to avoid popping down
26338 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
26340 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26341 Graphics.FillRectangle as the visual results are really bad (even
26342 on win). We now draw perfect arrows (and perfect shadows when the
26343 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26344 Pen.DashPattern to draw the dots of each line.
26346 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
26348 * FileDialog.cs: Update the filename combobox when navigating through
26349 the ListView with the cursor keys. Fixes part 7 of bug #78446.
26351 2006-05-22 Mike Kestner <mkestner@novell.com>
26353 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26356 2006-05-22 Mike Kestner <mkestner@novell.com>
26358 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26359 requests. Fix a misspelled parameter and a copy paste exception error
26362 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
26364 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26365 to get the same width/height (5/13) on X11 as the default font has on
26366 win32. This means that our DefaultFont emSize is smaller than the
26367 the MS SWF equivalent (even thought the width/height stays the same)
26369 2006-05-20 Jackson Harper <jackson@ximian.com>
26372 * MdiWindowManager.cs:
26373 * InternalWindowManager.cs: Make sure to use the border width from
26376 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
26378 * PrintDialog.cs: Implements printer details
26380 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
26382 * FileDialog.cs: Added focus handling for PopupButtonPanel.
26383 Fixes part 1 and 2 of bug #78446
26385 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
26387 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26388 instead of sticking to the first ever calculated value
26390 2006-05-19 Mike Kestner <mkestner@novell.com>
26392 * ComboBox.cs: fix mouse motion selection to use MousePosition and
26393 PointToClient, since Capture is set. Fixes #78344.
26395 2006-05-19 Mike Kestner <mkestner@novell.com>
26397 * ListView.cs: match MS behavior in Details view where items are not
26398 drawn if Columns.Count == 0.
26399 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26400 Use a separate pen to draw the check, since changing the width affects
26401 the box as well. Fixes #78454.
26403 2006-05-18 Miguel de Icaza <miguel@novell.com>
26405 * ListView.cs: ArgumentOutOfRangeException, single versions of the
26406 exception should throw the name of the invalid argument.
26408 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26409 there are no files listed.
26411 2006-05-18 Jackson Harper <jackson@ximian.com>
26413 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26416 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26418 * Control.cs: Brought back our old UpdateZOrder method as a private
26419 function and switched our calls from UpdateZOrder to the new one.
26420 This fixes the Paint.Net canvas disappearing bug.
26422 2006-05-18 Jackson Harper <jackson@ximian.com>
26425 * ThemeWin32Classic.cs:
26426 * InternalWindowManager.cs: Move the drawing into the theme,
26427 expose everything the theme should need from the window manager.
26429 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26431 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
26432 from the call to NativeWindow to avoid walking up the parent chain
26433 further than needed (speeds up setting cursors and avoids setting
26434 the wrong cursor if a parent has another cursor defined)
26435 * Cursor.cs: When loading an icon as cursor, MS uses the center of
26436 the icon as hotspot, not what's contained as hotspot in the icon
26437 file. This fixes the perceived drawing offset seen with Paint.Net
26439 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26442 - Store the calculated rectangle in Hwnd object and use it when
26443 setting the client size
26444 - Force Toolwindows to always be type Dock, to ensure they're on top
26446 2006-05-18 Mike Kestner <mkestner@novell.com>
26448 * ComboBox.cs: first pass at ComboBox rework. Layout is more
26449 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
26450 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
26451 Substantial refactoring to remove confusing nested classes. Coding
26452 standard and Get+Set->property refactorings. Shift to index based
26453 highlighting in ComboListBox instead of constantly using IndexOf and
26454 Items[]. Add invalidations on resize for DropDownList to fix ugliness
26455 in FileDialog growth. Draw borders manually since Simple mode needs
26456 to look like two independent controls. Make listbox border
26457 conditional to DropDownStyle. Improved OwnerDraw support.
26459 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
26461 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
26462 Don't set the disposed graphics to null, so we can throw the "right"
26463 exception if the graphics is reused later (added a flag to avoid
26464 double disposing). Some behaviours are different under 2.0 and are
26465 filled under bug #78448.
26467 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26469 * Control.cs: When double-buffering is enabled, we need to reset
26470 our graphics context between paint calls. Otherwise, any
26471 transformations and other alterations on the context will
26472 become cumulative (#77734)
26474 2006-05-18 Mike Kestner <mkestner@novell.com>
26476 * ListView.cs: do focused item selection like MS on clicks.
26477 Rework focus handling for ItemControl so LostFocus invalidates as
26479 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26480 the ListView ItemControl has focus.
26482 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
26484 * XplatUIX11.cs: If client_window ends up being width or height zero
26485 due to border settings, move it off window inside whole_window (#78433)
26487 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
26489 * Mime.cs: Shrink the mime file cache correctly.
26491 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
26493 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26495 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26497 * XplatUIX11.cs (AddExpose): More sanity checks
26499 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26502 - AddExpose: Don't add expose ranges outside the size of our
26504 - Cast opacity values to Int32 to avoid crashes with certain
26506 - Added disabled code paths that protect against illegal cross-
26507 thread painting (Developers.exe)
26509 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26511 * ProgressBar.cs: Invalidate the control when it's resized
26512 since block size is based on control size. (#78388)
26514 2006-05-16 Miguel de Icaza <miguel@novell.com>
26516 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26517 of setting the incoming argument to the "reset" value, we set the
26518 this.datamember to string.empty (before we were invalidating the
26523 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26525 * Form.cs: Only apply transparency settings after the form
26526 is created. (Fixes #77800)
26528 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26530 * ApplicationContext.cs: Grab the HandleDestroyed event so
26531 we know when to fire OnMainFormClosed
26533 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26535 * Application.cs: Introduced sub-class to allow tracking of
26536 threads and centralized triggering of the event mess for
26537 ThreadExit, AppExit, etc.. (#76156)
26539 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
26542 - Do not return a null icon index value for a mime subclass.
26543 Instead try the main mime type class too.
26544 - Seems that some newer distributions don't have a link to some
26545 gnome default icons anymore. So check the default gnome dir too.
26548 2006-05-16 Jackson Harper <jackson@ximian.com>
26550 * MdiClient.cs: Don't paint the parent background image if we have
26551 our own background image.
26553 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26556 - PerformLayout: Do not shrink space filled by DockStyle.Fill
26557 controls, all filled controls are supposed to overlap (#78080)
26558 - UpdateZOrder is supposed to update the control's z-order in the
26559 parent's z-order chain. Fixed to behave like that
26560 - BringToFront: Removed obsolete code
26561 - SendToBack: Simplyfied
26562 - SetChildIndex: Trigger layout calculations when Z-order changes
26563 since layout is done by z-order
26565 2006-05-16 Chris Toshok <toshok@ximian.com>
26567 [ fixes bug #78410 ]
26568 * DataGrid.cs (set_AlternatingBackColor): use
26569 grid_drawing.InvalidateCells instead of Refresh().
26570 (set_BackColor): call grid_drawing.InvalidateCells.
26571 (set_BackgroundColor): use Invalidate instead of Refresh.
26573 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26574 invalidate the cell area.
26576 2006-05-15 Chris Toshok <toshok@ximian.com>
26578 [ fixes bug #78011 ]
26579 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26580 on to DataGridPaintRow.
26581 (DataGridPaintRow): take a clip argument, and only draw the cells
26582 which intersect it. same with the not_usedarea.
26584 * Theme.cs (DataGridPaintRow) add @clip parameter.
26586 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26587 XplatUI.ScrollWindow.
26588 (ScrollToRow): same.
26590 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26591 with last column which was causing a gray swath to appear with the
26592 XplatUI.ScrollWindow code.
26594 2006-05-15 Chris Toshok <toshok@ximian.com>
26596 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26597 use XplatUI.ScrollWindow.
26598 (VerticalScrollEvent): use XplatUI.ScrollWindow.
26600 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
26602 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26604 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
26606 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26607 file since there are no equivalent X11 cursors
26609 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
26611 * MonthCalendar.cs : DateTimePicker should reflect selected date
26612 on mouse*up*, not mouse*down*. Fixed originally reported part of
26615 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
26617 * TabControl.cs : When argument index is equal or more than tab
26618 count, just ignore. Fixed bug #78395.
26620 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
26622 * Control.cs: Dispose all child controls when control is diposed (#78394)
26624 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
26626 * ColorDialog.cs: Finally it is possible to select the color with
26629 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
26631 * PrintDialog.cs: Fix typo
26633 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
26635 * PrintDialog.cs: PrintDialog is not resizable
26636 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26637 color. Made some ToolBar drawing methods protected virtual.
26639 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
26641 * PrintDialog.cs: Implementation of the PrintDialog
26643 2006-05-12 Chris Toshok <toshok@ximian.com>
26645 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26646 thumb, instead use MoveThumb. This has the side effect of making
26647 most of the other thumb moving machinery use MoveThumb as well.
26648 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26649 need to actually invalidate the rectangle where the new thumb will
26651 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26652 We force an Update() after, so it's not as fast as it could be,
26653 but at least there's zero flicker and no droppings.
26654 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26655 (UpdateThumbPos): add another argument (dirty), which says whether
26656 or not to calculate/add dirty regions which we later invalidate.
26657 For cases where we know we're going to use MoveThumb, we pass
26658 false for this. Otherwise, pass true.
26660 2006-05-12 Jackson Harper <jackson@ximian.com>
26662 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26665 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
26667 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26668 and GetClipRegion methods and UserClipWontExposeParent property.
26669 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26670 overriding UserClipWontExposeParent property, setting to false, since
26671 Win32 handles the required expose messages to draw our clipped parent
26673 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26674 PaintEventStart to set the user clip region if set.
26676 - Now internally tracking the Region for the control since we need to
26677 store it if the handle is not yet created and only set it when it
26678 becomes created. Before setting the region forced handle creation
26679 - Added code to draw the parents underneath a user-clipped region
26680 * Hwnd.cs: Added UserClip property
26682 2006-05-12 Chris Toshok <toshok@ximian.com>
26684 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26685 (set_Maximum): same.
26686 (set_Minimum): same.
26687 (set_SmallChange): same.
26688 (OnMouseUpSB): remove the call to refresh when releasing the
26689 thumb. We shouldn't need it.
26691 2006-05-12 Miguel de Icaza <miguel@novell.com>
26693 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26694 AutoSize set to None, we do not need to relayout everything, we
26695 just need to invalidate the current region.
26697 (Draw): Do not draw the entire ClientArea, just redraw the
26698 clip area being passed.
26700 * MdiClient.cs: Make MdiClient constructor with the Form argument
26703 2006-05-12 Jackson Harper <jackson@ximian.com>
26705 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26706 parents background image, but strangely not their own.
26707 - (DrawStatusBarPanel): Take into account horizontal alignment
26708 when drawing the strings and icons.
26710 2006-05-12 Mike Kestner <mkestner@novell.com>
26712 * ListBox.cs: avoid invalidations for focus when the collection is
26715 2006-05-12 Chris Toshok <toshok@ximian.com>
26717 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26718 invalidate the entire thumb area. Call InvalidateDirty which
26719 limits the redraw to the thumb itself and surrounding pixels.
26721 * XplatUIX11.cs (ScrollWindow): optimize copying.
26723 2006-05-12 Chris Toshok <toshok@ximian.com>
26725 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26726 Figure out the positioning/layout in a single pass instead of
26727 multiple recursive invocations. Speeds up the initial display of
26728 the data grid. Also, make many things private that were
26729 originally public but unused outside this class.
26731 2006-05-11 Jackson Harper <jackson@ximian.com>
26733 * MdiClient.cs: Improved layout code.
26735 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
26737 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26738 not SelectedObject.
26740 2006-05-11 Chris Toshok <toshok@ximian.com>
26742 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26743 union of that will always be {0,0,width,height}.
26745 2006-05-11 Jackson Harper <jackson@ximian.com>
26747 * Form.cs: Match MS's DefaultSize for forms (they must have
26748 changed the size in sp2).
26750 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26752 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26754 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26756 * TextControl.cs : Fixed bug #78109. This incorrect position
26757 comparison caused crash on automatic line split.
26758 * TextBoxBase.cs : reduce duplicate code.
26760 2006-05-10 Jackson Harper <jackson@ximian.com>
26762 * MdiClient.cs: Active form is only sent to the back when using
26763 the Next form functionality, when a form is clicked the current
26764 active shouldn't be sent to the back.
26765 - Layout the mdi windows when the container is first made visible.
26766 * Form.cs: Give the MdiClient a ref to the containing form when we
26769 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26771 * LinkLabel.cs : link_font could be uninitialized, so populate one
26772 before actual use. Fixed bug #78340.
26774 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26776 * XplatUIX11.cs : clipboard format native value is IntPtr.
26779 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26782 - Instead of showing context menus directly we send WM_CONTEXTMENU,
26783 which is passed up the parent chain by DefWndProc
26784 - We now handle WM_CONTEXTMENU to display any menu, or pass it
26785 to DefWndProc (#77956)
26786 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26788 2006-05-10 Jackson Harper <jackson@ximian.com>
26790 * MdiClient.cs: We need to remove the controls from the mdi
26791 collection, when we close the window.
26792 * MdiWindowManager.cs: Special handling of closing mdi windows.
26793 * InternalWindowManager.cs: Make the close method virtual so the
26794 mdi window manager can handle it specially.
26796 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
26799 - Recalculate grid when the data source has changed
26800 - Matches styles provided by user from all data sources types
26801 * DataGridTableStyle.cs: For columns that provided by the user set the
26802 with the preferred value is there was unassigned.
26803 * CurrencyManager.cs: throw OnItemChanged event
26805 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26807 * PictureBox.cs: Don't animate until handle is created. Start animation
26808 when handle is created.
26810 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26812 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26814 * XEventQueue.cs: We don't need to provide the extra info
26816 2006-05-10 Jackson Harper <jackson@ximian.com>
26818 * MdiClient.cs: If the mdi clients parent form has a background
26819 image set, we draw that background image for the mdi area's
26822 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26824 * TextBoxBase.cs: Set IBeam cursor (#78347)
26826 2006-05-10 Mike Kestner <mkestner@novell.com>
26828 * ToolBar.cs: fix some text padding issues with ButtonSize
26829 calculation. Update the default size to match MS documentation.
26830 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26831 button size. Fixes #78296.
26833 2006-05-10 Mike Kestner <mkestner@novell.com>
26835 * ListBox.cs: use is_visible for scrollbar positioning in case the
26836 control isn't on screen yet. Fix off by one with Right vs Width
26837 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26839 2006-05-10 Jackson Harper <jackson@ximian.com>
26841 * X11Dnd.cs: Drop to a control with another control on top of it.
26842 * ToolBar.cs: Work on a copy of the buttons list, so that it can
26843 be modified in click handlers. TODO: Look for similar problems in
26846 2006-05-09 Jackson Harper <jackson@ximian.com>
26848 * Form.cs: Window managers need the old window state when setting
26850 * InternalWindowManager.cs: Allow the base mdi window manager to
26851 handle more of the MDI only stuff (like maximize buttons).
26852 * MdiWindowManager.cs: Fix some snafus in changing the window
26853 state. Add all the menu functionality, for both popup and
26855 * MdiClient.cs: When a new form is selected the currently
26856 activated form is sent to the back, this matches MS.
26857 - Implement a new method to activate the next mdi child window.
26859 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26862 - Added new InternalCapture method to allow controls to prevent
26863 the capture behaviour on the click handlers
26864 - Switched to use InternalCapture
26866 - Using InternalCapture to prevent mouse captures from being released
26867 on mouse button release (Fixes #78100)
26868 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26869 returns Form borders if a caption is present. (Fixes #78310)
26871 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26873 * TreeNode.cs: Changed serialization .ctor to not require every field
26874 to be present. (#78265)
26875 * OwnerDrawPropertyBag.cs: Added serialization .ctor
26877 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
26879 * MimeIcon.cs: for is faster than foreach for strings.
26881 2006-05-05 Mike Kestner <mkestner@novell.com>
26883 * CheckedListBox.cs: update check handling code to not use selected.
26884 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26885 behavior for visual feedback, motion response, shift/ctrl handling,
26886 and properly deal with all 4 selection modes. Updates to bounds
26887 handling logic. Add scroll wheel support. [Fixes #77842]
26889 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26892 - Moved adding of Implicit controls into .ctor. That way, subsequent
26893 creation of the controls will not cause them to think they are
26894 toplevel windows (fixes #78200 header problem)
26895 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26896 - Switched visibility setting of header control to use internal field
26897 to avoid triggering handle creation
26898 - Now checking if handle is created before causing a refresh when items
26899 are added (This makes us now match handle creation time with MS)
26900 * Splitter.cs: Removed loading of private splitter cursor, switched to
26901 Cursors version now that that is loading the right ones
26902 * Cursors.cs: Load proper splitter cursors from resources
26903 * Cursor.cs: Added second method of loading resource cursors for the
26904 VS.Net users amongst us
26906 2006-05-05 Mike Kestner <mkestner@novell.com>
26908 * ListView.cs: give header_control a minimum size based on the
26911 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26913 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26914 window seems to do that with metacity, so set that type. (#78120)
26916 2006-05-05 Mike Kestner <mkestner@novell.com>
26918 * ListViewItem.cs: fix Details mode checkbox layout bug.
26919 * ThemeWin32Classic.cs: draw a ListView column header for unused space
26920 at the end of the header, if it exists. [Fixes for #78200]
26922 2006-05-04 Jackson Harper <jackson@ximian.com>
26924 * MdiClient.cs: Add a helper property to get the container form.
26925 * MdiWindowManager.cs: We have to make sure to use the menu origin
26926 when drawing the icons and buttons, this fixes maximized window
26927 icons/buttons on win32.
26928 * InternalWindowManager.cs: Reset the restore captions when a
26929 window goes from Maximized to Minimized and vice versa. Move the
26930 DrawMaximizedButtons into the MdiWindowManager source, tool
26931 windows can't be maximized. NOTE: This could use a little
26932 refactoring if time ever permits.
26934 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26936 * TextBox.cs: Add MWFCategoryAttributes
26937 * TextBoxBase.cs: Add MWFCategoryAttributes
26938 * Form.cs: Add MWFCategoryAttributes
26940 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26942 * Control.cs: Add MWFCategoryAttributes
26943 * ScrollableControl.cs: Add MWFCategoryAttributes
26945 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
26947 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26948 Divider is true. Fix a little glitch in PropertyToolBar
26951 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
26954 - Dispose: Call base.Dispose, this causes the disposed event
26955 to be fired (and probably other, more important stuff)
26956 - SetVisibleCore: Set is_visible to true after creating the
26957 window so that the window still gets created invisible (if
26958 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26959 to generate a WM_ACTIVE message
26960 * Form.cs: Call Dispose when we want to destroy the window, instead of
26961 just destroying the handle (Dispose will do that for us)
26963 - RootWindow also needs a queue, so we can properly process the
26964 property change events from RootWindow (like Activate)
26965 - Generatic synthetic WM_ACTIVE message when the active window is
26968 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26970 * LinkLabel.cs: Trigger a recalc of our label dimensions when
26973 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26975 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26976 for determining width and height (image might not be assigned if
26977 we're drawing an imagelist)
26979 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26981 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26982 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26984 * Theme.cs: No longer returns hardcoded menu height, instead calls
26986 * Form.cs (OnLoad): Scaling happens before triggering Load events
26989 2006-05-01 Mike Kestner <mkestner@novell.com>
26991 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
26993 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26995 * TextBoxBase.cs: Removed Fixme
26996 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26998 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27001 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27002 the rectangle relative to the parent, considering borders. We
27003 don't really want that.
27004 - ScrollWindow: Fixed warning to be more understandable
27005 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27006 scrollbars and scroll only the visible area
27007 * RichTextBox.cs: Removed debug output
27009 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27011 * NumericUpDown.cs (Text): Just use base
27012 * UpDownBase.cs: Ensure txtView is created before using it
27014 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27016 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27017 casting to IntPtr to avoid 64bit overflow errors
27019 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27022 - AllowDrop: Don't force handle creation.
27023 - CreateHandle: Added call to tell driver if we're allowed to drop
27025 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27027 * FileDialog.cs: Remember the last directory not only for the
27028 current instance but also for new FileDialog instances.
27030 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27032 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27033 broke sending async messages
27035 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27038 - ScrollWindow: Fixed method. We finally generate expose events again
27039 for scrolled areas. This was causing 'garbage' when scrolling
27040 textbox and other controls that used ScrollWindow
27041 - Switched from using the regular queue for paint events to the MS
27042 model of 'generating' paint events when the queue is empty.
27043 We use the new XQueueEvent.Paint subclass to store which windows
27045 - AddExpose now takes the x/y/width/height of the exposed area
27046 and inserts the window into the paint queue if not already there
27047 - InvalidateWholeWindow: Switched to use new AddExpose method
27048 - UpdateMessageQueue: Added which queue to monitor for paint events
27049 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27050 the unlikely case nothing above handles it. We reset the expose
27051 pending states to get them off the queue.
27052 - GetMessage: Now pulls a paint event if no other events are in the
27054 - Invalidate: Switched to new AddExpose method
27055 - PeekMessage: Updated to understand pending paint events
27056 - UpdateWindow: Fixed logic bug. We were only updating if the window
27057 didn't need updating. Also switched to sending WM_PAINT directly,
27059 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27060 and random access Remove(). The random access is needed to handle
27061 UpdateWindow() where a WM_PAINT is sent directly without accessing
27063 * ScrollBar.cs: Added Update() calls to cause immediate updates to
27064 allow for better feedback when scrolling. Scrollbars are small and
27065 the immediate update should make it 'feel' more responsive without
27066 slowing things down. ScrollBar still needs it's invaliate logic
27067 updated to not always invalidate the whole bar on certain changes.
27069 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27072 (BackColor): if the control does not support a transparent background,
27073 return the default backcolor when the parent backcolor is transparent.
27075 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
27077 * Application.cs: Updated to new StartLoop/GetMessage API
27078 * RichTextBox.cs: Provide some output on RTF parsing errors
27079 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27080 new queue_id argument to GetMessage and PeekMessage to allow faster
27081 handling of per-thread queues in drivers.
27082 * Hwnd.cs: Added Queue tracking and property
27083 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27084 * XEventQueue.cs: Added thread trackingA
27085 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27087 - Implemented new per-thread queue
27088 - GetMessage: Fixed return/break behaviour on several cases. We were
27089 returning stale messages in some cases, instead of just processing
27092 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27094 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27096 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
27098 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27099 fixed off-by-one comparisons between Width/Height and Right/Bottom.
27101 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27103 * PropertyGridView.cs: Fix drop down width.
27105 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27107 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27108 a mess in DrawToolBar, so I removed one of them.
27110 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27112 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27113 needed (clip). Otherwise we get artifacts.
27115 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27117 * FixedSizeTextBox.cs: Added constructor to allow specifying which
27119 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27120 and switched FixedSizeTextBox to only be fixed vertical (#78116)
27121 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27122 if it matches the scale base font (avoids unneeded scaling)
27124 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
27126 * X11DesktopColors.cs: One gtk_init_check should be enough
27128 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27130 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27133 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
27136 - Generate OnTextChanged for Backspace even if we're only deleting
27137 the current selection
27138 - When setting the Text property, only select all text if the
27139 control does not have focus when it is being set. Otherwise
27140 just place the cursor at the beginning of the control
27142 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
27144 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27145 Added a little helper to draw PropertyGrid ToolBar with a different
27146 border and a different BackColor.
27147 * PropertyGrid.cs: Some background parts didn't get painted with the
27148 correct background color. Added a class that helps us to draw the
27149 correct border for PropertyGridView and a class that helps us to
27150 draw ToolBars with a different backcolor
27151 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27153 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
27155 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27156 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27158 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27160 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27161 into the palette entries. Also, since we're working on a copy
27162 we needed to copy the palette back onto the bitmap.
27163 * Cursor.cs: Same fix as XplatUIWin32.cs.
27165 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27167 * ImageListStreamer.cs: Need to read the var (or we're off)
27169 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
27171 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
27172 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27173 TextBoxBase.cs: Unused var fixes
27174 * AxHost.cs: Small 2.0 fix
27175 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
27176 as it seems that is what at least Metacity expects. This will make
27177 icons show up on 64bit platforms. We still have some 64bit size
27178 issues, though, since the startup app window size still won't match.
27180 2006-04-25 Mike Kestner <mkestner@novell.com>
27182 * *.cs: cleanup newly reported exception var unused warnings.
27184 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
27186 * ThemeWin32Classic.cs: Button image alignment now matches exactly
27189 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
27191 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27192 image. The image position is always the same, no matter if the
27193 button is pressed or not.
27195 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
27197 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27198 selection and set the correct filename for SaveFileDialog.
27199 Patch by Emery Conrad.
27201 2006-04-24 Mike Kestner <mkestner@novell.com>
27203 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27204 check for item.X outside the ClientRect instead of item.Y. Fixes
27207 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27209 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27210 trust that value blindly and do some sanity check. Fixes bug #77814.
27212 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27214 * ImageListStreamer.cs: save the mask as a 1bpp image.
27216 2006-04-21 Mike Kestner <mkestner@novell.com>
27218 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27219 pass Checked and Indeterminate to the Theme Engine. Improve
27220 encapsulation with ListBox.
27221 * ListBox.cs: Keep a StringFormat instead of calculating it every item
27222 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27223 nested types. Move all CheckState functionality to CheckedListBox.
27224 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
27225 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
27226 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27227 single base list. Fix scrollbar sizing and placement to mirror MS.
27228 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27230 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27231 for CheckedListBox by using new DrawItemState info. Center the
27232 checkboxes on the items. Use new StringFormat property.
27234 2006-04-18 Jackson Harper <jackson@ximian.com>
27236 * Form.cs: MdiChildren don't do default locations the same way as
27237 regular forms. This prevents a crash when trying to position the
27240 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
27242 * PropertyGridTextBox.cs: Formatting, copyright
27243 * PropertiesTab.cs: Formatting
27244 * PropertyGrid.cs: Formatting
27245 * PropertyGridView.cs: Formatting, fix drop down, enabled double
27246 click toggling of values
27248 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
27250 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27251 * Control.cs (.ctor): verify_thread_handle is static, don't reset
27252 every time a control is created
27253 * Application.cs: Removed obsolete EnableRTLMirroring method
27255 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
27257 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27258 SelectedIndex to -1. Fixes bug #78121.
27260 2006-04-17 Jackson Harper <jackson@ximian.com>
27262 * Binding.cs: Handle null values for Current and BindingContext.
27263 This occurs when binding is a little delayed.
27264 * CurrencyManager.cs: return null for Current when there are no
27266 - Hookup to the listchanged event on the DataView and update
27267 bindings when the list is changed. This fixes late binding of
27270 2006-04-17 Jackson Harper <jackson@ximian.com>
27273 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27276 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
27278 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27280 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27281 with the correct ButtonState
27283 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
27285 * XplatUIX11.cs: Improved distinguishing between window types to
27286 tell the WM a type closer to what the app wants (Fixes #78107)
27288 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
27290 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27293 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
27295 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27296 drawing code to reflect the size grip changes
27298 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27300 * ImageListStreamer.cs: fix handling of the mask that follows the main
27301 bitmap when deserializing and serialize it properly. The generated mask
27302 should better be a 1bpp image, but I'll do that later.
27304 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
27306 * FileDialog.cs: Show something in the DirComboBox on *nix if the
27307 path doesn't fit into some of our Current.Places
27309 2006-04-13 Jackson Harper <jackson@ximian.com>
27311 * ComboBox.cs: Use borders instead of drawing our own decorations,
27312 try to obey correct rules for heights.
27315 * ThemeClearLooks.cs:
27316 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27317 this is now handled by borders.
27318 - Remove unused DrawListBoxDecorationSize method.
27320 2006-04-13 Mike Kestner <mkestner@novell.com>
27322 * MenuAPI.cs: null guarding for the disbled click check fixes crash
27325 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
27327 * ThemeWin32Classic.cs:
27328 - Fixed CPDrawStringDisabled
27329 - Corrected drawing of disabled menu items
27330 - Fixed drawing of disabled radio buttons (bug #78095)
27331 - Draw check in a disabled CheckBox with color ControlDark
27333 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27335 * Form.cs: Use the provided width when calculating the menu size;
27336 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27337 and ClientSize.Width won't be updated yet
27338 * Application.cs: Use Visible instead of Show() to make form visible,
27339 this way we create the handle later and menusize is considered
27341 2006-04-12 Mike Kestner <mkestner@novell.com>
27343 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27346 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27348 * TextBox.cs: Implemented context menu
27350 2006-04-12 Mike Kestner <mkestner@novell.com>
27352 * ListView.cs: implement box selection. fixes #77838.
27353 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27355 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27357 * XplatUIX11.cs: Added setting of window type when transient window
27358 is created (metacity would move it otherwise)
27359 * X11Structs.cs: Added WINDOW_TYPE atoms
27360 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27361 background (the control is Opaque but still wants transparent
27364 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27366 * Control.cs: Added OnPaintBackgroundInternal to allow controls
27367 that set Opaque but don't mean it (like all ButtonBase-derived
27368 controls) to still draw their background
27369 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27372 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27374 * Control.cs (PaintControlBackground): Set the graphics object
27375 on our PaintEvent to null to prevent it from being disposed
27376 when the PaintEvent gets disposed
27378 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
27380 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27381 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27383 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27386 - Added transparency check to BackColor property. Transparent
27387 backgrounds are only allowed if the control styles permit it
27388 - Added recursive painting of parent control background and
27389 foreground if a control with a transparent backcolor is drawn
27390 (Thanks to Tim Ringenback for providing his 'hack' as a base
27391 for this patch) Fixes #77985 and #78026.
27392 - Added Opaque style check before calling OnPaintBackground, no
27393 need to draw the background if the control is opaque
27394 - Removed ControlAccessibleObject owner variable (inherited from
27395 base, no need to define again)
27396 - Added some documentation links explaining the drawing events
27399 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27401 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27402 that the affected control is the located at the left border of our
27403 parent (Fixes #77936)
27405 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27407 * TextBoxBase.cs: When rendering disabled or readonly controls,
27408 draw the background with 'Control' instead of 'Window' color as
27409 long as the user hasn't specifically set a color
27411 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27413 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27414 since that won't be updated if the user types text (only if it's
27415 programatically set)
27417 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27419 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27420 layout changes do to app-triggered resizes will have the proper
27421 display rectangle for layout
27423 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
27425 * ThemeWin32Classic.cs:
27426 - Make use of the SystemBrushes and SystemPens wherever possible
27427 - Corrected some highlight colors
27428 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27430 * Theme.cs: Added Empty field to CPColor struct
27432 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27434 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27435 is displayed when calculating the display rectangle. Thanks to Mike
27436 for teaching me the err of my ways.
27438 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
27440 * ScrollableControl.cs:
27441 - Rewrote DisplayRectangle code, now returning the proper x/y coords
27442 (instead of 0,0) and we now return the real width/height instead of
27443 just the clientrectangle, adjusted for padding. The rectangle is
27444 now cached and created by the new CalculateDisplayRectangle method.
27445 - Created new CalculateDisplayRectange method, which basically does
27446 what get_DisplayRectangle() did originally, but now using the
27447 right edge instead of DisplayRectangle to determine the size of
27449 - get_Canvas(): Fixed it to properly calculate canvas for
27450 right/bottom controls which seem to be placed to the right/bottom
27451 of any controls that have a fixed location
27452 - Removed TODO that's taken care of
27453 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27454 and SetDisplayRectLocation according to new MSDN2 docs
27455 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27456 event when that is called, this is added for compatibility
27457 - ScrollControlIntoView(): Implemented.
27458 - Switched scrollbars to be implicit, they shouldn't be selectable
27459 * ContainerControl: Now that ScrollControlIntoView is implemented, we
27460 call it when the active control is set/changed
27461 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27462 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27463 implicit_control variable (used for native Win32 message generation)
27464 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
27465 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27466 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27467 * XplatUIStructs.cs: Added ScrollBarCommands enum
27469 2006-04-10 Jackson Harper <jackson@ximian.com>
27472 * CheckedListBox.cs:
27479 * PrintPreviewControl.cs:
27485 * UpDownBase.cs: Fixup base event overrides.
27487 2006-04-06 Mike Kestner <mkestner@novell.com>
27489 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27490 all user-initiated value changes to min <= value <= max-thumbsz+1.
27491 (set_Value): check for vert/horiz when calculating new thumb position.
27492 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27494 (OnMouseMoveSB): refactor the thumb dragging code and refine
27495 invalidation logic to reduce flicker.
27496 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27497 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27498 (UpdateThumbPosition): small code readability cleanup
27500 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
27502 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27505 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
27507 * ThemeNice.cs: Use a better graphics effect when a button is pressed
27509 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
27511 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27512 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27513 This dramatically reduces the number of Pen.Dispose calls.
27514 Where possible call ResPool methods only once instead of calling it
27515 over and over again (for example for the same color).
27517 2006-04-06 Mike Kestner <mkestner@novell.com>
27519 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27520 Also remove an unused private field on the collection. Fixes #77972.
27522 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
27524 * ThemeNice.cs: Added ToolBar drawing code
27526 2006-04-06 Mike Kestner <mkestner@novell.com>
27528 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27529 I'm assuming that means we need to look up the toplevel for the
27530 provided control. Fixes the crash trace in #77911 but exposes another
27531 crash in some strange reflection usage in NDocGui.
27533 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
27535 * ThemeNice.cs: Gave it a little silver touch and added Images
27537 * FontDialog.cs: FontDialog is not resizable
27538 * FileDialg.cs: Added SizeGripStyle.Show
27540 2006-04-05 Jackson Harper <jackson@ximian.com>
27542 * KeyboardLayouts.cs: Remove warning.
27544 2006-04-05 Jackson Harper <jackson@ximian.com>
27546 * Control.cs: Enable OnPaintInternal so we can use it for drawing
27547 all of our controls instead of Paint +=.
27562 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27563 use OnPaintInternal. Remove Width/Height and Visible checks in
27564 paint handler, this is done at a higher level now.
27565 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27566 * PaintEventArgs.cs: Add a handled flag so controls that don't
27567 want anymore painting after OnPaintInternal can make sure OnPaint
27570 2006-04-05 Mike Kestner <mkestner@novell.com>
27572 * Form.cs: fix the menu WndProc hacks to respect the native enabled
27573 state of the form, so that we don't process events when Modal dialogs
27574 are up. Fixes #77922.
27576 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
27578 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27581 2006-04-05 Mike Kestner <mkestner@novell.com>
27583 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27585 2006-04-05 Mike Kestner <mkestner@novell.com>
27587 * ListView.cs (HeaderMouseMove): null guarding for the over column
27588 when setting up the drag_to_index. Fixes #78015.
27590 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
27592 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27593 in the taskbar. Transient windows seem to accomplish that.
27595 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
27598 - Re-enabled CreateParams.X/Y code for FormStartPosition
27599 - Added code for manual placement when creating the Control
27600 - Incomplete patch to treat MDI forms differently when
27601 setting the ClientSizeCore. (Still need to figure out handling
27604 - When we're explicitly setting the X/Y position of a non-Child
27605 window, let the WM know. Metacity really wants this.
27607 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
27609 * ThemeNice.cs: Added CPDrawButton
27611 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
27613 * ThemeNice.cs: Changed the color for focused buttons and activated
27614 the arrows for small scroll buttons.
27616 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
27618 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27619 anymore. Changed some method modifiers to protected (virtual)
27620 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27622 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27623 Updated drawing of menus, buttons and progressbars; added
27626 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27628 * ImageListStreamer.cs: implemented serialization/deserialization
27631 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
27633 * ThemeWin32Classic.cs:
27634 - Removed all the DrawFrameControl stuff; CPDrawButton,
27635 CPDrawCheckBox and CPDrawRadioButton are now handled directly
27637 - Updated and corrected the drawing code of CPDrawButton,
27638 CPDrawCheckBox and CPDrawRadioButton to better match ms
27639 - Updated theme checkbox and radiobutton code to use the CP*
27642 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27644 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27647 2006-03-31 Jackson Harper <jackson@ximian.com>
27649 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27651 * UpDownBase.cs: Don't CreateGraphics manually, use a
27652 Refresh. Ideally we would invalidate the correct areas here.
27654 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27657 - We now track the mapping state of windows. If a window (or
27658 one of it's parents) is not mapped we no longer permit
27659 WM_PAINT messages to be generated since we'd otherwise get
27660 lots of BadMatch X errors. Jackson did all the work figuring
27662 - Destroying the caret if the window it's contained in is
27663 destroyed. Can't use regular DestroyCaret method since it
27664 might fall into a drawing function (trying to remove the
27665 caret) and with that generate new BadMatch errors. Again,
27666 Jackson tracked this down.
27667 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27668 make sure we send the messages to all windows. (The old code
27669 would send the WM_DESTROY to the window, and then all child
27670 windows would be 'gone' because the WM_DESTROY handle lookup
27671 would no longer find the destroyed window)
27672 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27673 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27675 2006-03-31 Jackson Harper <jackson@ximian.com>
27677 * ScrollableControl.cs: Dont recalc if we are not visible.
27679 2006-03-31 Mike Kestner <mkestner@novell.com>
27681 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27682 the visibility branch.
27684 2006-03-31 Jackson Harper <jackson@ximian.com>
27686 * ScrollBar.cs: Cap values when incrementing/decrementing.
27688 2006-03-31 Mike Kestner <mkestner@novell.com>
27690 * MenuAPI.cs: setup menu.tracker for popup/context menus.
27691 * ToolTip.cs: guard against timer expirations with no active control.
27692 Not sure why it happened.
27694 2006-03-31 Mike Kestner <mkestner@novell.com>
27696 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27698 * ToolTip.cs: Position the tooltip based on where the cursor is at
27699 popup time, not at MouseEnter time. Add a Down state so that we don't
27700 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27701 positioning offset. Lookup DisplaySize at positioning time, since it
27702 can theoretically change during invocation.
27703 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27704 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27706 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27708 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27709 Fixes behaviour when the Text property of the box is String.Empty
27711 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27713 * XplatUIX11.cs: Only send mouseleave for our client windows, not
27714 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27717 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27719 * FileDialog.cs: Visual enhancement for the popup buttons in
27722 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27724 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27727 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
27729 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27730 highlighted menu items to match ms
27732 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
27734 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27736 2006-03-30 Mike Kestner <mkestner@novell.com>
27738 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27739 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27740 go active to account for HotLight to Selected transition.
27741 * MenuItem.cs: add internal Selected prop. Fill out the Status
27742 property by calculating it from item info. Add HotLight,
27743 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27745 2006-03-30 Mike Kestner <mkestner@novell.com>
27747 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27749 2006-03-29 Jackson Harper <jackson@ximian.com>
27751 * Form.cs: Implement TODO.
27753 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27755 * PrintPreviewDialog.cs: Implemented missing methods and events; still
27756 missing proper dialog setup in the constructor
27758 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27760 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27762 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27763 - Fixed ResetBindings and removed TODO
27764 - Added check for cross-thread calls to get_Handle()
27765 - Added Marshaller attribute for set_Font to satisfy class status
27766 * FontDialog.cs: Removed TODOs that seemed implemented
27767 * UpDownBase.cs: Removed unneeded TODO and Fixme
27768 * MessageBox.cs: Implemented support for Default button and removed TODO
27769 * FileDialog.cs: Removed obsolete TODO
27770 * DomainUpDown.cs: Removed obsolete TODO
27771 * ButtonBase.cs: Removed obsolete TODO
27772 * XplatUIWin32.cs: Removed obsolete TODO
27774 - Removed obsolete TODO
27775 - Calling CheckAcceptButton when the acceptbutton is changed to allow
27776 internal status updates
27777 - Making sure the active control is selected when the control is created
27778 * CurrencyManager.cs: Removed obsolete TODO
27780 2006-03-29 Mike Kestner <mkestner@novell.com>
27782 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27783 of PrintPreviewDialog and RichTextBox.
27785 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27787 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27788 DarkDark, Light and LightLight colors for a specific color
27789 * ThemeWin32Classic.cs:
27790 - Use Button drawing code to draw RadioButtons and CheckBoxes with
27791 Appearance = Button
27792 - Make use of the new ResPool helper CPColor
27793 - Draw ProgressBar and StatusBar with correct 3D borders
27795 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27797 * ColorDialog.cs: Return selected color. Fixes bug #77940.
27799 2006-03-28 Mike Kestner <mkestner@novell.com>
27801 * ListView.cs: fix Icon layout to plan for scrollbar widths when
27802 calculating col/row counts.
27804 2006-03-28 Mike Kestner <mkestner@novell.com>
27810 switch to explicit interface method implementation for some methods
27811 corcompare identifies as inconsistent with MS.
27813 2006-03-28 Mike Kestner <mkestner@novell.com>
27817 add a few missing methods from the class status output.
27819 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
27821 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27824 2006-03-28 Mike Kestner <mkestner@novell.com>
27826 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27828 2006-03-27 Mike Kestner <mkestner@novell.com>
27830 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27831 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27833 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
27835 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27837 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27839 * ThemeWin32Classic.cs:
27840 - GroupBox: Inserted a little gap between the text and the lines
27842 - Made the code in CPDrawBorder3D more readable
27843 - Corrected the drawing location of the up and down arrows in
27846 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27848 * ControlPaint.cs: Corrected line widths in DrawBorder for
27849 ButtonBorderStyle Inset and Outset
27851 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27853 * ThemeWin32Classic.cs:
27854 - Rewrote the totally broken CPDrawBorder3D method. That was
27855 one of the main problems for the terrific ThemeWin32Classic
27857 - Updated and corrected Button drawing
27858 - Correct the dimensions of the SizeGrip to match ms ones
27859 - Removed a small drawing glitch in DrawComboBoxEditDecorations
27860 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27861 Border3DStyle.Sunken to match ms.
27863 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27865 * ThemeWin32Classic.cs: First small part of the "de-uglify
27866 ThemeWin32Classic" effort, SizeGrip
27868 2006-03-24 Jackson Harper <jackson@ximian.com>
27870 * XplatUIX11.cs: Give a max idle time of one second, this matches
27871 MS and forces an Idle event every second when there are no other
27872 events in the queue.
27874 2006-03-24 Mike Kestner <mkestner@novell.com>
27876 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27877 * ListView.Item.cs: fix layout issues with null image lists and images
27878 smaller than checkbox size.
27879 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27880 mode like MS does. It's weird, but consistent. ;-)
27883 2006-03-24 Mike Kestner <mkestner@novell.com>
27885 * ListView.cs: Scroll wheel support for the item control. Fixes
27888 2006-03-23 Jackson Harper <jackson@ximian.com>
27890 * ScrollableControl.cs: Special case negative sized areas, not
27892 * MonthCalendar.cs: Save the rect of the clicked date so we can
27893 use it for invalidation.
27894 - Try to cut down on the number of invalidates
27895 - Invalidate the rect the mouse is over and was over when moving
27896 the mouse, so we get the focus box following the cursor.
27898 2006-03-23 Mike Kestner <mkestner@novell.com>
27900 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27901 focus rectangle drawing. Fixes #77835.
27903 2006-03-23 Mike Kestner <mkestner@novell.com>
27905 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27906 the if and else if and reverting back to the original == check on the
27909 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27911 * FontDialog.cs: Update the example panel if the selected index of
27912 the fontListBox changes.
27914 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27916 * FileDialog.cs: Make FileDialog remember which directory it was in
27917 last in the same execution.
27919 2006-03-22 Mike Kestner <mkestner@novell.com>
27921 * FileDialog.cs: make the DropDownMenu on the toolbar display
27922 RadioChecks since they are mutually exclusive and that's what MS does.
27924 2006-03-22 Mike Kestner <mkestner@novell.com>
27926 * Theme.cs: add Color param to CPDrawMenuGlyph.
27927 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27928 checks and radio marks and arrows are visible on highlighted items.
27929 * ControlPaint.cs: update to use new Theme signature.
27931 2006-03-22 Mike Kestner <mkestner@novell.com>
27933 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27934 is active. Fixes #77870.
27936 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27938 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27939 to be focused/selected after startup
27941 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27944 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27945 CustomColors and ShowHelp properties
27946 - Some internal rewrites to get better results when using the
27949 2006-03-22 Mike Kestner <mkestner@novell.com>
27951 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27952 HoverSelection. Fixes #77836.
27954 2006-03-22 Mike Kestner <mkestner@novell.com>
27956 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
27957 ToggleButtons. (De)Sensitize the Back button around a stack count of
27958 1, not 0. Update ButtonSize based on a pixel count of the win32
27959 control. Adjust the toolbar size/location for new button size.
27961 2006-03-22 Jackson Harper <jackson@ximian.com>
27963 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27965 * ScrollBar.cs: When doing increments and decrements we need to
27966 set the Value property so that ValueChanged gets raised. A
27967 possible optimization here would be to make an internal SetValue
27968 that doesn't invalidate immediately.
27969 * ToolTip.cs: Tooltips get added to their container (when
27970 supplied) so they get disposed when the container is disposed.
27971 - Don't create tooltips for String.Empty. This prevents all these
27972 little 2-3 pixel windows from showing up when running nunit-gui
27973 and driving me mad.
27974 * Form.cs: Don't set topmost when setting the owner if the handles
27975 haven't been created yet. The topmost set will happen when the
27976 handles are created.
27978 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
27981 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27982 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
27983 visible (to allow them to recalculate their sizes)
27985 2006-03-21 Mike Kestner <mkestner@novell.com>
27987 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27988 methods. Removed a ton of redundant code. Still not really happy with
27989 the border rendering, but I think that's mainly because of the
27990 ControlDarkDark being black instead of a dark grey. Depending on how
27991 close we want to be, we might want to revisit those color choices.
27992 Among the new features added during the refactor were DropDownArrow
27993 pressed rendering, Disabled image rendering. Proper flat appearance
27994 boundary rendering. Removed the Divider and Wrapping dividers since I
27995 can't figure out any combination of themes and conditions to make the
27996 MS control draw a horizontal line on a toolbar despite what the
27997 Divider property docs indicate.
27998 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27999 conditions and incorrect layout. Updated to coding standard.
28000 * ToolBarButton.cs: refactored layout and positioning code from
28001 ToolBar to here. Invalidate wherever possible instead of forcing
28002 redraws of the whole toolbar.
28003 (Known remaining issues: explicit ButtonSize smaller than provided
28006 2006-03-21 Mike Kestner <mkestner@novell.com>
28008 * ContextMenu.cs (Show): use the position parameter instead of just
28009 showing at the MousePosition.
28011 2006-03-21 Jackson Harper <jackson@ximian.com>
28013 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28014 control handle this.
28015 * TreeNodeCollection.cs: If we are clearing the root node we need
28016 to reset top_node so calcs can still happen.
28017 * ThemeWin32Classic.cs: This is a Flags so we need to check
28020 2006-03-21 Jackson Harper <jackson@ximian.com>
28022 * DataGrid.cs: Create columns when the binding context has been
28024 * X11Structs.cs: Keysyms are uints.
28025 - Add size to fix build.
28027 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
28029 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28031 - Added ResetMouseHover method to allow controls to retrigger
28032 hovering if they need it more than once
28033 - Implemented MouseHoverTime and MouseHoverSize properties
28034 * Timer.cs: Start() must reset the interval
28035 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28038 2006-03-21 Jackson Harper <jackson@ximian.com>
28040 * X11Keyboard.cs: improved layout detection. Move the nonchar
28041 tables into this file.
28042 * KeyboardLayouts.cs: Move the tables into resource files.
28044 2006-03-21 Mike Kestner <mkestner@novell.com>
28046 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28048 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
28050 * Mime.cs: Various speed optimizations. Looking up mime types
28051 is now 2 times faster than before
28053 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28055 * CreateParams.cs: Added internal menu field
28057 - Switched call order for UpdateBounds; now we always call
28058 the one that also takes ClientSize, and we're calculating the
28059 client size via driver method in the others. The previous
28060 method of tracking client size by difference wasn't working
28061 for forms where even the starting client size wouldn't match
28062 the overall form size (due to borders) (Part of fix for #77729)
28063 - CreateParams(): Do not use parent.Handle unless the handle is
28064 already created. Causes havoc with Nexxia and throws off our
28065 creation of controls
28067 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28068 - Switched handling of ConfigureNotify over to new PerformNCCalc
28069 method (consolidates code)
28070 - Changed RequestNCRecalc to use new PerformNCCalc method
28071 - Added calls to RequestNCRecalc when menus and borders are changed
28072 to allow app to set NC size. (Part of fix for #77729) This matches
28073 when MS send a WM_NCRECALC on Win32 windows.
28074 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28075 (Part of fix for #77729). This matches what MS does, they also
28076 send that message when the form is made visible.
28077 - XException.GetMessage: Improved usability of X errors by including
28078 a translation of the window into Hwnd and Control class
28079 - Improved debug info for window creation, reparenting and destruction
28080 - Created helper method WindowIsMapped() [Currently not used]
28081 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28083 - CreateParams: Now setting our menu on the new internal menu field
28084 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28085 avoid calculating the same property twice
28087 - Improved usability of ToString() for debugging purposes
28088 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28089 determine the height of the menu, instead of just the font. This
28090 required to also create a graphics context and to keep a bmp
28091 around (for performance reasons)
28093 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28095 * MenuAPI.cs: Added OnMouseUp method
28097 - Now remembering the requested client size, avoids size errors
28098 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28099 instead of base if the menu is active. This is required due to
28100 control now capturing and releasing on down/up and it would
28101 prematurely release our menu capture
28103 2006-03-17 Jackson Harper <jackson@ximian.com>
28105 * KeyboardLayouts.cs: Add the czech layouts.
28107 2006-03-16 Jackson Harper <jackson@ximian.com>
28109 * Control.cs: Use the viewport space when sizing not the controls
28110 client size, so things like ScrollableControl that effect the
28111 viewport size (when scrollbars are added) are computed correctly.
28112 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28114 - Handle creating BindingManagers for null data sources.
28115 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28116 source, otherwise when rows are added they are added to the 'fake'
28117 datasource and we will crash when trying to set the position in
28119 - Use Implicit scrollbars on the datagrid so they arent
28122 2006-03-16 Jackson Harper <jackson@ximian.com>
28125 * InternalWindowManager.cs:
28126 * MdiWindowManager.cs:
28127 * X11Keyboard.cs: I really want Mike to love me again (fix
28128 compiler warnings).
28130 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
28133 - OnMouseDown: Switch to editing mode when clicking on the cell
28134 even if we're clicking on the cell that's currently
28136 - ProcessGridKey: Left/Right now wrap like MS.Net does
28137 - ProcessGridKey: Tab now knows to add a new row when tab is
28138 pressed in the cell of the last column of the
28140 - ProcessGridKey: Enter now adds another row if pressed in the last
28141 row and selectes the new row, same column cell
28142 - ProcessGridKey: Home/End navigate columns, not rows, like
28143 originally implemented
28144 - Broke ProcessKeyPreview code out into an extra Internal method
28145 so it can be called from the edit code
28146 * DataGridTextBox.cs (ProcessKeyMessage):
28147 - Switched to accept Tab keypresses
28148 - Added F2 handling to allow jumping to the end of the edited cell
28149 - Added logic to allow moving caret left/right inside edited cell
28150 and making the edited cell jump when the caret hits cell borders
28151 - Tab and Enter are now passed to the datagrid after being handled
28153 - Removed capture code now that Control handles it
28154 - set_SelectionStart now ensures caret is visible
28156 2006-03-16 Jackson Harper <jackson@ximian.com>
28158 * TrackBar.cs: Debackwards the increment/decrement for handling
28159 mouse clicks on the bar with vertical trackbars.
28160 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28161 bottom to match MS.
28163 2006-03-16 Mike Kestner <mkestner@novell.com>
28165 * ListView.cs: make shift/ctrl keyboard and mouse selection
28166 consistent with the MS control. Fix a bug in
28167 SelectedListViewItemCollection.Clear that was pissing me off for the
28168 better part of a day because the collection was being altered
28169 underneath us as we walked the list.
28171 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
28173 * Control.cs: Not sure how we could miss this so long, but it seems
28174 that MS.Net has Capture set all the way from before calling
28175 OnMouseDown through sending the mouse events until after
28176 OnMouseUp. This will fix DataGrid's selection being set to end
28177 at the location of the MouseUp.
28179 2006-03-15 Jackson Harper <jackson@ximian.com>
28181 * BindingContext.cs: Check the binding after its added so that it
28182 can initialize the binding managers and hookup to events.
28183 * Binding.cs: Data members seem to sometimes include rows/cols in
28184 the format Row.Column we now take this into account.
28185 - Hookup to the position changed event so we can update the
28186 control when the position has changed in the data set.
28187 * CurrencyManager.cs: Take into account the row/col naming
28188 convention when creating dataset tables.
28189 * BindingContext.cs: Using a newer better way of storing
28190 datasource/datamember pairs. Hopefully this better matches MS for
28191 looking up binding managers.
28194 2006-03-15 Jackson Harper <jackson@ximian.com>
28196 * BindingContext.cs: The currency manager needs the data member
28197 name, if the member is a data set we use the name to find the
28199 * CurrencyManager.cs: When creating the list prefer an IList over
28201 - Attempt to create a DataTable from a DataSet (TODO: might need
28202 some better error checking here, although MS doesn't seem to have much)
28203 - If we have a DataTable create a view and use it as our list.
28205 2006-03-15 Mike Kestner <mkestner@novell.com>
28207 * ListView.cs: keep a matrix of the icon mode layout to facilitate
28208 keyboard navigation. Support Up/Down/Left/Right selection correctly
28209 for all 4 View modes.
28210 * ListViewItem.cs: add internal row/col fields for icon layouts.
28212 2006-03-15 Jackson Harper <jackson@ximian.com>
28214 * TabControl.cs: Redraw the tabs when we resize so their newly
28215 calculated sizes are drawn on screen.
28216 * X11Keyboard.cs: Begginnings of XIM support. We also now support
28217 composite characters.
28218 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28219 - filter events so that composite characters can be created
28221 * X11Structs.cs: Add XIMProperties enum.
28223 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28225 * Control.cs (BringToFront, SendToBack): Don't use window or handle
28226 unless it's created
28228 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28230 * Control.cs (PerformLayout): We don't need to consider visiblity
28231 for anchoring, only for docking. This fixes 'whacky' alignment
28232 in listbox and other controls that use implicit scrollbars after
28233 the previous PerformLayout patch
28234 * ListBox.cs: Switched to use implicit scrollbars
28236 2006-03-14 Mike Kestner <mkestner@novell.com>
28240 - chain up the "new event" overrides to base and use
28241 OnEvent to raise them. Part of fix for bug #76509.
28243 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
28245 * FileDialog.cs: Do not select an item in the parent directory
28248 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28250 * Control.cs (PerformLayout): It would seem that we considered
28251 invisible windows for our layout. Not quite the right thing
28252 to do. Now we don't any longer, thereby fixing bug #76889.
28254 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
28256 * Control.cs (CanFocus): I goofed. A control can have focus
28257 even though it's not selectable. Made it match MS docs.
28259 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
28261 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28262 center by default (fixes #76895)
28263 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
28264 all uses of Border3DSides.All with the explicit ORd together
28265 Left|Right|Top|Bottom because I assume that nobody was aware
28266 that All also implies a center fill. Most places I checked had
28267 a fill right above.
28268 * ProgressBarStyle.cs: Added
28270 2006-03-13 Mike Kestner <mkestner@novell.com>
28272 * ListView.cs: fix breakage in drag shadow header positioning
28273 from Peter's csc compilation fix.
28275 2006-03-13 Mike Kestner <mkestner@novell.com>
28277 * ListView.cs: fix NRE produced by backspacing twice in a focused
28280 2006-03-13 Mike Kestner <mkestner@novell.com>
28282 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28284 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
28286 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28288 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28289 the allowed size before making programmatic size changes
28291 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
28293 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
28294 set, metacity is broken and will still use the emty sizes in
28295 the struct. (Fix for #77089)
28297 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
28299 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
28300 WindowExStyles and marked both enums as Flags
28301 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28302 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28303 to match WindowStyles split
28305 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28306 - Updated to match WindowStyles split
28308 - Fixed FosterParent creation, was using ExStyle on the Style field
28309 (This should help with Popup focus issues)
28310 - Updated to match WindowStyles split
28312 2006-03-13 Jackson Harper <jackson@ximian.com>
28314 * MdiWindowManager.cs: Use the system menu height. Fixes some
28315 strange sizing issues.
28317 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
28319 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28321 - Scroll to caret after inserting text (#77672)
28322 - Make scroll range one pixel higher, fixes off-by-one error (and
28323 makes underlines visible on the last line)
28325 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
28327 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28328 the keyboard state from being stuck with keys in 'pressed' state when
28329 focus is switched away via keyboard
28330 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28331 reset the keyboard if no X11 KeyUp events are expected to come
28332 * X11Structs.cs: Switched type of Visible to bool to match driver
28334 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
28337 - Switched caret to be just 1 pixel wide, matches MS and looks less
28339 - Moved caret display 1 pixel down from the top of the control
28341 - InsertCharAtCharet: Update the selection start if moving the caret
28342 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28343 - No longer always creating the caret when the caret methods are
28344 called. Only the actual ShowCaret/HideCaret will do that now
28345 - Only setting caret visible if the owner control has focus
28346 - UpdateView: Added invalidation-shortcut logic for center and right
28347 aligned text. Previously we'd update all according to the left
28348 logic which caused drawing errors. Also fixed height of invalidated
28349 areas, now properly invalidating the whole area (was off-by-one)
28350 - owner_HandleCreated: Always generate the document when the
28351 handle is created; this ensures that
28353 - Fixed situation where caret would disappear under the right
28354 window border, also improved scrolling behaviour on left-
28356 - Fixed right-aligned textboxes to have a border to the
28357 right instead of the caret being under the right border
28359 - Switched from 'nested' to simple visible/not visible tracking
28360 for caret (part of fix for #77671)
28361 - No longer passing through translated FocusIn/FocusOut messages
28362 since we were notifying too often and the wrong windows. Instead
28363 we just notify our focussed window of receiving or loosing focus
28364 * XplatUIWin32.cs: Switched from 'nested' show/hide
28365 counting for caret to simple visible yes/no behaviour (part of
28368 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
28370 * Mime.cs: Remove debug code...
28372 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
28374 * MimeGenerated.cs: Removed
28375 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28376 and subclasses) from /usr/(local/)share/mime and
28377 $HOME/.local/share/mime.
28379 2006-03-10 Jackson Harper <jackson@ximian.com>
28381 * MdiWindowManager.cs: Recalc the NC area when a window is
28382 maximized/restored so that the menu area is drawn on forms that
28385 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28387 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28388 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28389 us to force a WM_NCCALCRESIZE message being sent. This is needed
28390 for MDI maximizing.
28392 2006-03-10 Jackson Harper <jackson@ximian.com>
28394 * Form.cs: We need to use the ActiveMenu when calculating menu
28396 - Fix nullref when the window manager hasn't been created yet.
28397 * Control.cs: Fix nullref when we try to bring a control to the
28398 front that has no parent.
28399 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28401 - Add a dummy item to the maximized menu so it always has the
28402 correct height. Otherwise when there are no menus we don't get our
28406 2006-03-10 Jackson Harper <jackson@ximian.com>
28408 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28410 * Form.cs: Make the window_state internal so the window managers
28412 - When an MDI child is maximized let its window manager create the
28413 main menu (so it can add its icon).
28414 - Notify the window managers of state changes
28415 - Let the window manager paint its buttons and handle button
28416 clicks on the menu when it is maximized.
28417 * InternalWindowManager.cs: Move the prev_bounds into the mdi
28418 window manager, since tool windows don't use it, only mdi windows.
28419 - Tell the main form that we don't want it to handle NCPAINT
28420 itself to avoid extra painting.
28421 - Handle clicks on a maximized windows menu.
28422 - Handle window state changes
28423 - Handle minimize/maximize clicks correctly by setting the window state.
28424 * MdiWindowManager.cs: Add an icon menu that (the menu you get
28425 when clicking on the forms icon).
28426 - New method to create a forms maximized menu. This is its normal
28428 - Handle window state changes.
28429 - Handle sizing of maximized windows. Maximized windows are just
28430 drawn bigger then the parent visible area. All controls are still
28431 there, they are just outside the visible area (this matches windows).
28432 * MdiClient.cs: No scrollbars when a child window is maximized.
28433 - Let the children windows figure out how big they should be when
28434 sizing maximized windows.
28435 - Implement a version of ArrangeIconicWindows somewhat similar to
28436 Windows version. There are some little differences, but I don't
28437 think any app will rely on the layout of minimized mdi windows.
28439 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28441 * Padding.cs: Several fixes to allow compiling with csc 2.0
28443 2006-03-09 Jackson Harper <jackson@ximian.com>
28446 * MenuItem.cs: Cheap hack so we can add items to the list without
28447 the events being raised. This allows adding mdi items during
28448 drawing. TODO: Should probably find a better time to add the items.
28450 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28452 * ThemeWin32Classic.cs:
28453 - CheckBox_DrawText: Added logic to not wrap if not enough space
28454 is available (Fix for bug #77727)
28455 - RadioButton_DrawText: Added logic not to wrap if not enough
28456 space is available (Fix for bug #77727). Also removed some
28457 duplicate code, DrawString always drawing the regular text
28458 before hitting the if statement.
28460 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28462 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28464 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28466 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28467 * ContainerControl.cs: Partial implementation of some 2.0 scaling
28468 methods. Moved the new 2.0 properties into alphabetical order with
28469 other properties and added MonoTODO tags
28471 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28473 * AutoScaleMode.cs: Added. Fix build.
28475 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28477 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28478 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28479 and was requiring premature handle creation for calls from above
28480 * Form.cs, Control.cs: Removed handle arguments from calls to
28481 CalculateClientRect()
28483 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28485 * ListView.cs (HeaderMouseMove): Fix csc compilation.
28486 drag_column.column_rect is MarshalByRef and can't be used that way
28488 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28490 * AxHost.cs: Added deserialization constructor for
28491 AxHost+State (fixes 77743)
28493 2006-03-09 Mike Kestner <mkestner@novell.com>
28496 - Added column drag reordering for details view.
28497 - fixed behavior when mouse is dragged off column and
28498 AllowColumnReorder is false.
28499 * ColumnHeader.cs: clone the format too in Clone.
28500 * Theme.cs: add DrawListViewHeaderDragDetails method.
28501 * ThemeWin32Classic.cs:
28502 - impl new method for drawing drag column shadows and targets.
28503 - support column offset for details mode in DrawListViewItem.
28505 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28507 * TextControl.cs: Reset the char_count when the document is cleared
28508 (Fixes bug reported on mono-winforms mailing list)
28510 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28512 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28513 of calling base we simply process the key ourselves, since both
28514 DefWindowProc and the handled method would set m.Result.
28517 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28519 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28520 method also moves the window; instead implemented a copy of
28521 Control.ScaleCore (Part of fix for #77456)
28523 - Created new CreateGraphicsInternal method to allow providing
28524 a graphics context when no handle is created without triggering
28525 handle creation. (Part of fix for #77456)
28526 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28528 - Switched Constructor to require TextBoxBase instead of Control (to
28529 allow uncast access to CreateGraphicsInternal)
28530 - Safeguarded use of owner.Handle property. No longer accessing it
28531 unless the handle is already created.
28532 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28533 - Now triggering a recalc when owning control becomes visible
28534 * TextBox.cs, RichTextBox.cs: Switched to use new internal
28535 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28536 premature handle creation (Part of fix for #77456)
28538 - We now only destroy our double-buffering buffers when the
28539 control is resized or disposed, but not when visibility
28540 changes. (The code even re-created them twice every time)
28541 - Now requiring a redraw of the buffer on visibility changes
28542 (fixes bug 77654 part 2)
28543 - Not passing OnParentVisibleChanged up unless the control
28545 - CanFocus: Fixed to match MS documentation
28546 - Focus: Fixed to return actual focus state and to check if
28547 setting focus is legal before setting it
28549 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
28551 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28552 when to draw focus rectangle by looking at parent focus and
28553 selected state instead. This fixes TabPages on Linux sometimes
28554 having none or multiple focus rectangles.
28555 * XplatUIX11.cs (SetFocus):
28556 - Don't set the focus if the same window already has focus
28557 - Use SendMessage instead of PostMessage (like it's Win32
28558 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28559 to match MS behaviour
28560 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28561 are not selectable.
28563 2006-03-07 Jackson Harper <jackson@ximian.com>
28565 * PictureBox.cs: Revert line I accidently committed last week.
28567 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
28570 - Added new IsRecreating and ParentIsRecreating properties to
28571 allow testing if RecreateHandle has been called on ourselves
28572 or one of our parents
28573 - WndProc(WM_DESTROY): If our control handle is being recreated
28574 we immediately need to create the handle when receiving the
28575 destroy, that way our child windows find a valid parent handle
28576 when they themselves are being recreated upon WM_DESTROY receipt
28577 (fix for bug #77654 part 1)
28579 - DestroyWindow: WM_DESTROY must be sent to our own window before
28580 notifying any child windows. MS documents that child windows
28581 are still valid when WM_DESTROY is received. (Control now relies on
28583 - Added some fine-grain debug options
28585 2006-03-06 Jackson Harper <jackson@ximian.com>
28587 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28588 box and base calculations off this.
28589 * MdiChildContext.cs:
28590 * MdiWindowManager.cs: Don't need to ensure scrollbars here
28593 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
28595 * Splitter.cs: In situations where the affected control is added
28596 to the parent's control list after the splitter, we would not
28597 populate affected. Now we try populating it on mousedown, if
28598 it's not already set, and force it to be re-set whenever our
28601 2006-03-03 Matt Hargett <matt@use.net>
28603 * Control.cs: implement Control.Padding
28604 * Padding.cs: -Padding.All returns -1 when constructing with the
28605 implicit default ctor
28606 -Padding.ToString() matches MS.NET
28607 * ContainerControl.cs: implement
28608 ContainerControl.AutoScaleDimensions
28609 * ListControl.cs: implement ListControl.FormattingEnabled
28610 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28612 * TabPage.cs: Implement UseVisualStyleBackColor.
28613 * PictureBox.cs: Implement PictureBox.InitialImage.
28615 2006-03-03 Mike Kestner <mkestner@novell.com>
28617 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28618 event declarations to proxy to base event.
28619 * ListViewItem.cs: update to use ItemControl.
28620 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28621 * ThemeWin32Classic.cs: update to new ListView theme API and fix
28622 column header label rendering for 0 width columns.
28624 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
28626 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28627 that causes the control to be created. Fixes #77476.
28629 2006-03-02 Jackson Harper <jackson@ximian.com>
28631 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28634 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
28636 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28637 passed in for the EventArgs (fixes #77690)
28639 2006-03-01 Jackson Harper <jackson@ximian.com>
28641 * ScrollBar.cs: Refresh afterbeing resized.
28643 2006-02-28 Mike Kestner <mkestner@novell.com>
28645 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28646 Clean up a tracker compile warning.
28647 * MenuItem.cs: add internal PerformPopup method.
28650 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28652 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28653 implicit expose) when the text is set to null
28655 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28657 * RichTextBox.cs (FlushText): When newline is true, we always
28658 need to split the line, even if no text is on it and we may
28659 never eat newlines. (Fixes #77669)
28661 2006-02-28 Mike Kestner <mkestner@novell.com>
28663 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
28664 and set Selected instead.
28665 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
28668 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28670 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28672 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
28675 - Got rid of the panel. All controls are now directly added to
28677 - It is now possible to set a font with the Font property
28678 - MinSize and MaxSize property do now what they should
28679 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28680 - Searching and selecting a font with the font textbox works now,
28681 the same applies to the style and size textbox
28682 - Draw the correct 3D border in the example panel
28683 - Fixed a little mem leak (unused fonts didn't get disposed)
28684 - Many other internal updates/rewrites...
28687 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28690 - InsertRTFFromStream: Added 'number of characters inserted' argument
28691 - set_SelectedRTF: Now using the number of characters to calculate
28692 the new location for the selection and cursor (x/y cannot be used
28693 due to potentially already wrapped text)
28695 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28697 * TextControl.cs: Added property and implemented means to allow
28698 disabling recalculation of a document (can be used to speed up
28699 multiple inserts and is needed to make RTF inserts predictable, see
28701 * RichTextBox.cs: Using the new NoRecalc property of Document to
28702 keep x/y insert locations predictable. Also makes it faster inserting
28703 large chunks of RTF
28705 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28707 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28708 it's easier for a child control to handle the other messages without
28709 having to duplicate the special functionality
28711 - WndProc: Removed calling base handler for WM_KEYDOWN and added
28712 code to handle processing the key ourselves, in order to get
28713 access to the result of KeyEventArgs.Handled. We now only call
28714 ProcessKey if they key hasn't been handled already. Fixes #77526.
28715 - set_Text: If null or empty string is given, just clear the
28716 document. Fixes part of #77526
28718 2006-02-27 Jackson Harper <jackson@ximian.com>
28720 * SizeGrip.cs: Paint the background color before painting the grip
28721 so things look right.
28722 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28724 2006-02-27 Mike Kestner <mkestner@novell.com>
28727 - Restructure layout and invalidation model to remove a ton of
28728 flicker from the control and speed up performance in general.
28729 - Add manual column resize, flickers like crazy, but I already have
28730 some ideas on how I'll fix that. (#76822)
28731 - Merge the three Icon-based views into a single layout method.
28732 - Move item selection interaction logic from the item since
28733 interaction with the collections is more appropriate to the view.
28734 - Deselection on non-item clicks.
28736 - Encapsulate most of the layout. Add some internal props to trigger
28737 layout. Move to a model where Items invalidate themselves instead
28738 of just invalidating the whole control every time something changes.
28739 - Invalidate on Text/Caption changes.
28740 - switch to an offset based layout model to avoid having to absolute
28741 position every element on item moves.
28742 - correct checkbox layout to conform to MS layout.
28743 * ThemeWin32Classic.cs:
28744 - refactor some column header drawing code.
28745 - fix string justification for column headers (#76821)
28746 - make SmallIcon labels top justified for compat with MS impl.
28747 * ThemeClearlooks.cs:
28748 - adjust to new ListViewItem internal checkbox bounds api.
28750 2006-02-27 Jackson Harper <jackson@ximian.com>
28752 * Control.cs: Change where implicit controls fall in the zorder.
28753 They are now on top of all children.
28754 - Synced AddImplicit code with Add
28755 - Removed unused enumerator.
28756 * SizeGrip.cs: Remove the TODO as its been TODONE.
28758 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28760 * TextControl.cs(Insert): Combine the last lines unless the insertion
28761 string ends with \n\n, otherwise we leave one line too many (Fixes
28762 something I noticed with the testapp for #77526; the bug itself was
28763 already fixed in the previous checkin)
28765 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28768 - SelectionColor and SelectionFont methods no longer set absolute
28769 styles. Instead, the keep font or color respectively (This
28770 resolves a long-standing FIXME in the code)
28771 - When flushing RTF text, the insert code now considers text trailing
28772 behind the insertion point (Fixes the bug where when replacing
28773 the selected text via SelectedRTF the remainder of the line behind
28774 the selection would stay on the first insertion line)
28776 - AppendText now updates the selection points after inserting text
28777 - AppendText now ensures that the last tag (sometimes 0-length) of
28778 the document is used for the style information (Fixes part of
28781 - Created new FontDefiniton class to allow describing partial style
28783 - StreamLine() now takes a lines argument, to allow it to decide
28784 whether an encountered zero-length tag is the last in the document
28785 (which must be kept to not loose the font/color contained in it,
28787 - Created Combine() and Split() methods for Marker structs, to
28788 support marker updates due to reformatted documents (soft line
28790 - Implemented Document.CaretTag setter
28791 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28792 of the last line (Not the cause, but also exposed by bug #77220)
28793 - Added LineTag argument to InsertString method, to allow callers
28794 to force a certain tag to be used (required to force use of the
28795 trailing zero-length tag of a document)
28796 - Now updating markers in Combine(), to avoid stale tag markers
28797 - Added some method descriptions to aid maintenance
28798 - Implemented new FormatText concept, allowing additive/subtractive
28799 formatting by only specifying the components that are to be
28800 changed. This was needed for resolving the RTB.SelectedColor/
28801 RTB.SelectedFont fixmes
28802 - Added Break() support method to allow breaking up linetags (used
28803 for partial formatting)
28804 - Added GenerateTextFormat() method. It is used for partial
28805 formatting and allows to generate a full font/color from given
28806 attributes and an existing tag.
28808 2006-02-26 Jackson Harper <jackson@ximian.com>
28810 * XplatUIX11.cs: Use the correct caption height.
28811 - Translate hittest coordinates to screen coords to match MS.
28812 * XplatUIWin32.cs: When we create MDI windows we need to reset
28813 some of the style flags, so we get a nice blank window, and can
28814 draw all the decorations ourselves.
28815 - Set a clipping rectangle on the non client paint event, the
28816 window manager drawing code needs one.
28817 * Form.cs: The window manager needs to know when the window state
28819 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28820 don't need to factor in border and title sizes in these
28821 methods. TODO: Remove the args and fix the call points.
28822 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28824 - Let the driver set the cursors.
28825 - Improve active window handling
28826 - Correct sizes for title bars and buttons.
28827 - Match MS drawing better
28828 * MdiWindowManager.cs: We don't need to handle border style
28829 updates specially anymore.
28830 - Check for scrollbars when windows are done moving
28831 - Handle Active properly.
28832 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28833 correctly. I am spewing the exception though, so we don't hide the
28836 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
28838 * DataGridViewRowPostPaintEventArgs.cs,
28839 DataGridViewCellPaintingEventArgs.cs,
28840 DataGridViewRowCollection.cs,
28841 DataGridViewRowPrePaintEventArgs.cs,
28842 DataGridViewCell.cs: Clear a few warnings and implement a few
28843 exceptions that should be thrown.
28845 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28847 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28848 'inheriting' our parent's (non-default) cursor. (Part of
28849 the fix for #77479)
28851 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28853 * XplatUIX11.cs: Fixed cast to make csc happy
28855 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28857 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28858 it's for the client area (part of fix for #77479 and needed
28859 for MDI window cursor handling)
28861 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28862 the appropriate default cursors and also passing the message
28863 up the parent chain
28864 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28865 for non-client areas
28867 2006-02-15 Jackson Harper <jackson@ximian.com>
28869 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28870 is a real MDI window
28872 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
28874 * X11DesktopColors.cs: Instead of checking the desktop session
28875 string for "KDE" check if it starts with "KDE"
28877 2006-02-10 Jackson Harper <jackson@ximian.com>
28879 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28882 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28884 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28887 - Got rid of the panel. All controls are now directly added to
28889 - Changed to mono coding style
28891 2006-02-10 Jackson Harper <jackson@ximian.com>
28893 * InternalWindowManager.cs: We don't need the set visibility to
28894 false hack anymore now that peter has written beautiful shutdown
28897 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
28899 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28900 where already explicitly destroyed
28902 2006-02-10 Jackson Harper <jackson@ximian.com>
28904 * MdiClient.cs: Handle the case where windows are too high or to
28905 the left and we need scrollbars.
28907 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28909 * MimeIcon.cs: Added some icons
28912 - Got rid of the panel. All controls are now directly added to
28914 - Changed to mono coding style
28915 - On Linux "My Computer" and "My Network" will now show some
28916 more usefull information. A new class, MasterMount, gathers
28917 this information from /proc/mount. Updated MWFFileView to make
28918 use of this information
28919 - Fixed a bug that caused FileDialog to crash when
28920 ".recently_used" file had a zero size
28921 - FilterIndex does now what it should
28923 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28926 2006-02-09 Jackson Harper <jackson@ximian.com>
28928 * ComboBox.cs: Don't touch if null.
28930 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
28932 * Cursor.cs: 64bit safeness fix
28933 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28935 2006-02-09 Jackson Harper <jackson@ximian.com>
28937 * Form.cs: If a form is made into an MDI form update the styles so
28938 all the props can get set correctly.
28939 - Kill the mdi_container when we dont need it anymore.
28940 * InternalWindowManager.cs: Add missing NOT
28942 2006-02-08 Jackson Harper <jackson@ximian.com>
28944 * InternalWindowManager.cs: Respek clipping when drawing MDi
28947 2006-02-08 Jackson Harper <jackson@ximian.com>
28949 * Hwnd.cs: Add bits to track non client expose events.
28950 * XplatUIX11.cs: Track non client expose events on the hwnd. This
28951 gives us a proper invalid rect and will allow for some nice
28952 optimizations with NC client drawing
28953 - MDI windows are children windows, so move their style handling
28954 into the child window block.
28955 * InternalWindowManager.cs: Remove a state reset that was
28956 getting invoked at the wrong time. Fixes managed windows getting
28957 into a 'stuck' captured state.
28959 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28961 * TextControl.cs (Document.ctor): Now initializing
28962 selection_anchor. Fixes #77493
28964 2006-02-07 Jackson Harper <jackson@ximian.com>
28966 * TrackBar.cs: The increment/decrements were backwards.
28968 2006-02-07 Mike Kestner <mkestner@novell.com>
28970 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28971 to the instance itself.
28973 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28975 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28976 on ulongs and pointers, the size differs between 32bit and 64bit
28979 2006-02-07 Mike Kestner <mkestner@novell.com>
28981 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28982 for 64 bit platforms to work around a metacity bug.
28984 2006-02-07 Jackson Harper <jackson@ximian.com>
28986 * TrackBar.cs: Process the input keys we need, and hookup to
28987 KeyDown instead of using WndProc, so we get key messages.
28989 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28991 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28993 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28994 we need to translate the XdndVersion atoms array before sending it
28996 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28999 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29000 number of bits for the property, not the number of bytes. The
29001 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29002 but would not crash since it specified 8 bits instead of 4 bits)
29003 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29004 defined as XID -> long in the C headers)
29005 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
29006 references since those are now IntPtr to begin with
29007 - Switched all Atom.XXX 'int' casts to IntPtr casts
29008 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29009 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29010 - Added XChangeActivePointerGrab DllImport (for X11DnD)
29012 - Changed 'int' type for Atoms in XEvent structures to IntPtr
29013 - Changed atom in HoverStruct to be IntPtr
29015 - Removed local DllImports, switched code to use those from XplatUIX11
29016 - Removed/fixed casts related to the switch of Atom to be a IntPtr
29018 2006-02-06 Mike Kestner <mkestner@novell.com>
29020 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
29021 method signatures in the import region. There may still be some
29022 lingering struct marshaling issues, as I didn't drill down into those.
29025 2006-02-06 Jackson Harper <jackson@ximian.com>
29027 * ComboBox.cs: Dont manually set the top_item, this is computed
29028 when the scrollbar position is set.
29030 2006-02-06 Mike Kestner <mkestner@novell.com>
29032 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29033 startup crashes on amd64. There's other fixes needed. All pinvoke
29034 usage of Atom needs to be mapped to IntPtr for example. And there are
29035 likely other int/long issues to be addressed.
29037 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
29039 * FileDialog.cs: One more...
29041 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29043 * FileDialog.cs: Next try
29045 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29047 * FileDialog.cs: First part of fix for #77464
29049 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29051 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29052 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29053 AcceptButton border drawing.
29055 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29057 * Form.cs: Moved positioning of form after auto scaling is applied,
29058 otherwise it would possibly use wrong form size.
29060 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29062 * Control.cs (RecreateHandle): No need to re-create any child
29063 controls, the child windows will get destroyed automatically by
29064 the windowing system or driver, and re-created when the handle
29065 is being accessed the first time. Fixes #77456
29066 * Form.cs: No longer setting the form to closing if the handle is
29067 being recreated. This seems like the right thing to do, don't
29068 have a bug or testcase for this, though.
29070 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29072 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29073 controls to avoid unwanted side effects
29075 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29078 - ScaleCore needs to scale the bounds, not the ClientSize of the
29079 control. Fixes #77416.
29080 - DefaultSize is 0,0 for control
29082 - DefaultSize is 100, 20
29083 - SetBoundsCore: Now enforcing the height, no matter if the provided
29084 height is more or less than the preferred one, as long as AutoSize
29086 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29088 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29091 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29092 call unless both performLayout is true *and* we have a pending
29094 - ResumeLayout: MS does not completely nest Suspend and Resume,
29095 they bottom out at 0, fixed our code to match that.
29096 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29097 SetBoundsCore, we were updating even when we shouldn't. This fixes
29098 swf-anchors mis-anchoring when resizing the app fast and lots.
29099 - UpdateDistances: Now only setting the left and top distance if
29100 we have a parent and are not suspended, this is based on
29101 a suggestion by Don Edvaldson in bug #77355.
29102 - OnVisibleChanged: Fixed logic when to create the control. We may
29103 not create the control if we have no parent or if it's not visible;
29104 switched to using Visible property instead of is_visible field
29105 since the property also considers parent states. This fixes a bug
29106 when starting Paint.Net
29108 2006-02-02 Jackson Harper <jackson@ximian.com>
29110 * Form.cs: If the forms handle hasn't been created yet don't call
29111 into xplatui to make it top most, just set the topmost flag on the
29112 form in CreateParams
29113 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29115 2006-02-01 Jackson Harper <jackson@ximian.com>
29117 * ScrollableControl.cs: Refactored the Recalculate method a
29118 little, this wasn't handling all the variants of bottom and right
29119 bars needed to be added and added/removed based on their
29120 counterparts being added/removed (which changes the drawable
29121 size). Also we special case client widths and heights of 0 and
29122 don't add the scrollbar for those.
29124 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
29127 - Added method to get AbsoluteGeometry(); currently unused, but might
29128 be used in the future, if we try again to figure out toplevel
29129 coordinates with some more crappy window managers
29130 - Added FrameExtents() method to retrieve the WM set decoration size
29131 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
29132 to deal with at least KDE, FVWM and metacity (Fixes #77092)
29134 - Added whacky_wm tracking var for metacity
29135 - Added logic to have default menu height if the actual menu height
29136 has not yet been calculated (part of fix for #77426)
29137 * Form.cs: Keep track whether client size has been set and re-set
29138 it if a menu is added/removed afterwards (Fixes #77426)
29140 2006-01-31 Jackson Harper <jackson@ximian.com>
29142 * Control.cs: When a new Site is set on the component attempt to
29143 pull the AmbientProperties from it.
29145 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
29147 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29148 in the background of the owning form. Fixes #77332
29150 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
29152 * MimeIcon.cs: Fix for #77409
29154 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
29156 * XplatUIX11GTK.cs: Initial import
29158 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
29160 * FixedSizeTextBox: fixes class signature
29162 2006-01-30 Jackson Harper <jackson@ximian.com>
29164 * FixedSizeTextBox.cs: New internal class that represents a
29165 textBox that will not be scaled.
29168 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29171 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
29173 * XplatUIX11.cs: Retrieve default screen number instead of
29174 assuming 0. Attempted fix for #77318
29176 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
29179 - GetWindowPos: When a window is parented by FosterParent, use
29180 the desktop instead of FosterParent as the base to get coordinates
29181 - CreateWindow: Don't make FosterParent the parent window for Popups
29182 if we don't want a taskbar entry, Popups automatically don't get one
29183 * Hwnd.cs: Need to call remove to actually remove the key from the
29186 2006-01-30 Mike Kestner <mkestner@novell.com>
29188 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29190 2006-01-30 Jackson Harper <jackson@ximian.com>
29193 * TreeNode.cs: Raise events no matter how the treenode is
29194 checked. Patch by Don Edvalson.
29196 2006-01-30 Jackson Harper <jackson@ximian.com>
29198 * TreeNode.cs: Signature fix.
29200 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
29202 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29204 2006-01-20 Mike Kestner <mkestner@novell.com>
29206 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29207 event forwarding when menus are active.
29208 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
29209 Most of the patch is pdb's with a little rework.
29211 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29213 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
29214 Removed GetMenuDC and ReleaseMenuDC methods; replaced
29215 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29216 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29217 * InternalWindowManager.cs: Added use of PaintEventStart/End to
29218 handling of WM_NCPAINT message, now passing the PaintEventArgs to
29219 the PaintWindowDecorations method
29220 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29221 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29222 * MenuAPI.cs: Made tracker window invisible
29224 - Removed GetMenuDC and ReleaseMenuDC methods
29225 - Implemented the client=false path for PaintEventStart and
29228 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29230 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29231 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29234 - MaximizeBox, MinimizeBox: Recreate the handle when setting
29236 - CreateParams: Reworked the styles to match MS look'n'feel,
29237 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29238 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29240 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29242 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
29243 window is not mapped, since otherwise every form that's being
29244 created is considered minimized, which is wrong.
29245 * Form.cs: Catching the exception and returning our internal value
29248 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
29250 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29251 SetWindowMinMax() to have means to tell the driver about the minimum,
29252 maximum and maximized state window sizes. (Part of the fix for #76485)
29254 - Implemented tracking of minimum and maximum window size, now calling
29255 new SetWindowMinMax() driver method to tell the driver (Part of the
29257 - Finished handling of WM_GETMINMAXINFO method, now setting all values
29258 (Completes fix for #76485)
29259 - Calling new SetWindowMinMax driver method when the handle for a
29260 form is created, to make sure the driver knows about it even if
29261 the values have been set before the window was created
29262 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29263 to avoid messing up our anchoring calculations (partial fix
29265 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29267 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29268 - Improved GetWindowState() to detect 'Minimized' state on Metacity
29269 (and presumably other freedesktop.org compliant WMs). Left the
29270 assumption unmapped=minimized, needed for SetVisible to work.
29271 - Now setting the window state when creating windows
29272 - Fixed SetVisible to consider/set the window state when mapping
29273 a Form. We cannot set the state before it's mapped, and we cannot
29274 use Form.WindowState once it's mapped (since it would ask the
29275 driver and get 'normal'. Therefore, we grab the state before
29276 mapping, map, and then set state.
29277 - Implmemented SetWindowMinMax method; Metacity does not seem to
29278 honor the ZoomHints, though.
29280 - Removed MINMAXINFO (moved to XplatUIStructs)
29281 - Added SetWindowMinMax stub (on Win32 the only way to set that
29282 information is in response to the WM_GETMINMAXINFO message, which
29283 is handled in Form.cs)
29284 - Added logic to SetVisible to set the proper window state when a
29285 form is made visible (fixes #75720)
29287 2006-01-26 Jackson Harper <jackson@ximian.com>
29289 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29290 same way we handle them with Invoke.
29292 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
29295 - Added tracking of window state so CreateParams can return
29296 the appropriate style
29297 - Moved setting of WS_CAPTION style in CreateParams to allow
29298 styles without caption
29299 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
29300 control if the TextBox property is accessed. Fixes #77345
29302 - get_Created: now uses is_disposed and is_created to determine
29303 return value (suggested by Jackson)
29304 - CreateHandle: No longer exits if the handle is being recreated
29305 - RecreateHandle: If the handle is not yet created call the
29306 appropriate method to create either control or handle. If the
29307 control is already created CreateHandle will simply exit instead
29308 of just creating the handle
29309 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29310 now SendMessage WM_DESTROY directly to the control when DestroyWindow
29313 - When DestroyWindow is called, instead of waiting for the
29314 DestroyNotification from X11, we directly post it to the WndProc
29315 and immediately dispose the hwnd object.
29316 Same applies to DestroyChildWindows, and this obsoletes the
29317 expose_pending tracking. Contrary to Win32 behaviour we destroy our
29318 child windows before our own, to avoid X11 errors.
29319 - Removed the direct sending of WM_PAINT on UpdateWindow
29321 - Reworked DoEvents and GetMessage to allow access to internal queue
29322 even when trying non-blocking access to the queue. Fixes #77335.
29323 Based on a patch suggestion by Don Edvalson. The new private
29324 GetMessage can now also be used as a backend for a PeekMessage
29326 * XplatUI.cs: Improved debug output for CreateWindow
29328 2006-01-25 Jackson Harper <jackson@ximian.com>
29330 * Help.cs: Allow param to be null. Patch by Don Edvalson.
29332 2006-01-24 Jackson Harper <jackson@ximian.com>
29334 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29335 when we have a MaxDropItems lower then the selected index.
29337 2006-01-24 Jackson Harper <jackson@ximian.com>
29339 * Control.cs: Don't allow selection of non visible controls, allow
29340 selection of controls without parents.
29342 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
29344 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29345 * DataGridDrawingLogic.cs: Add editing row only when is necessary
29347 2006-01-23 Jackson Harper <jackson@ximian.com>
29349 * UpDownBase.cs: Make the textbox handle all the selection and
29350 tabbing. This fixes tabing to updown controls.
29352 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
29354 * TextBoxBase.cs: fixes exception thown the object was null
29356 2006-01-23 Jackson Harper <jackson@ximian.com>
29358 * ButtonBase.cs: Just use the base CreateParams. They set
29359 visibility and enabled correctly.
29362 * MonthCalendar.cs: Lets let the base set as much of the
29363 createparams as possible so we don't have duplicate code all over
29366 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
29368 * ThemeGtk.cs: Added TrackBar and some experimental code to
29369 get double buffering back
29371 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
29373 * DataGrid.cs: Allows row number set internally higher than the last
29374 when creating a new row. Restores the editing functionality.
29376 2006-01-20 Mike Kestner <mkestner@novell.com>
29378 * MimeIcon.cs: delay Image creation until the icons are accessed
29379 instead of creating 190 scaled images on GnomeHandler startup.
29381 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
29383 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29384 first call base before processing the event. Fixes #77279
29386 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
29388 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29389 that the stride for the GDI bitmap would match the stride of
29392 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
29394 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29396 2006-01-19 Jackson Harper <jackson@ximian.com>
29398 * ComboBox.cs: Hookup the text controls keydown event so we get
29399 those when the text control has the focus.
29401 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29403 * Label.cs: Now using the base events instead of defining new ones;
29404 this allows us to just call the base properties without having to
29405 duplicate all base property logic
29407 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29409 * Label.cs: A label by default is not a tabstop (Fixes one of our
29410 failing nunit tests)
29412 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29414 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29415 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29417 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29419 * Cursor.cs: Reimplemented creating cursor bitmaps without using
29420 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29423 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
29424 constructor creates images that can't be saved. Part of the fix
29426 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29427 - SetWindowState: Switched ShowWindow flags (part of an upcoming
29428 bug fix for handling window state in forms properly)
29430 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29432 * ThemeGtk.cs: Simplify ScrollBar drawing
29434 2006-01-18 Jackson Harper <jackson@ximian.com>
29436 * Splitter.cs: Set the default dock style for the splitter control
29437 in the constructor.
29439 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29441 * ThemeGtk.cs: Corrected StateType and ShadowType for
29444 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29446 * Control.cs: Make use of Theme.DoubleBufferingSupported
29448 - Added drawing for flat style buttons
29449 - Added ScrollBar drawing
29451 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29453 * ThemeClearlooks.cs: Removed some unneeded code.
29454 * ThemeGtk.cs: First part of ThemeGtk enhancements.
29456 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
29458 * LinkLabel.cs: We need to update the hover drawing when
29459 leaving the control as well.
29461 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
29463 * DataGrid.cs: Clicking on non empty areas in the columns
29464 area was giving an exception
29466 2006-01-17 Jackson Harper <jackson@ximian.com>
29468 * ThemeWin32Classic.cs:
29469 * ListView.cs: Do not draw/clip the headers when the header style
29472 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
29474 * DataGrid.cs: Fixes 77260
29476 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
29478 * DataGrid.cs: Clicking on a column on a empty grid was giving
29481 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
29483 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29484 or any keypress will crash the grid.
29486 2006-01-17 Mike Kestner <mkestner@novell.com>
29488 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29489 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
29490 invisible/previously-visible items.
29493 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
29495 * ThemeClearlooks.cs:
29496 - Added CL_Draw_Button method; now other theme controls that are
29497 not derived from button or do not have a button can draw buttons
29499 - Updated ComboBox drawing
29500 - Beautified RadioButton drawing
29501 - Corrected drawing of bottom and left tabs
29502 - Beautified DateTimePicker and MonthCalendar
29503 - Added CPDrawButton and CPDrawRadioButton
29505 2006-01-16 Jackson Harper <jackson@ximian.com>
29507 * ComboBox.cs: Set the initial value of the scrollbar to the
29508 current index. Reduce the numbers of refreshs and IndexOfs called.
29510 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
29512 * FileDialog.cs: When the file listview is focused hitting the
29513 backspace key moves the fileview to the parent directory
29515 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29518 - Added RecreateHandle call when changing taskbar visibility to
29519 trigger reparenting in Win32 driver (Fixes #75719)
29520 - If a window has minimize or maximize buttons, it cannot have
29523 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29524 the toplevel form with FosterParent (A toolwindow not on the
29525 taskbar) (Fixes #75719)
29526 - Made FosterParent a toolwindow
29528 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
29530 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29532 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
29534 * ToolTip.cs: If SetToolTip is called from a control and the mouse
29535 is currently over that control, make sure that tooltip_window.Text
29538 2006-01-13 Mike Kestner <mkestner@novell.com>
29540 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29542 2006-01-13 Jackson Harper <jackson@ximian.com>
29544 * TreeView.cs: On MS GetNodeAt never actually factors in the X
29545 value passed. Also redraw the selected node when we recieve
29546 focus, so tabbing between trees works correctly.
29548 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
29550 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29551 ~/.gconf/%gconf-tree.xml, so use
29552 .gconf/desktop/gnome/interface/%gconf.xml
29554 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29556 * TextControl.cs: Draw text in gray if control is disabled
29558 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29560 * TreeView.cs: Draw the focus rectangle outside the highlight, to
29561 make sure it's always visible. Fixes #76680.
29563 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29565 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29567 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
29569 * PageSetupDialog.cs: Added.
29570 * PrintDialog.cs: Attributes.
29571 * PrintPreviewControl.cs: Updates.
29572 * PrintPreviewDialog.cs: Updates.
29574 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29576 * Control.cs: Undid my selection check fix, since it's not needed
29578 - Now considering the presence of hscroll/vscroll when sizing
29579 vscroll/hscroll respectively. Fixed bug #77077
29580 - Added Left/Up/Down/Right to IsInputKey list to prevent
29581 ContainerControl from stealing them. This fixes what I broke
29582 with my last checkin.
29584 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29586 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29587 I finally understand how the property can be set without a setter :-)
29589 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29592 - Switched RunLoop to use static Message.Create to create a
29594 - Added PreProcessMessage call in runloop for keyboard events; this
29595 is part of the fix for #77219, I overlooked this originally in the
29596 MSDN doc for PreProcessMessage
29598 - Removed call to PreProcessMessage from handling of keyboard
29599 messages; it's supposed to be done in the message pump
29600 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29601 per MSDN documentation.
29602 - IsInputChar: All chars are input chars by default; removed the
29603 parent calling chain, MS does not document that
29604 - PreProcessMessage: If IsInputChar is true, we want to return false
29605 to allow dispatching of the message
29606 - When selecting the next control, now also check that we're not
29607 selecting ourselves again and therefore return a false positive.
29609 - Tried to match return values for IsInputKey and ProcessDialogKey
29610 to what MS returns; moved processing of our special keys outside
29611 ProcessDialogKey since MS does not seem to return true on those.
29612 - Moved code that previously was in ProcessDialogKey into new private
29613 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29614 - Reworked handling of WM_CHAR to not have to duplicate code from
29615 Control.cs anymore, instead we simply call down to base.
29617 2006-01-12 Jackson Harper <jackson@ximian.com>
29619 * ComboBox.cs: We always need to refresh the text area when
29620 EndUpdate is called. Fixes the combobox in the file dialog.
29621 * Control.cs: Don't create the creator_thread until the controls
29622 handle is created. Also in InvokeRequired we check if the
29623 creator_thread is null. This gives the effect of InvokeRequired
29624 returning true if the controls handle is not created yet, and
29627 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29630 - Added StartLoop() driver method. This is used to allow drivers to
29631 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29632 loop for a particular thread
29633 - Added EndLoop() driver method. This is called once the message
29634 pump for the thread is shut down
29635 - Added SupportsTransparency method to allow the driver to indicate
29636 opacity support for windows
29638 - Removed TODO attribute, completed AllowTransparency property
29639 - Added documented logic to Opacity
29640 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29641 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29642 versions of CompatibleTextRendering
29643 * X11Structs.cs: Added opacity atom to our atom enumeration
29644 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29645 of a form might be set before it's reparented by the WM, and we need
29646 the opacity value without calling up to Form)
29647 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
29648 SupportsTransparency() driver methods
29649 * Application.cs: Now calling StartLoop and EndLoop driver methods
29651 - Added opacity atom registration
29652 - Added StartLoop()/EndLoop() methods. They're empty right now but
29653 will need to get implemented when we switch to a per-thread queue
29654 - Implemented SupportsTransparency() method
29655 - Implemented SetWindowTransparency() method
29656 - Added support for setting the opacity value when a window is
29657 reparented (since the opacity needs to be set on the WM frame)
29658 * XplatUIOSX.cs, XplatUIWin32.cs:
29659 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29661 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
29663 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29665 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
29667 * FileDialog.cs: Added ToolTip for MWFFileView
29668 * MimeIcon.cs: Rewrote GnomeHandler.
29669 - Get currently used gnome icon theme from
29670 ($HOME)/.gconf/%gconf-tree.xml
29671 - Make use of inherited icon themes
29672 - Support SVG icon themes like Tango via librsvg
29674 2006-01-12 Miguel de Icaza <miguel@novell.com>
29676 Revert's Jackson's revert which broke 2.0 builds. Fix both
29679 * Application.cs: Move the use_compatible_text_rendering outside
29680 the NET_2_0 define. If we ever need to use the
29681 use_compatible_text_rendering on the individual controls they will
29682 access the variable from the common shared code paths.
29684 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29687 - Added more granular debug options
29688 - Added method to print both window text and id
29689 - Switched debug output to use new Window() debug method
29690 - Added IsEnabled() driver method
29691 - Added EnableWindow() driver method
29693 - Removed end_modal; no longer needed, new loop handles termination
29694 via 'closing' variable
29695 - If form is modal, setting DialogResult will now initiate loop
29696 termination via 'closing' variable
29697 - Added support for is_enabled/WS_DISABLED to CreateParams
29698 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29700 - Removed code that's now in RunLoop from ShowDialog()
29701 - Added various documented sanity checks to ShowDialog()
29702 - Added handling of WM_DESTROY message; we set 'closing' on getting
29703 the message to indicate the message pump to terminate
29704 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29705 send by the Application.ExitThread method. (We send the message
29706 to destroy the window after all other events have been
29707 processed through the queue, instead of destroying the handle
29709 - Moved code from Close() method to WM_CLOSE handler; added logic
29710 to only send close-related events if the form is not displayed
29712 * Splitter.cs (..ctor): Fixed typo in resource name
29714 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29716 - set_Cursor: Now only setting calling into XplatUI if the handle for
29717 the control is already created; this avoids implict handle creation
29718 or crashes if it's not created
29719 - set_Enabled: Now setting the enabled state via the new driver method
29720 instead of just tracking it
29721 - CreateParams: Added logic to set WS_DISABLED based on enabled state
29722 - CreateControl: Reordered event firing and method calls to more
29723 closely fire events in the order MS does. Now setting the
29724 enabled state in the driver when creating the control.
29725 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29727 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29728 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
29729 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29731 - Added tracking of window enabled state (get_Enabled/set_Enabled)
29732 - Added EnabledHwnd property to easily allow a driver to find the
29733 handle of the first enabled window in the parent chain (this is
29734 used by drivers to pass up input events of disabled windows)
29735 * XplatUIDriver.cs: Added IsEnabled() method
29737 - Removed crude and obsolete exiting tracking variable
29738 - Removed internal ModalRun(); replaced by RunLoop()
29739 - Implemented private CloseForms() method to allow closing all
29740 windows owned by a particular (or all) threads
29741 - Exit() now properly closes all windows without forcing the message
29743 - Removed obsolete InternalExit() method
29744 - Changed Run() methods to use new RunLoop() message pump
29745 - Implemented new RunLoop() method for both modal and non-modal forms
29747 - get_CreateParams: Added setting of WS_DISABLED
29748 - Simplified ShowDialog(); now all the work is done in RunLoop(),
29749 invoked via Form.ShowDialog()
29750 * NativeWindow.cs: We don't remove the window from the collection when
29751 the handle is destroyed; there might still be messages for it in the
29752 queue (mainly the resulting WM_DESTROY); instead it will be removed
29753 when Control calls InvalidateHandle in the WM_DESTROY handler
29755 - CreateWindow: Added logic to handle the WS_DISABLED window style
29756 - EnableWindow: Implemented based on Hwnd.Enabled
29757 - GetMessage: Reset PostQuitState so the method can be called again
29758 - Implemented support for disabled windows (passing messages to the
29759 first enabled parent) in handling all input messages
29760 - Added optimizations for handling Expose events
29761 - Implemeted new driver method IsEnabled()
29762 - Now always resetting paint pending tracking vars when we start paint
29763 - Re-implemented UpdateWindow via just sending a WM_PAINT message
29764 * XplatUIOSX.cs: Added IsEnabled method stub
29765 * XplatUIWin32.cs: Implemented new IsEnabled() method
29767 2006-01-11 Jackson Harper <jackson@ximian.com>
29769 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29770 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29771 variables a little.
29772 * ColorDialog.cs: Clear out the old form before adding the new
29775 2006-01-11 Jackson Harper <jackson@ximian.com>
29777 * X11Dnd.cs: Make sure to add all the text formats when adding
29778 strings to the data object.
29779 * TreeNodeCollection.cs: When adding to a sorted tree we need to
29780 do some redrawing too. Also change the UpdateNode to an
29781 UpdateBelow so the newly added node gets painted.
29783 2006-01-11 Miguel de Icaza <miguel@novell.com>
29785 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29786 LinkLabel.cs, PropertyGrid.cs: Implement the
29787 UseCompatibleTextRendering property for 2.x
29789 * Application.cs (SetCompatibleTextRenderingDefault): Add.
29791 2006-01-11 Jackson Harper <jackson@ximian.com>
29793 * TreeView.cs: Use the property for setting the selected node so
29794 the correct events get raised.
29795 * TreeNode.cs: Update the tree when the fore/back colours of a
29798 2006-01-10 Jackson Harper <jackson@ximian.com>
29800 * TreeView.cs: Allow setting SelectedNode to null.
29802 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29804 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29806 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29808 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29810 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29812 * PrintDialog.cs: Added attributes and set default property values.
29814 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29816 * PrintControllerWithStatusDialog.cs:
29817 Added PrintControllerWithStatusDialog.
29819 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29821 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29822 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29824 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29826 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29828 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29830 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29831 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29833 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29835 * MimeIcon.cs: Added internal class SVGUtil.
29837 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29839 * FileDialog.cs: Don't crash if there are two files with the
29840 same name but different locations.
29842 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
29844 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29845 dates across multiple month grids. Used to not highlight entire
29846 month, but does now.
29848 2006-01-06 Jackson Harper <jackson@ximian.com>
29850 * MonthCalendar.cs: Removed DoEvents call to prevent a running
29851 message loop. Change timer intervals to numbers that seem more
29854 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
29856 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29857 object for location info since screen object is now implemented.
29859 2006-01-05 Jackson Harper <jackson@ximian.com>
29861 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29862 * AsyncMethodResult.cs: We no longer use a WeakReference for the
29863 AsyncMethodResult, this is because we ALWAYS want the
29864 ManualResetEvent to get set.
29865 * Control.cs: When disposing use an async invoke to call shutdown
29866 code, so that thigns don't block on the finalizer thread. Also
29867 check if we even have a message loop before trying to send
29868 messages, if we don't then don't bother sending messages.
29869 - No more weak references for async methods
29870 * XplatUIDriver.cs: No more weak references for async methods.
29872 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29874 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29875 returns two FontFamily with the same name
29877 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29879 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
29880 drawing disabled text. Instead using the ColorGrayText color
29882 2006-01-04 Jackson Harper <jackson@ximian.com>
29884 * TreeNode.cs: redraw the node when its image index is changed.
29886 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29888 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29889 time I checked there are no others like it.
29891 2006-01-04 Jackson Harper <jackson@ximian.com>
29893 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29894 this gives the behavoir I was looking for.
29895 * Control.cs: Special case Invoking EventHandlers, this matches MS
29896 and fixes part of bug #76326.
29898 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29900 * ThemeClearlooks.cs, FileDialog.cs:
29901 - Reflect the latest Theme class changes
29902 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
29905 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29907 * Theme.cs: Cache UI resource images and resize them if needed
29909 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29911 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29912 is called. This fixes the crash in Nexxia when setting the font
29913 attributes in the chat. [However, RTF needs a look-over to make sure
29914 that all SelectionXXX methods handle the special case that selection
29915 is empty and therefore the change must be applied to all text starting
29916 at the cursor/selection start]
29918 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29920 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29921 XplatUIOSX.cs: Added SendMessage and PostMessage methods
29922 * X11Keyboard.cs: Switched to new way of calling PostMessage
29924 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29926 * Theme.cs: Added theme interface for images to allow the theme to
29927 control what images are used for things like FileDialog, MessageBox
29929 * MessageBox.cs: Now uses the new Theme icon/image interfaces
29931 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
29934 - Removed some dead code
29935 - Opening a recently used file does work now
29936 - Small UI enhancements
29939 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29941 * FileDialog.cs: Forgot too add __MonoCS__
29943 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29945 * FileDialog.cs: We are able to read recently used files now let's
29946 go on and write them.
29948 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
29950 * FileDialog.cs: Breathe some life into "last open"/"recently used"
29952 * MimeIcon.cs: Do a check for the top level media type also
29954 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29956 * ThemeClearlooks.cs:
29957 - Added CPDrawStringDisabled
29958 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29959 some chars if the text doesn't fit into text_rect
29960 - DrawListViewItem: If View = View.LargeIcon center the image;
29961 rewrote the drawing of ListViewItem.Text if View =
29964 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29966 * MimeIcon.cs: Use default KDE icon theme if there is no
29967 "48x48" directory for the current icon theme, fixes #77114
29968 * Mime.cs: Disable not working and actually not used code.
29969 * ThemeWin32Classic.cs:
29970 - Replace "new SolidBrush" in GetControlBackBrush and
29971 GetControlForeBrush with ResPool.GetSolidBrush
29972 - Changed DrawListViewItem from private to protected virtual
29974 - Added form.MaximizeBox = true
29975 - Don't throw an exception if there is a broken symbolic link
29977 2005-12-23 Jackson Harper <jackson@ximian.com>
29979 * TabControl.cs: Give the panels focus, keyboard navigation is
29980 fixed so this works correctly now.
29981 - We need these key events also.
29982 * ToolBar.cs: Remove some of the poor mans double buffering.
29984 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
29986 * ComboBox.cs: The internal TextBox now returns the focus.
29988 2005-12-23 Jackson Harper <jackson@ximian.com>
29990 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
29992 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29994 * Control.cs: Removed debug code
29995 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29998 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30000 * Control.cs: When creating the control, update the Z-order after
30001 all it's children are created, too. (Fixes nexxia not showing
30004 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30006 * Control.cs: Do not update the anchoring distances if layout is
30007 suspended, instead do it once layout is resumed
30009 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30012 - After many hours of debugging, for both Jackson and
30013 myself, it turns out that it helps to set the parent of a control
30014 if you want to actually see it onscreen. In the spirit of that
30015 discovery, we're now setting the parent of the control and
30016 it's children when the control's handle is created. This fix
30017 will make Lutz Roeder's Reflector run happily.
30018 - now just creating the handle instead of the whole control when
30019 getting a graphics context for the control.
30021 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30023 * ScrollableControl.cs: When calculating the canvas, don't consider
30024 the scrollbar widths. Instead, predict if horizontal scrollbar
30025 will affect canvas when deciding on vertical display and vice versa.
30027 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30029 * RichTextBox.cs: Set default RTF font for documents that don't
30030 have a font table (Fixes #77076)
30032 2005-12-22 Jackson Harper <jackson@ximian.com>
30034 * TextBoxBase.cs: It's difficult to do, but you can have an empty
30035 clipboard. This prevents a NullRef in that case.
30036 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30037 clipboard. PRIMARY is for the currently selected text only. (We
30038 should implement PRIMARY at some point.
30040 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30042 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30043 a Unicode function with a structure that was defined in Ansi way.
30046 2005-12-21 Jackson Harper <jackson@ximian.com>
30048 * StatusBar.cs: Statusbar handles its fore/back colours on it's
30049 on. Because thats how it rolls. (and this avoids it using ambient
30051 * ThemeWin32Classic.cs: Use the proper back color for filling.
30052 * Menu.cs: Use the system menu bar color for drawing menu
30053 bars. Using the window back color will bring ambient colours into
30056 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
30058 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30059 Bitmaps were created and not disposed.
30061 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30063 * Control.cs (CreateControl): Don't do anything if the control is
30064 already created, otherwise we'd fire the OnCreated event more than
30067 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30069 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30070 will always match. Instead return -1. Fixes #76464.
30072 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30074 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30075 neither the beginning nor the end of the line (Fixes bug #76479)
30077 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30080 - ControlNativeWindow.ControlFromHandle(): Now handling situation
30081 where handle is invalid
30082 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30083 instead of slower linear search
30084 * NativeWindow.cs: Don't remove the window from the hashtable until
30085 after the driver has destroyed it (since the driver might use
30086 Control.FromHandle to lookup the control object
30087 * Hwnd.cs: Added DestroyPending property to track if a window is
30088 already destroyed as far as the driver is concerned and only hasn't
30089 yet notified the control
30091 - Activate(): Check if the window is still valid before using the
30093 - Implemented DestroyChildWindow() method to mark child windows as
30094 destroyed when a window is destroyed. This prevents situations
30095 where we might call an X method based on queued events for a
30096 window that already has been destroyed but we haven't yet pulled
30097 the destroy method from the queue.
30098 - Added a call to the new DestroyChildWindow() method to the drivers
30099 DestroyWindow code. Also now marking the destroyed window itself
30102 2005-12-20 Jackson Harper <jackson@ximian.com>
30105 * StatusBarPanel.cs: Don't calculate panel sizes on draw
30106 anymore. Just do them when needed, also track the rects of panels
30107 so that we can optimize refreshing more in the future.
30109 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
30111 * ColorDialog.cs: Fixed focus drawing in small color controls
30113 2005-12-19 Jackson Harper <jackson@ximian.com>
30115 * InternalWindowManager.cs:
30116 * MdiWindowManager.cs: Cleanup some coordinate system changes so
30117 moving windows works properly.
30119 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
30122 - Removed call to InitLayout() from SetBoundsCore(); doc says
30123 it's only called when a control is added to a container
30124 - Split InitLayout logic, moved to separate UpdateDistances() method
30125 since we need to perform those calculations more often than just
30126 when adding the control to a container. (Needed to fix #77022)
30127 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30128 - Reduced the OnBindingContextChanged events count, don't send them
30129 unless the control is created, we still aren't totally matching
30130 MS, but I can't quite figure out some of their rules
30132 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30134 * ThemeClearlooks.cs: Corrected distance between ProgressBar
30137 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30139 * ThemeClearlooks.cs:
30140 - Updated ProgressBar drawing
30141 - Corrected drawing of ScrollBars and scroll buttons
30142 - Some temporary fixes for minor pixel artefacts
30144 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
30147 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30148 cause events to be sent in the same order as MS does.
30149 - Added ChangeParent() method to trigger various OnXXXChanged events
30150 that need to be fired when a parent changes (This is a reworking
30151 of the patch from r54254, with the X11 errors fixed)
30152 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30153 since on MS we get OnLayoutChanged events when calling Clear()
30154 - Changed Enabled property to consider parent state as well, if a
30155 parent is not enabled, the control will not be either
30156 - Changed Parent property to simply call Controls.Add() since that
30157 now does all the work required, this way we avoid code duplication
30158 - Threw in a few OnBindingsContextChanged calls to try and match
30159 when MS sends them. We seem to send a few too many, though.
30160 - Added call to CreateControl when adding the control to a parent.
30161 We were never calling CreateControl. Still needs some work, in
30162 some places we treat HandleCreated and ControlCreated as equal,
30164 - Removed obsolete commented out code from UpdateZOrder()
30166 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
30168 * ThemeClearlooks.cs: Updated TrackBar drawing.
30170 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
30172 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30174 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
30176 * FileDialog.cs: Add the Help button and the open readonly
30177 checkbox only if needed
30179 2005-12-16 Jackson Harper <jackson@ximian.com>
30181 * Control.cs: Make sure we have an active menu before trying to
30182 process commands on it. Prevents menu-less forms from crashing
30183 when Alt is pressed.
30184 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30186 * RichTextBox.cs: Expand statement to help out gmcs and fix the
30189 2005-12-16 Jackson Harper <jackson@ximian.com>
30191 * InternalWindowManager.cs: Don't translate tool windows screen
30192 coordinates. This fixes windows 'bouncing' around when being moved.
30194 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
30197 - MaxLength now treats 2^31-1 equal to unlimited length (this is
30198 not quite MS compatible, MS uses that number only for single line
30199 and 2^32-1 for multi-line, but I figure it won't hurt keeping
30201 - Now enforcing the MaxLength limit when entering characters
30202 - Added argument to internal Paste() method to track if it's called
30203 from programatically or via keyboard, since keyboard driven pastes
30204 need to enforce max-length
30205 - Added logic to Paste to only paste as many chars as MaxLength
30207 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30209 - Added Length property to return number of characters in document
30210 - Added private CharCount property which only tracks actual chars
30211 in the document (no linefeeds) and fires event when CharCount
30213 - Added tracking of character count to all methods that alter it
30214 - Added LengthChanged event to allow applications to subscribe
30215 to any changes to the document
30217 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
30220 - Removed local password_char field (moved to TextBoxBase)
30221 - Now setting the document's password var when password is
30224 - Added password_char field (needed here so MultiLine can
30226 - Added logic to MultiLine property setter to set the document's
30227 variable when password display is allowed
30228 - Removed debug code and made some debug code conditional
30230 - Added RecalculatePasswordLine() method to handle special password
30232 - Added PasswordChar property, also added related tracking vars
30233 - Draw() method now uses local text var for grabbing text to draw,
30234 this var is set to line.text unless we're doing password display,
30235 then it is set to the pre-generated all-password-chars line
30236 - Added calling RecalculatePasswordLine() method for password lines
30238 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
30241 - Added Reparented property to allow tracking of Window Manager
30242 reparenting actions (which affect X/Y calculations of toplevel
30244 - Made ToString() print window handles in hex
30246 - AddConfigureNotify(): Now uses reparented state off Hwnd to
30247 determine if X/Y needs offsetting
30248 - AddConfigureNotify(): Fixed offset calculations
30249 - Now adds ReparentNotify messages into the queue
30250 - Now processes ReparentNotify messages and causes a
30251 WM_WINDOWPOSCHANGED message to be sent upstream if a window
30252 is reparented (as most likely it's X/Y coordinates are changed
30255 2005-12-14 Jackson Harper <jackson@ximian.com>
30257 * XplatUIX11.cs: Tool windows still need to respek focus.
30259 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
30261 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30262 have a working release
30264 2005-12-13 Jackson Harper <jackson@ximian.com>
30266 * Form.cs: Update styles after setting the border style regardless
30267 of whether or not the window is using a window manager.
30269 2005-12-13 Jackson Harper <jackson@ximian.com>
30271 * Form.cs: We now hook into an internal window manager instead of just an
30272 MDI subsystem, this is so we can have properly behaving tool windows.
30273 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30274 * InternalWindowManager.cs: New internal class that acts as a
30275 window manager for tool windows and as a base for mdi windows.
30276 * MdiWindowManager.cs: New class that acts as a window manager for
30279 2005-12-12 Jackson Harper <jackson@ximian.com>
30281 * Control.cs: Updates so we match behavoir for for implicit
30282 controls. Fixes explosions in MDI.
30284 2005-12-12 Jackson Harper <jackson@ximian.com>
30286 * Control.cs: Implement Invalidate (Region).
30288 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
30291 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
30292 the same events as MS does. MS fires events for each property
30293 except, for unknown reasons, Cursor, when the control is reparented.
30294 I can't seem to totally match add/remove since MS also fires some
30295 VisibleChanged events, which makes no sense. Consolidated the
30296 parenting code into a separate method so it can be called from
30297 both Add and Remove. set_Parent no longer needs any special logic
30298 as it calls the parent's add method which implicitly fires
30300 - Removed some obsolete code and debug output
30301 - Enabled state is inherited from parents, if this is enabled
30303 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
30305 * Form.cs: Removed commented out code
30307 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
30310 - Added internal version of Invoke, with additional argument
30311 indicating if we're calling it from a Dispose() handler. That
30312 way we can avoid BeginInvoke throwing an exception if we're
30313 calling for an already destroyed window.
30314 - Added a dispose argument to BeginInvokeInternal, and made the
30315 check if a valid window handle chain exists conditional on
30316 it not being a dispose call
30317 - Removed code in DestroyHandle to destroy our children. Since we
30318 now handle the WM_DESTROY message we will catch all our children
30320 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30322 - Added a field to track the application context of the form.
30323 - No need to set closing variable as response to WM_CLOSE, instead
30324 we destroy the window. We also call PostQuitMessage if the form
30325 has an application context (which makes it the main app form,
30326 which, when closed terminates the app)
30328 - Dropped Exit() method, it's naming was confusing
30329 - Added PostQuitMessage() which causes GetMessage to return false
30330 once the message queue is empty
30331 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
30333 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30334 no longer a valid XplatUI method, but left it in since it's used
30335 internally. Added empty PostQuitMessage() method.
30336 * MenuAPI.cs: Replaced call to Exit() with call to
30337 PostQuitMessage, even though this is probably no longer needed.
30338 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30339 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30341 - Replaced call to XplatUI.Exit() with PostQuitMessage()
30342 - Removed old debug code that would call XplatUI for exception
30343 display, enabled standard exception handling (Still not enabled
30344 though, until NativeWindow's ExternalExceptionHandler define
30347 - Added internal method to allow control to update NativeWindow
30348 after a window has been destroyed
30349 - Added handling of already destroyed windows when calling i
30351 - Added removal of handle from list on ReleaseHandle
30353 - Dropped GetMessageResult var and related code
30354 - Added PostQuitState to field to track if PostQuitMessage has been
30356 - Dropped Exit() method
30357 - Added PostQuitMessage() method
30358 - GetMessage now will return false if PostQuitState is set and no
30359 more messages are in the queue.
30360 - Expose handler will no longer generate WM_PAINT messages if we are
30361 in PostQuitState since it's very likely any windows have already
30362 been destroyed, and since Hwnd won't get updated until we have
30363 processed the DestroyNotify we'd be causing X errors.
30365 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30367 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30368 Thanks to Mike for pointing out the err of my ways.
30370 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30372 * Control.cs(PreProcessMessage): Moved menu handling back, but
30373 after all other key handling, to match MS (who handles Menu in
30375 * Menu.cs (WndProc): Removed my brainfart
30377 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30379 * Control.cs(PreProcessMessage): Removed special menu handling
30380 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30382 2005-12-07 Mike Kestner <mkestner@novell.com>
30384 * Control.cs : special case SYSKEYUP so that we can adjust keynav
30385 state according in tracker.
30386 * Menu.cs : promote tracker field to base class and provide a tracker
30387 lookup capability. Add/Remove shortcuts dynamically if the top menu
30388 has a tracker. Unparent items that are removed from the collection.
30389 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30390 * Theme*.cs: add always_show_hotkeys field to support configurability
30391 of mnemonic display. win32 doesn't show mnemonics until Alt is
30394 2005-12-07 Jackson Harper <jackson@ximian.com>
30396 * MdiChildContext.cs: Use Control.ResetCursor.
30397 * Control.cs: ResetCursor needs to set the property so that the
30398 correct XplatUI call gets made.
30400 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30402 * Control.cs: More fixes to make our key events match MS. We
30403 were not setting the modifier state on KeyData, and we were
30404 not generating any events when Alt was pressed with a key
30405 since handling of WM_SYSxxx was missing for the OnKey methods.
30407 2005-12-07 Jackson Harper <jackson@ximian.com>
30409 * MdiChildContext.cs: reenable the sizing code.
30410 - When the mouse leaves a window reset its cursor.
30412 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
30414 * ThemeClearlooks.cs: Reflect latest Hwnd changes
30416 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30418 * Hwnd.cs: Now using the theme 3d bordersize to calculate
30419 widths of Fixed3D borders
30421 2005-12-07 Jackson Harper <jackson@ximian.com>
30423 * MdiClient.cs: Fix warnings. Earn Mike's love.
30425 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
30427 * ThemeClearlooks.cs:
30428 - Adjusted mouse over button color
30429 - Added first parts of CheckBox drawing
30430 - Added correct color for selected text background
30431 - Fixed ComboBox drawing
30432 - Added CPDrawBorder3D and CPDrawBorder
30434 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
30436 * XplatUIX11.cs: Added call to XBell for AudibleAlert
30438 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
30440 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30441 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30442 alert users via sound. We could add an enum arg with different
30443 types of alerts in the future
30445 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
30447 * Control.cs: Fix behaviour problems pointed out by Mike
30449 2005-12-05 Mike Kestner <mkestner@novell.com>
30451 * StatusBarPanel.cs: add Invalidate method and hook it into all the
30452 prop setters. Calls parent.Refresh for now, but could be maybe be
30453 optimized with an internal method on StatusBar at some point.
30456 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
30458 * RichTextBox.cs: Implemented get_SelectionColor
30460 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
30462 * ThemeClearlooks.cs:
30463 - Removed dead code
30464 - Draw black button border only if button is Form.AcceptButton
30465 - Draw correct button color for pressed RadioButton if the mouse
30466 has entered the button
30467 - Updated ProgressBar drawing!
30468 - Updated CPDrawSizeGrip drawing
30469 - Updated StatusBarPanel drawing
30471 2005-12-05 Mike Kestner <mkestner@novell.com>
30473 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30474 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30476 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
30478 * ThemeClearlooks.cs: Initial check-in, activate with
30479 export MONO_THEME=clearlooks
30480 * ThemeEngine.cs: Added ThemeClearlooks
30482 2005-12-03 Mike Kestner <mkestner@novell.com>
30484 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30487 2005-12-02 Jackson Harper <jackson@ximian.com>
30489 * Form.cs: If the child form has no menu the default main menu is
30490 used as the active menu.
30492 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
30494 * ListBox.cs: Check if any items exist before trying to resolve
30495 coordinates into items
30497 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
30499 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30500 as the second color for the background hatch
30502 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
30504 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30505 * RichTextBox.cs: FormatText position arguments are 1-based, now making
30506 sure that what we pass to FormatText is always 1-based. Fixes #76885
30508 2005-11-29 Miguel de Icaza <miguel@novell.com>
30510 * NumericUpDown.cs (EndInit): When we are done initializing,
30511 reflect any updates on the UI.
30513 2005-12-02 Jackson Harper <jackson@ximian.com>
30515 * ImplicitHScrollBar.cs:
30516 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30517 their container controls.
30518 * TreeView.cs: Use the new implicit scrollbars.
30520 2005-12-02 Jackson Harper <jackson@ximian.com>
30522 * TreeView.cs: Make top_node internal so the TreeNodeCollections
30524 * TreeNodeCollection.cs: If we remove the topnode we need to
30525 update topnode to the next node in line.
30526 - When clearing nodes go through the same process as removing
30527 them, so they get depareneted and checked if they are top node.
30529 2005-12-01 Jackson Harper <jackson@ximian.com>
30531 * TreeView.cs: When imagelists are used the image area is
30532 selectable as well as the text.
30533 - If there are no selected nodes select the first one.
30534 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30535 so don't do it more then we need to.
30537 2005-12-01 Jackson Harper <jackson@ximian.com>
30539 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30540 that arrows can be scaled.
30542 2005-12-01 Jackson Harper <jackson@ximian.com>
30544 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30545 fail. Patch by Dieter Bremes
30547 2005-11-30 Jackson Harper <jackson@ximian.com>
30549 * Form.cs: Property is 2.0 only
30550 * PrintDialog.cs: Signature fix.
30552 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
30555 - No longer artificially moves text 2 pixels down (now that we have
30556 borders this is no longer needed)
30557 - Added calcs for left, hanging and right indent
30559 2005-11-23 Mike Kestner <mkestner@novell.com>
30561 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30563 2005-11-30 Jackson Harper <jackson@ximian.com>
30565 * MdiChildContext.cs: Set the cloned menus forms, as these don't
30566 get cloned as part of CloneMenu ().
30567 * Menu.cs: Make sure the parent of the items get set correctly
30568 when they are added. And the owners are notified of the changes.
30569 * Form.cs: Create an ActiveMenu property, so that when MDI is used
30570 we can change the menu being displayed/handled by the form without
30571 changing the menu assosciated with the form.
30572 - Don't let Mdi children draw/handle menus.
30574 2005-11-30 Jackson Harper <jackson@ximian.com>
30576 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30577 a MenuChanged event. Just to make the API a little more
30580 * MenuItem.cs: Use the new OnMenuChanged
30581 * MdiChildContext.cs: Handle menu merging.
30582 * Form.cs: Implement MergedMenu.
30584 2005-11-30 Jackson Harper <jackson@ximian.com>
30586 * Menu.cs: We were misusing Add. Add goes behind the specified
30587 index according to the docs, and does not replace the specified
30588 index. So I added an Insert method.
30590 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
30592 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30593 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30595 * RichTextBox.cs: Added calls to base for DnD events
30597 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
30600 - Fixed drag-selection related crash; style fixes
30601 - Implemented undo class
30602 o Implemented method to capture document state for specified
30603 range in document tree
30604 o Implemented method to restore captured document state
30605 o Implemented cursor tracking
30606 o Implemented basic undo stack
30607 - Added undo cursor tracking to methods altering cursor location
30608 - Added undo tracking to selection deletion (still missing
30609 other text-altering hookups)
30611 - Added SelectionLength property
30612 - Implemented CanPaste()
30613 - Implemented Paste()
30614 - Added missing protected methods
30615 - Fixed RTF->Document conversion; now uses font index 0 and color
30616 index 0 as the default font for the parsed text
30617 - Fixed RTF<->Document font size translation
30618 - Fixed RTF generation, now properly handles cross-tag boundaries
30619 for single line selection
30620 - No longer always appends blank line to generated RTF
30622 - Added missing attributes
30623 - Hooked up undo-related methods
30625 - Implemented Copy()
30626 - Implemented Paste()
30627 - Implemented Cut()
30628 - Fixed caret mis-behaviour on backspace across line-boundaries
30630 2005-11-29 Jackson Harper <jackson@ximian.com>
30632 * MdiClient.cs: Add a method for activating mdi children. Very
30633 basic right now. I imagine someday it might need more girth.
30634 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30635 children windows names are added to the menu item.
30636 * ThemeWin32Classic.cs: Draw the arrow if the item is an
30637 mdilist. This happens regardless of whether or not there are any
30638 mdi windows to see in the list, and according to my tests happens
30639 before the items are even added. Also happens if there isn't even
30640 an mdi client to get windows from.
30642 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
30644 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30645 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30647 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
30649 * DataGridTableStyle.cs:
30650 - Create always the styles for the missing columns even if they are
30651 provided by the user (not default table style)
30654 - Fixes SetDataBinding (always re-attach source)
30655 - Fixes SetNewDataSource (only clear styles if they are not for
30657 - Expands OnTableStylesCollectionChanged to handle style refresh
30658 and remove properly
30660 2005-11-29 Jackson Harper <jackson@ximian.com>
30662 * FileDialog.cs: Implement missing bits, remove some dead
30664 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30665 creation of the panel so that the options set on the dialog are
30666 seen when the panel is created.
30667 * TreeView.cs: raise a click when items are clicked.
30669 2005-11-29 Jackson Harper <jackson@ximian.com>
30671 * MdiClient.cs: Pass some signature methods through to base.
30673 2005-11-28 Jackson Harper <jackson@ximian.com>
30675 * ListView.cs: Raise the click event when items are clicked.
30677 2005-11-28 Jackson Harper <jackson@ximian.com>
30679 * MdiClient.cs: Make this algorithm even more beautiful. And fix
30682 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
30684 * ThemeNice.cs: - Removed 1 pixel bitmaps
30685 - Use SmoothingMode.AntiAlias where it makes sense
30686 (ScrollButton arrow for example)
30687 - Enhanced Button focus drawing
30688 - Fixed ComboBox drawing (no artefacts anymore, focus
30689 rectangle is back again, reduced size of ComboButton, etc.)
30690 - Fixed RadioButton focus drawing for Appearence.Button
30691 - Slight ScrollButton redesign
30692 - Some LinearGradientBrush size fixes
30693 - GroupBoxes have now rounded edges
30694 - Fixed StatusBar drawing
30696 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
30698 * ThemeNice.cs: - Remove dead code
30699 - use correct background colors for menus, etc.
30700 - Fake pixel drawing with 1 pixel bitmaps
30702 2005-11-24 Jackson Harper <jackson@ximian.com>
30704 * MdiClient.cs: Size the scrollbars when resizing the window.
30705 - Resize the maximized windows when the client is resized
30706 * Form.cs: Make the child context available
30708 2005-11-23 Jackson Harper <jackson@ximian.com>
30710 * MdiChildContext.cs: Don't size windows if they are maximized.
30712 2005-11-23 Mike Kestner <mkestner@novell.com>
30714 * ContextMenu.cs: use MenuTracker.
30715 * Control.cs: remove menu handle usage.
30716 * Form.cs: remove menu handle usage.
30717 * Hwnd.cs: remove menu handle usage.
30718 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30719 motion and clicks to the new Tracker handlers.
30720 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30722 * MenuAPI.cs: refactored to combine popup and menubar event handling.
30723 Killed the MENU and MENUITEM data types and associated collections
30724 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30725 MenuTracker class that exposes the leftovers from the old MenuAPI
30726 static methods. Restructured Capture handling so that only one grab is
30727 done for the entire menu hierarchy instead of handing off grabs to
30728 submenus. Tracker now has an invisible control to Capture when active.
30729 * MenuItem.cs: add sizing accessors, kill Create
30731 * Theme.cs: remove menu handle and MENU(ITEM) usage.
30732 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30733 MENU(ITEM). remove menu handle usage, use Menu directly.
30734 * XplatUIDriver.cs: remove menu handle usage.
30735 * XplatUIOSX.cs: remove menu handle usage.
30736 * XplatUIWin32.cs: remove menu handle usage.
30737 * XplatUIX11.cs: remove menu handle usage.
30739 2005-11-22 Jackson Harper <jackson@ximian.com>
30741 * Hwnd.cs: Don't compute the menu size for
30742 DefaultClientRectangle.
30743 - Reenable menu sizes being computed for GetClienRectangle.
30744 * Form.cs: Remove comment of trechery
30746 2005-11-22 Jackson Harper <jackson@ximian.com>
30748 * Hwnd.cs: The adjustments for the menu bar are made when it is
30749 attached to the form.
30751 2005-11-19 Jackson Harper <jackson@ximian.com>
30753 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30754 (just like on windows).
30756 2005-11-19 Jackson Harper <jackson@ximian.com>
30758 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30759 use real buttons anymore because they are in non client area. The
30760 one TODO here is that I need to somehow invalidate a section of
30761 the non client area.
30763 2005-11-18 Jackson Harper <jackson@ximian.com>
30765 * Control.cs: Put the enum check back in now that MDI doesnt have
30766 to use this to set border styles.
30767 * Form.cs: Only set mdi child windows borders if the handle has
30769 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30770 this directly on to the driver.
30771 - Get the move start position before adjusting for the titlebar
30772 height, this fixes the windows "skipping" when they are first
30775 2005-11-18 Jackson Harper <jackson@ximian.com>
30777 * XplatUIX11.cs: Just compute the mdi borders separately as they
30778 don't totally match up with normal form borders.
30780 2005-11-18 Jackson Harper <jackson@ximian.com>
30782 * Control.cs: Set WS_ styles for borders, so that the driver does
30783 not have to retrieve the control instance to figure out what kind
30784 of borders it should have.
30785 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30786 driver can know its an mdi child easily.
30787 * XplatUIX11.cs: Get the border styles and whether the window is
30788 MDI from the Styles and ExStyles params instead of having to get a
30789 control. This prevents a chicken and egg problem.
30791 2005-11-18 Jackson Harper <jackson@ximian.com>
30793 * MdiClient.cs: Fix typo so scrollbars show up correctly.
30795 2005-11-18 Jackson Harper <jackson@ximian.com>
30797 * MdiClient.cs: Calculate when to add and remove scrollbars
30799 * MdiChildContext.cs: Adjust the y position to take the titlebar
30801 - No height for FormBorderStyle.None
30803 2005-11-18 Jackson Harper <jackson@ximian.com>
30805 * Control.cs: Allow non enum values to be used for
30806 InternalBorderStyle. MDI does this to set a special border style.
30807 - New utility methods for converting points to/from client coords
30808 - Add the newly created control to the Controls collection before
30809 updating its style. This way UpdateStyle can walk the control
30810 heirarchy to find the control if needed.
30811 so I don't need to create a new Point object all the time.
30812 * Form.cs: Let MDI windows handle their border styles.
30813 - Set styles on MDI windows so the correct title style is derived.
30814 * MdiChildContext.cs: Move all the painting and window handling
30815 into the non client area.
30816 - Use correct sizing and put correct buttons on frames based on
30817 the FormBorderStyle.
30818 - Notify the mdi client about scrolling
30819 - Need to handle the buttons ourselves now, because they are all
30820 in non client areas and we can't add controls there.
30821 * MdiClient.cs: Halfway to scrolling, this implementation is
30822 somewhat broken though, we need to check to make sure other
30823 windows aren't causing scrolling before removing the bars. Also
30824 the bars need to be drawn on top, maybe I can switch implicit
30825 controls to be on top.
30826 * Hwnd.cs: caption_height and tool_caption_height are now
30827 properties of an hwnd, this way they can be set by the driver
30828 based on the type of window they are. In X11 the window manager
30829 handles the decorations so caption_height is zero unless its an
30831 - Add 3 pixel borders for MDI windows (0xFFFF).
30832 - Get rid of some code duplication, have DefaultClientRectanle
30833 just call GetClientRectangle.
30834 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30836 - Set border styles differently for mdi windows.
30837 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30840 2005-11-15 Mike Kestner <mkestner@novell.com>
30842 * Menu.cs: when adding an item to the collection, if item is already
30843 parented, remove it from the parent.
30845 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
30847 * X11DesktopColors.cs: Added KDE support
30849 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
30852 - Clipboard methods now can translate Rtf format
30853 - No longer removes clipboard contents whenever a new format is added
30854 to allow placing multiple formats on the clipboard
30855 * Clipboard.cs: Clipboard now supports getting a IDataObject and
30856 will place all formats contained in it onto the clipboard. Also
30857 now cleans the clipboard before placing a new object onto it
30859 - Implemented set_Rtf
30860 - Implemented set_SelectedRtf
30861 - Created InsertRTFFromStream() method to allow single code base
30862 for all properties and methods that insert RTF into document
30863 - Removed debug output
30865 - Fixed Delete(int) to fix up line numbers
30866 - Fixed ReplaceSelection to combine start and end line
30867 - Fixed serious DeleteChars bug that would leave the document tree
30869 - Improved DumpTree with several logic checks to detect broken
30871 - Removed debug lines
30872 - Fixed Caret.WordForward/WordBack moving code, now always also
30873 updates caret.tag (fixes crash when word-selecting across tag
30874 boundaries via keyboard)
30875 - Added Insert() method for inserting multiline text into documents
30876 - Fixed DeleteChars() calculation errors that would cause a broken
30877 tag chain with multiple tag lines
30878 - DeleteChars() no longer crashes on multi-tag lines if not all tags
30879 - Split() no longer moves caret if split is at caret location
30880 - ReplaceSelection() now updates the cursor and re-displays it
30881 - ReplaceSelection() now uses new Insert() method to avoid code
30883 - FormatText() can now handle formatting partial lines
30885 - Append now uses new TextControl.Insert() method (this avoids
30887 - Implemented Ctrl-X (Cut) (
30888 - Implemented Ctrl-C (Copy)
30889 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
30890 regeneration when pasting text; roundtripping Copy&Paste within
30891 edit control still fails due to some calculation bugs in GenerateRTF)
30892 - The Delete key will now remove the current selection if it is visible
30893 * TextBox.cs: Removed debug lines
30894 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30895 driver to be initialized and can't therefore be done via a static ctor)
30897 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
30899 * TextControl.cs: Added backend code for finding char arrays and strings
30901 - Added mouse wheel scroll support
30902 - Added support for VScroll and HScroll events
30904 - Implemented all seven Find() variants
30905 - Implemented GetCharFromPosition()
30906 - Implemented GetCharIndexFromPosition()
30907 - Implemented GetLineFromIndex()
30908 - Implemented GetPositionFromCharIndex();
30909 - Implemented SaveFile for PlainText and UnicodeText
30910 - Fixed set_Font, now setting a new font applies that font to
30912 - Implemented generic Document to RTF converter
30913 - Implemented SaveFile for RichText format (still missing unicode
30914 conversion for non-ansi chars)
30915 - Implemented get_Rtf
30916 - Implemented get_SelectedRtf
30918 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
30920 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30921 to allow any captures to be released before triggering OnClick. This
30922 way a click handler may capture the mouse without interference.
30923 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30924 This way we send them even though X may not allow a grab (if the window
30925 isn't visible, for example)
30927 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
30929 * DataGridViewRowEventArgs.cs: DataGridView implementation
30930 * DataGridViewElement.cs: DataGridView implementation
30931 * DataGridViewComboBoxCell.cs: DataGridView implementation
30932 * DataGridViewDataErrorContexts.cs: DataGridView implementation
30933 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30934 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30935 * ImageLayout.cs: DataGridView implementation
30936 * DataGridViewComboBoxColumn.cs: DataGridView implementation
30937 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30938 * DataGridViewSelectionMode.cs: DataGridView implementation
30939 * IDataGridViewEditingControl.cs: DataGridView implementation
30940 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30941 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30942 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30943 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30944 * DataGridViewColumnSortMode.cs: DataGridView implementation
30945 * DataGridView.cs: DataGridView implementation
30946 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30947 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30948 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30949 * Padding.cs: DataGridView implementation
30950 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30951 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30952 * DataGridViewRowEventHandler.cs: DataGridView implementation
30953 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30954 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30955 * DataGridViewButtonCell.cs: DataGridView implementation
30956 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30957 * DataGridViewEditMode.cs: DataGridView implementation
30958 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30959 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30960 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30961 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30962 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30963 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30964 * DataGridViewCellEventHandler.cs: DataGridView implementation
30965 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30966 * DataGridViewCellStyleConverter.cs: DataGridView implementation
30967 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30968 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30969 * DataGridViewColumnEventArgs.cs: DataGridView implementation
30970 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30971 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30972 * QuestionEventArgs.cs: DataGridView implementation
30973 * IDataGridViewEditingCell.cs: DataGridView implementation
30974 * DataGridViewTriState.cs: DataGridView implementation
30975 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30976 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30977 * DataGridViewColumnCollection.cs: DataGridView implementation
30978 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30979 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30980 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30981 * DataGridViewColumn.cs: DataGridView implementation
30982 * DataGridViewCellBorderStyle.cs: DataGridView implementation
30983 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30984 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30985 * DataGridViewRow.cs: DataGridView implementation
30986 * DataGridViewImageCellLayout.cs: DataGridView implementation
30987 * DataGridViewImageCell.cs: DataGridView implementation
30988 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30989 * DataGridViewCheckBoxCell.cs: DataGridView implementation
30990 * DataGridViewHeaderCell.cs: DataGridView implementation
30991 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30992 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30993 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30994 * DataGridViewTextBoxColumn.cs: DataGridView implementation
30995 * QuestionEventHandler.cs: DataGridView implementation
30996 * DataGridViewCellStyleScopes.cs: DataGridView implementation
30997 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30998 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30999 * DataGridViewCell.cs: DataGridView implementation
31000 * DataGridViewCellEventArgs.cs: DataGridView implementation
31001 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31002 * DataGridViewCellStyle.cs: DataGridView implementation
31003 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31004 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31005 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31006 * TextFormatFlags.cs: DataGridView implementation
31007 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31008 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31009 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31010 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31011 * DataGridViewButtonColumn.cs: DataGridView implementation
31012 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31013 * HandledMouseEventArgs.cs: DataGridView implementation
31014 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31015 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31016 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31017 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31018 * DataGridViewRowCollection.cs: DataGridView implementation
31019 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31020 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31021 * DataGridViewHitTestType.cs: DataGridView implementation
31022 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31023 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31024 * DataGridViewColumnEventHandler.cs: DataGridView implementation
31025 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31026 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31027 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31028 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31029 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31030 * DataGridViewContentAlignment.cs: DataGridView implementation
31031 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31032 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31033 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31034 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31035 * DataGridViewPaintParts.cs: DataGridView implementation
31036 * DataGridViewCellCollection.cs: DataGridView implementation
31037 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31038 * DataGridViewImageColumn.cs: DataGridView implementation
31039 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31040 * DataGridViewElementStates.cs: DataGridView implementation
31041 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31042 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31043 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31044 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31045 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31046 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31047 * DataGridViewRowHeaderCell.cs: DataGridView implementation
31048 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31049 * DataGridViewTextBoxCell.cs: DataGridView implementation
31050 * DataGridViewBand.cs: DataGridView implementation
31051 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31052 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31053 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31054 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31055 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31056 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31057 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31058 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31059 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31060 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31061 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31063 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
31065 * ThemeWin32Classic.cs:
31066 - Draw the outside focus rectangle around buttons
31067 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31068 doesn't use end caps for every dash of a line anymore. This
31069 workaround ignores the forecolor.
31071 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
31073 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31076 2005-11-07 Jackson Harper <jackson@ximian.com>
31078 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31080 2005-11-07 Jackson Harper <jackson@ximian.com>
31082 * ScrollableControl.cs: Calculate the maximum and change vars
31083 (more) correctly so that scrollbars appear as a sensible size.
31085 2005-11-04 Jackson Harper <jackson@ximian.com>
31087 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31089 * TreeView.cs: When the tree is sorted null out the top_node so
31090 that it is recalculated.
31091 - Use dotted lines instead of dashed lines to match MS better.
31093 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
31096 - Implements key search for items. Useful when browsing files with FileDialog
31097 - When changing view mode or when clear the items reset scrollbar positions
31099 2005-11-04 Jackson Harper <jackson@ximian.com>
31101 * CurrencyManager.cs: Implement the MetaDataChanged event, the
31102 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31103 as to what the method may do as there is no real way of creating a
31104 derived CurrencyManager and calling the method.
31106 2005-11-03 Jackson Harper <jackson@ximian.com>
31108 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31109 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31110 method which seems to just be used internally to refresh the tabs.
31112 2005-11-03 Jackson Harper <jackson@ximian.com>
31114 * TabControl.cs: Implement the remove method. Fix some broken
31117 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31119 * DateTimePicker.cs:
31120 - Added missing DateTimePickerAccessibleObject class
31121 - Added missing events
31122 - Added OnFontChanged method
31123 * Form.cs: Added missing attributes
31124 * TreeView.cs: Added missing attributes
31126 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31128 * GridItemCollection.cs: Fix signatures
31130 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31132 * XplatUI.cs: Updated build rev/date
31133 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
31134 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31135 * Application.cs: Trigger context-specific ExitThread events
31137 2005-11-03 Jackson Harper <jackson@ximian.com>
31141 * GridTableStylesCollection.cs:
31146 * MonthCalendar.cs: Signature fixes
31148 2005-11-03 Jackson Harper <jackson@ximian.com>
31150 * TreeNodeCollection.cs: Remove should not be virtual.
31151 * TreeView.cs: Implement the last of the missing methods.
31153 2005-11-03 Jackson Harper <jackson@ximian.com>
31155 * TreeNodeConverter.cs: Implement to get off my class-status back.
31157 2005-11-03 Jackson Harper <jackson@ximian.com>
31159 * TreeView.cs: Hookup the bits for drag and drop.
31160 * TreeNode.cs: Don't cache the tree_view or index anymore, now
31161 that nodes can be moved from tree to tree easily this just causes
31162 all sorts of problems.
31163 * TreeNodeCollection: Don't need to give treenodes an index and
31164 treeview anymore when they are added, these are computed on the
31165 fly. Also make sure to remove a node before its added.
31167 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
31170 - Added CaretSelection enum
31171 - Added comparison methods to Marker struct, makes selection code
31173 - Added SelectionStart and SelectionEnd as 'moveable' location for
31174 the CaretDirection enum and handler
31175 - Added selection_prev variable to track optimized invalidation for
31176 word and line selection
31177 - Added SelectionVisible property (returns true if there is a valid
31179 - Switched CaretHasFocus to only display the caret if there is no
31181 - Avoiding StringBuilder.ToString to retrieve a single char, instead
31182 using the direct character index; should be much faster
31183 - Added various conditional debug statements
31184 - Fixed invalidation calculation for selection ranges
31185 - Added ExpandSelection() method to support word and line selection
31186 - Switched SetSelectionToCaret to use new Marker compare overloads
31187 - Added central IsWordSeparator() method to determine word
31188 separators/whitespace and FindWordSeparator() to streamline common
31189 usage of IsWordSeparator()
31191 - Removed unneeded grabbed variable, it was just mirroring
31193 - No longer firing OnTextChanged event when Text setter is called,
31194 since the base will fire the event for us
31195 - Added handling of Ctrl-Up/Down selection
31196 - Added handling of Shift-Cursorkey selection
31197 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31199 - Added handling of Shift and Ctrl-Shift-Home/End selection
31200 - Removed some debug output
31201 - Added handling for single/double/tripple-click to place caret/
31202 select word/select line respectively (Fixes bug #76031)
31203 - Added support for drag expansion of word/line selection
31204 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31207 2005-11-02 Jackson Harper <jackson@ximian.com>
31209 * X11Dnd.cs: If the drag is going to and from a MWF window just
31210 copy the data instead of sending it out through the X Selection
31213 2005-11-02 Jackson Harper <jackson@ximian.com>
31216 * XplatUIX11.cs: When in a drag we don't want motion notify
31217 messages to get passed on to the other controls. This prevents
31218 mouse move messages from showing up in the drag source.
31220 2005-11-02 Jackson Harper <jackson@ximian.com>
31222 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
31223 the correct button is release to end a drag.
31224 * XplatUIX11.cs: Make the button state internal so the drag system
31225 can access it. Dragging needs to know about all button releases,
31226 not just left button.
31228 2005-11-02 Miguel de Icaza <miguel@novell.com>
31230 * Form.cs (Icon): If the icon is null, reset the icon to the
31233 * Cursor.cs: When writing the AND-mask bitmap do not include the
31234 number of colors, but hardcode those to two (black and white),
31235 fixes the loading of color cursors (Paint Dot Net).
31237 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31238 turn off autoscaling.
31240 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31242 2005-11-02 Jackson Harper <jackson@ximian.com>
31244 * X11Dnd.cs: Make sure to send a status message if the pointer
31245 enters a control that can not accept a drop, otherwise the cursor
31246 isn't updated correctly. Also tried to compress the lines of code
31249 2005-11-02 Jackson Harper <jackson@ximian.com>
31251 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31252 set actions correctly. This isn't perfect as XDND and win32 have
31253 some differences on how you allow actions. I'll clear this up by
31254 adding a path for drag from MWF to MWF windows.
31255 * XplatUIX11.cs: Hook into the dnd system.
31257 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
31259 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31260 previously shown but they are no longer need it. Very obvious when
31261 browsing files with FileDialog.
31263 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
31265 * Control.cs: We always need to call OnPaintBackground. We pretty much
31266 ignore AllPaintingInWmPaint and always do the painting there, whether
31267 it's set or not, since we always ignore the WM_ERASEBKGND message
31268 (which we don't generate on X11). This fixes #76616.
31269 * Panel.cs: Removed unneeded background painting. This happens properly
31270 in Control.cs already
31272 2005-10-31 Mike Kestner <mkestner@novell.com>
31274 * Menu.cs: Add items to collection before setting their index.
31275 * MenuItem.cs : add range checking with ArgumentException like MS.
31278 2005-10-31 Jackson Harper <jackson@ximian.com>
31280 * ListBox.cs: Invalidate if the area is visible at all not just
31281 contained in the visible rect. Fixes unselection of semi visible
31284 2005-10-31 Jackson Harper <jackson@ximian.com>
31286 * Control.cs: Consistently name the dnd methods. Make them
31287 internal so we can override them to match some MS behavoir
31289 * Win32DnD.cs: Use the new consistent names.
31291 2005-10-31 Jackson Harper <jackson@ximian.com>
31293 * TreeView.cs: Don't draw the selected node when we lose focus.
31295 2005-10-31 Jackson Harper <jackson@ximian.com>
31297 * X11Dnd.cs: We still need to reset the state even though a full
31298 reset isn't being done, otherwise status's still get sent all over
31301 2005-10-31 Jackson Harper <jackson@ximian.com>
31303 * Control.cs: Make the dnd_aware flag internal so the dnd
31304 subsystem can check it. Catch exceptions thrown in dnd handlers to
31306 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31307 * X11Dnd.cs: Handle null data in the converters. Set the XDND
31308 version when sending a XdndEnter. Use the control/hwnd dnd_aware
31309 flags to reduce the number of dnd enters/status's sent.
31311 2005-10-31 Jackson Harper <jackson@ximian.com>
31313 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31315 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
31317 * PictureBox.cs: Fixes 76512
31319 2005-10-28 Jackson Harper <jackson@ximian.com>
31321 * X11Dnd.cs: Early implementation to support winforms being a drag
31322 source for data on X11. Also restructured the converters so they
31323 can go both ways now.
31324 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31326 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
31328 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31331 2005-10-27 Jackson Harper <jackson@ximian.com>
31333 * TreeNode.cs: Implement serialization so my DnD examples will work.
31335 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
31337 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31338 TreeView.cs: Don't dispose objects that are not owned.
31340 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
31342 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31343 should retrieve the current cursor and report that, but XplatUI
31344 doesn't (yet) have an interface for that (and I'm not sure I even
31346 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31347 until any message loop processing is done (and the WM_SETCURSOR
31348 replaces the cursor to the proper one)
31350 - Fixed override behaviour, we can't set the cursor globally on X11,
31351 just for our windows.
31352 - Invalidating the System.Drawing X11 display handle when we are
31354 * Control.cs: Fix to make csc happy
31356 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
31359 - get_Text: Add last line (without trailing newline) to returned
31360 value (Fixes 76212)
31361 - get_TextLength: Count last line in returned length
31362 - ToString: Call Text property instead of duplicating code
31364 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
31366 * ImageList.cs: Dispose ImageAttributes objects.
31368 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
31370 * ImageList.cs: Use attribute constructors with less arguments where
31373 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
31375 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31376 Use typeof instead of strings when assembly is referenced. Added
31377 some more comments.
31379 2005-10-21 Jackson Harper <jackson@ximian.com>
31381 * ListView.cs: Raise a double click event. Also tried to somewhat
31382 fix when the selectedindexchanged event is raised. Its still
31385 2005-10-21 Jackson Harper <jackson@ximian.com>
31387 * TreeView.cs: New method to invalidate the plus minus area of a
31388 node without invalidating the whole node (maybe this can be used
31389 in some more places).
31390 * TreeNodeCollection.cs: When adding to an empty node we need to
31391 invalidate its plus minus area so the little block shows up.
31393 2005-10-21 Jackson Harper <jackson@ximian.com>
31395 * TreeView.cs: Make sure that when we invalidate a node the bounds
31396 are big enough to cover the selected box and the focus
31397 rectangle. Use a different colour for the lines connecting nodes
31398 so they show up with all themes.
31400 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
31402 * NativeWindow.cs: Don't call anything that could call into the driver,
31403 we might be on a different thread.
31405 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
31407 * Control.cs(Dispose): Since Dispose might run on a different thread,
31408 make sure that we call methods that could call into the driver via
31409 invoke, to avoid thread issues
31411 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
31413 * XplatUI.cs: Removed finalizer
31414 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31415 not allowing to be called on the finalizer thread.
31417 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
31420 - Reverted r51889 and r51891.
31421 - Added ImageListItem class that stores unmodified image items and image
31422 properties required to create list images until handle is created.
31423 - Added AddItem and moved image creation logic to AddItemInternal.
31424 - Added CreateHandle method that creates images based on unmodified items.
31425 - Added DestroyHandle that changes state to store unmodified items.
31426 - Add and AddStrip methods no more create handle.
31427 - ReduceColorDepth has no return value.
31428 - Dispose destroys handle.
31429 - Modified other methods to reflect the above changes.
31430 - Implemented key support.
31431 - Added profile 2.0 members and attributes.
31432 - Added private Reset and ShouldSerialize methods that provide the same
31433 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31434 them as they are private.
31435 - Added some more comments about implementation details.
31437 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
31439 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31441 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
31443 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31445 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
31447 * DataGridDrawingLogic.cs: Fixes column hit calcultation
31448 * DataGridColumnStyle.cs: Remove debug message
31450 2005-10-20 Jackson Harper <jackson@ximian.com>
31452 * TreeView.cs: We can always get input keys regardless of whether
31453 or not editing is enabled. They are used for navigation.
31455 2005-10-20 Jackson Harper <jackson@ximian.com>
31457 * TreeNode.cs: Use the viewport rect for determining if a node
31458 needs to be moved for visibility. Don't use Begin/End edit. This
31459 calls a full refresh when its done.
31460 * TreeView.cs: New SetBottom works correctly. Make the viewport
31461 rect property internal so the treenodes can see it. When clicking
31462 on a node we need to ensure that its visible because it might just
31463 be partly visible when clicked.
31465 2005-10-20 Jackson Harper <jackson@ximian.com>
31467 * TreeNodeCollection.cs: Remove debug code.
31469 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
31471 * Datagrid.cs: Implements column sorting in Datagrid
31472 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31474 2005-10-20 Jackson Harper <jackson@ximian.com>
31476 * TreeNodeCollection.cs: Remove items properly. Update the correct
31477 area after removing them.
31479 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
31481 * Datagrid.cs: Should not call base.OnPaintBackground
31483 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
31485 * XplatUIX11.cs (GetMessage):
31486 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31487 window instead of client window
31488 - Now properly calculates NC_xBUTTONUP message coordinates
31489 - ScreenToMenu now properly calculates it's coordinates of whole
31490 window, since menus are in the whole window, not in the client
31492 - Added WholeToScreen coordinate translation method
31494 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
31496 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31497 want to return a message, loop back to the beginning of the function
31498 and grab the next real message to process instead.
31500 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
31502 * Splitter.cs: Properly set limits if no filler control is used
31504 2005-10-19 Jackson Harper <jackson@ximian.com>
31506 * ColorDialog.cs: Don't show the help button if it is not enabled
31507 instead of disabling it (this is what MS does). Don't create the
31508 panel until the dialog is run, otherwise the vars (such as
31509 ShowHelp) are not set yet.
31511 2005-10-19 Jackson Harper <jackson@ximian.com>
31513 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31514 are reduced when adding nodes.
31516 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31519 2005-10-19 Jackson Harper <jackson@ximian.com>
31521 * FolderBrowserDialog.cs: End editing our treeview so the window
31522 actually gets refreshed.
31524 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
31526 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
31527 Obsoleted handling of WM_ERASEBKGND, now always draws our background
31530 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
31532 * MenuAPI.cs: Returns after Hidding window
31533 * XplatUIX11.cs: Added TODO found while debugging menu issues
31535 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
31537 * XplatUIX11.cs: Do not re-map the whole window when it's size
31538 becomes non-zero unless it's supposed to be actually visible
31540 2005-10-18 Jackson Harper <jackson@ximian.com>
31542 * TreeView.cs: We don't need to keep a count anymore.
31543 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31544 use the Grow method.
31546 2005-10-18 Jackson Harper <jackson@ximian.com>
31548 * TreeNodeCollection.cs: Insert is not supported on arrays, so
31549 implement it manually here.
31551 2005-10-18 Jackson Harper <jackson@ximian.com>
31553 * ImageList.cs: Dont kill the list when the colour depth is
31554 changed, just change the colour depth of all the images.
31555 - Same goes for setting the image size. Just resize them all
31556 instead of killing the list softly.
31558 2005-10-18 Jackson Harper <jackson@ximian.com>
31560 * Control.cs: Don't invalidate empty rectangles.
31562 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
31565 - Adds checked item to the Checked/Item lists (where empty before)
31566 - Do not add items to the Selected lists if they are already present
31568 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31569 - When deleting items make sure that we delete them for the Selected
31570 and Checked list also.
31572 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
31574 * Label.cs: Dispose objects no longer used
31575 * ThemeWin32Classic.cs: Dispose objects no longer used
31577 2005-10-18 Jackson Harper <jackson@ximian.com>
31579 * TabControl.cs: Don't refresh the whole control when the tabs are
31580 scrolled, we just need to refresh the tab area.
31582 2005-10-17 Jackson Harper <jackson@ximian.com>
31584 * XplatUIX11.cs: Compress code a little bit. Only calculate the
31585 after handle when we need it.
31587 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
31589 * Control.cs: When the parent size changes, recalculate anchor
31590 positions. Partial fix for #76462
31592 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
31594 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
31595 drawn. Fixes #76462
31597 2005-10-17 Jackson Harper <jackson@ximian.com>
31599 * MonthCalendar.cs: Don't create the numeric up down until our
31600 handle is created. Otherwise our handle is created in the
31601 constructor and we don't know if we are a WS_CHILD or WS_POPUP
31604 2005-10-17 Jackson Harper <jackson@ximian.com>
31606 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31609 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31610 * TreeNode.cs : small logical fix (was using local var instead of field)
31612 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
31614 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31616 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
31618 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31620 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
31623 - Re-implemented anchoring code. My first version was really broken.
31624 This fixes bug #76033. Unlike the previous implementation we will
31625 no longer have round errors since all numbers are calculated from
31626 scratch every time. Removed various anchor-related obsolete vars.
31627 - InitLayout no longer causes layout event firing and layout to be
31630 2005-10-16 Jackson Harper <jackson@ximian.com>
31632 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31635 2005-10-16 Jackson Harper <jackson@ximian.com>
31637 * TabControl.cs: Remove debug code.
31639 2005-10-16 Jackson Harper <jackson@ximian.com>
31641 * XEventQueue.cs: Increase the default queue size (very simple
31642 apps needed to grow the queue).
31643 * Hwnd.cs: No finalizer so we don't need to suppress
31644 finalization. Compute the invalid area manually so a new rectangle
31645 does not newto be created.
31646 * ScrollableControl.cs: Don't set any params (otherwise visibility
31647 isn't set correctly).
31648 * MdiChildContext.cs: New constructor takes the mdi parent so it
31649 doesn't have to be computed and avoids a crash on windows. Draw
31650 the window icon properly, and allow the text to be seen.
31651 * Form.cs: Use new MdiChildContext constructor. Make sure the
31652 child context isn't null in wndproc.
31653 * TabControl.cs: Don't set focus, this is muddling keyboard
31654 behavoir. Expand the tab rows when a window size increase will
31655 allow extra tabs to be seen. Don't allow tabs smaller than the
31656 width of a window to be scrolled out of view.
31658 * TreeView.cs: Use measure string to calculate a nodes width, the
31659 width is cached and only updated when the text or the font is
31660 changed. Don't check for expand/collapse clicks on the first level
31661 nodes if root lines are disabled.
31663 2005-10-16 Ritvik Mayank <mritvik@novell.com>
31665 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31667 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
31669 * DataGridBoolColumn.cs: fixes warning
31671 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
31673 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31674 to match more to match more precisely the MS Net behavior
31676 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31678 * Hwnd.cs: Added field to track if window is mapped
31680 - Unmap windows if they become 0-size, re-map when
31681 they are >0 again; fixes #76035
31682 - Re-set our error handler after initializing X11Desktop
31683 to override any error handlers Gtk or whatever was called
31686 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31688 * CheckedListBox.cs: Removed unused vars
31689 * ListView.cs: Fixed signatures
31690 * RichTextBox.cs: Removed unused vars
31691 * TextBoxBase.cs: Removed unused vars
31692 * XplatUIWin32.cs: Removed unused vars
31693 * XplatUIX11.cs: Removed unused vars
31694 * XplatUI.cs: Updated version and date to latest published
31696 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31698 * Cursor.cs: Added private .ctor to work around a bug in
31699 resourceset (Thanks to Geoff Norton for the help on this)
31700 * SplitterEventArgs.cs: Made fields accessible so we don't
31701 waste boatloads of objects and can reuse the same one
31703 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31704 any captions and borders when generating screen coordinates
31705 * Splitter.cs: Reimplemented control, now fully complete, uses
31706 rubberband drawing, supports and obeys all properties, has
31709 2005-10-13 Miguel de Icaza <miguel@novell.com>
31711 * Form.cs (Form): Setup default values for autoscale and
31712 autoscale_base_size; Make these instance variables, not static
31715 (OnLoad): on the first load, adjust the size of the form.
31717 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31719 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
31720 width argument to DrawReversibleRectangle()
31721 * XplatUIWin32.cs, XplatUIX11.cs:
31722 - Implemented width for DrawReversibleRectangle()
31723 - Added logic to DrawReversibleRectangle that recognizes a zero
31724 width or height and only draws a line in that situation
31726 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31728 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31729 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31730 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31731 method (it uses our FosterParent window to get a graphics context)
31733 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31735 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
31736 and SetWindowBackground methods
31738 - Setting proper ControlStyles
31739 - We no longer call XplatUI.SetWindowBackground and XplatUI.
31740 EraseWindowBackground, instead we draw the window background
31741 ourselves in PaintControlBackground. This behaviour is
31742 required to match MS, where, when OnPaintBackground is not
31743 called, the background is not drawn.
31744 - Removed unneeded Refresh() in set_Text
31745 * Hwnd.cs: Dropped the ErasePending support. No longer needed
31747 - Created DeriveStyles method to translate from CreateParams to
31748 FormBorderStyle and TitleStyle, also handles BorderStyle (which
31749 matches FormBorderStyle enum values)
31750 - Consolidated SetHwndStyles and CalculateWindowRect border/title
31751 style calculations into single DeriveStyles method
31752 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31753 from redrawing the whole window on any resize or expose.
31754 - Fixed CreateWindow usage of SetWindowValuemask. Before not
31755 all styles were applied to our whole/client window appropriately
31756 - Removed EraseWindowBackground() and SetWindowBackground() methods
31757 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31758 no longer clear/redraw the background through X
31759 - Removed handling of erase_pending bit, we have no use for it (or
31762 - Removed generation and handling of WM_ERASEBKGND message
31763 - Removed EraseWindowBackground() and SetWindowBackground() methods
31764 - Removed handling of hwnd.ErasePending flag
31766 - Removed EraseWindowBackground() and SetWindowBackground() methods
31767 - We no longer call EraseWindowBackground on PaintEventStart, we
31768 ignore the fErase flag, erasing is handled in Control in the
31770 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31771 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31772 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
31773 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
31774 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
31775 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31776 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31778 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
31780 * PropertyGrids.cs: Get sub properties
31781 * PropertyGridView.cs: Fix drawing code
31783 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31785 * ListBox.cs: Fixes 76383
31787 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31789 * DataGridTextBoxColumn.cs: Sets location and size before attachment
31790 * ThemeWin32Classic.cs: Fixes border drawing and calculations
31791 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31794 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31796 * ComboBox.cs: Fixes border drawing
31798 2005-10-10 Miguel de Icaza <miguel@novell.com>
31800 * MimeIcon.cs: Ignore errors if the file can not be read.
31802 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31804 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31805 - Fixed border calculations
31806 - Fixed horizontal scrolling in single column listboxes
31807 - Fixed drawing issues
31809 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
31811 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
31812 FormBorderStyle enum
31813 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
31814 code to determine FormBorderStyles from CreateParams
31816 - Fixed bug where we'd set the wrong window styles if we were
31817 not creating an MDI window
31818 - Added call to XplatUI.SetBorderStyle when form borders are set
31819 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31821 - Removed obsolete edge style
31822 - Switched from BorderStyle to FormBorderStyle
31824 2005-10-10 Jackson Harper <jackson@ximian.com>
31826 * Form.cs: Use the property to get the window handle instead of
31827 accessing it directly. Prevents a null reference exception.
31829 2005-10-10 Jackson Harper <jackson@ximian.com>
31831 * TreeView.cs: Don't adjust the rect given to DrawString now that
31832 our libgdiplus draws correctly.
31834 2005-10-08 Jackson Harper <jackson@ximian.com>
31836 * TreeView.cs: Don't try to find the clicked on node if there are
31837 no nodes in the tree.
31839 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31845 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31847 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31848 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31850 Use ResPool for brushes and dispose System.Drawing objects that
31851 are not used anymore.
31853 2005-10-07 Jackson Harper <jackson@ximian.com>
31855 * MdiChildContext.cs: Use the new borders instead of drawing them
31858 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31860 * Calling UpdateBounds after changing the window's BorderStyle
31861 since the style can change the ClientSize
31863 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31865 * Control.cs: Made PaintControlBackground virtual
31866 * Panel.cs: Overriding PaintControlBackground instead of using paint
31867 event; paint event method was interfering with 'real' users of the
31870 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31872 * ThemeWin32Classic.cs: remove border drawing since it is handled
31873 by the base control class now and was causing double border drawing.
31875 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31877 * Panel.cs: Redraw our background on paint. Not a pretty solution,
31878 but it does seem to match MS behaviour. This fixes bug #75324
31880 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31882 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31883 somewhat hackish looking
31885 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31888 - We now accept Enter even if AcceptEnter is false, if the containing
31889 form does not have an AcceptButton configured (fixes bug #76355)
31890 - Calculations are now fixed to no longer use Width/Height, but
31891 ClientSize.Width/Height, since we now support borders (this was
31892 a result of fixing borders and therefore bug #76166)
31893 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
31894 true (fixes bug #76354)
31896 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31899 - Defaulting BorderStyle and setting it in XplatUI when our window
31901 - Added enum check to InternalBorderStyle setter
31903 - Added drawing of window borders
31904 - Now properly calculates WM decorations offset for toplevel
31905 windows (fixes bug #74763)
31907 - Implemented BorderStyles for windows (we're letting win32 draw
31909 - Fixed the signature for SetWindowLong
31910 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31911 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
31913 * UpDownBase.cs: Remove drawing of borders, this is handled by
31914 the driver, outside the client area
31915 * ListView.cs: Removed bogus border calculations. The control should
31916 be oblivious to borders, since those are not part of the client
31918 * X11DesktopColors.cs: Commented out (currently) unneeded variables
31919 * ThemeWin32Classic.cs: Removed border calculations from ListView
31922 2005-10-06 Jackson Harper <jackson@ximian.com>
31924 * MdiChildContext.cs: Clear out the old virtual position remove
31925 all the unneeded calls to CreateGraphics.
31927 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31929 * TextControl.cs: Use proper color for highlighted text; fixes #76350
31931 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31934 - Added loading and setting of our new default icon
31935 - Only set icon if window is already created
31937 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31940 - Do not explicitly set the foreground and background colors, to
31941 allow inheriting from parents (fixes #76302)
31942 - Use Control's InternalBorderStyle property to deal with borders
31944 2005-10-06 Jackson Harper <jackson@ximian.com>
31946 * MdiChildContext.cs: Use the new xplatui function to draw a
31949 2005-10-06 Jackson Harper <jackson@ximian.com>
31951 * Form.cs: Add the parent before creating the child context cause
31952 we need the parent when setting up the child.
31954 2005-10-06 Jackson Harper <jackson@ximian.com>
31956 * FolderBrowserDialog.cs: redo the tree population code so a
31957 second thread isn't used. Should be a lot faster and more stable
31960 2005-10-05 Jackson Harper <jackson@ximian.com>
31962 * TreeView.cs: There are no expand/collapse boxes if the node has
31965 2005-10-05 Jackson Harper <jackson@ximian.com>
31967 * X11DesktopColors.cs: Get menu colours for the gtk theme.
31969 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
31971 * FileDialog.cs: Fix InitialDirectory
31973 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31976 - Fixes changing between styles
31977 - Fixes simple mode
31978 - Fixes last item crashing when navigating with keyboard
31980 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31982 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31984 2005-10-05 Jackson Harper <jackson@ximian.com>
31986 * TreeView.cs: If updating the root node do a full refresh.
31987 * TreeNode.cs: The root node should be expanded by default. Also
31988 added a utility prop to tell if we are the root node.
31989 * TreeNodeCollection.cs: Only refresh if the node we are being
31990 added to is expanded. Also added a comment on a potential
31993 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
31995 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
31996 in dispose method. Fixes #76330
31998 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
32000 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32002 - Implements vertical and horizontal scrolling using XplatUI
32003 - Fixes keyboard navagation
32004 - Fixes EnsureVisible
32006 - Handles and draws focus properly
32009 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
32011 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32012 Create handle. NET_2_0: Destroy handle when value is null.
32014 2005-10-03 Jackson Harper <jackson@ximian.com>
32016 * ScrollBar.cs: My last scrollbar patch was broken. This is a
32017 revert and a new patch to prevent the thumb from refreshing so
32020 2005-10-02 Jackson Harper <jackson@ximian.com>
32022 * ScrollBar.cs: Don't update position if it hasn't actually
32023 changed. This occurs when you hold down the increment/decrement
32024 buttons and the thumb gets to the max/min.
32026 2005-10-01 Jackson Harper <jackson@ximian.com>
32029 * MdiChildContext.cs:
32030 * MdiClient.cs: Implement ActiveMdiChild in Form.
32032 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
32034 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32036 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
32038 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32041 2005-09-30 Jackson Harper <jackson@ximian.com>
32043 * ListBox.cs: Don't do a full refresh unless some data has
32046 2005-09-30 Jackson Harper <jackson@ximian.com>
32048 * TreeView.cs: Make sure that the checkboxes size is factored in
32049 even when not visible.
32051 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32053 * FileDialog.cs: Fix Jordi's build break
32055 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32058 - Use standard the Windows colours for the combobox as espected
32059 - Dispose objects that use resouces when no longer need them
32061 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32063 * X11DesktopColors.cs: Initial incomplete implementation
32064 * XplatUIX11.cs: Added call to initialize X11DesktopColors
32066 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32069 - Switched Theme color names to match the names defined in
32070 System.Drawing.KnownColors. Life's hard enough, no need to make
32072 - Added setters to all theme color properties so themes can set
32073 their color schemes. The setters also propagate the color changes
32074 to System.Drawing.KnownColors via reflection
32075 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32076 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32077 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32078 use the new, more logical theme color names
32079 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32081 * ThemeWin32Classic.cs:
32082 - Removed code to set the old classic Windows colors. Instead it
32083 now relies on the colors returned by System.Drawing.KnownColors
32084 which will be either modern static colors (Unix) or colors
32085 read from the user's configuration (Win32)
32086 - Updated to use the new, more logical theme color names
32087 - Switched DataGrid drawing code to use only Theme colors instead of
32088 a mix of System.Drawing.KnownColors and Theme colors
32089 - DrawFrameControl(): Removed code that fills the button area, the
32090 fill would overwrite any previous fill done by a control. This
32092 - Added DrawReversibleRectangle() stub
32093 * ScrollableControl.cs: Set visible state to false when scrollbars
32094 are removed (pdn fix)
32095 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
32096 DrawReversibleRectangle() method to allow drawing primitive
32098 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32100 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32102 * ImageList.cs: Add(Icon): Create handle.
32104 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32107 * ThemeWin32Classic.cs:
32108 - Fixes detail mode
32110 - Issues with drawing
32112 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32114 * ImageList.cs: Moved RecreateHandle back to ImageList as event
32115 source has to be the ImageList.
32117 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32119 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32121 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32123 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32125 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32127 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32129 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
32130 * GridItem.cs: Fixed TODOs
32131 * GridItemCollection.cs: Added ICollection interface
32133 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32135 * ImageList.cs: Resize icons when needed.
32137 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
32140 - Fixes GetBounds and returns on screen rects
32142 - Fixes vertical and horzintal scrolling of items
32143 * ThemeWin32Classic.cs:
32146 2005-09-29 Raja R Harinath <harinath@gmail.com>
32148 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32150 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
32152 * ImageList.cs: Added comments about handle creation. Moved Handle,
32153 HandleCreated and OnRecreateHandle implementations to ImageCollection.
32154 Handle is created in Add methods.
32156 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
32158 * DataGridDrawingLogic.cs:
32159 - Takes rows into account on Colum calculations
32160 - Returns the column when clickig
32162 - Fixes default HitTestInfo values
32163 - Fixes HitTestInfo.ToString
32164 - Fixes ResetBackColor
32166 2005-09-28 Jackson Harper <jackson@ximian.com>
32168 * MdiChildContext.cs: Obey rules for fixed sized windows (no
32169 sizing or cursor changes). Also added some temp code to draw the
32170 titlebars text (Makes dev a little easier).
32172 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
32174 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32176 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
32178 * ListBox.cs: Fixes bug 76253
32180 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
32182 * ImageList.cs: Added comments about the current implementation. Added
32183 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32184 Format32bppArgb to preserve transparency and can use Graphics.FromImage
32185 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32186 with Bitmap.LockBits for better performance. Revised the whole file to
32187 match MS.NET behaviour and provide better performance. Non-public
32188 interface members are calling public members even when they throw
32189 NotSupportedException for better maintainability. Moved ColorDepth,
32190 ImageSize, ImageStream and TransparentColor implementations to
32191 ImageCollection for better performance as these properties are not used
32193 * ImageListStreamer.cs: Added a new internal constructor that takes an
32194 ImageList.ImageCollection and serializes Images based on
32195 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32196 match ImageList property name.
32198 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
32200 * ListBox.cs: Fixes IndexFromPoint for last item
32202 2005-09-27 Jackson Harper <jackson@ximian.com>
32204 * Form.cs: Set the position of new mdi children correctly.
32206 2005-09-27 Jackson Harper <jackson@ximian.com>
32208 * MdiClient.cs: New mdi children need to be added to the back of
32209 the controls collection so the zorder is set correctly. Also add a
32210 count of all the child windows that have been created.
32212 2005-09-27 Jackson Harper <jackson@ximian.com>
32214 * Form.cs (CreateParams): Setup MDI forms correctly.
32216 2005-09-27 Jackson Harper <jackson@ximian.com>
32218 * MdiChildContext.cs:
32219 * MonthCalendar.cs:
32225 * ScrollableControl.cs:
32226 * ComboBox.cs: Add implicit controls using the new implict control
32227 functionality in ControlCollection. Also try to block multiple
32228 control add in a suspend/resume layout to save some cycles.
32230 2005-09-27 Jackson Harper <jackson@ximian.com>
32232 * Control.cs: Add functionality to the controls collection to add
32233 'implicit controls' these are controls that are created by the
32234 containing control but should not be exposed to the user. Such as
32235 scrollbars in the treeview.
32236 * Form.cs: The list var of the ControlsCollection is no longer
32237 available because of the potential of implicit controls getting
32238 ignored by someone accessing the list directly.
32240 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
32242 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32243 loose it's parent. (Fixed bug introduced in r49103 when we added
32244 setting the child parent to null on Remove)
32246 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
32248 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32249 * Splitter.cs: Added missing attributes for BorderStyle property.
32250 * TextBoxBase.cs: Marked Calculate* methods internal.
32251 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32254 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
32256 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32258 2005-09-25 Jackson Harper <jackson@ximian.com>
32260 * TreeView.cs: Update the node bounds correctly regardless of
32261 whether the node is visible.
32263 2005-09-25 Jackson Harper <jackson@ximian.com>
32265 * ImageList.cs: Don't dispose the image after it is added to the
32266 image list. Only reformat images that need to be resized.
32268 2005-09-25 Jackson Harper <jackson@ximian.com>
32270 * ImageList.cs: Don't set the format when changing the image.
32272 2005-09-25 Jackson Harper <jackson@ximian.com>
32274 * TreeView.cs: We can't just assume the node has a font. Use the
32275 treeviews font if no node font is available.
32277 2005-09-25 Jackson Harper <jackson@ximian.com>
32279 * TreeView.cs: Allow the scrollbars to be reset with negative
32281 - Don't add scrollbars to negative sized windows.
32283 2005-09-23 Jackson Harper <jackson@ximian.com>
32285 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32286 old Mono.Posix. Also remove some stray code that shouldn't have
32289 2005-09-23 Jackson Harper <jackson@ximian.com>
32291 * TreeView.cs: Attempt at proper sizing of the horizontal
32292 scrollbar. Also don't resize the scrollbars unless they are
32295 2005-09-23 Jackson Harper <jackson@ximian.com>
32297 * TreeView.cs: We don't need to expand the invalid area when the
32298 selection changes, as this is all drawn in the node's bounding
32299 box. The area needs to be expanded (previous typo was contracting
32300 it) when the focus rect moves.
32302 2005-09-23 Jackson Harper <jackson@ximian.com>
32304 * TreeView.cs: Display the selection box under the correct
32305 circumstances. We were rendering white text with no selection box
32308 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
32310 * TextControl.cs(Split): Now updates selection start/end if it points
32311 into a line that's being split. Fixes a FIXME and bug #75258
32313 2005-09-23 Jackson Harper <jackson@ximian.com>
32316 * ListControl.cs: Don't use the path when retrieving binding
32317 managers from the binding context. My bat sense tells me that the
32318 path is only used on insertion.
32320 2005-09-22 Jackson Harper <jackson@ximian.com>
32322 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32324 2005-09-22 Jackson Harper <jackson@ximian.com>
32326 * Splitter.cs: There are special cursors used for splitting.
32327 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32329 2005-09-22 Jackson Harper <jackson@ximian.com>
32331 * Splitter.cs: Change the cursor appropriately when the splitter
32332 is moused over, so the user actually knows there is a splitter
32335 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32337 * Label.cs : Fix ToString method to give same output as MS.NET
32339 2005-09-22 Jackson Harper <jackson@ximian.com>
32341 * TreeView.cs: Create the scrollbars when the handle is created
32342 and add them right away, just make them invisble. Also account for
32343 the window being shrunk vertically to the point that the vert
32344 scrollbar needs to be added.
32345 - Remove some 0.5 adjustments to get around anti aliasing issues.
32347 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
32349 * MainMenu.cs: Fixes default value
32350 * MenuItem.cs: Fixes default value
32352 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
32354 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32356 2005-09-21 Jackson Harper <jackson@ximian.com>
32358 * Control.cs: Don't try to set the border style on the window if
32359 it hasn't been created. When the window is created the border
32360 style will be used.
32362 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32364 * Control.cs (Update): Don't call XplatUI if we don't have a
32367 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32369 * ContainerControl.cs: Instead of throwing an exception, print
32370 a one-time warning about Validate not being implemented
32371 * XplatUIWin32.cs: Removed debug output
32373 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32375 * Control.cs: Only set XplatUI background if we expect the windowing
32376 system to handle the background. This stops controls that draw their
32377 own background from flickering
32379 * XplatUIX11.cs: Support custom visuals and colormaps for window
32380 creation. This allows, amongst other things, using MWF X11 windows
32383 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32385 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32386 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32387 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32388 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32389 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32390 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32391 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32392 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32393 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32394 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32395 GridColumnStylesCollection.cs,
32396 IDataGridColumnStyleEditingNotificationService.cs,
32397 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32398 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32399 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
32400 TreeNodeCollection.cs, AmbientProperties.cs,
32401 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32402 DataObject.cs, ErrorProvider.cs, Splitter.cs,
32403 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32404 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32405 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32406 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32407 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32408 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32409 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32410 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32411 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32412 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32413 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32414 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32415 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32416 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32417 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32418 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32419 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32420 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32421 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32422 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32423 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32424 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32425 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32426 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32427 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32428 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32429 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32430 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32431 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32432 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32433 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32434 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32435 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32436 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32437 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32439 2005-09-21 Jackson Harper <jackson@ximian.com>
32441 * TreeNode.cs: Call Before/After Expand not Collapse when
32444 2005-09-20 Jackson Harper <jackson@ximian.com>
32446 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32448 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
32452 - Fixes proper storing of subitems
32453 - Fixes not updated items
32455 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
32457 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32458 things if our window handle isn't created yet. Also disabled
32459 debug for TextBoxBase
32461 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
32463 * MenuAPI.cs: Remove filtering of events to allow menu usage
32465 2005-09-20 Miguel de Icaza <miguel@novell.com>
32467 * Cursor.cs: Allow null to be passed to Cursor.Current.
32469 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
32471 * ThemeWin32Classic.cs:
32472 - Change some private methods/fields to protected virtual so that
32473 they can be accessed and overriden in derived classes
32474 - First refactoring of some methods. Derived themes now don't
32475 need to duplicate the complete code from ThemeWin32Classic
32477 - Added nice StatusBar
32478 - Derive from ThemeWin32Classic and not Theme
32479 - Removed duplicate ThemeWin32Classic code
32481 2005-09-20 Miguel de Icaza <miguel@novell.com>
32483 * Control.cs (ControlCollection.Add): If the value null is passed
32484 the control is ignored.
32486 Optimize this loop.
32488 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
32490 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32491 PostQuitMessage state.
32492 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32494 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
32496 * Application.cs: Our constructor will never get called, move
32497 initialization to fields; fixes bug #75933
32499 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32502 - Allow files to be selected properly using file name
32504 - Add ability to change diretory (absolute / relative)
32505 using file name combo box.
32507 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
32510 - Fixes Multicolumn listboxes item wrong calculations
32511 - Allows to click when only one item is in the listbox
32512 - Fixes crash when no items using keyboard navigation
32514 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
32516 * ComboBox.cs: Reverted almost everything from the latest patch which
32519 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
32522 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32524 - When DropDownStyle is Simple, it does not show scrollbar
32525 to the last item of the list.
32526 - When DropDownStyle is Simple, it crashed when the list was
32527 scrolled down with the down cursor key.
32528 - Fixed a bug that when DropDownStyle is DropDownList, the
32529 selected item was not shown.
32530 - The position of the selected item was not preserved when
32531 the next dropdown happened.
32532 * ThemeWin32Classic.cs:
32533 - Items were wrapped at the right end.
32534 * CheckedListBox.cs:
32537 - Items should be fully shown.
32538 - When resizing and vertical scrollbar disappeared, the item
32539 of index 0 should be on the top of the list.
32540 - GetItemRectangle should consider the size of ver. scrollbar
32542 - SizingGrip area should not be allocated when it is not
32544 - Now it reflects MinWidth of the containing panel and
32545 fixed a crash that happens when its width becomes so small.
32547 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
32549 * CheckedListBox.cs: Fixes bug 76028
32550 * ListBox.cs: Fixes bug 76028
32552 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
32554 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32555 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32557 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
32559 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32561 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
32563 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
32565 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
32567 * IRootGridEntry.cs: Added
32568 * PropertyGridCommands.cs: Added
32569 * PropertiesTab.cs: Added missing methods and property
32570 * PropertyGridView.cs: Made class internal
32571 * PropertyGridTextBox.cs: Made class internal
32573 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
32575 * MimeIcon.cs: Try to check some other environment variables
32576 if "DESKTOP_SESSION" returns "default"
32578 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
32580 * ThemeNice.cs: Corrected background colors (e.g. menus)
32581 * ColorDialog.cs: Use correct background colors for controls
32583 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
32585 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32587 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
32589 * RichTextBox.cs: Added initial implementation
32590 * lang.cs: Removed. Was accidentally checked in long time ago
32591 * TODO: Removed. Contents were obsolete
32593 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
32595 * PropertiesTab.cs : Added
32597 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
32599 * PropertyGrid.cs : Update
32600 * PropertyGridView.cs : Update
32601 * System.Windows.Forms.resx : Added images and strings
32603 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
32605 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32607 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
32609 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32610 a busy loop right after the Ungrab the X11 display is otherwise
32613 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
32615 * ThemeWin32Classic.cs: Optimise the use of clipping
32617 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
32619 * DataGrid.cs: fixes recursion bug
32621 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
32624 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32627 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
32629 * ThemeNice.cs: Draw nice ProgressBars
32631 2005-09-01 Miguel de Icaza <miguel@novell.com>
32633 * VScrollBar.cs: Another buglet found by Aaron's tool.
32635 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32638 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
32641 - Added nicer menu drawing
32645 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32647 * CreateParams.cs (ToString): Made output match MS
32648 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
32649 handle is already created (to avoid forcing window creation)
32650 * XplatUIX11.cs: Set window text to caption after creating window,
32651 in case Text was set before window was created
32652 * Form.cs: Use this.Text instead of a static string as caption
32654 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32656 * NotifyIcon.cs: Don't set the window to visible; this screws
32657 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32658 OnPaint without a bitmap)
32659 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
32660 happen very often anyway; we could add the check to the WM_PAINT
32661 event generation code
32663 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32665 * NotifyIcon.cs: Fill the icon area with a background color, to
32666 avoid 'residue' when transparent icons are drawn
32668 - Handle whole_window == client_window when destroying windows
32669 - SystrayAdd(): Set client_window to whole_window value to
32670 get mouse and other events passed to NotifyIcon
32672 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32674 * Form.cs: Set proper default for Opacity property
32676 - ShowSystray(): Don't bother creating telling the OS
32677 about the systray item if no icon is provided
32678 - Now handles WM_NCPAINT message to deal with whole/client window
32680 - Create window as visible to not get caught by Expose optimization
32681 * Hwnd.cs: Removed debug message
32682 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32683 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
32684 PaintEventStart/End to use new client argument
32686 - Commented out debug messages
32687 - Switched PaintEventStart/End to use new client argument
32688 * XplatUI.cs: Added client window bool to PaintEventStart()/
32689 PaintEventEnd() calls, to support drawing in non-client areas
32690 * XplatUIDriver.cs:
32691 - Added client window bool to PaintEventStart()/PaintEventEnd()
32692 calls, to support drawing in non-client areas
32693 - Added conditional compile to allow using MWF BeginInvoke
32696 - Added some conditional debug output
32697 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32698 whole/client window split
32699 - Implemented handling of client argument to PaintEventStart()/End()
32701 - Throw exception if BeginInvoke() is called and the window handle
32702 or one of the window's parent handles is not created
32703 - Added conditional compile to allow using MWF BeginInvoke on
32705 - get_Parent(): Only sets parent if handle is created. This avoids
32706 forcing window handle creation when parent is set.
32707 - Now fires Layout and Parent changed events in proper order
32708 - Switched to use Handle instead of window.Handle for Z-Order setting,
32709 the get_Parent() patch above causes us to possibly get null for 'window'
32710 - Implemented handling of client argument to PaintEventStart()/End()
32711 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32713 - Now sends a Refresh() to all child windows when Refresh() is called
32715 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
32717 * Form.cs: Added (non-functional) Opacity property
32718 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32720 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
32721 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32722 use export MONO_THEME=nice to activate it.
32723 Currently supported controls:
32727 - TabControl (TabAlignment.Top only, other will follow)
32728 * ThemeEngine.cs: Add theme nice
32729 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32732 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
32734 * Splitter.cs: Resize docked control and its neighbor.
32736 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32737 -- Making Windows with Menus layout correctly --
32738 * Form.cs : The first leg of the fix
32739 Menu setter - adjust Client Size as needed to make space for the menu
32740 SetClientSizeCore - doesn't call base version to be able to pass the
32741 menu handle to XplatUI.CalculateWindowRect
32742 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32743 * XplatUIX11.cs: The critical second leg of the fix
32744 GetWindowPos needs to use a recalculated client_rect
32745 so that resizing the window doesn't break layout of child controls.
32746 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32747 Lots of \t\n killed
32749 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
32751 * Label.cs: Now properly recalculates width and height on Font and Text
32752 changes if AutoSize is set
32754 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32755 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32757 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
32759 * ImageList.cs: Makes ToString method compatible with MS
32761 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
32763 * MenuAPI.cs: fixes bug 75716
32765 2005-08-11 Umadevi S <sumadevi@novell.com>
32766 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32768 2005-08-11 Umadevi S <sumadevi@novell.com>
32769 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32771 2005-08-10 Umadevi S <sumadevi@novell.com>
32772 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32774 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
32776 * Menu.cs: fixes bug 75700
32777 * MenuAPI.cs: fixes navigation issues
32779 2005-08-09 Umadevi S <sumadevi@novell.com>
32780 * CheckedListBox.cs - simple fix for GetItemChecked.
32782 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
32784 * ComboBox.cs: Serveral fixes
32785 * ListBox.cs: Serveral fixes
32787 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32789 * ComboBox.cs: Fixes FindString methods and GetItemHeight
32790 * ListBox.cs: Fixes FindString methods
32792 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32794 * DataGrid.cs: fixes bugs exposed by new tests
32796 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
32798 * Mime.cs: Compile Mono assembly references only if compiling
32799 with Mono (Allows to build with VS.Net again)
32801 2005-07-28 Marek Safar <marek.safar@seznam.cz>
32803 * Control.cs (PaintControlBackground): Draw background image
32805 (CheckForIllegalCrossThreadCalls): Stubbed.
32807 * Form.cs (OnCreateControl): Center when should be centered.
32809 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32811 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
32813 * Binding.cs: Binding to properties should be case unsensitive
32815 2005-07-18 vlindos@nucleusys.com
32817 * DataGrid.cs: fixes setmember order
32819 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
32821 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32822 * FileDialog.cs: FileDialog is now resizable and uses the new
32825 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
32827 * DataGridTextBoxColumn.cs: default value
32828 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32829 * GridTableStylesCollection.cs: fixes checking MappingName
32830 * DataGridDrawingLogic.cs: fixes drawing logic issues
32831 * DataSourceHelper.cs: rewritten to make compatible with more data sources
32832 * DataGrid.cs: fixes
32834 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
32836 * MimeGenerated.cs: Use case sensitive comparer for
32837 NameValueCollections
32839 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
32841 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
32842 * ThemeWin32Classic.cs: bug fixes, code refactoring
32843 * DataGridDrawingLogic.cs: bug fixes, code refactoring
32844 * DataGrid.cs: bug fixes, code refactoring
32845 * DataGridTextBox.cs: bug fixes, code refactoring
32846 * DataGridColumnStyle.cs: bug fixes, code refactoring
32847 * Theme.cs: bug fixes, code refactoring
32849 2005-07-01 Peter Bartok <pbartok@novell.com>
32851 * TextControl.cs: Quick fix for the reported crash on ColorDialog
32852 and other text box usage
32854 2005-07-01 Jackson Harper <jackson@ximian.com>
32856 * TabControl.cs: Make sure the bottom of the tab covers the pages
32859 2005-06-30 Peter Bartok <pbartok@novell.com>
32861 * Form.cs (ShowDialog): Assign owner of the dialog
32862 * TextBoxBase.cs: Always refresh caret size when deleting, caret
32863 might have been moved to a tag with different height
32865 2005-06-30 Jackson Harper <jackson@ximian.com>
32867 * Form.cs: Don't create an infinite loop when setting focus
32868 * MenuItem.cs: Don't dirty the parents if we don't have any
32870 2005-06-29 Ben Maurer <bmaurer@ximian.com>
32872 * LibSupport.cs: Rename
32874 2005-06-29 Peter Bartok <pbartok@novell.com>
32876 * TextBoxBase.cs: Re-align caret after deleting a character
32878 - DeleteChars(): Ensure that tag covers the provided position
32879 - StreamLine(): Drop reference for dropped tag
32881 2005-06-29 Peter Bartok <pbartok@novell.com>
32884 - Selections now work properly, anchoring at the initial location
32885 and properly extending in either direction (SetSelectionToCaret(),
32886 SetSelectionStart() and SetSelectionEnd())
32887 - No longer redraws the whole control on selection change, now
32888 calculates delta between previous and new selection and only
32889 invalidates/redraws that area
32890 - Fixed FindPos() math off-by-one errors
32891 - Changed DeleteChars() to verify the provided tag covers the
32892 provided position, selections may have a tag that doesn't cover
32893 the position if the selection is at a tag border
32894 - Fixed off-by-one errors in DeleteChars()
32895 - Added missing streamlining check in DeleteChars() to remove
32897 - Implemented Invalidate() method, now properly calculates exposures
32898 between two given lines/positions
32899 - Implemented SetSelection()
32900 - Obsoleted and removed FixupSelection()
32901 - Improved RecalculateDocument() logic, removing code duplication
32903 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32905 * LibSupport.cs: changes to match different input/output arguments.
32907 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32909 * LibSupport.cs: added libsupport.so init routine.
32911 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
32913 * ControlBindingsCollection.cs
32914 - Throws an exception on null datasource when adding
32915 - Checks for duplicated bindings when adding
32917 2005-06-28 Jackson Harper <jackson@ximian.com>
32919 * TreeView.cs (OnKeyDown): Support left and right properly
32920 (navigates as well as expanding and collapsing.
32921 - Add support for Multiply, this expands all the selected nodes
32923 - Fix some tabbing.
32925 2005-06-28 Jackson Harper <jackson@ximian.com>
32927 * TreeView.cs: Implement keyboard navigation, currently supports,
32928 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32929 support for toggling checkboxes with the space bar.
32931 2005-06-28 Jackson Harper <jackson@ximian.com>
32933 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32936 2005-06-28 Jackson Harper <jackson@ximian.com>
32938 * TreeView.cs: Add missing event.
32940 2005-06-27 Peter Bartok <pbartok@novell.com>
32943 - Made line ending size configurable (now allows for counting
32944 lineendings as \n or \r\n)
32945 - Added margin to viewport to keep caret visible on right side
32946 - Fixed translation routines for line/pos to documentpos to consider
32947 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32948 - Fixed some line-endings to be unix style
32949 - Fixed Document.FormatText to perform it's calculations 1-based
32950 - Added descriptions for a few methods that might otherwise get
32952 - Added NOTE section with some basic conventions to remember at
32953 the top of the file
32954 - Major fixup for RichTextBox selection drawing:
32955 * Fixed crashes when multiple tags on a single line were selected
32956 * fixed selection box drawing not overlaying text
32957 * fixed bogus offset calculation for tags not starting at index 1
32958 * Switched behaviour from using multiple Substrings of a
32959 StringBuilder.ToString() to using multiple
32960 StringBuilder.ToString(start, length) statements, hoping this is
32961 faster (kept original version commented out in the code, in case
32962 original version was faster)
32963 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
32965 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32968 2005-06-27 Jackson Harper <jackson@ximian.com>
32970 * TabControl.cs: Move to the left and right with the arrow
32971 keys. These keys don't cycle beyond first and last like
32972 tab. Refresh all the tabs when scrolling them to the left or
32975 2005-06-27 Jackson Harper <jackson@ximian.com>
32978 - ToString: Added method
32979 - CreateParams: Remove TODO and comment
32980 - OnKeyDown: Cycle through bounds properly.
32981 - SelectedIndex: Scroll to the right or left if we need to
32982 display the newly selected tab.
32984 2005-06-23 Jackson Harper <jackson@ximian.com>
32986 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32989 2005-06-23 Jackson Harper <jackson@ximian.com>
32991 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32992 CTRL-SHIFT-TAB, and HOME, END are there any others?
32994 2005-06-23 Jackson Harper <jackson@ximian.com>
32996 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32998 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33000 * DataGridTextBoxColumn.cs: fixes and enhancements
33001 * ThemeWin32Classic.cs: fixes and enhancements
33002 * DataGridBoolColumn.cs: fixes and enhancements
33003 * DataGridDrawingLogic.cs: fixes and enhancements
33004 * CurrencyManager.cs: fixes and enhancements
33005 * DataGrid.cs: fixes and enhancements
33006 * DataGridColumnStyle.cs: fixes and enhancements
33008 2005-06-22 Jackson Harper <jackson@ximian.com>
33010 * TabControl.cs: Add some missing methods that just call into the
33011 base. Make the TabPageCollection's IList interface behave in the
33012 same manner as the MS implementation.
33014 2005-06-22 Peter Bartok <pbartok@novell.com>
33016 * TextControl.cs: Added sanity check
33018 - Fixed wrapping behaviour, don't set wrap on single line controls
33019 (this fixes the breakage of colordialog introduced in an earlier
33021 - Added rudimentary support for autoscrolling right-aligned controls
33022 (still needs fixing, also, center alignment scroll is missing)
33024 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33026 * ScrollBar.cs: Fixes thumbpos on Maximum values
33028 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
33030 * PropertyGridView.cs: Pass context information to UITypeEditors
33032 2005-06-21 Peter Bartok <pbartok@novell.com>
33035 - Now calling PositionCaret with absolute space coordinates
33036 - Enabled vertical scrolling
33037 - Better tracking of scrollbar changes, tied into WidthChange
33039 - Improved cursor tracking
33040 - Removed debug output
33042 - PositionCaret coordinates are now works in absolute space, not
33044 - Improved tracking of document size
33045 - Added events for width and height changes
33047 2005-06-21 Peter Bartok <pbartok@novell.com>
33049 * Form.cs: Set focus to active control when form is activated
33051 - Added word-wrap functionality to RecalculateLine()
33052 - Added some short function descriptions for VS.Net to aid in
33053 writing dependent controls
33054 - Added Caret property, returning the current coords of the caret
33055 - Added ViewPortWidth and ViewPortHeight properties
33056 - Added Wrap property
33057 - Added CaretMoved event
33058 - Removed some old debug code
33059 - Split() can now create soft splits
33060 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33061 - Added method to format existing text
33062 - Fixed size/alignment calculations to use viewport
33063 - RecalculateDocument now can handle changing line-numbers while
33067 - Added some wrap logic, we don't wrap if alignment is not left
33068 - Added casts for scrollbar var, base class switched types to
33069 also support RichTextBoxA
33070 - Implemented handling of scrollbar visibility flags
33073 - Switched scrollbars type to RichTextBoxScrollBars to support
33075 - Added tracking of canvas width/height
33076 - Switched scrollbars to be not selectable (to keep focus on text)
33077 - Added central CalculateDocument() method to handle all redraw
33079 - Added ReadOnly support
33080 - Added WordWrap support
33081 - Fixed handling of Enter key (we now treat it as a DialogKey)
33082 - Fixed caret positioning when h or v scroll is not zero
33083 - Fixed placing/generation of vertical scrollbar
33084 - Added CalculateScrollBars() method to allow updating scrollbar
33085 limits and visibility
33086 - Fixed handling of horizontal scroll
33087 - Added handling of vertical scroll
33088 - Implemented auto-'jump' when caret moves to close to a left or
33089 right border and there is text to be scrolled into view (currently
33090 there's the potential for a stack overflow, until a bug in
33091 scrollbar is fixed)
33093 2005-06-21 Geoff Norton <gnorton@customerdna.com>
33095 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33097 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
33101 - return application/x-zerosize for files with size zero
33102 (if no extension pattern matches).
33103 - check matches collection for strings too.
33104 - return only the first mime type if the name value
33105 collection has more than one mime type.
33107 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
33109 * PropertyGrid.cs: Cleaned up some TODOs
33110 * PropertyGridView.cs: Added support for UITypeEditors
33112 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
33114 * DataGrid.cs: clears cached value
33116 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
33118 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33119 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33120 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33121 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33123 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
33125 * ThemeWin32Classic.cs: fixes colour
33127 2005-06-15 Peter Bartok <pbartok@novell.com>
33129 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33130 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33131 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33132 * Control.cs: Added some MWFCategory and MWFDescription attributes
33133 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33135 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
33137 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33140 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
33142 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33143 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33144 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33145 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33146 * DataGrid.cs: default datagrid settings for Default Styles, fixes
33147 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33149 2005-06-13 Jackson Harper <jackson@ximian.com>
33151 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33152 isn't printed when the user enables dropping. (X11 does accept
33155 2005-06-13 Jackson Harper <jackson@ximian.com>
33157 * TreeView.cs: Remove some TODOS.
33159 2005-06-13 Jackson Harper <jackson@ximian.com>
33161 * Form.cs: Hook into the mdi framework.
33162 * MdiClient.cs: Use the base control collections add method so
33163 parents get setup correctly. Set the default back colour and dock
33165 * MdiChildContext.cs: New class, this bad actor handles an
33166 instance of an MDI window. Right now there is only basic
33167 support. You can drag, close, and resize windows. Minimize and
33168 Maximize are partially implemented.
33170 2005-06-13 Jackson Harper <jackson@ximian.com>
33172 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33173 freaky when both vals are negative. NOTE: There are probably other
33174 places in XplatUIX11 that this needs to be done.
33176 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
33178 * DataGrid.cs: implement missing methods, move KeyboardNavigation
33179 * DataGridColumnStyle.cs: fixes signature
33181 2005-06-12 Jackson Harper <jackson@ximian.com>
33183 * XplatUIX11.cs: Use sizing cursors similar to the ones on
33186 2005-06-11 Jackson Harper <jackson@ximian.com>
33188 * StatusBarPanel.cs: Signature cleanups. Implement
33191 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
33193 * DataGridTextBoxColumn.cs: Honors aligment
33194 * GridColumnStylesCollection.cs: Contains is case unsensitive
33195 * GridTableStylesCollection.cs: several fixes
33196 * DataGridTableStyle.cs: default column creation
33197 * DataGridDrawingLogic.cs: fixes
33198 * CurrencyManager.cs: ListName property
33199 * DataGrid.cs: multiple styles support
33200 * DataGridColumnStyle.cs: fixes
33203 2005-06-10 Peter Bartok <pbartok@novell.com>
33205 * Control.cs(Select): Moved SetFocus call to avoid potential
33206 loops if controls change the active control when getting focus
33207 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33208 the up/down buttons
33210 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
33212 * ImageListConverter.cs: Implemented
33214 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
33216 * MonthCalendar.cs: Wired in NumericUpDown control for year
33218 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
33220 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33221 DoubleClick events, since they are not meant to be fired.
33223 2005-06-09 Peter Bartok <pbartok@novell.com>
33225 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33226 Jonathan's standalone controls into MWF, implemented missing
33227 events, attributes and methods; added xxxAccessible classes
33228 * AccessibleObject.cs: Made fields internal so other classes
33229 can change them if needed
33231 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
33233 * UpDownBase.cs: Complete implementation
33234 * NumericUpDown.cs: Complete implementation
33235 * DomainUpDown.cs: Complete implementation
33237 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
33239 * DataGridTextBoxColumn.cs: drawing fixes
33240 * DataGridCell.cs: fixes ToString method to match MSNet
33241 * DataGridTableStyle.cs: fixes
33242 * DataGridBoolColumn.cs: fixes, drawing
33243 * DataGridDrawingLogic.cs: fixes, new methods
33244 * DataGridTextBox.cs: Keyboard and fixes
33246 - Keyboard navigation
33248 - Row selection (single, multiple, deletion, etc)
33251 2005-06-07 Jackson Harper <jackson@ximian.com>
33253 * ThemeWin32Classic.cs: Clear the background area when drawing
33256 2005-06-06 Peter Bartok <pbartok@novell.com>
33258 * ImageListStreamer.cs: Fixed signature for GetData
33259 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33261 - Added missing ChildAccessibleObject class
33262 - Added missing OnXXXFocus overrides, switched to using those
33263 instead of the event handler
33265 - Added Parent property for ControlAccessibleObject
33268 - Added ResetBindings()
33269 * ListBindingConverter.cs: Implemented some methods
33270 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33271 * ImageList.cs: Implemented basic handle scheme, removed TODOs
33272 * ContainerControl.cs: Fixed signature, now subscribing to the
33273 ControlRemoved event instead of overriding the handler, LAMESPEC
33274 * CurrencyManager.cs: Added missing attribute
33275 * MonthCalendar.cs: Added missing properties
33277 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
33279 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33281 2005-06-06 Gaurav Vaish and Ankit Jain
33283 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33284 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33286 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
33288 * Control.cs: fixes CreateParams Width / Height.
33290 2005-06-05 Peter Bartok <pbartok@novell.com>
33292 * Win32DnD.cs: Removed compilation warnings
33294 2005-06-05 Peter Bartok <pbartok@novell.com>
33296 * Control.cs (CreateParams): Since we don't know if one of the
33297 properties we use is overridden, lets make sure if we fail accessing
33298 we continue with a backup plan
33300 2005-06-05 Peter Bartok <pbartok@novell.com>
33303 - Removed debug output
33304 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33306 - Plugged resource leak
33307 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33310 2005-06-05 Peter Bartok <pbartok@novell.com>
33312 * XplatUIWin32.cs: Removed DnD code
33313 * Win32DnD.cs: Implemented drop source and drop target functionality
33315 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33317 * UpDownBase.cs: remove duplicate addition of event, enable some code
33318 that was commented out.
33319 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33320 Validate input when a key is pressed. It works fine now for every
33321 combination of Hexadecimal. Only missing some drawing love when sharing
33322 space with other controls.
33324 2005-06-04 Peter Bartok <pbartok@novell.com>
33327 - We need to pass a window for DragDrop, so enable callback events
33328 - Added DnD callback events when being a DragSource
33329 * XplatUI.cs (StartDrag): Added window handle argument
33330 * XplatUIDriver.cs (StartDrag): Added window handle argument
33331 * QueryContinueDragEventArgs: Made fields internally accessible so
33332 drivers can set them
33333 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33336 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
33338 * DataGridTextBoxColumn.cs: column text editing
33339 * DataGridTableStyle.cs: Respect columns styles created by the user
33340 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33341 * DataGridBoolColumn.cs: bool column editing
33342 * DataGrid.cs: fixes to scrolling, properties, etc
33343 * DataGridTextBox.cs: handle keyboard
33344 * DataGridColumnStyle.cs: fixes
33346 2005-06-02 Jackson Harper <jackson@ximian.com>
33348 * ImageListStreamer.cs: Somewhat broken implementation of
33349 GetObjectData. The RLE needs some work to match MS properly.
33351 2005-06-02 Jackson Harper <jackson@ximian.com>
33353 * X11Dnd.cs: Attempting to keep at least one file in MWF
33356 2005-06-02 Peter Bartok <pbartok@novell.com>
33358 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33361 2005-06-02 Peter Bartok <pbartok@novell.com>
33363 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33364 * XplatUI.cs: Added DoDragDrop() method
33365 * XplatUIDriver.cs: Added DoDragDrop() method
33367 2005-06-02 Jackson Harper <jackson@ximian.com>
33369 * Splitter.cs: Implement BorderStyle.
33371 2005-06-02 Jackson Harper <jackson@ximian.com>
33373 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33374 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33377 2005-06-02 Peter Bartok <pbartok@novell.com>
33380 - Added Data setter
33381 - Fixed broken insertion code for SetData, now also
33382 overwrites any existing entry of the same format name
33383 * Hwnd.cs: Added list of pointers that automatically gets
33384 freed when the window is disposed
33385 * XplatUI.cs: Call driver initialization method when loading
33388 - OnDragLeave takes EventArgs, not DragEventArgs
33389 - Added setting of WS_EX_ACCEPTFILES style when dropping is
33391 - Forces style update when drop state changes
33392 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33393 not perfect since we cannot (yet) call the IDataObject.GetData()
33394 method, we keep getting 0x80004005 error, dunno why)
33396 2005-06-02 Peter Bartok <pbartok@novell.com>
33398 * DragEventArgs.cs: Make fields internal so we can cache the
33399 object and re-set the fields from XplatUI
33401 2005-06-02 Jackson Harper <jackson@ximian.com>
33403 * Control.cs: Add some internal methods so the DnD subsystem can
33404 raise DnD events. Also call into the driver when AllowDrop is set.
33406 * XplatUIDriver.cs: New method for setting whether or not a window
33407 is allowed to accept drag and drop messages.
33409 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
33411 * ScrollBar.cs: Make sure that values sent in Scroll events
33412 are always between Maximum and Minimum.
33414 2005-06-01 Marek Safar <marek.safar@seznam.cz>
33416 * Menu.cs: Call MenuChanged when menuitem visibility has been
33418 * MenuItem.cs: Rebuild menu when item is (not) visible.
33419 * MainMenu.cs: MainMenu has special MenuChanged.
33420 * Theme.cs: Caption and FrameBorderSize are not fixed.
33421 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33422 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33424 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33425 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33427 2005-05-30 Jackson Harper <jackson@ximian.com>
33429 * DataFormat.cs: We can't statically initialize this stuff because
33430 it calls into the xplatui and could create a loop. So we lazy init
33433 2005-05-28 Jackson Harper <jackson@ximian.com>
33435 * Control.cs: Proper implementation of Product(Name/Version).
33437 2005-05-27 Jackson Harper <jackson@ximian.com>
33439 * DataObject.cs: Dont crash if no data is found.
33441 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33442 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33443 as per status page, guessing it should be set to true
33445 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
33447 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33448 * DataGridTableStyle.cs: set proper formatting text, def header text
33449 * ThemeWin32Classic.cs: new themable paramaters
33450 * DataGridBoolColumn.cs: paint check box, get data, fixes
33451 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33452 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33453 * DataGridColumnStyle.cs: fixes
33454 * Theme.cs: new themable paramaters
33456 2005-05-26 Peter Bartok <pbartok@novell.com>
33458 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33460 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33461 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33463 2005-05-24 Peter Bartok <pbartok@novell.com>
33465 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33466 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33467 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33468 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33469 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33470 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33471 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33472 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33473 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33474 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33475 missing attributes, etc
33476 * DataGridPreferredColumnWidthTypeConverter.cs: Added
33478 2005-05-24 Peter Bartok <pbartok@novell.com>
33480 * Help.cs: Added, implemented trivial functions, throws up MessageBox
33481 when user tries to get help
33482 * DataObject.cs, DataFormats.cs, LinkArea.cs,
33483 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33484 to suppress warnings
33485 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33486 avoid unreachable code warning
33488 2005-05-20 Peter Bartok <pbartok@novell.com>
33490 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33492 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
33494 * DataGridTextBoxColumn.cs: Basic painting methods
33495 * DataGridTableStyle.cs: Set table style in the column
33496 * ThemeWin32Classic.cs: Use Theme for colors
33497 * DataGridDrawingLogic.cs: Implement more drawing
33498 * DataGrid.cs: drawing, theming, enhacements, fixes
33499 * DataGridColumnStyle.cs: fixes, drawing
33500 * Theme.cs: theming for Datagrid
33502 2005-05-20 Peter Bartok <pbartok@novell.com>
33504 * Cursor.cs: Implemented GetObjectData() method
33506 2005-05-20 Peter Bartok <pbartok@novell.com>
33508 * Cursors.cs: Added setting of cursor name
33510 - Implemented constructors
33511 - Implemented Draw and DrawStretched
33512 - Implemented Current property
33513 - Implemented == and != operators
33514 - Implemented Dispose()
33515 - Implemented ToString
33516 - Added missing attributes
33518 - Added missing reset for OverrideCursor when DoEvents is called
33519 - Fixed creation of cursor, logic was wrong
33521 - Added missing reset for OverrideCursor when DoEvents is called
33522 - Fixed creation of cursor, bit arrays were swapped
33523 * Clipboard.cs: Removed obsolete MonoTODO attribute
33525 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
33527 * ComboBox.cs: fixes OnSelectedItemChanged
33528 * ControlBindingsCollection.cs: fixes item range check
33530 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
33533 - Calc preferred height properly
33534 - Implement missing properties
33536 * NumericUpDown.cs: Implement missing events
33538 2005-05-19 Jackson Harper <jackson@ximian.com>
33540 * TabControl.cs: New method that resizes the tab pages before
33541 redrawing them. This as needed as the control is double buffered
33542 and sizing will not be recalculated unless ResizeTabPages is
33544 * TabPage.cs: Set base.Text instead of Text in the constructor so
33545 that UpdateOwner does not get called. Use the new Redraw method of
33546 TabControl instead of Refresh so the sizing is recalculated.
33547 * ThemeWin32Classic.cs: Draw the text for button tabs.
33549 2005-05-19 Jackson Harper <jackson@ximian.com>
33551 * Control.cs: Paint control background images. Fix typo where
33552 PaintControlBackground was not getting called correctly.
33554 2005-05-19 Peter Bartok <pbartok@novell.com>
33556 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33557 I can investigate, apparently I broke FileDialog
33559 2005-05-19 Marek Safar <marek.safar@seznam.cz>
33561 * AxHost.cs: Some simple properties.
33562 * Control.cs: window must be accessible after ctor.
33563 * Form.cs: Added TransparencyKey property.
33564 * TextBoxBase.cs: Implemented Clear. Text property can be null.
33565 * XplatUIWin32.cs: SetBorderStyle implemented.
33567 2005-05-18 Peter Bartok <pbartok@novell.com>
33569 * DataObject.cs: Entries are not global but particular to the
33570 DataObject, now it behaves that way
33571 * XplatUIWin32.cs: Implemented Clipboard methods
33572 * Clipboard.cs: Implemented
33573 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33574 * XplatUIOSX.cs: Updated to final clipboard prototypes
33575 * XplatUIX11.cs: Implemented Clipboard methods
33576 * XplatUIDriver.cs: Updated to final clipboard prototypes
33577 * XplatUIStructs.cs:
33578 - Added BITMAPINFOHEADER struct
33579 - Added ClipboardFormats enum
33581 - Added ClipboardStruct
33582 - Added Atom enum items for clipboard types
33583 - Fixed atom types for Selection event structures
33585 - Added internal properties and methods for drivers to enumerate
33587 - Switched initialization method to allow drivers to assign their
33588 own IDs even for the MS predefined clipboard IDs
33589 * XplatUI.cs: Updated to final clipboard interface
33591 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33592 * PropertyGridView.cs: Fixed compiler warnings.
33594 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33595 * PropertyGrid.cs: Added some event calls
33596 * PropertyGridView.cs: Change drawing code to use double buffering
33597 * PropertyGridTextBox.cs: Changed Text property name
33598 * GridItem.cs: Added Bounds property.
33599 * GridEntry.cs: Added Bounds property.
33601 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
33603 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33604 since GetType() may not return the correct type if the object is
33607 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
33609 * TreeNodeCollection.cs: fixes get/set item ranges
33611 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
33613 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33615 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
33617 * ComboBox.cs: Fix item range comparation
33618 * ListView.cs: Fix item range comparation
33620 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
33623 - Clear example panel when OnPaint is called
33624 - Better solution for displaying the example panel text
33625 - Select default indexes in the ListBoxes
33627 2005-05-11 Geoff Norton <gnorton@customerdna.com>
33629 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
33631 2005-05-11 Peter Bartok <pbartok@novell.com>
33633 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33634 * SelectionRangeConverter.cs: Implemented
33635 * PropertyGrid.cs: Fixed attribute value
33637 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33638 - Added Sebastien Pouliot's CAS Stack Propagation fixes
33639 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33640 that's common to all drivers. First methods to go there are
33641 Sebastien Pouliot's CAS Stack Propagation helper methods
33642 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33643 Sebastien Pouliot for CAS Stack Propagation
33645 2005-05-11 Geoff Norton <gnorton@customerdna.com>
33648 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33650 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
33652 * DataGridTextBoxColumn.cs: fixed some members
33653 * GridColumnStylesCollection.cs: indexed column is case insensitive
33654 * DataGridTableStyle.cs: fixes
33655 * ThemeWin32Classic.cs: add new theme parameter
33656 * Theme.cs: add new theme parameter
33657 * DataGridDrawingLogic.cs: Datagrid's drawing logic
33658 * DataGrid.cs: fixes, new internal properties, etc.
33659 * DataGridColumnStyle.cs: allows to set grid value
33662 2005-05-10 Peter Bartok <pbartok@novell.com>
33664 * AccessibleObject.cs:
33665 - Removed MonoTODO attribute on help, method is correct
33666 - Fixed Bounds property
33667 * AxHost.cs: Moved MonoTODO
33668 * ButtonBase.cs: Now setting AccessibleObject properties
33669 * RadioButton.cs: Setting proper AccessibleObject role
33670 * CheckBox.cs: Setting proper AccessibleObject role
33671 * ControlBindingsCollection.cs: Added properties, methods and attributes
33672 * DataFormats.cs: Fixed awkward internal API, and changed to enable
33673 userdefined DataFormats.Format items as well
33674 * ListControl.cs: Removed data_member from the public eye
33675 * OpenFileDialog.cs:
33676 - Made class sealed
33677 - Added missing attributes
33678 * SaveFileDialog.cs: Added missing attributes
33679 * ImageListStreamer.cs: Fixed code that caused warnings
33680 * LinkLabel.cs: Removed unreachable code
33681 * TreeView.cs: Fixed code that caused warnings
33682 * PropertyGridView.cs: Fixed code that caused warnings
33683 * GridColumnStylesCollection.cs: Added missing attributes
33684 * GridTableStylesCollection: Added missing attribute
33685 * PropertyManager: Added .ctor
33686 * SecurityIDType: Added
33687 * DataObject.cs: Implemented class
33688 * LinkArea.cs: Added missing attribute
33690 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
33692 * RadioButton.cs: call base method to allow to fire OnClick event
33693 * UpDownBase.cs: OnMouseUp call base method
33694 * CheckedListBox.cs: call base method before returning
33695 * TrackBar.cs: call base method before returning
33698 2005-05-10 Peter Bartok <pbartok@novell.com>
33700 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33703 2005-05-10 Peter Bartok <pbartok@novell.com>
33705 * DataFormats.cs: Implemented
33706 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33707 XplatUIX11.cs: Added Clipboard APIs
33708 * XplatUIWin32.cs: Implemented Clipboard APIs
33709 * FolderBrowserDialog.cs: Added missing event, attributes
33711 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
33713 * CheckBox.cs: call base method to allow to fire OnClick event
33715 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
33717 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33719 2005-05-06 Peter Bartok <pbartok@novell.com>
33721 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33722 * Screen.cs: Implemented
33723 * HelpNavigator.cs: Added
33724 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33726 * HelpProvider.cs: Implemented all we can do until we have a CHM
33727 help library (which means that "What's This" does work now)
33729 2005-05-06 Jackson Harper <jackson@ximian.com>
33731 * XplatUIX11.cs: Fix waking up the main loop.
33733 2005-05-05 Peter Bartok <pbartok@novell.com>
33735 * XplatUI.cs: Updated revision
33736 * Form.cs: Removed enless loop
33737 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33738 * Label.cs (OnPaint): Added call to base.OnPaint()
33739 * ToolTip.cs: Made ToolTipWindow reusable for other controls
33740 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33741 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33743 * ButtonBase.cs: Moved base.OnPaint() call to end of method
33744 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33745 to ToolTip.ToolTipWindow for drawing and size methods; this allows
33746 reuse of ToolTipWindow by other controls
33747 * SizeGrip.cs: Moved base.OnPaint() call to end of method
33748 * XplatUIX11.cs: Now clipping drawing area (experimental)
33749 * PictureBox.cs: Moved base.OnPaint() call to end of method
33750 * Theme.cs: Fixed ToolTip abstracts to match new format
33751 * ErrorProvider.cs: Implemented
33753 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
33755 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33759 - Implements LinkBehavior
33760 - Fixes many issues
33762 2005-05-03 Jackson Harper <jackson@ximian.com>
33764 * ListView.cs: Calculate the scrollbar positioning on resize and
33765 paint, so they get put in the correct place.
33767 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
33769 * ColorDialogs.cs: The small color panels are now handled by
33770 SmallColorControl. This fixes drawing of the focus rectangle
33771 and adds a 3D border.
33773 2005-05-03 Peter Bartok <pbartok@novell.com>
33775 * Control.cs: Modified version of Jonathan Chamber's fix for
33778 2005-05-03 Jackson Harper <jackson@ximian.com>
33780 * ListView.cs: Remove redraw variable. Control now handles whether
33781 or not a redraw needs to be done, and will only raise the paint
33782 event if redrawing is needed.
33784 2005-05-03 Jackson Harper <jackson@ximian.com>
33786 * Splitter.cs: No decorations for the splitter form. Cache the
33789 2005-05-03 Jackson Harper <jackson@ximian.com>
33791 * TreeView.cs: Use dashed lines to connect nodes. Use the
33792 ControlPaint method for drawing the focus rect instead of doing
33795 2005-05-02 Peter Bartok <pbartok@novell.com>
33797 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33799 2005-04-29 Jackson Harper <jackson@ximian.com>
33801 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33802 entire image buffer. Just clear the clipping rectangle.
33804 2005-04-29 Jackson Harper <jackson@ximian.com>
33806 * ThemeWin32Classic.cs: Don't draw list view items that are
33807 outside the clipping rectangle.
33809 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
33811 * ListBox.cs: added horizontal item scroll
33813 2005-04-29 Jackson Harper <jackson@ximian.com>
33815 * ThemeWin32Classic.cs: Remove some old debug code that was
33816 causing flicker with the new double buffering code.
33818 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
33820 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33821 behave like combobox and comboboxlist (still not sure if this is
33824 2005-04-28 Jackson Harper <jackson@ximian.com>
33826 * ThemeWin32Classic.cs: Don't fill the middle of progress
33827 bars. This fills areas outside of the clip bounds that don't need
33830 2005-04-28 Jackson Harper <jackson@ximian.com>
33832 * Control.cs: Don't expose functionality to touch the image buffers.
33834 * ListView.cs: We do not need to (and no longer can) manipulate
33835 the image buffers directly. All of this is handled by Control.
33837 2005-04-28 Peter Bartok <pbartok@novell.com>
33839 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33840 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33841 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33843 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33846 - Adjust control's height for non-simple comboboxes (bug fix)
33848 * MenuAPI.cs: remove unused var
33849 * ScrollBar.cs: remove unsed var
33851 * ListBox.cs: unselect items when clearing
33853 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33855 * ListControl.cs: honors OnPositionChanged and default Selected Item
33856 * ListBox.cs: unselect items when clearing
33858 2005-04-27 Jackson Harper <jackson@ximian.com>
33860 * X11Keyboard.cs: Initialize a default keyboard and give a warning
33861 if a "correct" keyboard is not found. This will make us not crash,
33862 but might give some users bad keyboard layouts...seems to be the
33863 same thing rewind does.
33865 2005-04-27 Jackson Harper <jackson@ximian.com>
33867 * BindingManagerBase.cs: Attach the current/position changed
33868 handlers to their respective events.
33870 2005-04-27 Jackson Harper <jackson@ximian.com>
33872 * Control.cs: Make sure that the first WM_PAINT does a full draw,
33874 * ThemeWin32Classic.cs: Don't fill the background for picture
33875 boxes. This could overright user drawing.
33876 * ComboBox.cs: Just fill the clipping rect not the entire client
33877 rect when drawing the background. This prevents pieces of the
33878 image buffer from getting overwritten and is theoretically faster.
33880 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
33882 * ComboBox.cs: Databinding support fixes, fire missing events
33883 * ListControl.cs: implement missing methods and properties, fixes
33884 * ThemeWin32Classic.cs: Databiding support on Drawing
33885 * CheckedListBox.cs: Databinding support fixes, fire missing events
33886 * ListBox.cs: Databinding support fixes, fire missing events
33888 2005-04-25 Peter Bartok <pbartok@novell.com>
33890 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33892 2005-04-25 Jackson Harper <jackson@ximian.com>
33894 * TreeView.cs: Use the horizontal scrollbars height not width when
33895 determining how much of the client area is available.
33897 2005-04-25 Jackson Harper <jackson@ximian.com>
33899 * Control.cs: Double buffering is handled differently now. As per
33900 the spec, the extra buffer is created in the WM_PAINT message and
33901 passed down to the control's drawing code.
33909 * PropertyGridView.cs:
33921 * DateTimePicker.cs:
33923 * TreeView.cs: Update to new double buffering system.
33924 * MonthCalendar.cs: Uncomment block, as Capture is now
33925 working. Update to new double buffering
33926 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33927 * PaintEventArgs.cs: New internal method allows us to set the
33928 graphics object. This is used for double buffering.
33929 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33930 rectangle. The internal paint_area var has been removed from
33931 StatusBar. The clipping rect should be used instead.
33932 * Theme.cs: Give the PictureBox drawing method a clipping rect.
33933 * TabPage.cs: The RefreshTabs method was removed, so just call the
33934 tab controls Refresh method now.
33935 * TabControl.cs: Update to new double buffering. Make sure the
33936 handle is created before sizing the tab pages, otherwise we will
33937 get stuck in a loop.
33939 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
33941 * LinkLabel.cs: Fix typo, bug #74719; patch
33942 from Borja Sanchez Zamorano
33944 2005-04-22 Jackson Harper <jackson@ximian.com>
33946 * TreeNode.cs: Implement Handle stuff.
33947 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33949 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
33951 * DataGridTextBoxColumn.cs: call base constructors, fixes
33952 * GridColumnStylesCollection.cs: missing events, methods, and functionality
33953 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33954 * DataGridTableStyle.cs: implements create default column styles
33955 * DataGridBoolColumn.cs: which types can handle
33956 * DataGrid.cs: missing methods, fixes, new functionality
33957 * DataGridColumnStyle.cs: fixes
33959 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
33960 * FolderBrowserDialog.cs:
33961 - Use a thread to fill the TreeView
33962 - Adjusted some sizes
33964 2005-04-19 Peter Bartok <pbartok@novell.com>
33966 * LinkLabel.cs: (Re-)create the pieces when setting the Text
33967 property. Fixes #74360.
33969 2005-04-19 Jackson Harper <jackson@ximian.com>
33971 * XEventQueue.cs: Lock when getting the lockqueue size.
33972 * PictureBox.cs: Call base OnPaint
33974 2005-04-19 Peter Bartok <pbartok@novell.com>
33976 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33977 messages were no longer being processed (this broke BeginInvoke)
33980 2005-04-18 Jackson Harper <jackson@ximian.com>
33982 * TreeView.cs: buglet that caused node images to get drawn
33983 regardless of whether or not they were in the clipping rectangle.
33985 2005-04-18 Jackson Harper <jackson@ximian.com>
33987 * CurrencyManager.cs: There are four rules for GetItemProperties:
33988 - If the type is an array use the element type of the array
33989 - If the type is a typed list, use the type
33990 - If the list contains an Item property that is not an object, use
33992 - use the first element of the list if there are any elements in
33995 2005-04-17 Jackson Harper <jackson@ximian.oom>
33997 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33998 click. This handles offsets for scrolling properly and reduces
33999 memory. Also fixed GetNode to not offset now that TopNode works
34001 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34003 2005-04-17 Jackson Harper <jackson@ximian.com>
34005 * CursorConverter.cs: Initial implementation.
34007 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34009 * ListControl.cs: work towards complex data binding support on ListControl
34010 * CurrencyManager.cs: work towards complex data binding support on ListControl
34011 * ListBox.cs: work towards complex data binding support on ListControl
34014 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34016 * GridTableStylesCollection.cs: fixes name and constructor
34017 * DataGridTableStyle.cs: fixes
34018 * DataGridBoolColumn.cs: fixes names and constructors
34019 * DataGrid.cs: define methods and properties. Some init implementations
34020 * DataGridCell.cs: define methods and properties. Some init implementations
34021 * GridTablesFactory.cs: Define methods and properties
34023 2005-04-15 Geoff Norton <gnorton@customerdna.com>
34025 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
34026 graphics port changes. We still want the coordinates in global screen
34029 2005-04-14 Jackson Harper <jackson@ximian.com>
34031 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34032 check plus minus or checkbox clicks unless those features are enabled.
34034 2005-04-14 Jackson Harper <jackson@ximian.com>
34036 * TreeView.cs: Add methods for setting the top and bottom visible
34037 nodes. TreeNode::EnsureVisible uses these methods.
34038 * TreeNode.cs: Implement EnsureVisible
34040 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
34042 * Form.cs: Pospone menu assignation if the window has not been created yet
34043 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34046 2005-04-12 Jackson Harper <jackson@ximian.com>
34048 * TreeView.cs: Set the TopNode properly when scrolling
34049 occurs. This has the added benifit of reducing the amount of
34050 walking that needs to be done when drawing. Also removed an old
34052 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34054 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
34056 * Timer.cs: fixes interval setting when the timer is already enabled
34058 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
34060 * FolderBrowserDialog.cs: First approach
34062 2005-04-09 Peter Bartok <pbartok@novell.com>
34064 * FolderBrowserDialog: Added
34066 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
34068 * LinkLabel.cs: move drawing code into the theme
34069 * ThemeWin32Classic.cs: drawing code and painting background bugfix
34070 * Theme.cs: define DrawLinkLabel method
34072 2005-04-05 Jackson Harper <jackson@ximian.com>
34074 * BindingContext.cs: Use weak references so these bad actors don't
34075 stay alive longer then they need to.
34077 2005-04-05 Jackson Harper <jackson@ximian.com>
34079 * ListControl.cs: Basic implementation of complex databinding.
34081 * ListBox.cs: Add calls to ListControl databinding methods.
34083 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
34086 - Don't change PopupButtonState to Normal when the
34087 PopupButton gets pressed several times.
34088 - Renamed ButtonPanel to PopupButtonPanel
34090 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
34092 * ColorDialog.cs: Use cached objects instead of creating them
34093 * LinkLabel.cs: Use cached objects instead of creating them
34094 * Splitter.cs: Use cached objects instead of creating them
34095 * FontDialog.cs: Use cached objects instead of creating them
34096 * PropertyGridView.cs: Use cached objects instead of creating them
34097 * MessageBox.cs: Use cached objects instead of creating them
34098 * FileDialog.cs: Use cached objects instead of creating them
34099 * ThemeWin32Classic.cs: Use cached objects instead of creating them
34100 * TreeView.cs: Use cached objects instead of creating them
34102 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
34104 * Control.cs: use Equals to compare the font since no == op
34105 * ScrollBar.cs: use Equals to compare the font since no == op
34107 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
34109 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34111 2005-04-01 Jackson Harper <jackson@ximian.com>
34113 * Binding.cs: Implement IsBinding.
34114 * BindingManagerBase.cs:
34115 * PropertyManager.cs:
34116 * CurrencyManager.cs: Add IsSuspended property.
34118 2005-04-01 Jackson Harper <jackson@ximian.com>
34120 * Binding.cs: Had some IsAssignableFrom calls backwards.
34122 2005-04-01 Jackson Harper <jackson@ximian.com>
34124 * Binding.cs: Handle null data members when pulling data.
34125 * PropertyManager.cs: Handle the data member being a property that
34128 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
34130 * DataGridTextBoxColumn.cs: fixes signature
34131 * DataGrid.cs: calls right constructor
34133 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
34135 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34136 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34137 * GridTableStylesCollection.cs: implements GridTableStylesCollection
34138 * DataGridTableStyle.cs: implements DataGridTableStyle
34139 * DataGridBoolColumn.cs: implements DataGridBoolColumn
34140 * DataGridTextBox.cs: implements DataGridTextBox
34141 * DataGridColumnStyle.cs: implements DataGridColumnStyle
34143 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
34145 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34147 2005-03-29 Peter Bartok <pbartok@novell.com>
34150 - Properly implemented CompanyName property
34151 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34152 returns a path that includes CompanyName, ProductName and
34153 Version (fixes bug #70330)
34155 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
34157 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34160 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
34162 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34164 - Added ReadOnly CheckBox
34165 - Further refactoring: moved some code from Open-/SaveFileDialog
34168 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
34170 * OpenFileDialog.cs: Fixed CheckFileExists
34172 Moved FileView and DirComboBox outside FileDialog class.
34173 They can now be used outside FileDialog
34175 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
34177 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34178 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34180 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
34182 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34183 - Added missing CreatePrompt property in SaveDialog
34184 - Overall SaveDialog handling should be better now
34185 - Added non standard ShowHiddenFiles property
34186 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34187 - Added InitialDirectory and RestoreDirectory support
34189 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
34191 * FileDialog.cs: Made dirComboBox usable
34193 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
34195 * FileDialog.cs: Added Filter support (case sensitiv)
34197 2005-03-24 Jackson Harper <jackson@ximian.com>
34199 * TabControl.cs: Need a couple more pixels for the lines.
34201 2005-03-23 Jackson Harper <jackson@ximian.com>
34203 * TabControl.cs: Give the tab page focus when it is selected.
34205 2005-03-23 Jackson Harper <jackson@ximian.com>
34207 * TabControl.cs: Account for the drawing of tabs borders when
34208 invalidating. If the slider was clicked dont do click detection on
34211 2005-03-23 Jackson Harper <jackson@ximian.com>
34213 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34215 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
34217 * CategoryGridEntry.cs: Added
34218 * GridItem.cs: Added helper properties
34219 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34220 * GridEntry.cs: Updated code for collection
34221 * PropertyGrid.cs: Cleaned up some formatting
34222 * PropertyGridView.cs: Added drop down functionality for enums.
34223 * GridItemCollection.cs: Added enumerator logic
34224 * PropertyGridEntry.cs: Added
34226 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
34229 - Removed unnecessary commented code
34230 - Fixed handling for entering the filename manually in the combobox
34232 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
34234 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34236 2005-03-18 Peter Bartok <pbartok@novell.com>
34238 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34239 them being touching the border
34241 2005-03-18 Peter Bartok <pbartok@novell.com>
34243 * TextControl.cs: Quick hack to center text better
34245 2005-03-18 Peter Bartok <pbartok@novell.com>
34248 - Don't throw NotImplemented exceptions, just print a notice once
34249 instead (requested by Miguel). This makes running existing SWF
34252 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34253 - Added context menu trigger on right click
34254 * Panel.cs: Trigger invalidate on resize
34256 - Removed old double-buffer drawing
34257 - Added ResizeRedraw style to force proper update of statusbar
34259 - Removed debug output
34260 * ThemeWin32Classic.cs:
34261 - Fixed drawing of status bar, now draws Text property if there
34262 are no defined panels
34264 2005-03-18 Jackson Harper <jackson@ximian.com>
34266 * ImageList.cs: When the image stream is set pull all the images
34268 * ImageListStreamer.cs: Implement reading image list streams.
34270 2005-03-18 Peter Bartok <pbartok@novell.com>
34272 * ThemeWin32Classic.cs (DrawPictureBox):
34273 - Fixed calculations for centered drawing
34274 - Fixed drawing for normal mode, not scaling the image on normal
34276 2005-03-18 Peter Bartok <pbartok@novell.com>
34278 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34281 - Made Open/Save button the accept button for FileDialog
34282 - Tied the cancel button to the IButtonControl cancel button
34283 - Save/Open now properly builds the pathname
34284 - Now handles user-entered text
34285 - Preventing crash on right-click if no item is selected
34286 - Fixed Text property, now uses contents of textbox
34287 - Fixed SelectedText property, now just returns the text part that
34288 is selected in the text box
34290 2005-03-18 Jackson Harper <jackson@ximian.com>
34292 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34293 rect, make sure to de-adjust the interior rect after drawing the
34296 2005-03-18 Peter Bartok <pbartok@novell.com>
34298 * MenuAPI.cs: Remove menu *before* executing selected action to
34299 prevent the menu from 'hanging around'
34301 2005-03-17 Geoff Norton <gnorton@customerdna.com>
34303 * XplatUIOSX.cs: Implemented WorkingArea property
34305 2005-03-17 Peter Bartok <pbartok@novell.com>
34307 * XplatUIX11.cs: Fixed menu coord calculations
34308 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34309 for calculating offsets
34311 2005-03-17 Peter Bartok <pbartok@novell.com>
34313 * Hwnd.cs: Do not consider menu presence for default client
34314 rectangle location/size
34315 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34316 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34317 translation functions
34318 * FileDialog.cs: Fixed (what I presume is a) typo
34320 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
34322 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34323 X access (avoids X-Async errors)
34325 2005-03-16 Jackson Harper <jackson@ximian.com>
34327 * TabControl.cs: Raise the SelectedIndexChanged event.
34329 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
34331 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34332 - Removed vertical ToolBar and replaced it with a custom panel
34333 (desktop and home button already work)
34334 - Added Help button (some controls get resized or relocated then)
34335 - Draw correct text depending on Open or Save.
34336 - Fixed some typos...
34338 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
34341 - Only change Maximum and Minimum when need it (bug fix)
34343 2005-03-15 Peter Bartok <pbartok@novell.com>
34345 * Form.cs: Use Handle for icon, to trigger creation if
34346 the window does not yet exist
34348 - CanSelect: Slight performance improvement
34349 - Focus(): Preventing possible recursion
34350 - Invalidate(): Removed ControlStyle based clear flag setting
34351 - WM_PAINT: fixed logic for calling OnPaintBackground
34352 - WM_ERASEBKGND: Fixed logic, added call to new driver method
34353 EraseWindowBackground if the control doesn't paint background
34355 - Moved EraseWindowBackground() method to internal methods
34356 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34357 is sent via SendMessage on BeginPaint call on Win32
34359 - Added EraseWindowBackground() method
34360 - No longer sends WM_ERASEBKGND on .Expose, but on call to
34361 PaintEventStart, which more closely matches Win32 behaviour
34362 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34363 - Fixed SetFocus() to properly deal with client and whole windows
34364 * Hwnd.cs: Added ErasePending property
34365 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34366 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34368 2005-03-12 Geoff Norton <gnorton@customerdna.com>
34371 - Fix hard loop when timers exist.
34372 - Fix bugs with middle and right click for 3 button mice.
34374 2005-03-11 Peter Bartok <pbartok@novell.com>
34377 - get_WorkingArea: Need to call X directly, GetWindowPos only
34378 returns cached data now
34379 - Added sanity check to GetWindowPos hwnd usage
34381 2005-03-11 Jackson Harper <jackson@ximian.com>
34383 * BindingManagerBase.cs: This method isn't used anymore as
34384 PullData now updates the data in the control.
34386 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
34388 * Form.cs: fixes menu drawing on X11
34389 * MenuAPI.cs: fixes menu drawing on X11
34391 2005-03-11 Peter Bartok <pbartok@novell.com>
34393 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34394 from Jonathan Gilbert; should fix bug #73606
34395 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34396 in Screen coordinates. Thanks, Jordi.
34397 * Form.cs: Added missing attribute
34399 2005-03-11 Peter Bartok <pbartok@novell.com>
34402 - Rudimentary Mdi support
34403 - Removed outdated FormParent code
34404 - Implemented lots of missing properties and methods, still missing
34405 transparency support
34406 - Added missing attributes
34407 - Implemented support for MaximumBounds
34408 - Added firing of various events
34409 * XplatUI.cs: Added SetIcon() method
34410 * XplatUIDriver.cs: Added SetIcon() abstract
34411 * XplatUIOSX.cs: Stubbed out SetIcon() method
34413 - Implemented SetIcon() support
34414 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34415 - Switched to unix line endings
34417 - Made POINT internal so for can access it as part of MINMAX
34418 - Implemented SetIcon() support
34419 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34420 native Mdi support again, might have to go managed)
34421 * Control.cs: Now fires the StyleChanged event
34422 * MdiClient.cs: Added; still mostly empty
34424 2005-03-10 Peter Bartok <pbartok@novell.com>
34426 * SaveFileDialog.cs: Added emtpy file
34428 2005-03-08 Peter Bartok <pbartok@novell.com>
34430 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34431 in turn triggers OnCreateContro) when creating a handle for the
34433 * TextControl.cs: Fixed endless loop in certain cases when
34434 replacing the current selection
34436 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
34439 - Honors NewValue changes in Scroll events allowing apps to change it
34440 - Adds First and Last Scroll events
34441 - Fixes Thumb events
34443 2005-03-07 Peter Bartok <pbartok@novell.com>
34445 * Hwnd.cs: Added DefaultClientRectangle property
34446 * XplatUI.cs: Now using the X11 driver Where() method, which provides
34447 more detailed debug information
34449 - Fixed size-change feedback loop, where we would pull an old size
34450 off the queue and mistakenly change our window's size to an
34452 - Now compressing ConfigureNotify events, to reduce looping and
34454 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34457 2005-03-07 Jackson Harper <jackson@ximian.com>
34459 * Binding.cs: Push data pushes from data -> property. Check if the
34460 property is readonly when attempting to set it.
34462 2005-03-07 Jackson Harper <jackson@ximian.com>
34464 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34465 instead of IsSubclassOf. Pulling data now sets the value on the
34467 * PropertyManager.cs:
34468 * CurrencyManager.cs: Just need to pull data when updating now,
34469 because PullData will set the value on the control.
34471 2005-03-04 Jackson Harper <jackson@ximian.com>
34473 * Binding.cs: Implement data type parsing and converting on pulled
34474 data. TODO: Are there more ways the data can be converted?
34476 2005-03-04 Jackson Harper <jackson@ximian.com>
34478 * Binding.cs: Support <Property>IsNull checks. Also bind to the
34479 controls Validating method so we can repull the data when the
34480 control loses focus.
34482 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
34485 - Fixes null string format
34488 - Adds enum type checks
34489 - Fixes redrawing and recalc need after changing some properties
34490 - Fixes on focus_item set after the event
34491 - Fixes adding columns after the control has been created
34493 * ThemeWin32Classic.cs:
34494 - Fixes CheckBox focus rectangle
34495 - Fixes ColumnHeader drawing
34498 2005-03-03 Jackson Harper <jackson@ximian.com>
34500 * Binding.cs: Bind to <Property>Changed events so we can detect
34501 when properties are changed and update the data.
34503 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
34506 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34507 - Fixes ImageList constructor with ImageList container
34508 - Fixes image scaling (wrong parameters at DrawImage)
34510 2005-02-02 Jackson Harper <jackson@ximian.com>
34512 * Binding.cs: Make property searches case-insensitive. Eliminate
34513 some duplicated code.
34515 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
34518 - Handle focus event
34519 - Fix scrollbar events
34520 - Discard highlighted item if remove it
34521 - Fixes SelectedItem with strings
34523 2005-03-01 Peter Bartok <pbartok@novell.com>
34526 - Fixed Visible property, now follows (once again) parent chain
34527 to return false if any control in the chain is visible=false
34528 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34529 - Fixed several places where is_visible instead of Visible was used
34530 - Implemented FIXME related to focus selection when setting focused
34531 control to be invisible
34533 * XplatUIWin32.cs: Now using proper method to find out if window is
34534 visible. Thanks to Jordi for pointing it out
34536 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
34538 * ComboBox.cs: show/hide scrollbar instead of creating it
34540 2005-02-27 Jackson Harper <jackson@ximian.com>
34542 * CurrencyManager.cs: Add PositionChanged stuff.
34544 2005-02-27 Peter Bartok <pbartok@novell.com>
34546 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34547 * XplatUIOSX.cs: Added GetMenuOrigin() stub
34548 * XplatUIWin32.cs: Implemented GetMenuOrigin()
34550 - Implemented GetMenuDC()
34551 - Implemented GetMenuOrigin()
34552 - Implemented ReleaseMenuDC()
34553 - Implemented generation of WM_NCPAINT message
34554 - Implemented generation and handling of WM_NCCALCSIZE message
34555 * Form.cs: Added debug helper message for Jordi's menu work
34557 - Modified ClientRect property; added setter, fixed getter to handle
34558 setting of ClientRect
34559 - Added MenuOrigin property
34561 2005-02-26 Peter Bartok <pbartok@novell.com>
34564 - Destroys the caret if a window that's being destroyed contains it
34565 - Ignores expose events coming from the X11 queue for windows that
34566 already are destroyed
34567 - Now uses the proper variable for handling DestroyNotify, before we
34568 marked the wrong window as destroyed
34569 - Improved/added some debug output
34571 2005-02-26 Peter Bartok <pbartok@novell.com>
34573 * X11Keyboard.cs: Fixes to work on 64bit systems
34575 2005-02-26 Peter Bartok <pbartok@novell.com>
34578 - Now calling OnHandleDestroyed from DestroyHandle()
34579 instead of Dispose()
34580 - Removed bogus call to controls.Remove() from DestroyHandle()
34582 2005-02-26 Peter Bartok <pbartok@novell.com>
34584 * Control.cs: Properly destroy child windows when our handle is
34587 2005-02-25 Peter Bartok <pbartok@novell.com>
34590 - Added 'DriverDebug' define to allow tracing XplatUI API calls
34591 - Alphabetized Static Methods and Subclasses
34594 - Added XException class to allow custom handling of X11 exceptions
34595 - Created custom X11 error handler, tied into XException class
34596 - Added support for MONO_XEXCEPTIONS env var to allow the user
34597 to either throw an exception on X errors or continue running
34598 after displaying the error
34599 - Added handling of DestroyNotify message
34600 - Added handler for CreateNotify message (still disabled)
34601 - Improved (tried to at least) Where method to provide file and lineno
34603 - Added XErrorHandler delegate
34604 - Added XRequest enumeration (to suppor translation of errors)
34606 2005-02-25 Jackson Harper <jackson@ximian.com>
34608 * PropertyManager.cs: Implement editing features
34609 * CurrencyManager.cs:
34610 * Binding.cs: First attempt at UpdateIsBinding
34611 * BindingManagerBase.cs: Call UpdateIsBinding before
34612 pushing/pulling data.
34614 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
34616 * MenuAPI.cs: Respect disabled items
34617 * ThemeWin32Classic.cs
34618 - Caches ImageAttributes creation for DrawImageDisabled
34619 - Fixes vertical menu line drawing
34620 - Draws disabled arrows in disable menu items
34622 2005-02-24 Peter Bartok <pbartok@novell.com>
34625 - Added UserData property to allow associating arbitrary objects
34627 - Fixed leak; now removing Hwnd references from static windows array
34629 - Fixed Graphics leak in PaintEventEnd
34630 - Removed usage of HandleData, switched over to Hwnd class
34631 * HandleData.cs: Removed, obsoleted by Hwnd.cs
34633 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
34635 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34636 * ScrollBar.cs: Fixes bug
34637 * TrackBar.cs: removes death code, clipping, mimize refreshes,
34638 keyboard navigation enhancements
34640 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
34642 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34643 * GroupBox.cs: Add control styles
34644 * Label.cs: Add control styles
34645 * UpDownBase.cs: Add control styles
34646 * ListBox.cs: Add control styles
34647 * XplatUIWin32.cs: Fixes wrong parameter order
34650 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
34652 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34654 2005-02-23 Jackson Harper <jackson@ximian.com>
34656 * PropertyManager.cs: Implement property binding. This doesn't
34657 seem to work yet though as (I think) there are some bugs in
34658 System.ComponentModel.PropertyDescriptor.
34659 * BindingContext.cs: Use new PropertyManager constructor.
34661 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
34663 * ProgressBar.cs: use clip region in ProgressBar
34664 * ThemeWin32Classic.cs: use clip region in ProgressBar
34666 2004-02-22 Jackson Harper <jackson@ximian.com>
34668 * BindingsCollection.cs: Remove some debug code.
34670 2005-02-22 Jackson Harper <jackson@ximian.com>
34672 * BindingContext.cs:
34673 * ControlBindingsCollection.cs:
34674 * CurrencyManager.cs:
34676 * BindingManagerBase.cs: Initial implementation
34677 * BindingsCollection.cs: Add an internal contains method that the
34678 BindingManagerBase uses to ensure bindings aren't added twice to
34680 * PropertyManager.cs: Stubbed out.
34682 * ContainerControl.cs: Hook up databinding
34684 2005-02-22 Geoff Norton <gnorton@customerdna.com>
34687 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34688 Fixed Invalidate/Update chain.
34689 Fixed tons of other minor bugs (this is almost a complete rewrite).
34691 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
34693 * ComboBox.cs: do subcontrol creation when the control is created
34695 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34697 * Label.cs: fixes image drawing (image and imagelist)
34698 * ThemeWin32Classic.cs: cache brushes
34700 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34702 * Form.cs: Move menu drawing code to Theme class
34703 * ComboBox.cs: Move ComboBox drawing code to Theme class
34704 * MenuItem.cs: Move menu drawing code to Theme class
34705 * MenuAPI.cs: Move menu drawing code to Theme class
34706 * ThemeWin32Classic.cs: New methods
34707 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34708 * ListBox.cs: Move Listbox drawing code to Theme class
34709 * Theme.cs: New methods
34711 2005-02-20 Peter Bartok <pbartok@novell.com>
34714 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34715 only process mnemonics on those)
34716 - Fixed event sequence for key handling; first calling
34717 ProcessKeyEventArgs now
34719 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34720 for processing non-character keys
34721 - Fixed WM_CHAR to generate proper event sequence before processing
34722 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34725 2005-02-19 Peter Bartok <pbartok@novell.com>
34727 * UserControl.cs: Added TextChanged event; added attributes
34728 * SizeGrip.cs: Implemented resizing and optional display of grip
34729 * Form.cs: Fixed attribute
34730 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34731 Changed meaning of ScrollWindow bool argument; instead of the
34732 clear attribute (which will be true usually anyway), it gives the
34733 option of moving child controls as well.
34735 - Changed to match new ScrollWindow argument
34736 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34737 now handles the implicit parent window a WM puts around us
34738 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34740 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34741 * TreeView.cs: Adjusted to new ScrollWindow arguments
34743 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34745 * Form.cs: Menu integration with non-client area
34746 * MenuItem.cs: Menu integration with non-client area
34747 * MenuAPI.cs: Menu integration with non-client area
34749 2005-02-18 Peter Bartok <pbartok@novell.com>
34751 * MethodInvoker.cs: Added
34752 * MdiLayout.cs: Added
34753 * SendKeys.cs: Started implementation
34754 * ErrorIconAlignment.cs: Added
34756 2005-02-18 Peter Bartok <pbartok@novell.com>
34758 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34759 * Form.cs: Added handling for Menu-related Non-client messages
34761 2005-02-17 Peter Bartok <pbartok@novell.com>
34763 * UpDownBase.cs: Fixed typo, compilation errors
34764 * DomainUpDown.cs: Fixed attribute value
34766 2005-02-16 Miguel de Icaza <miguel@novell.com>
34768 * UpDownBase.cs: Attach entry events.
34770 Add ForeColor property, Focused, InterceptArrowKeys (interception
34771 does not work yet).
34773 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
34776 - Redraw non client are on Setmenu
34777 - Calc proper menu starting point
34779 2005-02-17 Peter Bartok <pbartok@novell.com>
34781 * Application.cs: Fixed message_filter check
34783 2005-02-17 Peter Bartok <pbartok@novell.com>
34785 * Application.cs: Now calls registered message filters
34786 * DockStyle.cs: Fixed attribute
34787 * Form.cs: Fixed attribute
34788 * Menu.cs: Fixed attribute
34789 * ToolTip.cs: Fixed attribute
34790 * TreeNode.cs: Added missing attributes and arranged in regions
34791 * PropertyGrid.cs: Fixed signatures
34792 * TreeNodeCollection.cs: Added attributes
34793 * Splitter.cs: Added missing attributes; arranged into regions
34794 * TabPage.cs: Added missing attributes; arranged into regions
34795 * TextBoxBase.cs: Added missing attributes
34796 * TextBox.cs: Added missing attributes
34797 * ArrangeDirection.cs: Added missing attributes
34798 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34799 * ToolBarButton.cs: Fixed attributes
34800 * AnchorStyles.cs: Fixed attribute
34801 * TrackBar.cs: Fixed attributes
34802 * TabControl.cs: Added missing attributes and arranged into regions
34803 * ToolBar.cs: Fixed attribute
34804 * StatusBar.cs: Fixed signature, organized into regions and added
34806 * StatusBarPanel.cs: Fixed attributes
34807 * ContentsResizedEventArgs.cs: Implemented
34808 * ContentsResizedEventHandler.cs: Implemented
34809 * DateBoldEventArgs.cs: Implemented
34810 * DateBoldEventHandler.cs: Implemented
34811 * UpDownEventArgs.cs: Implemented
34812 * UpDownEventHandler.cs: Implemented
34814 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
34816 * Form.cs: first Menu NC refactoring
34817 * MenuAPI.cs: first Menu NC refactoring
34819 2005-02-16 Peter Bartok <pbartok@novell.com>
34821 * ImeMode.cs: Added missing attributes
34822 * Menu.cs: Fixed attribute
34823 * GroupBox.cs: Fixed attribute
34824 * Label.cs: Fixed attribute
34825 * ColorDialog.cs (RunDialog): Removed TODO attribute
34826 * ComboBox.cs: Fixed attributes
34827 * ListControl.cs: Added missing attributes
34828 * PropertyGrid.cs: Fixed attributes
34829 * Control.cs: Fixed attributes
34830 * ListViewItem.cs: Added TypeConverter attribute
34831 * NotifyIcon.cs: Fixed attributes
34832 * ListView.cs: Fixed attributes
34833 * ButtonBase.cs: Fixed attribute
34834 * ImageList.cs: Added missing attributes
34835 * ContainerControl.cs: Fixed signature
34836 * CheckedListBox.cs: Fixed attribute; added missing attributes
34837 * Panel.cs: Fixed attributes
34838 * PropertyTabChangedEventArgs.cs: Added missing attribute
34839 * PropertyValueChangedEventArgs.cs: Added missing attribute
34840 * Binding.cs: Fixed attribute
34841 * ListViewItemConverter: Implemented ListViewSubItemConverter class
34842 * ListBox.cs: Fixed attribute; added missing attributes;
34843 * ScrollableControl.cs: Added missing attributes
34844 * PictureBox.cs: Added missing attributes; implemented missing property
34845 * DateTimePicker.cs: Added missing attributes
34846 * Theme.cs (ToolWindowCaptionHeight): Fixed type
34847 * MonthCalendar.cs: Fixed attributes
34848 * StatusBarPanel.cs: Added missing attributes
34849 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34851 2005-02-16 Peter Bartok <pbartok@novell.com>
34853 * TextBoxBase.cs: The previous method to enforce height yet remember
34854 the requested high was less than ideal, this is an attempt to do
34856 * Control.cs: Added comment about possible problem
34857 * Copyright: Updated format
34858 * GridItemType.cs: Fixed swapped values
34860 2005-02-15 Jackson Harper <jackson@ximian.com>
34862 * BaseCollection.cs: Use property so we never access an
34863 uninitialized list. Also initialize the list in the property.
34865 2005-02-15 Peter Bartok <pbartok@novell.com>
34867 * GroupBox.cs (ProcessMnemonic): Implemented
34868 * Label.cs (ProcessMnemonic): Implemented
34869 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34872 2005-02-15 Peter Bartok <pbartok@novell.com>
34874 * RadioButton.cs (ProcessMnemonic): Implemented
34875 * CheckBox.cs (ProcessMnemonic): Implemented
34877 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34879 - Added internal method to allow calling ProcessMnemonic from other
34881 * ContainerControl.cs:
34882 - Started support for handling validation chain handling
34883 - Implemented ProcessMnemonic support
34884 - Added Select() call to Active, to make sure the active control
34886 * Form.cs: Setting toplevel flag for Forms (this was lost in the
34887 FormParent rewrite)
34888 * ThemeWin32Classic.cs:
34889 - DrawCheckBox(): Fixed stringformat to show hotkeys
34890 - DrawRadioButton(): Fixed stringformat to show hotkeys
34891 * CommonDialog.cs: Removed WndProc override, not needed
34893 2005-02-14 Peter Bartok <pbartok@novell.com>
34895 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34896 missed those in the rewrite
34898 2005-02-14 Miguel de Icaza <miguel@novell.com>
34900 * NumericUpDown.cs (Increment, ToString): Add.
34901 (DecimalPlaces): implement.
34905 * UpDownBase.cs: Add the designer attributes.
34907 2005-02-13 Peter Bartok <pbartok@novell.com>
34909 * Panel.cs: Removed border_style, now in Control
34910 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34911 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34913 2005-02-13 Peter Bartok <pbartok@novell.com>
34915 * MouseButtons.cs: Added missing attributes
34916 * XplatUIStructs.cs: Added enumeration for title styles
34917 * LeftRightAlignment.cs: Added missing attributes
34918 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34919 it compatible with Graphics.FromHwnd()
34920 * SelectedGridItemChangedEventArgs.cs: Fixed property type
34921 * Keys.cs: Added missing attributes
34922 * SelectionRange.cs: Added missing attributes
34923 * SelectionRangeConverter.cs: Added
34925 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34926 ReleaseMenuDC methods
34927 - Renamed ReleaseWindow to UngrabWindow
34928 - Added proper startup notice to allow version identification
34930 - Added missing attributes
34931 - Removed FormParent concept
34932 * Label.cs: Removed border_style field, now in Control
34933 * RadioButton.cs: Now properly selects RadioButton when focus is
34935 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34937 - Added missing attributes
34938 - Added borderstyle handling
34939 - Removed FormParent concept support
34940 - Fixed calls to XplatUI to match changed APIs
34941 - Fixed bug that would case us to use disposed Graphics objects
34942 - Removed unneeded internal methods
34943 - PerformLayout(): Fixed to handle DockStyle.Fill properly
34944 - SelectNextControl(): Fixed to properly check common parents
34945 * TextBoxBase.cs: Removed border_style field (now in Control)
34947 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34948 fixed calculations for form size
34949 - Added support for localized strings and icons
34950 - Improved form size calculations, added border
34951 * ListView.cs: Removed border_style field (now in Control)
34952 * X11Structs.cs: Moved several structs from X11 driver here
34953 * X11Keyboard.cs: Changed debug message
34954 * Application.cs: Removed FormParent concept support
34956 - Resetting end_modal flag
34957 - Removed FormParent concept support
34958 * NativeWindow.cs: Removed FormParent concept support
34959 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34960 Client area and Non-Client whole window to allow support for WM_NC
34962 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34963 prevent using it until it supports Hwnd as per Geoff Norton's request
34964 * ToolBar.cs: Fixed drawing, was not doing proper drawing
34965 * PictureBox.cs: Removed border_style field, now in Control
34966 * XplatUIWin32.cs: Added new driver methods
34968 2005-02-12 Peter Bartok <pbartok@novell.com>
34970 * OpacityConverter.cs: Implemented
34971 * Hwnd.cs: Internal class to support drivers that need to emulate
34972 client area/non-client area window behaviour
34974 2005-02-11 Peter Bartok <pbartok@novell.com>
34976 * KeysConverter.cs: Implemented
34978 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
34980 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34981 * LinkLabel: Added missing attributes
34982 * MainMenu.cs: fixes ToString
34983 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34984 * ListBox.cs: fixes event position
34985 * TrackBar.cs: adds missing attributes and events
34987 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
34989 * MenuItem.cs: Use SystemInformation and bug fixes
34990 * MenuAPI.cs: Use SystemInformation and bug fixes
34992 2005-02-09 Jackson Harper <jackson@ximian.com>
34994 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34995 their keystate otherwise things like VK_MENU get stuck "on".
34997 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
34999 * ListBox.cs: Fixes AddRange bug
35001 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
35004 - Add missing attributes
35005 - Add missing method
35007 * CheckedListBox.cs: Added missing attributes
35008 - Add missing attributes
35009 - Remove extra method
35011 * ComboBox.cs: Added missing attributes
35012 * VScrollBar.cs: Added missing attributes
35013 * ScrollBar.cs: Added missing attributes
35014 * ListBox.cs: Fixes signature, add missing consts
35015 * LinkArea.cs: Added missing attributes
35018 2005-02-08 Peter Bartok <pbartok@novell.com>
35020 * Menu.cs: Added missing attributes
35021 * MainMenu.cs: Added missing attributes
35022 * GroupBox.cs: Added missing attributes
35023 * Label.cs: Added missing attributes
35024 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35026 - Added Instance and Options properties
35027 - Added missing attributes
35028 * Cursor.cs: Made Serializable
35029 * NotifyIcon: Added missing attributes
35030 * MenuItem.cs: Added missing attributes
35031 * TextBoxBase.cs: Implemented AppendText() and Select() methods
35032 * Panel.cs: Added Missing attributes
35033 * MonthCalendar.cs: Fixed CreateParams
35035 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35039 - Fixes issues with links
35040 - Adds the class attributes
35042 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35045 - Fixes button when no items available in dropdown
35046 - Fixes repainting problems
35047 - Adds the class attributes
35049 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35051 * XplatUIOSX.cs: Detect the menu bar and title bar height from
35052 the current theme. Cache these on startup.
35054 2005-02-07 Jackson Harper <jackson@ximian.com>
35056 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35057 the scrollbar buttons when they are depressed.
35059 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35061 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35062 Get the display size from the main displayid. We currently dont
35063 support multiple display configurations.
35065 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35067 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35069 2005-02-07 Miguel de Icaza <miguel@novell.com>
35071 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35073 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
35075 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35077 2005-02-04 Jackson Harper <jackson@ximian.com>
35079 * ThemeWin32Classic.cs: Respect the clipping rect when
35080 drawing. Only fill the intersection of clips and rects so there
35081 isn't a lot of large fills.
35082 * ScrollBar.cs: Pass the correct clipping rect to the theme
35083 engine. Remove some debug code.
35085 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
35087 * DateTimePicker.cs:
35088 - Fixed crash on DateTime.Parse, use Constructor instead
35090 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35094 - Owner draw support (MeasureItem and DrawItem)
35096 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35099 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35100 - Fixes MenuItems.Add range
35102 - MergeMenu and Clone and CloneMenu functions
35104 2005-02-03 Jackson Harper <jackson@ximian.com>
35106 * ScrollBar.cs: Make abstract
35107 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35110 2005-02-03 Jackson Harper <jackson@ximian.com>
35112 * ScrollBar.cs: First part of my scrollbar fixups. This removes
35113 all the unneeded refreshes and uses invalidates with properly
35116 2005-02-03 Peter Bartok <pbartok@novell.com>
35118 * ComponentModel.cs: Added
35119 * IDataGridEditingService.cs: Added
35120 * Timer.cs: Added missing attributes
35121 * ToolTip.cs: Added missing attributes
35123 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
35125 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35127 2005-02-03 Peter Bartok <pbartok@novell.com>
35129 * ListBox.cs: Added missing attributes
35131 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
35134 - Fixes font height after font change
35135 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35137 2005-02-02 Peter Bartok <pbartok@novell.com>
35139 * HandleData.cs: Introduced static methods to allow class
35140 to be more self-contained and track it's own HandleData objects
35141 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35142 HandleData to use new static methods
35144 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
35147 - Fixes default size and PreferredHeight
35149 - ObjectCollection.Insert implementation
35155 - ObjectCollection.Insert implementation
35156 - No selection after clean
35159 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
35161 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35163 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
35166 - Caches ItemHeight calculation for OwnerDrawVariable
35167 - Handles dropdown properly
35168 - Fixes several minor bugs
35170 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
35173 - Fixes 71946 and 71950
35174 - Fixes changing Multicolumn on the fly
35175 - Fixes keyboard navigation on Multicolumn listboxes
35177 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35179 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35180 crash reporter log.
35182 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35184 * XplatUIOSX.cs: Allow applications to actually exit.
35186 2005-01-31 Geoff Norton <gnorton@customerdna.com>
35188 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
35189 their parent at creation time rather than lazily later. Fixes a major
35190 regression we were experiencing.
35192 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
35194 * ThemeWin32Classic.cs: more date time picker painting fixes
35195 * DateTimePicker.cs: more monthcalendar drop down fixes
35196 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35198 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
35201 - When moving the thumb going outside the control should stop the moving
35202 - Adds the firing of missing events
35203 - Fixes no button show if Size is not specified
35204 - End / Home keys for keyboard navigation
35206 2005-01-30 Peter Bartok <pbartok@novell.com>
35208 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35209 sanity check to prevent theoretical loop
35210 * XplatUIWin32.cs (SetVisible): Removed debug output
35211 * XplatUIX11.cs (SystrayChange): Added sanity check
35212 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35213 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35214 behaviour, valid until the X11 client window rewrite is done
35215 * TextBox.cs (ctor): Setting proper default foreground and background
35218 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
35220 * Theme: Added DrawDateTimePicker to interface
35221 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35222 * DateTimePicker.cs: Created (still needs keys and painting code)
35223 * DateTimePickerFormat.cs: added
35224 * MonthCalendar.cs: fixed CreateParams for popup window mode
35226 2005-01-29 Peter Bartok <pbartok@novell.com>
35228 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35229 this should also the calculations for ligher/darker
35230 * Theme.cs: Fixed defaults for ScrollBar widths/heights
35232 2005-01-29 Peter Bartok <pbartok@novell.com>
35234 * ArrangeDirection.cs: Added
35235 * ArrangeStartingPositon.cs: Added
35236 * SystemInformation.cs: Implemented
35237 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35238 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35239 used by SystemInformation class
35240 * X11Strucs.cs: Added XSizeHints structure
35242 - Fixed CreateParams to make sure the menu window is always visible
35243 - TrackPopupMenu: Added check to make sure we don't draw the
35246 2005-01-29 Peter Bartok <pbartok@novell.com>
35248 * HandleData.cs: Added method for altering invalid area
35249 * TextBoxBase.cs: Implemented TextLength
35251 2005-01-28 Peter Bartok <pbartok@novell.com>
35253 * XplatUIX11.cs: Improvement over last patch, not sending
35254 the WM_PAINT directly anymore, instead we scroll any pending
35255 exposed areas and let the system pick out the WM_PAINT later
35257 2005-01-28 Peter Bartok <pbartok@novell.com>
35259 * SWF.csproj: Deleted, no longer used. Instead,
35260 Managed.Windows.Forms/SWF.csproj should be used
35261 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35262 directly, to avoid a potential race condition with the next
35265 2005-01-28 Peter Bartok <pbartok@novell.com>
35267 * XplatUI.cs: Made class internal
35269 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
35271 * CheckedListBox.cs:
35274 - Missing methods and events
35276 2005-01-27 Peter Bartok <pbartok@novell.com>
35278 * Application.cs (Run): Don't use form if we don't have one
35280 2005-01-27 Peter Bartok <pbartok@novell.com>
35282 * TextBoxBase.cs (get_Lines): Fixed index off by one error
35284 2005-01-27 Peter Bartok <pbartok@novell.com>
35286 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35287 * GridItem.cs: Added; Patch by Jonathan S. Chambers
35288 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35289 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35290 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35291 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35292 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35293 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35294 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35295 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35296 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35297 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35299 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
35302 - Draw focus on Simple Combobox
35303 - Fixes drawing issues
35306 2005-01-27 Peter Bartok <pbartok@novell.com>
35309 - Place window in default location, instead of hardcoded 0/0
35310 - Send initial LocationChanged event
35312 - UpdateBounds after creation to find out where the WM placed us
35313 - Make sure that if the ParentForm changes location the Form
35315 * XplatUIX11.cs: XGetGeometry will not return the coords relative
35316 to the root, but to whatever the WM placed around us.
35317 Translate to root coordinates before returning toplevel
35319 * XplatUIWin32.cs: Removed debug output
35320 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35321 flag to GetWindowPos, to allow translation of coordinates on X11
35323 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
35325 * ListBox.cs: connect LostFocus Event
35327 2005-01-27 Peter Bartok <pbartok@novell.com>
35329 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35330 XplatUIX11.cs: Extended the Systray API
35331 * Form.cs: Removed debug output
35332 * Application.cs: Fixed focus assignment, always need to call
35333 XplatUI.Activate() since Form.Activate() has rules that may
35335 * NotifyIcon.cs: Should be complete now
35336 * ToolTip.cs: Worked around possible timer bug
35338 2005-01-27 Jackson Harper <jackson@ximian.com>
35341 - Only invalidate the effected tabs when the
35342 selected index changes. This reduces drawing and gets rid of some
35344 - Only refresh if the tabs need to be shifted, otherwise only
35345 invalidate the slider button.
35346 - On windows the tabs are not filled to right if the slider is
35349 2005-01-27 Jackson Harper <jackson@ximian.com>
35351 * TabControl.cs: Only refresh on mouseup if we are showing the
35352 slider. Also only invalidate the button whose state has changed.
35354 2005-01-26 Peter Bartok <pbartok@novell.com>
35356 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35357 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35358 and SystrayRemove() methods
35359 * XplatUIOSX.cs: Stubbed Systray methods
35361 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35363 - Fixed broken XChangeProperty calls (marshalling messed up things)
35364 * X11Structs.cs: Added enums and structs required for Size hinting
35365 * NotifyIcon.cs: Added & implemented
35367 2005-01-26 Jackson Harper <jackson@ximian.com>
35369 * TabControl.cs: Space vertically layed out tabs properly.
35371 2005-01-26 Peter Bartok <pbartok@novell.com>
35373 * Form.cs (CreateClientParams): Always set the location to 0,0
35374 since we're a child window.
35376 * Control.cs (SetVisibleCore): Always explicitly setting the location
35377 of a toplevel window, apparently X11 doesn't like to move windows
35378 while they're not mapped.
35380 2005-01-26 Jackson Harper <jackson@ximian.com>
35382 * TabControl.cs: Implement FillToRight size mode with vertically
35385 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
35387 * ControlPaint.cs, ThemeWin32Classic.cs
35388 - Fixes DrawFocusRectangle
35390 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
35393 - MenuBar tracking only starts when item is first clicked
35394 - Fixes menu hidding for multiple subitems
35395 - Unselect item in MenuBar when item Executed
35398 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
35401 - IsInputKey for ListBox
35404 - Shift and Control item selection
35405 - Implement SelectionMode.MultiExtended
35406 - Fixes RightToLeft
35408 - IsInputKey implemented
35409 - Do not generate OnTextChangedEdit on internal txt changes
35411 2005-01-23 Peter Bartok <pbartok@novell.com>
35413 * AccessibleObject.cs: Partially implemented Select()
35414 * MonthCalendar.cs: Added missing attributes and events
35415 * Form.cs: Fixed CreateParams behaviour, now controls derived from
35416 form can properly override CreateParams.
35417 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35418 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35419 Control performs Invalidate & Update
35420 * NativeWindow (CreateHandle): Added special handling for Form
35421 and Form.FormParent classes to allow overriding of From.CreateParams
35423 - ControlNativeWindow: Renamed 'control' variable to more intuitive
35425 - ControlNativeWindow: Added Owner property
35426 - Removed usage of Refresh() on property changes, changed into
35427 Invalidate(), we need to wait until the queue is processed for
35428 updates, direct calls might cause problems if not all vars for
35429 Paint are initialized
35430 - Added call to UpdateStyles() when creating the window, to set any
35431 styles that CreateWindow might have ignored.
35432 - Added support for Form CreateParent overrides to UpdateStyles()
35433 * MessageBox.cs: Removed no longer needed FormParent override stuff,
35434 CreateParams are now properly overridable
35435 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35436 CreateParams are now properly overridable
35438 2005-01-23 Miguel de Icaza <miguel@ximian.com>
35440 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35443 Capture LostFocus and OnTextBoxChanged. The later introduces a
35444 recursive invocation that I have not figured out yet.
35446 Reset the timer when not using (it was accumulating).
35449 (OnTextBoxChanged): Set UserEdit to true here to track whether the
35450 user has made changes that require validation.
35452 Reset changing to avoid loops.
35454 2005-01-22 Miguel de Icaza <miguel@ximian.com>
35456 * NumericUpDown.cs: Display value at startup.
35458 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35461 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35462 filled in. Added some basic parsing of text.
35464 Still missing the OnXXX method overrides, and figuring out the
35465 events that must be emitted.
35467 * UpDownBase.cs: Handle UserEdit on the Text property.
35469 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
35472 - Fixes IntegralHeight
35475 2005-01-21 Jackson Harper <jackson@ximian.com>
35477 * TabControl.cs: Set the SelectedIndex property when SelectedTab
35478 is set so that the page visibility is updated and the tabs are
35481 2005-01-21 Jackson Harper <jackson@ximian.com>
35483 * TabControl.cs: Use cliping rectangle for blitting. Give the
35484 theme the clipping rect so we can do clipping while
35485 drawing. Remove some debug code.
35487 2005-01-21 Jackson Harper <jackson@ximian.com>
35489 * TabPage.cs: Add a new method so tab pages can force the tab
35490 control to recalculate the tab page sizes.
35491 * TabControl.cs: UpdateOwner needs to make the tab control recalc
35494 2005-01-20 Jackson Harper <jackson@ximian.com>
35496 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35498 2005-01-20 Jackson Harper <jackson@ximian.com>
35500 * TreeView.cs: Set the bounds for nodes properly. They were
35501 getting screwed up when checkboxes were not enabled, but images
35504 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
35507 - Owner draw support
35510 2005-01-20 Jackson Harper <jackson@ximian.com>
35512 * XplatUIStructs.cs: More misc keys
35513 * X11Keyboard.cs: Ignore some control keys.
35515 2005-01-20 Jackson Harper <jackson@ximian.com>
35517 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35518 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35520 2005-01-19 Peter Bartok <pbartok@novell.com>
35522 * Control.cs: Un-selecting the control when it is loosing focus
35524 2005-01-19 Jackson Harper <jackson@ximian.com>
35526 * TreeView.cs: Hook up to the text controls leave event so we can
35527 end editing when the users clicks outside the text box.
35529 2005-01-19 Jackson Harper <jackson@ximian.com>
35531 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35532 get set in the conversion array.
35534 2005-01-19 Peter Bartok <pbartok@novell.com>
35536 * Application.cs (ModalRun): Added a call to CreateControl to ensure
35537 focus is properly set
35539 - Added missing attributes
35540 - removed styles, those are already set in the base class
35542 - Added missing attributes
35543 - Added clip window styles
35544 * CheckBox.cs: Added missing attributes
35546 - FormParentWindow.CreateParams: Added required clip styles
35547 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35548 also filters modifier keys
35550 - Added assignment of Accept and Cancel button to enable Enter
35551 and Esc keys in MessageBox dialogs
35552 - FormParentWindow.CreateParams: Added required clip styles
35553 * RadioButton.cs: Added missing attributes
35554 * TextControl.cs: No longer draws selection if control does not
35557 - Now draws simple rectangle around test area to make it obvious
35558 there's a control. This is a hack until we properly support borders
35559 - A few simple fixes to support selections better, now erases selected
35560 text when typing, and resets selection when using movement keys
35562 2005-01-19 Miguel de Icaza <miguel@ximian.com>
35564 * UpDownBase.cs: Added some new properties.
35566 * DomainUpDown.cs: Implement a lot to get my test working.
35568 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35570 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35572 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35574 * OSXStructs (WindowAttributes): Fixed csc complaints
35576 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35579 OSXStructs.cs: Initial refactor to move enums and consts into
35580 OSXStructs and use them in the driver for greater readability.
35582 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35584 * XplatUIOSX.cs: Initial support for Standard Cursors.
35585 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35587 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
35589 * ComboBox.cs: ability to change style when the ctrl is already
35590 created, missing methods and events, bug fixes, signature fixes
35592 2005-01-19 Peter Bartok <pbartok@novell.com>
35594 * Cursors.cs (ctor): Added ctor to fix signature
35596 2005-01-18 Peter Bartok <pbartok@novell.com>
35598 * Button.cs: Implemented DoubleClick event
35600 - Fixed keyboard handling to behave like MS, where the press of
35601 Spacebar is equivalent to a mousedown, and the key release is
35602 equivalent to mouseup. Now a spacebar push will give the same
35603 visual feedback like a mouse click.
35604 - Added missing attributes
35605 - Added ImeModeChanged event
35606 - Added support for generating DoubleClick event for derived classes
35608 - Implemented DoubleClick event
35609 - Added missing attributes
35610 * CommonDialog.cs: Added missing attribute
35611 * ContextMenu.cs: Added missing attributes
35613 - AutoChecked buttons do not allow to be unselected when clicked
35614 (otherwise we might end up with no selected buttons in a group)
35615 - Added missing attributes
35616 - Implemented DoubleClickEvent
35617 * ThreadExceptionDialog.cs: Enabled TextBox code
35619 2005-01-18 Peter Bartok <pbartok@novell.com>
35621 * Form.cs: Removed debug output
35622 * Button.cs: Added support for DoubleClick method
35624 2005-01-18 Peter Bartok <pbartok@novell.com>
35627 - Added method to parent window that allows triggering size
35628 calculations when a menu is added/removed
35629 - set_Menu: Cleaned up mess from early days of Form and Control,
35630 now properly triggers a recalc when a menu is added/removed
35631 - Added case to select form itself as focused form if no child
35633 - Added PerformLayout call when showing dialog, to ensure properly
35636 - Select(): Made internal so Form can access it
35637 - Focus(): Only call Xplat layer if required (avoids loop), and sets
35639 * Application.cs (Run): Removed hack and calls PerformLayout instead
35640 to trigger calculation when Form becomes visible
35642 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
35644 * ComboBox.cs: fixes for ownerdraw
35646 2005-01-18 Peter Bartok <pbartok@novell.com>
35649 - Sentinel is no longer static, each Document gets it's own, this
35650 avoids locking or alternatively overwrite problems when more
35651 than one text control is used simultaneously.
35652 - Switched to use Hilight and HilightText brushes for text selection
35654 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35656 2005-01-18 Peter Bartok <pbartok@novell.com>
35659 - Hooked up the following events:
35667 o SystemColorsChanged
35668 o ParentFontChanged
35670 - Removed debug output
35671 - Added a call to the current theme's ResetDefaults when a color change
35673 * Form.cs: Now setting the proper ImeMode
35674 * Theme.cs: Defined a method to force recreation of cached resources
35675 and rereading of system defaults (ResetDefaults())
35676 * ThemeWin32Classic.cs: Added ResetDefaults() stub
35678 2005-01-17 Peter Bartok <pbartok@novell.com>
35680 * Control.cs: Added missing attributes
35682 2005-01-17 Jackson Harper <jackson@ximian.com>
35684 * TreeNode.cs: Implement editing. Add missing properties selected
35686 * TreeView.cs: Implement node editing. Also some fixes to use
35687 Invalidate (invalid area) instead of Refresh when selecting.
35689 2005-01-17 Peter Bartok <pbartok@novell.com>
35692 - Implemented InvokeGotFocus() method
35693 - Implemented InvokeLostFocus() method
35694 - Implemented InvokePaint() method
35695 - Implemented InvokePaintBackground() method
35696 - Implemented InvokeClick() method
35697 - Implemented FindForm() method
35698 - Implemented RectangleToClient() method
35699 - Implemented ClientToRectangle() method
35700 - Implemented ResetBackColor() method
35701 - Implemented ResetCursor() method
35702 - Implemented ResetFont() method
35703 - Implemented ResteForeColor() method
35704 - Implemented ResetImeMode() method
35705 - Implemented ResetLeftToRight() method
35706 - Implemented ResetText() method
35707 - Implemented Scale() methods
35708 - Implemented ScaleCore() method
35709 - Implemented Update() method
35710 - Removed unused variables
35711 - Stubbed AccessibilityNotifyClients and
35712 ControlAccessibleObject.NotifyClients() methods (dunno what to do
35714 - Now setting proper default for RightToLeft property
35715 - Fixed bug in SetClientSizeCore that would cause windows to get
35717 - Now sending Click/DoubleClick events
35718 - Now selecting controls when left mouse button is clicked on
35720 * AccessibleEvents.cs: Added
35721 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35722 * XplatUIOSX.cs: Stubbed UpdateWindow() method
35723 * XplatUIWin32.cs: Implemented UpdateWindow() method
35724 * XplatUIX11.cs: Implemented UpdateWindow() method
35725 * Form.cs: Removed stray semicolon causing CS0162 warning
35726 * ThemeWin32Classic.cs: Fixed unused variable warnings
35727 * ScrollableControl.cs: Now calls base method for ScaleCore
35728 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35729 style to avoid interference with internal click handler (which is
35730 different than standard Control click handling)
35732 - Now unchecks all sibling radio buttons when control is
35733 selected (Fixes #68756)
35734 - Removed internal tabstop variable, using the one inherited from
35737 2005-01-17 Jackson Harper <jackson@ximian.com>
35739 * NavigateEventArgs.cs: Fix base type.
35740 * LinkLabel.cs: Sig fix
35742 2005-01-17 Jackson Harper <jackson@ximian.com>
35744 * TreeView.cs: Only invalidate the effected nodes bounds when
35747 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35749 * XplatUIWin32.cs: fixes Win32 marshaling
35750 * XplatUIX11.cs: fixes method signature
35752 2005-01-17 Peter Bartok <pbartok@novell.com>
35754 * XplatUIX11.cs: Clean up resources when we no longer need them
35756 2005-01-17 Peter Bartok <pbartok@novell.com>
35758 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35759 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35760 and DestroyCursor() methods.
35761 * Cursor.cs: Partially implemented, now supports standard cursors;
35762 still contains some debug code
35763 * Cursors.cs: Implemented class
35765 - WndProc(): Added handling of WM_SETCURSOR message, setting the
35767 - Implemented Cursor property
35768 - Replaced break; with return; more straightforwar and possibly
35770 - Now properly setting the result for WM_HELP
35771 * X11Structs.cs: Added CursorFontShape enum
35772 * XplatUIStructs.cs:
35773 - Added StdCursor enum (to support DefineStdCursor() method)
35774 - Added HitTest enum (to support sending WM_SETCURSOR message)
35776 - Now sends the WM_SETCURSOR message
35777 - Implemented new cursor methods
35778 * XplatUIOSX.cs: Stubbed new cursor methods
35780 - Implemented new cursor methods
35781 - Added GetSystemMetrics function and associated enumeration
35783 2005-01-15 Peter Bartok <pbartok@novell.com>
35786 - WndProc(): Now handles EnableNotifyMessage
35787 - SelectNextControl(): Fixed bug where if no child or sibling
35788 controls exist we looped endlessly
35790 2005-01-14 Jackson Harper <jackson@ximian.com>
35792 * TreeView.cs: Recalculate the tab pages when a new one is added
35793 so that the proper bounding rects are created.
35795 2005-01-14 Jackson Harper <jackson@ximian.com>
35797 * TreeView.cs: Draw a gray box instead of a grip in the lower
35798 right hand corner when there are both horizontal and vertical
35801 2005-01-14 Jackson Harper <jackson@ximian.com>
35803 * Control.cs: When erasing backgrounds use FromHwnd instead of
35804 FromHdc when there is a NULL wparam. This occurs on the X driver.
35805 * XplatUIX11.cs: Set the wparam to NULL.
35807 2005-01-13 Jackson Harper <jackson@ximian.com>
35809 * PictureBox.cs: Implement missing methods (except ToString, need
35810 to test that on windows) and events. When visibility is changed we
35811 need to redraw the image because the buffers are killed. When size
35812 is changed refresh if the sizemode needs it.
35814 2005-01-13 Peter Bartok <pbartok@novell.com>
35816 * Control.cs (SelectNextControl): Was using wrong method to select
35819 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35821 * ComboBox.cs: fixes dropstyle
35823 2005-01-13 Peter Bartok <pbartok@novell.com>
35826 - Implemented Select() override
35827 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35828 - Now sets keyboard focus on startup
35829 * Control.cs (SelectNextControl): Now properly handles directed=true
35831 - WndProc: Now passes tab key on to base if AcceptTabChar=false
35832 - Added (really bad) focus rectangle (mostly for testing)
35833 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35834 to enforce redraw on focus changes
35835 * ContainerControl.cs:
35836 - Fixed detection of Shift-Tab key presses
35837 - Fixed traversal with arrow keys
35838 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35839 gonna keep this or if it's complete yet
35841 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35843 * ComboBox.cs: missing properties, fixes
35845 2005-01-13 Peter Bartok <pbartok@novell.com>
35847 * Panel.cs (ctor): Setting Selectable window style to off
35848 * Splitter.cs (ctor): Setting Selectable window style to off
35849 * GroupBox.cs (ctor): Setting Selectable window style to off
35850 * Label.cs (ctor): Setting Selectable window style to off
35852 2005-01-12 Miguel de Icaza <miguel@ximian.com>
35854 * UpDownBase.cs (InitTimer): If the timer has been already
35855 created, enable it.
35857 Use a TextBox instead of a Label.
35859 2005-01-12 Jackson Harper <jackson@ximian.com>
35861 * TreeView.cs: Refresh the tree after sorting the nodes. Always
35862 draw the connecting node lines (when ShowLines is true).
35863 * TreeNode.cs: The nodes index can now be updated. This is used
35864 when a node collection is sorted.
35865 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35866 insert or an existing unsorted node collection can be sorted.
35868 2005-01-12 Peter Bartok <pbartok@novell.com>
35870 * ContainerControl.cs: Implemented ProcessDialogKeys()
35872 2005-01-12 Peter Bartok <pbartok@novell.com>
35875 - Implemented SelectNextControl() method
35876 - Several focus related bug fixes
35877 - Fixed Docking calculations to match MS documentation and
35880 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
35882 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35885 2005-01-12 Peter Bartok <pbartok@novell.com>
35888 - Fixed broken Contains() method
35889 - Implemented GetNextControl() method. Finally. This is the pre-
35890 requisite for focus handling.
35892 2005-01-12 Peter Bartok <pbartok@novell.com>
35894 * OSXStrucs.cs: Added
35896 2005-01-12 Peter Bartok <pbartok@novell.com>
35899 - Removed PeekMessageFlags
35900 - Implemented SetWindowStyle() method
35901 * XplatUIStructs.cs: Added PeekMessageFlags
35902 * X11Structs: Added missing border_width field to XWindowChanges struct
35904 - PeekMessage: Now throws exception if flags which are not yet
35905 supported are passed
35906 - Implemented SetWindowStyle() method
35907 - Fixed SetZOrder to handle AfterHwnd properly
35908 * XplatUI.cs: Added SetWindowStyle() method
35909 * XplatUIDriver.cs: Added SetWindowStyle() abstract
35911 - Implemented UpdateStyles() method
35912 - Implemented UpdateZOrder() method
35913 * XplatUIOSX.cs: Added SetWindowStyle() stub
35915 2005-01-12 Geoff Norton <gnorton@customerdna.com>
35917 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35921 2005-01-11 Jackson Harper <jackson@ximian.com>
35923 * TreeView.cs: Still need to draw lines to siblings even if out of
35924 the current node is out of the clip.
35926 2005-01-11 Jackson Harper <jackson@ximian.com>
35928 * TreeView.cs: When setting the hbar/vbar/grip position use
35929 SetBounds so that perform layout is only called once. Also suspend
35930 and resume layout so layout is only done once for all controls.
35931 - Removed some debug fluff
35932 * SizeGrip.cs: Call base implmentation in overriding methods.
35933 - When visibility is changed the drawing buffers are killed so we
35936 2005-01-11 Jackson Harper <jackson@ximian.com>
35938 * TreeView.cs: Calculate the open node count while drawing. This
35939 saves us an entire tree traversal for every paint operation. Use
35940 a member var for the open node count so less vars are passed around.
35942 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
35944 * MonthCalendar.cs:
35945 - fixed selection to use mousemove, not mouse polling on timer
35946 * ThemeWin32Classic.cs
35947 - removed redundant unused variable "no_more_content"
35949 2005-01-11 Peter Bartok <pbartok@novell.com>
35951 * XplatUIX11.cs (DoEvents): Needs to return when no more events
35952 are pending, so it now calls PeekMessage instead of GetMessage;
35953 implemented a incomplete version of PeekMessage
35955 2005-01-11 Peter Bartok <pbartok@novell.com>
35957 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35959 * TextBoxBase.cs: Added sending of TextChanged event
35961 2005-01-10 Jackson Harper <jackson@ximian.com>
35963 * TreeView.cs: Try not to draw outside the clipping rectangle on
35966 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
35968 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35970 2005-01-10 Jackson Harper <jackson@ximian.com>
35973 - Implement fast scrolling. Now only the newly
35974 exposed nodes are drawn and the old image is moved using the
35975 XplatUI::ScrollWindow method.
35976 - Factor in height of nodes when calculating whether or not the
35977 node is in the clipping rect.
35979 2005-01-10 Jackson Harper <jackson@ximian.com>
35981 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35983 2005-01-10 Peter Bartok <pbartok@novell.com>
35985 * Application.cs: Added temporary hack to resolve all our resize
35986 required issues on startup. This will get fixed properly at
35987 some point in the future
35989 2005-01-10 Jackson Harper <jackson@ximian.com>
35991 * SizeGrip.cs: New internal class that is used as a sizing
35992 grip control...hence the name.
35994 2005-01-10 Peter Bartok <pbartok@novell.com>
35996 * Control.cs: Implemented proper TabIndex handling, now assigning
35997 a tabindex when a control is added to a container
35998 * GroupBox.cs (ctor): Now sets the Container style bit, required
35999 for Control.GetNextControl()
36001 2005-01-09 Jackson Harper <jackson@ximian.com>
36003 * TextBoxBase.cs: Clear window when scrolling (fixes build).
36005 2005-01-09 Peter Bartok <pbartok@novell.com>
36007 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36008 XplatUIX11.cs: Added ability to control ScrollWindow expose and
36009 an overload for ScrollWindow to allow only scrolling a rectangle
36011 2005-01-09 Peter Bartok <pbartok@novell.com>
36014 - Implemented SetDesktopBounds method
36015 - Implemented SetDesktopLocation method
36017 2005-01-08 Jackson Harper <jackson@ximian.com>
36019 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36020 the node count has changed, this removes to VScroll::Refresh calls
36023 2005-01-08 Geoff Norton <gnorton@customerdna.com>
36025 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36027 2005-01-07 Jackson Harper <jackson@ximian.com>
36029 * TreeNode.cs: Just update the single node when it is
36030 checked. Don't refresh after toggling, the Expand/Collapse already
36032 * TreeView.cs: Respect clipping a little more when drawing. Try
36033 not to redraw things that don't need to be redrawn. Just hide the
36034 scrollbars when they are no longer needed instead of removing
36035 them, so they don't have to be created again and again.
36037 2005-01-07 Geoff Norton <gnorton@customerdna.com>
36039 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
36040 coordinates to window space to place the caret properly, FIXED.
36041 Implement GetWindowState & SetWindowState
36043 2005-01-06 Peter Bartok <pbartok@novell.com>
36046 - Implemented ClientSize property
36047 - Implemented DesktopBounds property
36048 - Implemented DesktopLocation property
36049 - Implemented IsRestrictedWindow property
36050 - Implemented Size property
36051 - Implemented TopLevel property
36052 - Implemented FormWindowState property
36054 - Implemented GetTopLevel() method
36055 - Implemented SetTopLevel() method
36056 * X11Structs.cs (Atom):
36057 - Added AnyPropertyType definition
36058 - Added MapState definiton and updated XWindowAttribute struct
36059 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36060 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36061 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36063 - Implemented GetWindowState() and SetWindowState() methods
36064 - Fixed Win32GetWindowLong return type
36066 - Introduced central function for sending NET_WM messages
36067 - Implemented GetWindowState() and SetWindowState() methods
36068 * TextBoxBase.cs (set_Lines):
36069 - Now uses Foreground color for text added via Text property (Duh!)
36070 - Added code to remember programmatically requested size (fixes
36071 behaviour when Multiline is set after Size)
36072 - Added AutoSize logic
36074 2005-01-06 Jackson Harper <jackson@ximian.com>
36076 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36078 2005-01-06 Jackson Harper <jackson@ximian.com>
36080 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36081 set to less then 0.
36083 2005-01-06 Jackson Harper <jackson@ximian.com>
36085 * ScrollableControl.cs: Lazy init the scrollbars.
36087 2005-01-06 Jackson Harper <jackson@ximian.com>
36089 * Theme.cs: Speed up getting pens and solid brushes, by using
36090 their ARGB as a hash instead of tostring and not calling Contains.
36092 2005-01-06 Peter Bartok <pbartok@novell.com>
36095 - Implemented OnActivated and OnDeactivate event trigger
36096 - Implemented Activate() method
36097 - Fixed ShowDialog() to activate the form that was active before
36098 the dialog was shown
36100 - Added global active_window var that tracks the currently active
36102 - Now always grabs Property changes from the root window to always
36103 catch changes on the active window property
36104 - Added code to PropertyNotify handler to send Active/Inactive
36105 messages when state changes. This puts X11 and Win32 en par on
36106 WM_ACTIVATE notifications (except for double notifications when
36107 the user clicks away from our modal window to another one of our
36110 2005-01-05 Jackson Harper <jackson@ximian.com>
36112 * ImageList.cs: Implment ctor
36114 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36116 * XplatUIOSX.cs: Implement Activate/SetTopmost
36118 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36120 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36122 2005-01-05 Geoff Norton <gnorton@customerdna.com>
36124 * XplatUIOSX.cs: Implement GetActive/SetFocus.
36126 2005-01-05 Peter Bartok <pbartok@novell.com>
36128 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36129 XplatUIOSX.cs: Added GetActive method to return the currently
36130 active window for the application (or null, if none is active)
36132 - Implemented ActiveForm
36133 - Commented out owner assignment for modal dialogs (causes problems
36134 on Win32, since the owner will be disabled)
36135 - Reworked some Active/Focus handling (still incomplete)
36136 * CommonDialog.cs: Commented out owner assignment for modal dialogs
36137 (causes problems on Win32, since the owner will be disabled)
36138 * IWin32Window: Added ComVisible attribute
36140 2005-01-05 Peter Bartok <pbartok@novell.com>
36142 * ToolTip.cs (WndProc): Enable setting focus now that we have the
36143 required XplatUI functions.
36145 2005-01-05 Peter Bartok <pbartok@novell.com>
36147 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36148 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36149 to implement focus and activation handling; still incomplete and
36152 2005-01-04 Peter Bartok <pbartok@novell.com>
36154 * TextBoxBase.cs: Changed access level for Document property to
36155 match switch to internal for TextControl
36157 2005-01-04 Peter Bartok <pbartok@novell.com>
36159 * AccessibleObject: Added ComVisible attribute
36161 2005-01-04 Jackson Harper <jackson@ximian.com>
36163 * X11Keyboard.cs: Remove unneeded var.
36165 2005-01-04 Jackson Harper <jackson@ximian.com>
36167 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36169 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36170 ClientMessage. This makes apps exit cleanly (more often).
36172 2005-01-04 Jackson Harper <jackson@ximian.com>
36174 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36175 handling focus, return correct colors and fonts,
36176 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36177 handle selection, horizontal scrolling, and mouse interaction.
36179 2005-01-04 Peter Bartok <pbartok@novell.com>
36181 * ICommandExecutor.cs: Added
36182 * IDataGridColumnStyleEditingNotificationService.cs: Added
36183 * IFeatureSupport.cs: Added
36184 * IFileReaderService.cs: Added
36185 * IDataObject.cs: Added ComVisible attribute
36186 * AmbientProperties.cs: Added
36187 * BaseCollection.cs: Added missing attributes
36188 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36189 * BaseCollection.cs: Added missing attributes
36190 * Binding.cs: Added TypeConverter attribute
36191 * BindingContext.cs: Added DefaultEvent attribute
36192 * BindingsCollection.cs: Added DefaultEvent attribute
36193 * Button.cs: Added DefaultValue attribute
36194 * DragEventArgs.cs: Added ComVisible attribute
36195 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36196 * KeyEventArgs.cs: Added ComVisible attribute
36197 * KeyPressEventArgs.cs: Added ComVisible attribute
36198 * MouseEventArgs.cs: Added ComVisible attribute
36199 * NavigateEventArgs.cs: Added
36200 * NavigateEventHandler.cs: Added
36201 * FeatureSupport.cs: Added
36202 * OSFeature.cs: Added
36203 * Theme.cs: Added abstract Version property to support OSFeature
36204 * ThemeWin32Classic.cs: Added Version property to
36205 support OSFeature.Themes
36206 * ProgressBar.cs: Removed OnPaintBackground override, not required since
36207 the proper styles to avoid background drawing are set, also doesn't
36209 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36210 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36211 * ScrollEventArgs.cs: Added ComVisible attribute
36212 * SplitterEventArgs.cs: Added ComVisible attribute
36213 * AccessibleSelection.cs: Added Flags attribute
36214 * Appearance.cs: Added ComVisible attribute
36215 * Border3DSide.cs: Added ComVisible attribute
36216 * Border3DStyle.cs: Added ComVisible attribute
36217 * BorderStyle.cs: Added ComVisible attribute
36218 * DragAction.cs: Added ComVisible attribute
36219 * ErrorBlinkStyle.cs: Added
36220 * ScrollEventType.cs: Added ComVisible attribute
36221 * AnchorStyles.cs: Added Editor attribute
36222 * DockStyle.cs: Added Editor attribute
36223 * HorizontalAlignment.cs: Added ComVisible attribute
36224 * HelpEventArgs.cs: Added ComVisible attribute
36225 * PaintEventArgs.cs: Added IDisposable
36227 2005-01-04 Peter Bartok <pbartok@novell.com>
36229 * TextControl.cs: Switched Line, LineTag and Document classes to
36232 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
36234 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36235 Simple mode, fixes, IntegralHeight, etc.
36237 2005-01-04 Peter Bartok <pbartok@novell.com>
36239 * TextBoxBase.cs: Using proper font variable now
36241 2005-01-04 Peter Bartok <pbartok@novell.com>
36243 * Form.cs (ShowDialog): Set parent to owner, if provided
36244 * GroupBox.cs: Removed unused vars
36246 - Added GetHashCode() for Document and LineTag classes
36247 - Removed unused variables
36248 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36249 to allow translation between continuous char position and line/pos
36250 * CheckBox.cs: Removed vars that are provided by base class
36251 * RadioButton.cs: Removed vars that are provided by base class, added
36252 new keyword where required
36253 * LinkLabel.cs: Added new keyword where required
36254 * Control.cs (WndProc): Removed unused variable
36256 - Finished SelectionLength property
36257 - Implemented SelectionStart property
36258 - Implemented Text property
36259 - Removed unused vars
36260 * MessageBox.cs: Added new keyword where required
36261 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36263 * MenuAPI.cs: Added new keyword where required
36264 * ButtonBase.cs: Removed vars that are provided by base class, added
36265 new keyword where required
36266 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36267 argument to double, to allow compiling with csc 2.0 (Atsushi ran
36269 * Application.cs (Run): Now triggers the ThreadExit event
36270 * CommonDialog.cs: Added new keyword where required; now properly sets
36271 parent (owner) for dialog
36272 * XplatUIX11.cs: Commented out unused vars
36273 * StatusBar.cs: Fixed signature for Text property
36274 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36276 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
36278 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36279 TrackBar.cs, MonthCalendar.cs: remove unused vars
36281 2005-01-03 Jackson Harper <jackson@ximian.com>
36283 * ThemeWin32Classic.cs:
36284 * X11Keyboard.cs: Remove unused vars.
36286 2005-01-03 Peter Bartok <pbartok@novell.com>
36289 - set_Text: Tied into TextControl
36290 - set_TextAlignment: Tied into TextControl
36292 - Added alignment properties and implemented alignment handling
36293 and drawing (still has a bug, not generating proper expose events)
36294 - Added new Line() constructor to allow passing the line alignment
36295 - Fixed selection setting, properly handling end<start now
36296 - Added aligment considerations to RecalculateDocument()
36298 - Now properly enforces control height for single line controls
36299 - Added support for CharacterCasing
36300 - Added IsInputKey override
36301 - Fixed Keys.Enter logic
36302 - Added SetBoundsCore override
36303 - Fixed mouse selection handling
36305 2005-01-03 Jackson Harper <jackson@ximian.com>
36308 - Collapse and uncheck all nodes when CheckBoxes is disabled.
36309 - Checkboxes are always aligned to the bottom of the node,
36310 regardless of item height.
36311 - Use the node bounds to draw the text so we can center it when
36312 the item height is greater then the font height.
36313 - Node::Bounds are only the text part of the node.
36314 * TreeNode.cs: New method to combine collapsing and unchecking all
36317 2005-01-02 Jackson Harper <jackson@ximian.com>
36319 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36320 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36321 tree when a check is changed. TODO: Only refresh the checked node.
36323 2004-12-30 Jackson Harper <jackson@ximian.com>
36325 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36326 * TreeNode.cs: When collapsing make sure to never collapse the
36329 2004-12-29 Jackson Harper <jackson@ximian.com>
36331 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36333 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
36335 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36337 2004-12-28 Peter Bartok <pbartok@novell.com>
36339 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36342 2004-12-28 Peter Bartok <pbartok@novell.com>
36344 * Control.cs (WndProc): Added WM_HELP handler, now generates
36345 HelpRequested event
36346 * Form.cs: Added HelpButton property and required support code
36347 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36349 2004-12-28 Peter Bartok <pbartok@novell.com>
36352 - Made DialogForm.owner variable internal
36353 - Added check to ensure owner form is set before setting
36354 owner properties in CreateParams
36356 2004-12-28 Geoff Norton <gnorton@customerdna.com>
36358 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
36359 swizzling. Implement ClientToScreen and ScreenToClient. Implement
36360 GetCursorPos. Fix major visibility issues. Rework the windowing
36361 system to support borderless/titleless windows (implements menus).
36362 Fix GetWindowPos. Implement initial background color support for
36365 2004-12-28 Peter Bartok <pbartok@novell.com>
36367 * Form.cs (get_CreateParams): Make sure we have an owner before using
36368 the owner variable. Implement proper default if no owner exists
36370 2004-12-28 Peter Bartok <pbartok@novell.com>
36372 * In preparation for making Managed.Windows.Forms the default build target
36373 for System.Windows.Forms, the following stubbed files were added.
36374 Dialogs are currently being implemented by contributors and are only
36375 short-term place holders.
36376 * ColorDialog.cs: Initial check-in (minmal stub)
36377 * DataGrid.cs: Initial check-in (minimal stub)
36378 * DataGridLineStyle.cs: Initial check-in (minimal stub)
36379 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36380 * DataGridTableStyle.cs: Initial check-in (minimal stub)
36381 * FontDialog.cs: Initial check-in (minimal stub)
36382 * FileDialog.cs: Initial check-in (minimal stub)
36383 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36384 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36385 * OpenFileDialog: Initial check-in (minimal stub)
36386 * IComponentEditorPageSite.cs: Initial check-in
36387 * Splitter.cs: Initial check-in (for Jackson)
36388 * SplitterEventArgs.cs: Initial check-in (for Jackson)
36389 * SplitterEventHandler.cs: Initial check-in (for Jackson)
36390 * TextBox.cs: Initial check-in; still needs some wiring to
36391 TextControl backend
36392 * Form.cs: Implemented ControlBox property
36393 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36394 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36395 * TextControl.cs: Added selection functionality; added todo header
36397 - Implemented Lines property
36398 - Implemented TextHeight property
36399 - Implemented SelectedText property
36400 - Implemented SelectionLength property
36401 - Implemented SelectAll method
36402 - Implemented ToString method
36403 - Removed and cleaned up some debug code
36404 - Implemented (still buggy) mouse text selection
36406 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
36408 * ComboBox.cs: Complete DropDownList implementation, fixes.
36410 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
36412 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36413 * ComboBoxStyle.cs: ComboBoxStyle enum
36414 * ComboBox.cs: Initial work on ComboBox control
36416 2004-12-21 Peter Bartok <pbartok@novell.com>
36418 * Control.cs (ctor, CreateParams): Moved setting of is_visible
36419 forward so that anything that creates a window gets the default,
36420 also no longer uses Visible property in CreateParams to avoid
36421 walking up the parent chain and possibly get the wrong visible
36422 status. Fixed IsVisible to no longer walk up to the parent.
36424 2004-12-21 Peter Bartok <pbartok@novell.com>
36426 * Form.cs (ShowDialog): Unset modality for the proper window
36428 2004-12-20 Peter Bartok <pbartok@novell.com>
36430 * CommonDialog.cs: Initial check-in
36432 2004-12-20 Peter Bartok <pbartok@novell.com>
36434 * Control.cs (Visible): Now uses the parent window instead of the
36435 client area window for the property
36438 - ShowDialog(): Now uses the proper window for modality
36439 - The default visibility state for the form parent is now false. This
36440 will prevent the user from seeing all the changes to the form and
36441 its controls before the application hits Application.Run()
36442 - Removed some stale commented out code
36445 - Added FindWindow() method to have a method to check for existence
36447 - Added ability to override default exception handling (for example
36448 when debugging with VS.Net; to do this the ExternalExceptionHandler
36450 - Removed some useless debug output
36453 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36454 not working as expected
36455 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36456 property to allow switching back to the modal window if focus is
36457 given to another one of our windows (Application Modal)
36458 - Now only sets override_redirect if we create a window
36460 - Moved EventMask selection before mapping of newly created window
36461 so we can catch the map event as well
36462 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36463 - Added various Atom related DllImports
36464 - Implemented Exit() method
36465 - .ctor() : No longer shows window if WS_VISIBLE is not defined
36466 in the CreateParams
36468 * MessageBox.cs: Now properly deals with the FormParent window by
36469 providing an override the FormParent CreateParams property to
36470 set as POPUP instead of OVERLAPPED window.
36472 2004-12-19 Geoff Norton <gnorton@customerdna.com>
36474 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
36475 Minor code cleanup.
36477 2004-12-19 Geoff Norton <gnorton@customerdna.com>
36479 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36481 2004-12-18 Peter Bartok <pbartok@novell.com>
36483 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36484 implementing SetModal() method
36486 2004-12-18 Peter Bartok <pbartok@novell.com>
36488 * X11Structs.cs (XGCValues): Fixed type of function element
36489 * XplatUI.cs: Added ScrollWindow() method
36490 * XplatUIDriver.cs: Added ScrollWindow() abstract
36491 * XplatUIWin32.cs: Implemented ScrollWindow() method
36492 * XplatUIX11.cs: Implemented ScrollWindow() method
36493 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36495 2004-12-17 Geoff Norton <gnorton@customerdna.com>
36497 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
36498 Some more keyboard support (INCOMPLETE)
36500 2004-12-17 Peter Bartok <pbartok@novell.com>
36503 - Added color attribute to line tags.
36504 - Added color argument to all functions dealing with tags
36505 - Added color argument support to various functions
36506 - Fixed miss-calculation of baseline/shift in certain circumstances
36508 * TextBoxBase.cs: Added new color option to test code
36510 2004-12-17 Jackson Harper <jackson@ximian.com>
36513 * MonthCalendar.cs: Signature fixes
36515 2004-12-17 Geoff Norton <gnorton@customerdna.com>
36517 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36518 keyboard event moved it. Create a new graphics context for each paint resolves this
36520 2004-12-17 Geoff Norton <gnorton@customerdna.com>
36522 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36523 Make caret exist and go blink blink. Initial keyboard support.
36524 Fix exception handler, Add Invalidate support. Change way RefreshWindow
36527 2004-12-17 Jackson Harper <jackson@ximian.com>
36529 * XplatUIStructs.cs: Updated set of virtual keycodes.
36530 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36532 2004-12-17 Jackson Harper <jackson@ximian.com>
36534 * XplatUIX11.cs: Prune old keyboard code.
36536 2004-12-17 Jackson Harper <jackson@ximian.com>
36538 * XplatUIX11.cs: When generating mouse wparams get the modifier
36539 keys from the ModifierKeys property.
36541 2004-12-17 Jackson Harper <jackson@ximian.com>
36543 * X11Keyboard.cs: Send up/down input when generating
36544 messages. Remove some unused vars.
36546 2004-12-17 Jackson Harper <jackson@ximian.com>
36549 * TreeView.cs: get rid of warnings.
36551 2004-12-17 Jackson Harper <jackson@ximian.com>
36553 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36555 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
36557 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36558 CheckedListBox.cs: Implementation
36560 2004-12-17 Peter Bartok <pbartok@novell.com>
36562 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36564 2004-12-16 Peter Bartok <pbartok@novell.com>
36567 - InsertCharAtCaret(): Fixed start pos fixup
36568 - CaretLine_get: No longer derives the line from the tag, the tag
36569 could be stale if lines in the document have been added or deleted
36570 - RebalanceAfterDelete(): Fixed bug in balancing code
36571 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36572 - Line.Streamline(): Now can also elminate leading empty tags
36573 - DumpTree(): Added a few more tests and prevented exception on
36575 - Added Debug section for Combining lines
36576 - Delete(): Now copies all remaining properties of a line
36579 - Left mousebutton now sets the caret (and middle button still acts
36580 as formatting tester, which must go away soon)
36581 - Added Debug section for Deleting/Combining lines
36582 - Fixed calculations for UpdateView after Combining lines
36584 2004-12-16 Peter Bartok <pbartok@novell.com>
36586 * TextControl.cs: Now properly aligns text on a baseline, using the
36587 new XplatUI.GetFontMetrics() method. Simplified several calculations
36588 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36591 2004-12-16 Peter Bartok <pbartok@novell.com>
36593 * XplatUI.cs: Added GetFontMetrics() method
36594 * XplatUIDriver.cs: Added GetFontMetrics() abstract
36595 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36596 into libgdiplus, our private GetFontMetrics function
36597 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36598 * XplatUIWin32.cs: Implemented GetFontMetrics() method
36600 2004-12-16 Jackson Harper <jackson@ximain.com>
36602 * XplatUIStruct.cs: Add enum for dead keys
36603 * X11Keyboard.cs: Map and unmap dead keys.
36605 2004-12-16 Jackson Harper <jackson@ximian.com>
36607 * X11Keyboard.cs: Detect and use the num lock mask.
36609 2004-12-16 Peter Bartok <pbartok@novell.com>
36611 * Control.cs (CreateGraphics): Added check to make sure the
36612 handle of the window exists before calling Graphics.FromHwnd()
36614 2004-12-16 Peter Bartok <pbartok@novell.com>
36616 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36617 contains a lot of code that's not supposed to be there for the
36618 real thing, but required for developing/testing the textbox
36621 2004-12-16 Peter Bartok <pbartok@novell.com>
36624 - Fixed Streamline method
36625 - Added FindTag method to Line
36626 - Added DumpTree method for debugging
36627 - Added DecrementLines() method for deleting lines
36628 - Fixed UpdateView to update the cursor to end-of-line on single-line
36630 - Added PositionCaret() method
36631 - Fixed MoveCaret(LineDown) to move into the last line, too
36632 - Added InsertChar overload
36633 - Fixed InsertChar tag offset calculations
36634 - Added DeleteChar() method
36635 - Added Combine() method for folding lines
36636 - Fixed Delete() method, no longer allocates wasted Line object and
36637 now copies all properties when swapping nodes
36638 - Delete() method now updates document line counter
36640 2004-12-15 Jackson Harper <jackson@ximian.com>
36642 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36643 * X11Keyboard.cs: Expose the currently selected modifier keys
36644 through a property.
36646 2004-12-15 Peter Bartok <pbartok@novell.com>
36648 * TextControl.cs: Initial check-in. Still incomplete
36650 2004-12-15 Jackson Harper <jackson@ximian.com>
36653 * TreeView.cs: Fix build on csc (second time today ;-))
36655 2004-12-15 Jackson Harper <jackson@ximian.com>
36657 * TreeView.cs: Store the treenodes plus/minus box bounds when it
36658 is calculated and use this for click testing.
36659 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36661 2004-12-15 Jackson Harper <jackson@ximian.com>
36663 * TreeView.cs: Pass the nodes image index to the image list when
36664 drawing that image.
36666 2004-12-15 Jackson Harper <jackson@ximian.com>
36668 * X11Keyboard.cs: Set messages hwnd.
36669 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36670 post_message calls.
36672 2004-12-15 Jackson Harper <jackson@ximian.com>
36674 * X11Keyboard.cs: Fix to compile with csc.
36676 2004-12-15 Jackson Harper <jackson@ximian.com>
36678 * X11Structs.cs: Add key mask values
36679 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36680 * X11Keyboard.cs: New file - Extrapolates and interpolates key
36681 down/up foo into WM_CHAR foo
36682 * KeyboardLayouts.cs: Common keyboard layouts
36683 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36684 post messages into the main queue.
36686 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
36688 * Button.cs: implement ProcessMnemonic
36689 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36691 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36692 * ButtonBase.cs: Show HotkeyPrefix (not the &)
36694 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
36696 * MonthCalendar.cs: Implemented click-hold for next/previous month
36699 2004-12-11 Peter Bartok <pbartok@novell.com>
36702 - Added XKeyboardState (moved from XplatUIX11.cs)
36703 - Added XCreateGC related enums and structures
36704 - Added GXFunction for XSetFunction
36706 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36708 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36709 CaretVisible() calls
36711 * ToolTip.cs: Added code to prevent stealing focus from app windows
36713 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36714 DestroyCaret, SetCaretPos and CaretVisible)
36717 - Added implementation for caret functions
36718 - Moved hover variables into a struct, to make it a bit easier
36719 on the eyes and to debug
36720 - Removed XKeyboardState (moved to XplatUIX11.cs)
36721 - Moved Keyboard properties into the properties region
36723 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36724 call to get a graphics context for our control
36726 * XplatUIOSX.cs: Added empty overrides for the new caret functions
36728 * TreeView.cs: Fixed bug. No matter what color was set it would always
36729 return SystemColors.Window
36731 * XplatUIWin32.cs: Implemented caret overrides
36733 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
36735 * ListBox.cs: fire events, implement missing methods and properties,
36738 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
36740 * MonthCalendar.cs: invalidation bug fixing
36741 * ThemeWin32Classic.cs: paint fixing
36743 2004-12-09 Geoff Norton <gnorton@customerdna.com>
36745 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36746 prepare the CGContextRef there now.
36748 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
36750 * MonthCalendar.cs:
36751 - optimisationL only invalidate areas that have changed
36752 * ThemeWin32Classic.cs:
36753 - only paint parts that intersect with clip_area
36755 2004-12-09 Peter Bartok <pbartok@novell.com>
36757 * Application.cs: Undid changes from r37004 which cause problems
36760 2004-12-09 Ravindra <rkumar@novell.com>
36762 * ToolBar.cs: Added support for displaying ContextMenu
36763 attached to a button on ToolBar.
36764 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36767 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36769 * Label.cs: autosize works in text change and removes unnecessary
36772 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36774 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36777 2004-12-08 Geoff Norton <gnorton@customerdna.com>
36779 * XplatUIOSX.cs: Added mouse move/click/grab support
36780 Remove some debugging WriteLines not needed anymore.
36781 Add window resizing/positioning.
36782 Fix visibility on reparenting.
36784 2004-12-08 Peter Bartok <pbartok@novell.com>
36786 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36788 2004-12-07 Geoff Norton <gnorton@customerdna.com>
36790 * XplatUIOSX.cs: Initial checkin
36791 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36793 2004-12-03 Ravindra <rkumar@novell.com>
36795 * ListView.cs: Added some keybindings and fixed scrolling.
36796 ScrollBars listen to ValueChanged event instead of Scroll
36797 Event. This would let us take care of all changes being
36798 done in the scrollbars' values programmatically or manually.
36799 * ListView.cs (CanMultiselect): Added a check for shift key.
36800 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36801 * ListViewItem.cs (Clone): Fixed. We need to make a copy
36802 of ListViewSubItemCollection as well.
36804 2004-12-06 Peter Bartok <pbartok@novell.com>
36806 * Control.cs (Parent): Added check and exception to prevent
36809 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
36811 * ListBox.cs: implemented clipping, selection single and multiple,
36814 2004-12-03 Ravindra <rkumar@novell.com>
36816 * ListView.cs (ListView_KeyDown):
36817 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36818 when CTRL key is pressed.
36819 * ListViewItem.cs (Selected): Fixed setting the property.
36821 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36823 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36825 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36826 MinimizeBox, ShowInTaskbar, TopMost properties.
36828 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36829 will be implemented).
36831 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36833 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36835 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36838 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36840 * TreeView.cs: BackColor is Colors.Window.
36842 2004-12-01 Jackson Harper <jackson@ximian.com>
36844 * TreeView.cs: When resizing the tree if the user is making it
36845 smaller we don't get expose events, so we need to handle adding
36846 the horizontal scrollbar in the size changed handler as well as
36847 the expose handler.
36849 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
36851 * DrawItemState.cs: fixes wrong enum values
36853 2004-12-01 Jackson Harper <jackson@ximian.com>
36855 * TreeView.cs: Resize the hbar as well as the vbar on resize.
36857 2004-12-01 Jackson Harper <jackson@ximian.com>
36859 * NodeLabelEditEventArgs.cs:
36860 * NodeLabelEditEventHandler.cs:
36861 * OpenTreeNodeEnumerator.cs:
36863 * TreeNodeCollection.cs:
36865 * TreeViewAction.cs:
36866 * TreeViewCancelEventArgs.cs:
36867 * TreeViewCancelEventHandler.cs:
36868 * TreeViewEventArgs.cs:
36869 * TreeViewEventHandler.cs: Initial implementation.
36871 2004-12-01 Ravindra <rkumar@novell.com>
36873 * ListView.cs (CalculateListView): Fixed scrolling related
36874 calculations. Also, removed some debug statements from other
36876 * ListViewItem.cs: Changed access to 'selected' instance variable
36877 from private to internal.
36878 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36880 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
36882 * ThemeWin32Classic.cs: remove cache of brush and pens for
36883 specific controls and use the global system, fixes scrollbutton
36884 bugs (for small sizes, disabled, etc)
36886 * ScrollBar.cs: does not show the thumb for very small controls
36887 (as MS) and allow smaller buttons that the regular size
36889 2004-12-01 Miguel de Icaza <miguel@ximian.com>
36891 * UpDownBase.cs: Add abstract methods for the interface.
36892 Add new virtual methods (need to be hooked up to TextEntry when it
36894 Add override methods for most features.
36895 Computes the size, forces the height of the text entry.
36897 * NumericUpDown.cs: Put here the current testing code.
36899 * Set eol-style property on all files that do not have mixed line
36900 endings, to minimize the future problems. There are still a few
36901 files with mixed endings, and someone should choose whether they
36902 want to move it or not.
36904 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
36906 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36909 2004-11-30 Ravindra <rkumar@novell.com>
36911 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36912 drawing and replaced use of SystemColors by theme colors.
36913 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36914 * ListView.cs (ListViewItemCollection.Add): Throw exception when
36915 same ListViewItem is being added more than once.
36917 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
36919 * MonthCalendar.cs:
36920 - ControlStyles love to make the control not flicker
36922 2004-11-30 Peter Bartok <pbartok@novell.com>
36924 * CharacterCasing.cs: Added
36926 2004-11-29 Peter Bartok <pbartok@novell.com>
36928 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36929 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36930 I am removing these files as they conflict with already completed
36931 work. While it is fantastic to get contributions to MWF, I
36932 respectfully ask that everyone please coordinate their contributions
36933 through mono-winforms-list or #mono-winforms at this time. We're
36934 explicitly avoiding stubbing and don't want controls that don't have
36935 their basic functionality implemented in svn. Please also see
36936 http://www.mono-project.com/contributing/winforms.html
36939 2004-11-29 Marek Safar <marek.safar@seznam.cz>
36941 * Application.cs (ModalRun): Don't hang after exit.
36943 * Theme.cs: New TreeViewDefaultSize property.
36945 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36946 with less hardcoded SystemColors constant.
36947 Implemented TreeViewDefaultSize.
36949 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36950 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36953 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
36955 * MonthCalendar.cs:
36956 - Fix NextMonthDate and PrevMonthDate click moving calendar
36958 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36960 * MonthCalendar.cs:
36961 - Fix usage of ScrollChange Property when scrolling months
36963 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
36965 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36966 - Fixes menu destroying
36967 - Support adding and removing items on already created menus
36969 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36971 * MonthCalendar.cs:
36972 - Re-worked all bolded dates handling to match win32
36973 * ThemeWin32Classic.cs:
36974 - Fixed rendering with bolded dates
36976 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
36978 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36979 - Horizontal scroolbar
36984 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
36986 * MonthCalendar.cs:
36987 - Fix Usage of MaxSelectionCount from SelectionRange
36988 - Fixed Shift + Cursor Selection
36989 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36990 - Fixed normal cursor selection to be compat with win32
36991 - Fixed Shift + Mouse Click selection
36993 2004-11-24 Peter Bartok <pbartok@novell.com>
36995 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36996 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36998 - CreatedKeyBoardMsg now updates keystate with Alt key
36999 - Added workaround for timer crash to CheckTimers, Jackson will
37000 develop a proper fix and check in later
37001 - Implemented DispatchMessage
37002 - Removed calling the native window proc from GetMessage (call
37003 now moved to DispatchMessage)
37005 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37006 the keydata (Fixes bug #69831)
37009 - (DispatchMessage): Switched to return IntPtr
37010 - Added DllImport for SetFocus
37012 2004-11-24 Ravindra <rkumar@novell.com>
37014 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37015 background drawing.
37016 * ListViewItem.cs: Fixed various properties, calculations
37017 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37018 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37019 and some internal properties. Fixed MouseDown handler and Paint
37022 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37024 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37026 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37028 * ContainerControl.cs: correct accidental check in of local changes
37030 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37032 * ThemeWin32Classic.cs:
37033 - Fixed Drawing Last month in grid (sometimes not showing)
37034 * MonthCalendar.cs:
37035 - Fixed title width calculation bug (makeing title small)
37037 2004-11-23 Peter Bartok <pbartok@novell.com>
37040 - Added generation of WM_MOUSEHOVER event
37041 - Added missing assignment of async_method atom
37042 - Fixed WM_ERASEBKGND; now only redraws the exposed area
37044 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37046 * ThemeWin32Classic.cs:
37047 - Fixed Drawing of today circle when showtodaycircle not set
37048 - fixed drawing of first and last month in the grid (gay dates)
37049 * MonthCalendar.cs:
37050 - Fixed Drawing of today circle
37051 - Fixed drawing of grady dates
37052 - Fixed HitTest for today link when ShowToday set to false
37053 - Fixed DefaultSize to obey ShowToday
37055 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37057 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37058 * System.Windows.Forms/Theme.cs
37059 * MonthCalendar.cs: added for MonthCalendar
37060 * SelectionRange.cs: added for MonthCalendar
37061 * Day.cs: added for MonthCalendar: added for MonthCalendar
37062 * DateRangeEventArgs.cs: added for MonthCalendar
37063 * DateRangeEventHandler.cs: added for MonthCalendar
37065 2004-11-22 Ravindra <rkumar@novell.com>
37067 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37070 2004-11-22 Miguel de Icaza <miguel@ximian.com>
37072 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37075 * NumericUpDown.cs: Added new implementation.
37076 * UpDownBase.cs: Added new implementation.
37078 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37081 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37084 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37087 2004-11-21 Miguel de Icaza <miguel@ximian.com>
37089 * Timer.cs (Dispose): Should call the base dispose when
37092 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37094 * ScrollBar.cs: updates thumb position when max, min or increment
37097 2004-11-21 Ravindra <rkumar@novell.com>
37099 * ListView.cs: Implemented item selection, activation and
37100 column header style. Fixed properties to do a redraw, if
37101 required. Added support for MouseHover, DoubleClick, KeyDown
37102 and KeyUp event handling and some minor fixes.
37103 * ListViewItem.cs: Fixed constructor.
37104 * ThemeWin32Classic.cs: Improved drawing for ListView.
37106 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37108 * ThemeWin32Classic.cs: initial listbox drawing code
37109 * DrawMode.cs: new enumerator
37110 * ListControl.cs: stubbed class
37111 * ListBox.cs: initial implementation
37112 * Theme.cs: new methods definitions
37113 * SelectionMode.cs: new enumerator
37115 2004-11-17 Peter Bartok <pbartok@novell.com>
37117 * XplatUIWin32.cs: Added double-click events to the class style
37118 * Control.cs (WndProc):
37119 - Added handling of click-count to MouseDown/ MouseUp events.
37120 - Added handling of middle and right mouse buttons
37121 - Removed old debug code
37123 2004-11-17 Jackson Harper <jackson@ximian.com>
37125 * XplatUIX11.cs: Use the new Mono.Unix namespace.
37127 2004-11-17 Ravindra <rkumar@novell.com>
37129 * ListView.cs: Added event handling for MouseMove/Up/Down.
37130 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37131 * ThemeWin32Classic.cs: We need to clear the graphics context and
37132 draw column header in a proper state.
37135 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
37137 * Menu.cs: fixes signature
37139 2004-11-16 Peter Bartok <pbartok@novell.com>
37141 * XplatUIX11.cs (GetMessage): Implemented generation of
37142 double click mouse messages
37144 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
37146 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37149 2004-11-11 Peter Bartok <pbartok@novell.com>
37151 * HandleData.cs: Added Visible property
37152 * XplatUIX11.cs (IsVisible): Now uses Visible property from
37154 * XplatUIX11.cs: Removed old debug leftovers
37155 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37156 * Control.cs (WndProc): Removed old debug leftovers,
37157 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37158 needed WM_SIZE handling
37160 2004-11-11 Jackson Harper <jackson@ximian.com>
37162 * OwnerDrawPropertyBag.cs:
37163 * TreeViewImageIndexConverter.cs: Initial implementation
37165 2004-11-10 Jackson Harper <jackson@ximian.com>
37167 * ThemeWin32Classic.cs:
37168 * TabControl.cs: instead of moving tabs by the slider pos just
37169 start drawing at the tab that is offset by the slider. This way
37170 scrolling always moves by exactly one tab.
37172 2004-11-10 Jackson Harper <jackson@ximian.com>
37174 * TabControl.cs: You can only scroll left when the slider has
37175 already ben moved right.
37177 2004-11-10 Jackson Harper <jackson@ximian.com>
37179 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37182 2004-11-10 Jackson Harper <jackson@ximian.com>
37184 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37187 2004-11-09 Jackson Harper <jackson@ximian.com>
37189 * TabControl.cs (CalcXPos): New helper method so we can determine
37190 the proper place to start drawing vertical tabs.
37191 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37193 2004-11-09 Jackson Harper <jackson@ximian.com>
37195 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37196 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37197 and Bottom, left and right are illegal values for this and
37198 multiline is enabled when the alignment is set to left or right.
37199 (DrawTab): Each alignment block should draw the text itself now
37200 because Left requires special love. Also add rendering for Left
37203 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
37205 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37206 does not destroy the windows, removes debugging messages
37208 2004-11-09 jba <jba-mono@optusnet.com.au>
37210 * ThemeWin32Classic.cs
37211 (DrawButtonBase): Fix verticle text rect clipping in windows
37212 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37213 rendering and incorrect text rect clipping
37214 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37215 rendering and incorrect text rect clipping
37217 2004-11-08 Jackson Harper <jackson@ximian.com>
37219 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37220 bottom when they are bottom aligned so the bottoms of the tabs get
37222 * TabControl.cs (DropRow): Move rows up instead of down when the
37223 tab control is bottom aligned.
37225 2004-11-08 13:59 pbartok
37228 - Added handling for various window styles
37229 - Added handling for popup windows
37230 - Added SetTopmost handling
37232 2004-11-08 13:55 pbartok
37235 - Added argument to SetTopmost method
37236 - Fixed broken ClientToScreen function
37238 2004-11-08 13:53 pbartok
37240 * XplatUIStructs.cs:
37241 - Added missing WS_EX styles
37243 2004-11-08 13:53 pbartok
37245 * XplatUI.cs, XplatUIDriver.cs:
37246 - Added argument to SetTopmost
37248 2004-11-08 13:52 pbartok
37251 - Added XSetWindowAttributes structure
37252 - Improved XWindowAttributes structure
37253 - Added SetWindowValuemask enum
37254 - Added window creation arguments enum
37255 - Added gravity enum
37256 - Added Motif hints structure
37257 - Added various Motif flags and enums
37258 - Added PropertyMode enum for property functions
37260 2004-11-08 13:50 pbartok
37263 - Fixed arguments for updated SetTopmost method
37265 2004-11-08 13:49 pbartok
37268 - Fixed arguments for updated SetTopmost function
37269 - Fixed usage of PointToClient
37271 2004-11-08 13:44 pbartok
37274 - Added Clipping of children and siblings
37276 2004-11-08 13:41 pbartok
37279 - Removed SetMenuBarWindow call. We do this in Form.cs
37281 2004-11-08 13:40 jackson
37283 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37284 scrolling jimmi in the correct location with bottom aligned tabs
37286 2004-11-08 13:36 pbartok
37288 * ContainerControl.cs:
37289 - Implemented BindingContext
37290 - Implemented ParentForm
37292 2004-11-08 12:46 jackson
37294 * TabControl.cs: Put bottom rendered tabs in the right location
37296 2004-11-08 07:15 jordi
37298 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37301 2004-11-05 17:30 jackson
37303 * TabControl.cs: When selected tabs are expanded make sure they
37304 don't go beyond the edges of the tab control
37306 2004-11-05 14:57 jackson
37308 * TabControl.cs: Reset show_slider so if the control is resized to
37309 a size where it is no longer needed it's not displayed anymore
37311 2004-11-05 13:16 jackson
37313 * TabControl.cs: Make tab pages non visible when added to the
37316 2004-11-05 12:42 jackson
37318 * TabControl.cs: Implement SizeMode.FillToRight
37320 2004-11-05 12:16 jackson
37322 * Control.cs: Do not call CreateHandle if the handle is already
37325 2004-11-05 11:46 jackson
37327 * TabControl.cs: Remove superflous call to CalcTabRows
37329 2004-11-05 09:07 jackson
37331 * XplatUIX11.cs: Update for Mono.Posix changes
37333 2004-11-05 07:00 ravindra
37335 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37338 2004-11-04 22:47 jba
37340 * ThemeWin32Classic.cs:
37341 - Fix Button rendering for FlatStyle = Flat or Popup
37342 - Fix RadioButton and CheckBox rendering when Appearance = Button
37343 (normal and flatstyle).
37344 - Correct outer rectangle color when drawing focus rectangle
37345 - Adjust button bounds to be 1 px smaller when focused
37346 - Make button not draw sunken 3d border when pushed (windows compat)
37347 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37348 - Offset the text in RadioButton and Checkbox when being rendered as
37350 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37352 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37353 - Fixed disabled text rendering for normally rendered radiobuttons
37355 2004-11-04 10:26 jackson
37357 * TabControl.cs: Recalculate tab rows when resizing
37359 2004-11-04 07:47 jordi
37361 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37362 collection completion, drawing issues, missing features
37364 2004-11-04 05:03 ravindra
37367 - We need to recalculate the Thumb area when
37368 LargeChange/maximum/minimum values are changed.
37369 - We set the 'pos' in UpdatePos() method to minimum, if it's less
37370 than minimum. This is required to handle the case if large_change is
37371 more than max, and use LargeChange property instead of large_change
37373 - We return max+1 when large_change is more than max, like MS does.
37375 2004-11-04 04:29 ravindra
37377 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37378 - Changed default value signatures (prefixed all with ListView).
37379 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37381 - Fixed calculations for ListViewItem and implemented Clone()
37384 2004-11-04 04:26 ravindra
37386 * Theme.cs, ThemeWin32Classic.cs:
37387 - Changed default ListView values signatures (prefixed all with
37389 - Fixed default size values for VScrollBar and HScrollBar.
37390 - Fixed DrawListViewItem method.
37392 2004-11-04 04:05 ravindra
37394 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37396 2004-11-04 04:04 ravindra
37398 * ImageList.cs: Implemented the missing overload for Draw method.
37400 2004-11-03 19:29 jackson
37402 * TabControl.cs: Handle dropping rows on selection properly
37404 2004-11-03 11:59 jackson
37406 * TabControl.cs: remove debug code
37408 2004-11-03 11:52 jackson
37410 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37411 the scrolly widgerywoo
37413 2004-11-02 13:52 jackson
37415 * TabControl.cs: Resize the tab pages and tabs when the tab control
37418 2004-11-02 13:40 jackson
37420 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37421 selected tab to the bottom
37423 2004-11-02 13:39 jackson
37425 * TabPage.cs: Store the tab pages row
37427 2004-11-02 12:33 jordi
37429 * MenuItem.cs: fixes handle creation
37431 2004-11-02 11:42 jackson
37433 * TabControl.cs: signature fix
37435 2004-11-02 08:56 jackson
37437 * TabControl.cs: Calculate whether the tab is on an edge properly.
37438 Remove top secret debugging code
37440 2004-11-01 19:57 jackson
37442 * TabControl.cs: Add click handling, and proper sizing
37444 2004-11-01 19:47 jackson
37446 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37449 2004-11-01 19:39 jackson
37451 * TabPage.cs: add internal property to store the bounds of a tab
37454 2004-10-30 04:23 ravindra
37456 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37459 2004-10-30 04:21 ravindra
37461 * ListView.cs, ListViewItem.cs: Added support for scrolling and
37462 fixed calculations.
37464 2004-10-30 03:06 pbartok
37467 - Removed extension of DllImported libs
37469 2004-10-29 09:55 jordi
37471 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37472 navigation, itemcollection completion, menu fixes
37474 2004-10-27 22:58 pbartok
37477 - Now throws a nice error message when no X display could be opened
37479 2004-10-26 13:51 jordi
37481 * ListView.cs: removes warning
37483 2004-10-26 03:55 ravindra
37485 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37486 ThemeWin32Classic.cs: Some formatting for my last checkins.
37488 2004-10-26 03:36 ravindra
37490 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37491 control and default values.
37493 2004-10-26 03:35 ravindra
37495 * Theme.cs: Added some default values for ListView control.
37497 2004-10-26 03:33 ravindra
37499 * ToolBar.cs: ToolBar should use the user specified button size, if
37500 there is any. Added a size_specified flag for the same.
37502 2004-10-26 03:33 ravindra
37504 * ColumnHeader.cs: Added some internal members and calculations for
37507 2004-10-26 03:32 ravindra
37509 * ListViewItem.cs: Calculations for ListViewItem.
37511 2004-10-26 03:31 ravindra
37513 * ListView.cs: Added some internal members and calculations for
37516 2004-10-22 13:31 jordi
37518 * MenuAPI.cs: speedup menus drawing
37520 2004-10-22 13:16 jackson
37522 * XplatUIX11.cs: Make sure to update exposed regions when adding an
37525 2004-10-22 11:49 jackson
37529 2004-10-22 11:41 jackson
37531 * Control.cs: Check to see if the window should have its background
37532 repainted by X when drawing.
37534 2004-10-22 11:31 jackson
37536 * XplatUIX11.cs: When invalidating areas only use XClearArea if
37537 clear is true, this way we do not get flicker from X repainting the
37540 2004-10-22 11:28 jackson
37542 * XEventQueue.cs: Queue properly
37544 2004-10-21 09:38 jackson
37546 * XEventQueue.cs: Fix access modifier
37548 2004-10-21 09:36 jackson
37550 * XEventQueue.cs: Don't loose messages
37552 2004-10-21 09:22 jackson
37554 * XEventQueue.cs: Don't loose messages
37556 2004-10-20 04:15 jordi
37558 * BootMode.cs: enum need it by SystemInfo
37560 2004-10-19 21:58 pbartok
37563 - Small sanity check
37565 2004-10-19 21:56 pbartok
37568 - Added private FormParentWindow class which acts as the container
37569 for our form and as the non-client area where menus are drawn
37570 - Added/Moved required tie-ins to Jordi's menus
37571 - Fixed/Implemented the FormStartPosition functionality
37573 2004-10-19 21:52 pbartok
37576 - Removed unneeded locals
37577 - Added code to all size and location properties to understand and
37578 deal with the parent container of Form
37580 2004-10-19 21:33 pbartok
37583 - Fixed to deal with new Form subclasses for menus
37585 2004-10-19 17:48 jackson
37587 * XEventQueue.cs: commit correct version of file
37589 2004-10-19 16:50 jackson
37591 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37593 2004-10-19 16:15 jordi
37595 * MenuAPI.cs: MenuBarCalcSize returns the height
37597 2004-10-19 08:31 pbartok
37600 - Added missing call to PreProcessMessage before calling OnXXXKey
37603 2004-10-19 00:04 ravindra
37605 * ToolTip.cs: Fixed constructor.
37607 2004-10-18 09:31 jordi
37609 * MenuAPI.cs: menuitems in menubars do not have shortcuts
37611 2004-10-18 09:26 jordi
37613 * MenuItem.cs: fixes MenuItem class signature
37615 2004-10-18 08:56 jordi
37617 * MenuAPI.cs: prevents windows from showing in the taskbar
37619 2004-10-18 00:28 ravindra
37621 * ToolTip.cs: Suppressed a warning message.
37623 2004-10-18 00:27 ravindra
37625 * Control.cs: Default value of visible property must be true.
37627 2004-10-17 23:19 pbartok
37630 - Complete implementation
37632 2004-10-17 23:19 pbartok
37635 - Added EnableWindow method
37636 - Added SetModal stub
37637 - Added generation of WM_ACTIVATE message (still needs testing)
37638 - Added SetTopMost stub
37639 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37641 2004-10-17 23:17 pbartok
37644 - Removed VirtualKeys to XplatUIStructs
37645 - Implemented SetTopMost method
37646 - Implemented EnableWindow method
37647 - Bugfix in ScreenToClient()
37648 - Bugfixes in ClientToScreen()
37650 2004-10-17 22:51 pbartok
37652 * XplatUIStructs.cs:
37653 - Added WS_EX styles to WindowStyles enumeration
37655 2004-10-17 22:50 pbartok
37657 * XplatUI.cs, XplatUIDriver.cs:
37658 - Added method for enabling/disabling windows
37659 - Added method for setting window modality
37660 - Added method for setting topmost window
37662 2004-10-17 22:49 pbartok
37664 * ThemeWin32Classic.cs:
37665 - Added ToolTip drawing code
37667 2004-10-17 22:49 pbartok
37670 - Added ToolTip abstracts
37672 2004-10-17 22:47 pbartok
37675 - Fixed Form.ControlCollection to handle owner relations
37676 - Added Owner/OwnedForms handling
37677 - Implemented Z-Ordering for owned forms
37678 - Removed unneeded private overload of ShowDialog
37679 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37681 - Fixed Close(), had wrong default
37682 - Added firing of OnLoad event
37683 - Added some commented out debug code for Ownership handling
37685 2004-10-17 22:16 pbartok
37688 - Fixed/implemented flat list of controls
37690 2004-10-17 22:14 pbartok
37693 - Added code to simulate modal dialogs on Win32
37695 2004-10-17 16:11 jordi
37697 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37700 2004-10-17 13:39 jordi
37702 * MenuAPI.cs: menu drawing fixes
37704 2004-10-15 09:10 ravindra
37706 * StructFormat.cs: General Enum.
37708 2004-10-15 09:09 ravindra
37710 * SizeGripStyle.cs: Enum for Form.
37712 2004-10-15 09:08 ravindra
37714 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37715 in Theme for ListView.
37717 2004-10-15 09:06 ravindra
37719 * ColumnHeader.cs: Flushing some formatting changes.
37721 2004-10-15 09:05 ravindra
37723 * ListViewItem.cs: Implemented GetBounds method and fixed coding
37726 2004-10-15 09:03 ravindra
37728 * ListView.cs: Implemented Paint method and fixed coding style.
37730 2004-10-15 07:34 jordi
37732 * MenuAPI.cs: fix for X11
37734 2004-10-15 07:32 ravindra
37736 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37737 - Renamed Paint() method to Draw() for clarity. Also, moved
37738 DrawImage() to OnPaint().
37740 2004-10-15 07:25 ravindra
37742 * CheckBox.cs, RadioButton.cs:
37743 - Removed Redraw (), we get it from ButtonBase.
37744 - Implemented Paint (), to do class specific painting.
37746 2004-10-15 07:16 ravindra
37749 - Redraw () is not virtual now.
37750 - Added an internal virtual method Paint (), so that
37751 derived classes can do their painting on their own.
37752 - Modified OnPaint () to call Paint ().
37754 2004-10-15 06:43 jordi
37756 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37757 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37759 2004-10-15 00:30 ravindra
37762 - MessageBox on windows does not have min/max buttons.
37763 This change in CreateParams fixes this on Windows. We
37764 still need to implement this windowstyle behavior in
37767 2004-10-14 05:14 ravindra
37770 - Changed Redraw () to do a Refresh () always.
37771 - Fixed the MouseMove event handling when mouse is pressed,
37772 ie drag event handling.
37773 - Replaced the usage of ToolBarButton.Pressed property to
37774 ToolBarButton.pressed internal variable.
37776 2004-10-14 05:10 ravindra
37778 * ToolBarButton.cs:
37779 - Added an internal member 'inside' to handle mouse move
37780 with mouse pressed ie mouse drag event.
37781 - Changed 'Pressed' property to return true only when
37782 'inside' and 'pressed' are both true.
37783 - Some coding style love.
37785 2004-10-14 00:17 ravindra
37787 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37790 2004-10-14 00:15 ravindra
37792 * ButtonBase.cs: Redraw () related improvements.
37794 2004-10-14 00:14 ravindra
37796 * MessageBox.cs: Moved InitFormSize () out of Paint method and
37797 removed unnecessary calls to Button.Show () method.
37799 2004-10-13 17:50 pbartok
37803 - Removed destroying of window until we solve the problem of X
37804 destroying the window before us on shutdown
37806 2004-10-13 16:32 pbartok
37809 - Now Redraws on MouseUp for FlatStyle Flat and Popup
37811 2004-10-13 14:18 pbartok
37814 - Added code to destroy the X window
37816 2004-10-13 14:18 pbartok
37819 - Added code to destroy a window
37821 2004-10-13 14:12 pbartok
37824 - Added the Redraw on Resize that got dropped in the last rev
37826 2004-10-13 09:06 pbartok
37828 * ThemeWin32Classic.cs:
37829 - Path from John BouAntoun:
37830 * Fix check rendering (centre correctly for normal style, offset
37831 correctly for FlatStyle).
37832 * Fix border color usage (use backcolor) for FlatStyle.Popup
37833 * Use checkbox.Capture instead of checkbox.is_pressed when
37834 rendering flatstyle states.
37836 2004-10-12 21:48 pbartok
37838 * ThemeWin32Classic.cs:
37839 - Removed all occurences of SystemColors and replaced them with the
37840 matching theme color
37842 2004-10-12 21:41 pbartok
37844 * ThemeWin32Classic.cs:
37845 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37846 him using the function for flatstyle drawing
37847 - Changed functions to use the new version of CPDrawBorder3D
37849 2004-10-12 21:15 pbartok
37852 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37853 match MS documentation. They need to return defined colors if the
37854 passed color matches the configured control color. Thanks to John
37855 BouAntoun for pointing this out.
37857 2004-10-12 20:57 pbartok
37860 - Fix from John BouAntoun: Raise ForeColorChanged event when text
37863 2004-10-12 20:46 pbartok
37866 - Fix from John BouAntoun: Now properly sets the Appearance property
37868 2004-10-12 20:45 pbartok
37870 * ThemeWin32Classic.cs:
37871 - Fixes from John BouAntoun: now handles forecolors and backcolors
37872 for flatstyle rendered controls much better; It also fixes normal
37873 checkbox rendering when pushed or disabled.
37875 2004-10-08 02:50 jordi
37877 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37880 2004-10-07 08:56 jordi
37882 * ThemeWin32Classic.cs: Removes deletion of cached brushes
37884 2004-10-06 03:59 jordi
37886 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37887 XplatUIWin32.cs: removes warnings from compilation
37889 2004-10-05 12:23 jackson
37891 * RadioButton.cs: Fix ctor
37893 2004-10-05 11:10 pbartok
37896 - Partial implementation by Benjamin Dasnois
37898 2004-10-05 10:15 jackson
37900 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37903 2004-10-05 03:07 ravindra
37906 - Removed a private method, Draw ().
37907 - Fixed the ButtonDropDown event handling.
37908 - Fixed MouseMove event handling.
37910 2004-10-05 03:04 ravindra
37912 * ThemeWin32Classic.cs:
37913 - Added DrawListView method and ListViewDefaultSize property.
37914 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37915 - Changed DOS style CRLF to Unix format (dos2unix).
37917 2004-10-05 03:03 ravindra
37920 - Added DrawListView method and ListViewDefaultSize property.
37922 2004-10-05 02:42 ravindra
37924 * ToolBarButton.cs: Added an internal member dd_pressed to handle
37925 clicks on DropDown arrow.
37927 2004-10-04 22:56 jackson
37929 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37930 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37931 Control handle the buffers, derived classes should not have to
37932 CreateBuffers themselves.
37934 2004-10-04 21:20 jackson
37936 * StatusBar.cs: The control handles resizing the buffers now.
37938 2004-10-04 21:18 jackson
37940 * Control.cs: When resizing the buffers should be invalidated. This
37941 should be handled in Control not in derived classes.
37943 2004-10-04 14:45 jackson
37947 2004-10-04 02:14 pbartok
37949 * LeftRightAlignment.cs:
37952 2004-10-04 01:09 jordi
37954 * ThemeWin32Classic.cs: fixes right button position causing right
37955 button not showing on horizontal scrollbars
37957 2004-10-02 13:12 pbartok
37960 - Simplified the Invalidate method by using an X call instead of
37961 generating the expose ourselves
37962 - Added an expose when the window background is changed
37963 - Implemented ClientToScreen method
37965 2004-10-02 13:08 pbartok
37968 - Added Win32EnableWindow method (test for implementing modal
37970 - Added ClientToScreen method and imports
37972 2004-10-02 13:07 pbartok
37974 * XplatUI.cs, XplatUIDriver.cs:
37975 - Added ClientToScreen coordinate translation method
37977 2004-10-02 13:06 pbartok
37979 * KeyPressEventArgs.cs:
37980 - Fixed access level for constructor
37982 2004-10-02 13:06 pbartok
37985 - Changed access level for the window_collection hash table
37987 2004-10-02 13:05 pbartok
37990 - Added KeyPreview property
37991 - Added Menu property (still incomplete, pending Jordi's menu work)
37992 - Implemented ProcessCmdKey
37993 - Implemented ProcessDialogKey
37994 - Implemented ProcessKeyPreview
37996 2004-10-02 13:02 pbartok
37999 - Added private method to get the Control object from the window
38001 - Implemented ContextMenu property
38002 - Implemented PointToScreen
38003 - Implemented PreProcessMessage
38004 - Implemented IsInputChar
38005 - Implemented IsInputKey
38006 - Implemented ProcessCmdKey
38007 - Completed ProcessKeyEventArgs
38008 - Fixed message loop to call the proper chain of functions on key
38010 - Implemented ProcessDialogChar
38011 - Implemented ProcessDialogKey
38012 - Implemented ProcessKeyMessage
38013 - Implemented ProcessKeyPreview
38014 - Added RaiseDragEvent stub (MS internal method)
38015 - Added RaiseKeyEvent stub (MS internal method)
38016 - Added RaiseMouseEvent stub (MS Internal method)
38017 - Added RaisePaintEvent stub (MS Internal method)
38018 - Added ResetMouseEventArgs stub (MS Internal method)
38019 - Implemented RtlTranslateAlignment
38020 - Implemented RtlTranslateContent
38021 - Implemented RtlTranslateHorizontal
38022 - Implemented RtlTranslateLeftRight
38023 - Added generation of KeyPress event
38025 2004-10-02 05:57 ravindra
38027 * ListViewItem.cs: Added attributes.
38029 2004-10-02 05:32 ravindra
38031 * ListView.cs: Added attributes.
38033 2004-10-01 11:53 jackson
38035 * Form.cs: Implement the Close method so work on MessageBox can
38038 2004-09-30 14:06 pbartok
38043 2004-09-30 11:34 jackson
38045 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38047 2004-09-30 07:26 ravindra
38049 * ListViewItemConverter.cs: Converter for ListViewItem.
38051 2004-09-30 07:26 ravindra
38053 * SortOrder.cs: Enum for ListView control.
38055 2004-09-30 07:25 ravindra
38057 * ColumnHeader.cs: Supporting class for ListView control.
38059 2004-09-30 07:24 ravindra
38061 * ListView.cs, ListViewItem.cs: Initial implementation.
38063 2004-09-30 07:20 ravindra
38065 * ItemActivation.cs: Enum for ListView Control.
38067 2004-09-29 20:29 pbartok
38070 - Added lookup of pixel value for background color; tries to get a
38071 color 'close' to the requested color, it avoids having to create a
38072 colormap. Depending on the display this could mean the used color
38073 is slightly off the desired color. Might have to change it to a more
38074 resource intensive colormap approach, but it will work as a
38075 workaround to avoid red screens.
38077 2004-09-29 14:27 jackson
38079 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38081 2004-09-28 12:44 pbartok
38083 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38084 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38085 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38086 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38087 TrackBar.cs, VScrollBar.cs:
38088 - Streamlined Theme interfaces:
38089 * Each DrawXXX method for a control now is passed the object for
38090 the control to be drawn in order to allow accessing any state the
38091 theme might require
38093 * ControlPaint methods for the theme now have a CP prefix to avoid
38094 name clashes with the Draw methods for controls
38096 * Every control now retrieves it's DefaultSize from the current
38099 2004-09-28 12:17 jackson
38101 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38104 2004-09-24 14:57 jackson
38106 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38107 Gives us a nice little performance boost.
38109 2004-09-24 12:02 jackson
38111 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38112 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38113 Control and supporting classes. Initial checkin
38115 2004-09-23 13:08 jackson
38117 * Form.cs: Temp build fixage
38119 2004-09-23 01:39 ravindra
38121 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38122 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38123 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38124 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38125 EventHandlers needed by ListView Control.
38127 2004-09-22 14:12 pbartok
38129 * ScrollableControl.cs:
38130 - Implemented DockPadding property
38131 - Implemented AutoScroll property
38132 - Implemented AutoScrollMargin property
38133 - Implemented AutoScrollMinSize property
38134 - Implemented AutoScrollPosition property
38135 - Implemented DisplayRectangle property (still incomplete)
38136 - Implemented CreateParams property
38137 - Implemented HScroll property
38138 - Implemented VScroll property
38139 - Implemented OnVisibleChanged property
38141 2004-09-22 14:09 pbartok
38144 - Added Form.ControllCollection class
38145 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38146 RemoveOwnedForm (still incomplete, missing on-top and common
38147 minimize/maximize behaviour)
38148 - Added StartPosition property (still incomplete, does not use when
38150 - Added ShowDialog() methods (still incomplete, missing forcing the
38153 2004-09-22 14:05 pbartok
38156 - Added message loop for modal dialogs
38158 2004-09-22 14:02 pbartok
38161 - Fixed wrong types for events
38163 2004-09-22 14:00 pbartok
38165 * Shortcut.cs, FormWindowState.cs:
38166 - Fixed wrong values
38168 2004-09-22 12:01 jackson
38170 * Control.cs: Text is never null
38172 2004-09-20 22:14 pbartok
38175 - Fixed accessibility level for Idle handler
38177 2004-09-20 18:54 jackson
38179 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38180 XplatUIX11.cs: New message loop that uses poll so we don't get a
38183 2004-09-17 10:43 pbartok
38186 - Fixed behaviour of arrow buttons. Now properly behaves like
38187 Buttons (and like Microsoft's scrollbar arrow buttons)
38189 2004-09-17 10:14 pbartok
38192 - Added missing release of keyboard/mouse capture
38194 2004-09-17 06:18 jordi
38196 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38197 Theme.cs: Very early menu support
38199 2004-09-16 17:45 pbartok
38202 - Fixed sending a window to the front
38203 - Added overload for SetWindowPos to avoid casting
38205 2004-09-16 17:44 pbartok
38208 - Added SendToBack and BringToFront methods
38210 2004-09-16 07:00 ravindra
38212 * Copyright: Added Novell URL.
38214 2004-09-16 07:00 ravindra
38216 * ToolBar.cs: Invalidate should be done before redrawing.
38218 2004-09-15 21:19 ravindra
38220 * ColumnHeaderStyle.cs: Enum for ListView Control.
38222 2004-09-15 21:18 ravindra
38224 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38227 2004-09-13 18:26 jackson
38229 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38232 2004-09-13 18:13 jackson
38234 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38235 a second thread and post messages into the main threads message
38236 queue. This makes timing much more consistent. Both win2K and XP
38237 have a minimum timer value of 15 milliseconds, so we now do this
38240 2004-09-13 15:18 pbartok
38242 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38244 - Added Z-Ordering methods
38246 2004-09-13 10:56 pbartok
38249 - Fixed #region names
38250 - Moved properties and methods into their proper #regions
38252 2004-09-13 10:51 pbartok
38255 - Added Accept and CancelButton properties
38256 - Added ProcessDialogKey() method
38258 2004-09-13 08:18 pbartok
38260 * IWindowTarget.cs:
38263 2004-09-10 21:50 pbartok
38266 - Added DoDragDrop() [incomplete]
38267 - Properly implemented 'Visible' handling
38268 - Added SetVisibleCore()
38269 - Implemented FindChildAtPoint()
38270 - Implemented GetContainerControl()
38271 - Implemented Hide()
38273 2004-09-10 19:28 pbartok
38276 - Moved methods into their appropriate #regions
38277 - Reordered methods within regions alphabetically
38279 2004-09-10 18:57 pbartok
38281 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38282 - Added method to retrieve text from window
38284 2004-09-10 18:56 pbartok
38287 - Moved some internal functions into the internal region
38288 - Implemented FontHeight
38289 - Implemented RenderRightToLeft
38290 - Implemented ResizeRedraw
38291 - Implemented ShowFocusCues
38292 - Implemented ShowKeyboardCues
38293 - Implemented FromChildHandle
38294 - Implemented FromHandle
38295 - Implemented IsMnemonic
38296 - Implemented ReflectMessage
38297 - All public and protected Static Methods are now complete
38299 2004-09-10 16:54 pbartok
38302 - Implemented remaining missing public instance properties
38303 - Alphabetized some out of order properties
38305 2004-09-10 05:51 ravindra
38307 * PictureBox.cs: Added a check for null image.
38309 2004-09-10 00:59 jordi
38311 * GroupBox.cs: remove cvs tag
38313 2004-09-09 05:25 ravindra
38315 * ToolBar.cs: Make redraw accessible from ToolBarButton.
38317 2004-09-09 05:23 ravindra
38319 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38322 2004-09-09 02:28 pbartok
38324 * ThemeWin32Classic.cs:
38325 - Improve disabled string look
38327 2004-09-09 01:15 jordi
38329 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38332 2004-09-08 23:56 ravindra
38334 * ItemBoundsPortion.cs: It's enum, not a class!
38336 2004-09-08 23:47 ravindra
38338 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38341 2004-09-08 21:13 ravindra
38343 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38346 2004-09-08 21:03 ravindra
38348 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38351 2004-09-08 21:01 ravindra
38353 * ScrollableControl.cs: Removed unreachable code.
38355 2004-09-08 06:45 jordi
38357 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38359 2004-09-08 01:00 jackson
38361 * XplatUIX11.cs: Only run the timers when updating the message
38362 queue. This effectively gives X messages a higher priority then
38363 timer messages. Timers still need love though
38365 2004-09-07 14:01 jackson
38367 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38368 this for us and the handle is no longer valid.
38370 2004-09-07 13:59 jackson
38372 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38373 loop that manages to not crash. TODO: Add poll and cleanup timers
38375 2004-09-07 11:12 jordi
38377 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38379 2004-09-07 03:40 jordi
38381 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38382 fixes, methods, multiple links
38384 2004-09-06 06:55 jordi
38386 * Control.cs: Caches ClientRectangle rectangle value
38388 2004-09-05 02:03 jordi
38390 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38393 2004-09-04 11:10 jordi
38395 * Label.cs: Refresh when font changed
38397 2004-09-02 16:24 pbartok
38400 - Added sanity check to creation of double buffer bitmap
38402 2004-09-02 16:24 pbartok
38405 - Fixed selection of text color
38406 - Fixed handling of resize event; now properly recreates double
38408 - Added missing assignment of TextAlignment
38409 - Added proper default for TextAlignment
38411 2004-09-02 14:26 pbartok
38414 - Added missing RadioButton.RadioButtonAccessibleObject class
38416 2004-09-02 14:26 pbartok
38419 - Added missing Control.ControlAccessibleObject class
38420 - Started to implement Select()ion mechanisms, still very incomplete
38422 2004-09-02 14:25 pbartok
38424 * AccessibleObject.cs:
38425 - Added missing methods
38427 2004-09-02 14:23 pbartok
38429 * AccessibleNavigation.cs, AccessibleSelection.cs:
38432 2004-09-02 10:32 jordi
38434 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38435 pool for pens, brushes, and hatchbruses
38437 2004-09-01 15:30 jackson
38439 * StatusBar.cs: Fix typo
38441 2004-09-01 14:44 pbartok
38446 2004-09-01 14:39 pbartok
38448 * Button.cs, RadioButton.cs:
38449 - Functional initial check-in
38451 2004-09-01 14:01 pbartok
38454 - Added missing default
38455 - Added missing region mark
38457 2004-09-01 09:10 jordi
38459 * Label.cs: fixes method signatures, new methods, events, fixes
38462 2004-09-01 07:19 jordi
38464 * Control.cs: Init string variables with an empty object
38466 2004-09-01 04:20 jordi
38468 * Control.cs: fires OnFontChanged event
38470 2004-08-31 20:07 pbartok
38473 - Enabled display of strings
38475 2004-08-31 20:05 pbartok
38478 - Added (partial) implementation of DialogResult; rest needs to be
38479 implemented when the modal loop code is done
38481 2004-08-31 19:55 pbartok
38484 - Fixed to match the removal of the needs_redraw concept
38486 2004-08-31 19:55 pbartok
38489 - Removed the rather odd split between 'needs redraw' and redrawing
38490 - Now handles the events that require regeneration (ambient
38491 properties and size)
38493 2004-08-31 19:41 pbartok
38496 - Added firing of BackColorChanged event
38497 - Added TopLevelControl property
38498 - Fixed handling of WM_ERASEBKGRND message
38500 2004-08-31 12:49 pbartok
38506 2004-08-31 12:48 pbartok
38509 - Finished (famous last words)
38511 2004-08-31 04:35 jordi
38513 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38514 scrolling bugs, adds new methods
38516 2004-08-30 14:42 pbartok
38519 - Implemented CheckBox drawing code
38521 2004-08-30 14:42 pbartok
38524 - Made Redraw() and CheckRedraw() virtual
38525 - Improved mouse up/down/move logic to properly track buttons
38527 2004-08-30 09:44 pbartok
38530 - Updated to fix broken build. Not complete yet.
38532 2004-08-30 09:28 pbartok
38537 2004-08-30 09:17 pbartok
38542 2004-08-27 16:12 ravindra
38544 * ToolBarButton.cs: Added TypeConverter attribute.
38546 2004-08-27 16:07 ravindra
38548 * ImageIndexConverter.cs: Implemented.
38550 2004-08-27 14:17 pbartok
38553 - Removed unneeded stack vars
38554 - First attempt to fix sizing issues when layout is suspended
38556 2004-08-25 15:35 jordi
38558 * ScrollBar.cs: more fixes to scrollbar
38560 2004-08-25 14:04 ravindra
38562 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38563 Added the missing divider code and grip for ToolBar Control.
38565 2004-08-25 13:20 pbartok
38568 - Control now properly passes the ambient background color to child
38571 2004-08-25 13:20 jordi
38573 * ScrollBar.cs: small bug fix regarding bar position
38575 2004-08-25 12:33 pbartok
38578 - Now only calls SetTimer or KillTimer if the enabled state has
38581 2004-08-25 12:33 pbartok
38584 - Fixed timer handling, now seems to work
38585 - Improved error message for window creation
38587 2004-08-25 12:32 pbartok
38590 - Fixed generation of MouseUp message
38592 2004-08-25 12:29 jordi
38594 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38595 and fixes for progressbar
38597 2004-08-24 18:43 ravindra
38599 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38600 in ToolBar control.
38602 2004-08-24 17:15 pbartok
38606 - Added missing events
38609 2004-08-24 17:14 pbartok
38611 * StatusBar.cs, PictureBox.cs:
38612 - Now uses Control's CreateParams
38614 2004-08-24 16:36 pbartok
38617 - Fixed background color handling
38618 - Fixed sending of enter/leave events on a grab
38620 2004-08-24 16:35 pbartok
38623 - Refined definitions for CrossingEvent
38625 2004-08-24 12:37 jordi
38627 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38628 formmating, methods signature, and adds missing events
38630 2004-08-24 12:24 jordi
38632 * Control.cs: fire OnEnabledChanged event
38634 2004-08-24 11:17 pbartok
38637 - Implemented SetTimer() and KillTimer()
38639 2004-08-24 11:16 pbartok
38642 - Now uses Remove instead of Add to kill the timer
38644 2004-08-24 10:16 jackson
38646 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38647 picture boxes in the theme now. Draw picture box borders and obey
38650 2004-08-24 05:49 jackson
38652 * Timer.cs: Remove top secret debugging code
38654 2004-08-24 05:34 jackson
38656 * PictureBox.cs: Temp hack to make picture boxes draw their full
38659 2004-08-24 05:29 jackson
38661 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38662 XplatUIX11.cs: Move timers to the driver level. On X they are
38663 queued by the driver and checked on idle.
38665 2004-08-24 01:07 jackson
38667 * XplatUIX11.cs: Use a queue for async messages instead of passing
38668 them as ClientMessages since that was totally broken. Also simply
38669 check for events and return an idle message if none are found. This
38670 gives us an idle handler, and prevents deadlocking when no messages
38673 2004-08-23 18:19 ravindra
38675 * XplatUIWin32.cs: Removed the unwanted destructor.
38677 2004-08-23 17:27 pbartok
38680 - Finishing touches. Works now, just needs some optimizations.
38682 2004-08-23 16:53 jordi
38684 * ScrollBar.cs: small fix
38686 2004-08-23 16:45 pbartok
38689 - Removed debug output
38692 2004-08-23 16:43 jordi
38694 * ScrollBar.cs: [no log message]
38696 2004-08-23 16:10 pbartok
38699 - Fixed handling of WM_CLOSE message
38700 - Removed debug output
38702 2004-08-23 16:09 pbartok
38705 - Added handling of Idle event
38706 - Added handling of form closing
38707 - Fixed reporting of MessageLoop property
38708 - Removed some unneeded code, should provide a bit of a speedup
38710 2004-08-23 15:22 pbartok
38713 - Added InitLayout() method
38714 - Added code to properly perform layout when Anchor or Dock property
38716 - Changed 'interpretation' of ResumeLayout. MS seems to have a
38717 LAMESPEC, tried to do it in a way that makes sense
38719 2004-08-23 14:10 jordi
38721 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38722 properties and methods
38724 2004-08-23 13:55 pbartok
38727 - Properly fixed Jordi's last fix
38728 - Now uses Cursor's Position property instead of calling XplatUI
38731 2004-08-23 13:44 jordi
38733 * PaintEventHandler.cs: Adding missing attribute
38735 2004-08-23 13:39 pbartok
38738 - Implemented Position property
38740 2004-08-23 13:39 pbartok
38742 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38743 - Added method to move mouse cursor
38745 2004-08-23 13:39 pbartok
38748 - Fixed setting of background color
38749 - Added method to move mouse cursor
38751 2004-08-23 13:16 jordi
38753 * Control.cs: avoids null exception
38755 2004-08-22 17:46 jackson
38757 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38760 2004-08-22 17:40 jackson
38762 * XplatUIX11.cs: Add some missing locks
38764 2004-08-22 15:10 pbartok
38766 * Control.cs, Form.cs:
38767 - Removed OverlappedWindow style from Control, instead it's default
38769 - Made form windows OverlappedWindow by default
38771 2004-08-22 13:34 jackson
38773 * ScrollBar.cs: Update the position through the Value property so
38774 the OnValueChanged event is raised.
38776 2004-08-22 12:04 pbartok
38779 - Added Cursor.cs and UserControl.cs
38781 2004-08-22 12:03 pbartok
38784 - Started implementation, not usable yet
38786 2004-08-22 12:00 pbartok
38789 - Implemented UserControl (complete)
38791 2004-08-21 19:20 ravindra
38793 * ToolBar.cs: Correcting the formatting mess of VS.NET.
38795 2004-08-21 18:49 ravindra
38797 * ToolBar.cs: Probably this completes the missing attributes in
38800 2004-08-21 18:03 ravindra
38802 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38803 Fixed toolbar control signatures.
38805 2004-08-21 16:32 pbartok
38810 2004-08-21 16:30 pbartok
38815 2004-08-21 16:19 pbartok
38817 * Control.cs, Label.cs:
38820 2004-08-21 15:57 pbartok
38823 - Added loads of debug output for development
38824 - Fixed typo in method name
38826 2004-08-21 15:52 pbartok
38828 * ToolBarButtonClickEventArgs.cs:
38829 - Added missing base class
38831 2004-08-21 14:53 pbartok
38834 - Updated to match new GrabWindow signature
38836 2004-08-21 14:51 pbartok
38838 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38839 - Added method to get default display size
38841 2004-08-21 14:23 pbartok
38843 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38844 - Added method to query current grab state
38845 - Added argument to allow confining a grab to a window
38847 2004-08-21 14:22 pbartok
38850 - Added [Flags] attribute so that modifiers can be used in bitwise
38853 2004-08-21 14:21 pbartok
38855 * TrackBar.cs, ScrollBar.cs:
38856 - Replaced direct XplatUI calls with their Control counterpart
38858 2004-08-21 13:32 pbartok
38861 - Implemented Created property
38863 2004-08-21 13:28 pbartok
38866 - Implemented ContainsFocus
38868 2004-08-21 13:26 pbartok
38871 - Implemented CausesValidation
38873 2004-08-21 13:21 pbartok
38876 - Implemented CanFocus
38877 - Implemented CanSelect
38878 - Implemented Capture
38880 2004-08-21 12:35 pbartok
38883 - Fixed bug with Async message handling
38884 - Implemented getting the ModifierKeys
38886 2004-08-21 12:32 jackson
38888 * AsyncMethodResult.cs: Make sure we have the mutex before we
38889 release it. Fixes BeginInvoke on windows
38891 2004-08-21 11:31 pbartok
38893 * XplatUIWin32.cs, XplatUIX11.cs:
38894 - Drivers now return proper mouse state
38896 2004-08-21 10:54 jackson
38898 * Control.cs: Implement EndInvoke
38900 2004-08-21 10:48 jackson
38902 * Timer.cs: Remove unneeded finalizer
38904 2004-08-20 19:52 ravindra
38906 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38907 in mouse event handling in the ToolBar control.
38909 2004-08-20 19:50 ravindra
38911 * ImageList.cs: Changed draw method to use the arguments passed in
38914 2004-08-20 18:58 pbartok
38916 * XplatUIStructs.cs:
38917 - Added private message for async communication
38919 2004-08-20 17:38 ravindra
38921 * Control.cs: Made RightToLeft property virtual and removed a
38924 2004-08-20 14:39 jordi
38926 * ThemeGtk.cs: use style_attach
38928 2004-08-20 14:39 pbartok
38931 - Added jackson's Async code from X11 to Win32
38933 2004-08-20 14:09 pbartok
38936 - Added all new files
38938 2004-08-20 14:09 pbartok
38941 - Added call to set window background color
38943 2004-08-20 14:03 pbartok
38945 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38946 - Added method for setting the window background
38948 2004-08-20 14:02 pbartok
38951 - Added method for setting the background color
38952 - Added handling for erasing the window background
38954 2004-08-20 13:45 jordi
38956 * TrackBar.cs: fixes timer, new properties and methods
38958 2004-08-20 13:34 jackson
38960 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38963 2004-08-20 13:22 jackson
38965 * Timer.cs: Timer Tick events are now handed through Controls Async
38966 mechanism so the callbacks are executed in the same thread as X
38968 2004-08-20 13:19 jackson
38970 * XplatUIDriver.cs: Expose functionality to send async messages
38973 2004-08-20 13:18 jackson
38975 * Control.cs: Implement Begininvoke
38977 2004-08-20 13:14 jackson
38979 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38980 messages through the driver
38982 2004-08-20 13:12 jackson
38984 * XplatUIX11.cs: Lock before all X operations. Also added Async
38985 method functionality through XSendEvent
38987 2004-08-20 13:11 jackson
38989 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38990 This will screw up on 64 bit systems)
38992 2004-08-20 13:10 jackson
38994 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38995 Async messages through X/Win32
38997 2004-08-19 19:39 pbartok
39000 - Updated code to match new HandleData.DeviceContext type
39002 2004-08-19 19:38 pbartok
39005 - Made DeviceContext a generic object to allow usage from various
39007 - Added support for queueing Windows messages
39009 2004-08-19 19:37 pbartok
39012 - Added generation of MouseEnter, MouseLeave and MouseHover events
39013 - Added cleanup on EndPaint
39015 2004-08-19 19:17 pbartok
39018 - Added handling of WM_MOUSEHOVER
39019 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39022 2004-08-19 18:55 jordi
39024 * ThemeGtk.cs: fixes button order
39026 2004-08-19 18:12 jordi
39028 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39030 2004-08-19 17:09 pbartok
39033 - Added Right property
39034 - Added RightToLeft property
39036 2004-08-19 16:27 jordi
39038 * ThemeGtk.cs: experimental GTK theme support
39040 2004-08-19 16:26 jordi
39042 * ITheme.cs, Theme.cs: move themes from an interface to a class
39044 2004-08-19 16:25 jordi
39046 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39049 2004-08-19 16:04 pbartok
39052 - Added colormap basics
39053 - Added a way to re-initialize with a different display handle
39054 - Fixed setting of the window background color
39055 - Added various X11 imports related to colors and colormaps
39057 2004-08-19 15:51 pbartok
39060 - Removed packing hints (Paolo suggested this a while back)
39061 - fixed colormap type
39062 - Added default Atom types
39063 - Added Screen and color structs and enums
39065 2004-08-19 15:39 pbartok
39068 - Added missing Draw() method
39069 - Added missing RecreateHandle event
39071 2004-08-19 15:30 pbartok
39074 - Added handling of WM_CLOSE
39076 2004-08-18 13:16 jordi
39078 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39081 2004-08-18 09:56 jordi
39083 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39085 2004-08-17 15:31 ravindra
39087 * SWF.csproj: Updated project.
39089 2004-08-17 15:25 pbartok
39092 - Drawing improvement; don't call UpdateBounds if we are not visible
39093 (or have been minimized)
39095 2004-08-17 15:24 pbartok
39098 - Finished IsVisible
39099 - Added Win32GetWindowPlacement
39101 2004-08-17 15:08 jackson
39103 * Panel.cs: Initial checkin of the Panel
39105 2004-08-17 14:25 pbartok
39108 - Fixed broken handling of default window sizes
39110 2004-08-17 13:29 jackson
39112 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39113 has a large startup time.
39115 2004-08-17 10:25 jackson
39117 * HandleData.cs: union areas properly
39119 2004-08-17 10:12 jackson
39121 * HandleData.cs: union areas properly
39123 2004-08-16 20:00 ravindra
39125 * ToolBar.cs, ToolBarButton.cs: Added attributes.
39127 2004-08-16 18:48 ravindra
39129 * ToolBar.cs: Added attributes.
39131 2004-08-16 17:17 ravindra
39133 * SWF.csproj: Updated project.
39135 2004-08-16 17:16 jackson
39137 * XplatUIX11.cs: Check for more expose events before sending a
39138 WM_PAINT so they can all be grouped together. This makes dragging a
39139 window across another window redraw in a sane way.
39141 2004-08-16 15:47 pbartok
39144 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39145 support OnMouseEnter/Leave()
39146 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39149 2004-08-16 15:46 pbartok
39151 * XplatUIStructs.cs, XplatUIX11.cs:
39152 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39153 OnMouseEnter/Leave()
39155 2004-08-16 15:34 jackson
39157 * XplatUIX11.cs: Group multiple expose events in HandleData, make
39158 sure messages get the message field set to WM_NULL if they are not
39161 2004-08-16 15:24 jackson
39163 * HandleData.cs: HandleData is used for storing message information
39166 2004-08-15 17:23 ravindra
39168 * ColorDepth.cs: Added attribute.
39170 2004-08-15 17:23 ravindra
39172 * SWF.csproj: Updated project for ToolBar Control.
39174 2004-08-15 17:20 ravindra
39176 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39177 control and also dos2unix format.
39179 2004-08-15 17:13 ravindra
39181 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39182 ToolBarButtonClickEventArgs.cs,
39183 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39184 ToolBarTextAlign.cs: First Implementation of ToolBar control.
39186 2004-08-15 15:31 pbartok
39189 - First (mostly) working version
39191 2004-08-13 16:15 pbartok
39194 - Fixed Anchor default
39196 2004-08-13 15:43 pbartok
39199 - Changed GetCursorPos signature
39201 2004-08-13 15:42 pbartok
39203 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39204 - Changed signature for GetCursorPos
39206 2004-08-13 15:25 pbartok
39210 - Fixed resizing/exposure handling
39212 2004-08-13 15:22 jordi
39214 * ThemeWin32Classic.cs: removes redundant code and fixes issues
39217 2004-08-13 14:55 jordi
39219 * TrackBar.cs: change from wndproc to events
39221 2004-08-13 13:00 jordi
39223 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39224 XplatUIX11.cs: implements PointToClient (ScreenToClient)
39226 2004-08-13 12:53 pbartok
39229 - Changed GetWindowPos to also provide client area size
39230 - Fixed broken prototypes for several win32 functions
39232 2004-08-13 12:53 pbartok
39234 * XplatUI.cs, XplatUIDriver.cs:
39235 - Changed GetWindowPos to also provide client area size
39237 2004-08-13 12:52 pbartok
39240 - Added generation of WM_POSCHANGED
39241 - Changed GetWindowPos to also provide client area size
39243 2004-08-13 12:52 pbartok
39246 - Added Dispose() and destructor
39247 - Fixed resizing and bounds calculation
39249 - Added memory savings for invisible windows
39251 2004-08-13 12:46 jordi
39253 * TrackBar.cs: adds timer and grap window
39255 2004-08-13 10:25 jackson
39257 * Timer.cs: SWF Timer
39259 2004-08-12 16:59 pbartok
39261 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39262 - Implemented method to get current mouse position
39264 2004-08-12 14:29 jordi
39266 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39267 enhancement, fix mouse problems, highli thumb, etc
39269 2004-08-12 13:31 pbartok
39272 - Fixed Anchoring bugs
39274 2004-08-12 13:01 jackson
39276 * StatusBar.cs: Don't forget things
39278 2004-08-12 12:54 jackson
39280 * ThemeWin32Classic.cs: Handle owner draw status bars
39282 2004-08-12 12:54 jackson
39284 * StatusBar.cs: Implement missing properties, events, and methods.
39285 Handle mouse clicking
39287 2004-08-12 10:19 jackson
39289 * StatusBarPanelClickEventArgs.cs,
39290 StatusBarPanelClickEventHandler.cs: Classes for handling status
39291 bar panel click events
39293 2004-08-12 10:10 jackson
39295 * Control.cs: Add missing properties
39297 2004-08-12 09:46 pbartok
39299 * BindingsManagerBase.cs:
39300 - Name changed to BindingManagerBase.cs
39302 2004-08-12 09:25 jordi
39304 * ScrollableControl.cs: calls ctrlbase instead of exeception
39306 2004-08-11 16:28 pbartok
39308 * InputLanguageChangingEventArgs.cs:
39309 - Never check in before compiling. Fixes the last check-in
39311 2004-08-11 16:26 pbartok
39313 * InputLanguageChangingEventArgs.cs:
39314 - More signature fixes
39316 2004-08-11 16:20 pbartok
39318 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39319 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39320 ImageListStreamer.cs, InputLanguage.cs,
39321 InputLanguageChangedEventArgs.cs,
39322 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39323 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39324 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39325 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39328 2004-08-11 16:16 pbartok
39332 - Added .Net 1.1 method
39334 2004-08-11 15:25 pbartok
39337 - Fixed BindingManagerBase.cs filename
39339 2004-08-11 15:22 pbartok
39341 * BindingManagerBase.cs:
39342 - Was checked in with wrong filename
39344 2004-08-11 14:50 pbartok
39349 2004-08-11 13:41 jordi
39351 * XplatUIWin32.cs: Fixes ClientRect
39353 2004-08-11 13:19 pbartok
39355 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39357 - We had SetWindowPos and MoveWindow to set window positions and
39358 size, removed MoveWindow. We have GetWindowPos, so it made sense to
39359 keep SetWindowPos as matching counterpart
39360 - Added some X11 sanity checking
39362 2004-08-11 12:59 pbartok
39365 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39366 (It seems that SetBounds is just a front for SetBoundsCore and
39367 SetBoundsCore updates the underlying window system and
39368 UpdateBounds is responsible for updating the variables associated
39369 with the Control and sending the events)
39370 - Major cleanup of Size handling; we now have two sizes, client_size
39371 and bounds. Bounds defines the window with decorations, client_size
39374 2004-08-11 12:55 pbartok
39376 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39377 - Added method to calculate difference between decorated window and
39380 2004-08-11 12:54 pbartok
39383 - Forcing redraw on resize
39385 2004-08-11 11:43 pbartok
39388 - Removed disposing of the actual images when the list is disposed
39390 2004-08-11 09:13 pbartok
39393 - Now properly reparents windows
39395 2004-08-11 08:37 pbartok
39400 2004-08-11 07:47 pbartok
39403 - Rewrote the collection stuff. Might not be as fast now, not
39404 keeping the number of children around and accessible directly, but
39405 it's more straightforward
39407 2004-08-11 07:44 pbartok
39409 * AccessibleObject.cs:
39410 - Fixed to match ControlCollection rewrite
39412 2004-08-11 07:43 pbartok
39415 - Added missing creation of the collection list
39417 2004-08-10 20:08 jackson
39419 * StatusBar.cs: Get the paint message from WndProc
39421 2004-08-10 19:31 jackson
39423 * ThemeWin32Classic.cs: Create Brushes as little as possible
39425 2004-08-10 19:20 jackson
39427 * UICues.cs: Add Flags attribute
39429 2004-08-10 19:19 jackson
39431 * StatusBarPanel.cs: Signature cleanup
39433 2004-08-10 19:10 jackson
39435 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39436 Initial implementation of status bar item drawing
39438 2004-08-10 17:27 jordi
39440 * TrackBar.cs: add missing methods, properties, and restructure to
39443 2004-08-10 16:24 jackson
39445 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39446 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39449 2004-08-10 13:21 jordi
39451 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39452 enhancements and standarize on win colors defaults
39454 2004-08-10 12:52 jackson
39456 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39457 ThemeWin32Classic.cs: Implement DrawItem functionality
39459 2004-08-10 12:47 jordi
39461 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39463 2004-08-10 12:32 jordi
39465 * Control.cs: throw ontextchange event
39467 2004-08-10 11:43 pbartok
39470 - Added more to the still unfinished Dock/Anchor layout code
39472 2004-08-10 11:39 pbartok
39474 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39475 - Added GetWindowPos method
39477 2004-08-10 11:36 pbartok
39480 - Implemented several methods
39482 2004-08-10 09:47 jackson
39484 * TrackBar.cs: Allow control to handle buffering
39486 2004-08-10 09:41 jackson
39488 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39490 2004-08-10 09:24 jackson
39492 * Label.cs, LinkLabel.cs: Let Control handle buffering.
39494 2004-08-10 09:09 jackson
39496 * StatusBar.cs: Let Control handle all the buffering.
39498 2004-08-10 09:08 jackson
39500 * Control.cs: Control will now handle the buffering code, so each
39501 control does not have to implement this.
39503 2004-08-10 08:34 jackson
39505 * XplatUIDriver.cs: Use default colors from the theme
39507 2004-08-09 17:12 pbartok
39510 - Fixed several bugs Ravindra pointed out
39512 2004-08-09 16:11 pbartok
39515 - Added incomplete dock layout code
39516 - Added support for mouse wheel
39518 2004-08-09 16:09 pbartok
39521 - Added handling for middle and right mousebutton
39522 - Added handling for mouse wheel
39523 - Added handling for key state and mouse state and position
39524 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39527 2004-08-09 15:40 jackson
39529 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39530 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39533 2004-08-09 15:37 jackson
39535 * StatusBar.cs: Initial implementation of StatusBar
39537 2004-08-09 15:36 jackson
39539 * ITheme.cs: Add support for drawing status bar and getting status
39542 2004-08-09 15:35 pbartok
39547 2004-08-09 15:34 jackson
39549 * ThemeWin32Classic.cs: Add support for drawing status bar and get
39550 status bar item sizes
39552 2004-08-09 15:21 jackson
39554 * ThemeWin32Classic.cs: Use known colors for default control
39557 2004-08-09 15:12 jackson
39559 * ThemeWin32Classic.cs: Make the default font static, it is static
39560 in control so this doesn't change functionality and creating fonts
39563 2004-08-09 14:56 pbartok
39566 - Added GrabMode enum
39568 2004-08-09 14:55 pbartok
39570 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39571 - Removed Run method, was only required for initial development
39573 2004-08-09 14:51 pbartok
39575 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39576 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39579 2004-08-09 13:48 pbartok
39582 - Fixed default sizing for child windows
39584 2004-08-09 12:56 pbartok
39587 - Added generation of WM_DESTROY message
39588 - Added handling of window manager induced shutdown
39590 2004-08-09 11:31 jackson
39592 * ThemeWin32Classic.cs: New names for control properties
39594 2004-08-09 11:25 jackson
39596 * Control.cs: Use new color names
39598 2004-08-09 11:02 jackson
39600 * XplatUI.cs: Get default window properties from the theme
39602 2004-08-09 11:01 jackson
39604 * ITheme.cs: The theme engine now controls default window
39607 2004-08-09 11:00 jackson
39609 * ThemeWin32Classic.cs: Add default window color properties
39611 2004-08-09 10:17 jackson
39613 * ThemeWin32Classic.cs: Use correct default back color
39615 2004-08-09 10:05 jackson
39617 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39620 2004-08-09 09:56 jackson
39622 * XplatUI.cs: Remove defaults, these are handled by the theme now.
39624 2004-08-09 09:54 jackson
39626 * Control.cs: Get default properties from the theme.
39628 2004-08-09 09:53 jackson
39630 * ITheme.cs: Themes now handle default control properties
39632 2004-08-09 09:53 jackson
39634 * ThemeWin32Classic.cs: Themes now handle default control
39635 properties so coloring will be consistent
39637 2004-08-08 16:54 jordi
39639 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39641 2004-08-08 15:08 jordi
39643 * XplatUIX11.cs: fixes keyboard crash
39645 2004-08-08 13:47 jordi
39647 * Label.cs: add cvs header info
39649 2004-08-08 12:09 jackson
39651 * ThemeWin32Classic.cs: Add pen_buttonface
39653 2004-08-08 11:52 jordi
39655 * Label.cs, LinkLabel.cs: [no log message]
39657 2004-08-08 11:34 jordi
39659 * ThemeWin32Classic.cs: Use Windows Standard Colours
39661 2004-08-07 17:32 jordi
39663 * TrackBar.cs: throw exceptions of invalid enums values
39665 2004-08-07 17:31 jordi
39667 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39670 2004-08-07 16:56 jackson
39672 * HorizontalAlignment.cs: Initial checkin
39674 2004-08-07 13:16 jordi
39676 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39679 2004-08-07 13:05 jordi
39681 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39682 GetSysColor defines
39684 2004-08-06 18:01 pbartok
39686 * ThemeWin32Classic.cs:
39687 - Fixed some rounding issues with float/int
39689 2004-08-06 18:00 jackson
39691 * DockStyle.cs, AnchorStyles.cs:
39693 Add flags and serializable attributes.
39695 2004-08-06 17:46 pbartok
39698 - Implemented GetParent
39700 2004-08-06 17:18 pbartok
39703 - Fixed some rounding issues with float/int
39705 2004-08-06 17:17 pbartok
39707 * X11Structs.cs, XplatUIX11.cs:
39708 - Fixed Refresh and Invalidate
39710 2004-08-06 15:30 pbartok
39712 * Control.cs, X11Structs.cs, XplatUIX11.cs:
39713 - Fixed recursive loop when resizing
39714 - Improved/fixed redrawing on expose messages
39716 2004-08-06 09:53 jordi
39718 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39719 keyboard navigation
39721 2004-08-06 08:02 pbartok
39723 * X11Structs.cs, XplatUIX11.cs:
39724 - Fixed reparenting
39725 - Fixed window border creation
39727 2004-08-05 15:38 pbartok
39730 - Attempted fix for reparenting problems
39732 2004-08-04 15:14 pbartok
39735 - Fixed Invalidation bug (calculated wrong client area)
39736 - Added ClientSize setter
39738 2004-08-04 15:13 pbartok
39741 - Added AutoScale properties
39743 2004-08-04 15:13 pbartok
39746 - Added latest files
39748 2004-08-04 14:11 pbartok
39750 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39752 - Added Invalidate handling
39754 2004-08-03 17:09 jordi
39756 * XplatUIDriver.cs: fixes spelling mistake
39758 2004-07-27 09:53 jordi
39760 * TrackBar.cs: fixes trackbar events, def classname, methods
39763 2004-07-27 09:29 jordi
39765 * ScrollBar.cs: fixes scrollbar events
39767 2004-07-27 04:38 jordi
39769 * Control.cs: changes to be able to run winforms samples
39771 2004-07-26 11:42 jordi
39773 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39774 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39776 2004-07-26 05:41 jordi
39778 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39779 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39782 2004-07-22 09:22 jordi
39784 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39785 check link overlapping, implement events, and fixes
39787 2004-07-21 10:28 jordi
39789 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39791 2004-07-21 10:19 jordi
39793 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39794 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39795 LinkLabelLinkClickedEventArgs.cs,
39796 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39797 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39800 2004-07-19 13:09 jordi
39802 * Control.cs, Label.cs: label control re-written: added missing
39803 functionlity, events, and properties
39805 2004-07-19 10:49 jordi
39807 * Control.cs: fixes SetBounds logic
39809 2004-07-19 01:29 jordi
39811 * Control.cs: Call RefreshWindow only if the window has created
39813 2004-07-15 14:05 pbartok
39815 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39816 - Implemented ImageList and ImageList.ImageCollection classes
39817 - Added ColorDepth enumeration
39818 - Updated SWF VS.Net project
39820 2004-07-15 11:06 jordi
39822 * XplatUIStructs.cs: added MsgButons enum
39824 2004-07-15 11:03 jordi
39826 * Control.cs: added basic mouse handeling events
39828 2004-07-15 03:38 jordi
39830 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39831 Vertical TrackBar control implementation
39833 2004-07-13 09:33 jordi
39835 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39837 2004-07-13 09:31 jordi
39839 * Control.cs, Form.cs: commit: new properties and fixes form size
39842 2004-07-09 14:13 miguel
39844 * ProgressBar.cs: Spelling
39846 2004-07-09 11:25 pbartok
39849 - Removed usage of Rectangle for drawing. Miguel pointed out it's
39852 2004-07-09 11:17 miguel
39854 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
39856 * ProgressBar.cs: Fixed spelling for `block'
39858 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39861 Avoid using the += on rect.X, that exposed a bug in the compiler.
39863 2004-07-08 23:21 pbartok
39865 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39866 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39867 BaseCollection.cs, Binding.cs, BindingContext.cs,
39868 BindingMemberInfo.cs, BindingsCollection.cs,
39869 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39870 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39871 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39872 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39873 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39874 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39875 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39876 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39877 FrameStyle.cs, GiveFeedbackEventArgs.cs,
39878 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39879 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39880 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39881 InputLanguageChangedEventArgs.cs,
39882 InputLanguageChangedEventHandler.cs,
39883 InputLanguageChangingEventArgs.cs,
39884 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39885 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39886 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39887 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39888 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39889 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39890 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39891 QueryAccessibilityHelpEventArgs.cs,
39892 QueryAccessibilityHelpEventHandler.cs,
39893 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39894 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39895 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39896 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39897 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39898 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39899 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39900 XplatUIX11.cs, lang.cs: