1 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * ToolStripDropDown.cs: When performing the layout, use
4 ToolStripItem.GetPreferredSize ().Height instead of
5 ToolStripItem.Height, since we are already using it that way in this
7 Fixes part of ##483146.
9 2009-05-08 Brad Taylor <brad@getcoded.net>
11 * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
12 OnUIASelectionChanged when ShowCheckbox is true and the checkbox
13 recieves focus. Part of fix for #502029.
15 2009-05-06 Mike Gorse <mgorse@novell.com>
17 * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
18 Add PerformClick and PerformDoubleClick to PopupButton.
21 2009-05-04 Andrés G. Aragoneses <aaragoneses@novell.com>
23 * TabControl.cs: call Focus() to emit GotFocus event at the
24 proper time when SelectionIndex changes. Fixes #499887.
26 2009-05-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
28 * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
29 have valid values, even if BoundSpecified is not including
30 Size/Height/Width - this is useful when we are in a control using Dock
32 Fixes part of #483146.
34 2009-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
36 * ComboBox.cs: When losing the focus, if our textbox is not null,
37 close its auto complete list, if any.
38 Fixes part of #489339.
40 2009-04-27 Andrés G. Aragoneses <aaragoneses@novell.com>
42 * ListView.cs: Make OnColumnClick +internal to be used by a11y.
44 2009-04-27 Brad Taylor <brad@getcoded.net>
46 * ToolStripButton.cs: Emit an internal event when CheckOnClick is
49 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
51 * XplatUIX11.cs: Properly support UTF8 when handling the
52 SelectionRequest event - this is helpful supporting some window
53 managers, such KDE, that explictly request the text in utf8, as
54 opposed to gnome, that supports ascii.
57 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
59 * ToolStripDropDownItem.cs: When assigning a new
60 ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
61 Capture duties performed by Application/ToolStripManager are handled
62 nicely and we don't end up in an inconsisten stat.
65 2009-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
67 * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
68 any ToolStripDropDownItem when receiving a mouse down event in an
71 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
73 * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
75 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
77 * ToolBarButton.cs: rename a method to include UIA prefix.
79 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
81 * ToolBarButton.cs: change visibility of some UIA methods from
82 protected virtual to private.
84 2009-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
86 * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
87 fire OnDropDownOpened/OnDropDownClosed depending on the new
88 visibility. This also ensures that any direct access to this instance
89 will fire the mentioned events for the OwnerItem.
90 * ToolStripDropDownItem.cs: Remove the invocations to
91 OnDropDownOpened/OnDropDownClosed, since they are handled in
92 ToolStripDropDown, as well as updating the
93 OnDropDownHide/OnDropDownShow calls to be in the right order.
96 2009-04-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
98 * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
99 shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
100 event is the same as the owner of the menu item. Also set properly
101 SourceControl for ContextMenuStrip, as well as add an internal field to
102 contain the control that owns the ContextMenuStrip (we need to know this
103 even before the public property is assigned).
104 Fixes bits of #393775.
106 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
108 * StatusStrip.cs: Use the same icon as .net when the mouse is over the
112 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
114 * ComboBox.cs: When calculating the height of the ComboListBox,
115 specially for the 2.0 profile, use MaxDropDownItems if the
116 DropDownHeight property hasn't been set, and use the later if it has
117 been set. This way we support both properties.
120 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
122 * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
125 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
127 * ContainerControl.cs: Implement support for Control.CausesValidation,
128 by adding a pending list of controls to be validated in the top
129 container control, and postpone validation as needed.
130 Also remove any control in the validation chain in case it gets removed
131 from its owner before the pending validation actually happens.
134 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
136 * ListBox.cs: The default instance StringFormat field used to draw our
137 items should use the StringFormatFlags.NoWrap value, so it doesn't try
138 to put in a different line the text that doesn't fit our bounds, but
142 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
144 * CheckedListbox.cs: When executing OnItemClick check that the index
145 is different to -1 before trying to retrieve an item using that value.
146 Fixes a ArgumentOutOfRangeException thrown when the horizontal
147 scrollbar was visible but not needed, and then a clicked was received
150 2009-04-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
152 * MaskedTextBox.cs: If Insert is pressed, change the internal
153 overwrite mode for our default value.
154 Fixes some bits of #477395.
156 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
158 * ListView.cs: In EnsureVisible avoid any direct access to items if we
159 are using virtual mode - otherwise use the bounds stored in a specific
160 item in a given index. This is specially important when using groups
161 or when items are re-arranged, since the position in the items
162 collection can be different than that one being displayed.
163 Fixes the rest of ##491978.
165 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
167 * ThemeWin32Classic.cs: Include the previous check for ListView in a
168 2.0 define as needed.
170 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
172 * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
173 Fixes part of #491978.
175 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
177 * ToolTip.cs: New fields to store the title/icon information.
178 * ThemeWin32Classic.cs: Implement support for tooltip's title and
182 2009-04-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
184 * TabControl.cs: When removing a tab that was previously selected, set
185 internally the value of selected_index to -1, to avoid trying to
186 access the previous one when trying to set the new one (and was
187 already removed from the collection). This is what .net seems to do
191 2009-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
193 * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
194 separated, and we cannot fallback on Text if Rtf is requested but not
196 * Clipboard.cs: Actually use the format specified by our user when
199 2009-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
201 * X11Clipboard.cs: Actually look for the RtfText format when calling
202 GetRftText in our clipboard formats list, instead of using the
203 generical Text format.
205 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
207 * TextBox.cs: Process auto completion properly when we are using the
208 internal source provided by ComboBox, and also remove some repeated
212 2009-03-30 Tom Hindle <tom-hindle@sil.org>
214 * DataGridView added Support for Invisible Columns to
215 AutoFillColumnsInternal method.
217 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
220 * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
221 its own file, since it is adding some functionality and thus is not a
222 simple struct as before.
223 * XplatUIX11.cs: Add support to store different formats that could
224 have been specified by the user when puting data in the Clipboard -
225 this is important when more than one format is supported (such plain
226 text and rtf text). Update in the needed places, as well as simplify
230 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
232 * XplatUIX11.cs: When handling the SelectionRequest event, use
233 SelectionRequestEvent instead of SelectionEvent, so we get the right
234 data for the app asking for clipboard data. Set the member of
235 SelectioneEvent.property to indicate the place where we are storing
236 the information as well - this is specially important for gnome/kde
237 apps using the TARGETS atom to ask for the supported permission before
238 actually asking for a specific format.
241 2009-03-28 Ivan N. Zlatev <contact@i-nz.net>
243 * DataGridViewCell.cs: We don't support drawing all types of cell borders,
244 so fallback and at least draw something instead of nothing.
246 2009-03-27 Ivan N. Zlatev <contact@i-nz.net>
248 * DataGridView.cs: If the column header isn't visible allow resizing
249 using the cell column border. Also be sure to reset the cursor properly.
252 2009-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
254 * ToolStrip.cs: When disposing, iterate over the items in reverse
255 order, since disposing the items modifies the collection.
256 * ToolStripItem.cs: Remove from the owner when disposing.
259 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
261 * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
262 longer throws a NotImplementedException.
263 Based on a patch by Tom Hindle <tom_hindle@sil.org>
266 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
268 * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
269 NotImplementedException.
271 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
273 * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
274 Fix SortMode clash handling.
277 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
279 * DataGridView.cs: Do not show the vertical scrollbar if there is only
280 one row or less. For the sake of MSNET compatibility.
283 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
285 * DataGridView.cs: When the current cell is moved out of the editing row
286 be sure to reset it back to a place holder row.
288 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
290 * DataGridView.cs: If IsHandleCreated and the very first row is added
291 to the grid in a non-databound scenario - select the first cell.
294 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
296 * DataGridView.cs: If we are not databound and empty once the first row
297 gets added select the first cell.
300 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
302 * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
303 DataGridView. They do not belong to a DataGridView.
306 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
308 * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
309 Set indices and associate with DataGridView only after the item is
310 add to the internal list.
311 [Fixes part of bug #486645]
313 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
315 * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
316 FullRowTemplate already contains all the cells.
317 [Fixes part of bug #486645]
319 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
321 * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
322 to perform Pre and Post removal actions to allow the current cell to be
323 moved and all events fired properly before the column is removed.
325 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
327 * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
328 Post removal action to allow the current cell to be moved and all events fired
329 properly before the row is removed.
331 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
333 * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
336 2009-03-18 Jonathan Pobst <monkey@jpobst.com>
338 * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
339 placement of popup windows on OSX.
341 2009-03-18 Matt Guo <matt@mattguo.com>
343 * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
346 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
348 * DataGridView.cs: Implement the CellMouseDoubleClick event.
351 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
353 * DataGridView.cs: Fix scrolling to take into account that the
354 scrollbars are actually inside the client area of the datagridview.
356 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
358 * DataGridView.cs: Implement mouse wheel scrolling.
361 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
363 * DataGridView.cs: When DataSource changes the rebinding should happen
364 not if IsHandleCreated but if BindingContext != null.
367 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
369 * DataGridView.cs: Browsable(false) properties should be skipped when
370 autogenerating the columns.
373 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
375 * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
376 user should use a different handling, trying to use every pressed char
377 as a unique and only one prefix to compare against the items. Also,
378 refactor some input check code to avoid duplication.
381 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
383 * DataGridViewCell.cs: In OwningColumng Handle invalid column index
387 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
389 * DataGridViewBand.cs: Update our State whenever a property changes.
390 * DataGridView.cs: Don't be so generous in reseting Displayed, because
391 it will spawn lots and lots of unneeded State changed events.
394 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
396 * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
397 Add support for invisible rows and columns.
400 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
402 * DataGridViewCell.cs: Escape literal { in ToString.
403 * DataGridViewTextBoxCell.cs: Fix ToString.
406 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
408 * MenuAPI.cs: When navigating items using the keyboard properly handle
409 the case when no item is selected - this way we should try to select
410 the first or the last item depending on the direction, but no the
411 second or third one, etc.
413 2209-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
415 * Form.cs: When calling ProcessCmdKey, just after checking for any
416 MainMenu, check if there's an active ContextMenu that is *not* owned
417 by the form - this is needed when a non-focusable control owns a
418 ContextMenu but its ProcessCmdKey method can't be called since it
419 can't receive any input.
422 2009-03-13 Neville Gao <nevillegao@gmail.com>
424 * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
425 * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
426 ContextMenu is displayed.
428 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
430 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
431 WM_HELP message for the associated window, don't call
432 NativeWindow.WndProc *at all*, since this could send a WM_*
433 key-related to Control.WndProc. Also, return the keypress message, in
434 case it needs to be preprocessed for any menu.
437 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
439 * DataGridView.cs: When removing the first displayed row and moving
440 the current cell up one we must invalidate the first displayed row
441 index before calculating the row heights, etc.
444 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
446 * DataGridView.cs: Fix three column bugs:
447 - Rows should be cleared (but not removed) if columns become 0.
448 - The current cell should get moved
449 - ColumnCount increase was adding too many columns.
451 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
453 * DataGridView.cs: Fix RowCount decrease which wasn't working well
454 in both scenarions - with and without editing row.
456 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
458 * DataGridView.cs: Be compatible with MS in that the scroll to
459 selection has a synchronous effect. The trick here is that in
460 order to avoid unnecessary calculations each time a row/column
461 is added/removed we recalculate the whole grid size just before
462 just before the scroll to selection.
465 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
467 * RichTextBox.cs: LoadFile(string path) should pass by default
468 RichTextBoxStreamType.RichText, without caring about the detection or
469 extension of the file.
471 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
473 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
474 introduced by StreamReader, since it will convert the EOF to an EOL.
477 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
479 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
480 preferred size twice.
482 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
484 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
485 string if we aren't on a ToolStripDropDownMenu.
487 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
489 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
490 code from Item to Button. Patch from Alex Shulgin.
492 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
494 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
495 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
496 not a ToolStripDropDown.
497 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
499 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
501 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
503 Based on a patch by Tom Hindle <tom_hindle@sil.org>
506 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
508 * DataGridView.cs, DataGridViewElement.cs:
509 - Always calls OnDataGridViewChanged() if the new DGV is
510 not the same/null as the current one.
511 - Do not throw NREs when setting TopLeftHeaderCell to null
512 - Unset the DGV for TopLeftHeaderCell when replacing it
513 Based on a patch by Tom Hindle <tom_hindle@sil.org>
516 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
518 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
519 hit a NRE if we are a ContextMenuStrip and do not have a parent.
522 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
524 * ListView.cs: When removing items from a ListViewItemCollection
525 contained in ListView (not in ListViewGroup), before actually removing
526 the items remove them also from their -if any- associated groups. If
527 the item is present in ListViewGroup.Items but not in ListView.Items,
528 then don't remove it - this is *exactly* what .net seems to do.
529 Fixes the remaining bits of #478689.
531 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
533 * ListView.cs: In our MouseDown handler in ItemControl use the item in
534 the very specific *real* position where the mouse was pressed, using
535 GetItemAtDisplayIndex for that purpose, instead of directly accessing
536 Items - this is specially useful when groups with Details view is
537 used. This is what we do in other places when using groups.
538 Fixes part of #478689.
540 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
542 * MaskedTextBox.cs: Properly replace selection when a new valid key
543 is pressed - even when IsOverwriteMode is false. This is what .net
546 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
548 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
549 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
550 since Set will keep the previous value in case of error (just what we
551 need), but still call MaskedTextProvider.Clear if
552 RejectOnFirstFailure is false - match .net.
554 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
556 * MaskedTextBox.cs: When setting Text use the very precise algorithm
557 that .net uses: iterate over every char of the new value, trying to
558 use every char, and use a normal call to MaskedTextProvider.Replace
559 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
560 in case of error in both cases, as well.
563 2009-02-25 Neville Gao <nevillegao@gmail.com>
565 * ColorDialog.cs: Added UIA Framwork Property:
566 UIASelectedSmallColorControl.
568 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
570 * MaskedTextBox.cs: Forgot to update the call of the new method
571 introduces in the previous patch.
573 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
575 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
576 key. Also create a new method to avoid code duplication between
577 OnKeyDown and OnKeyPress.
580 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
582 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
586 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
588 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
589 actually inversed, so put it the right way. Also, don't automatically
590 look for the next editable item after adding a new one, but way for
591 the next insertion (this is what .net does) - this is not needed when
592 MaskedTextProvider.InsertAt is called however, since it already looks for the
593 next editable position.
594 Fixes the remaining bits of #477383.
596 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
598 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
599 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
600 property after the text was modified, adjust the testPosition value
601 depending on what method was called.
602 Fixes part of #477383.
604 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
606 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
607 the existence of the column headers, as well as using this information
608 to adjust the vscrollbar value, so items never get hidden by the
612 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
614 * DataGridView.cs: Make the ScrollBars property work properly.
616 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
618 * TextBox.cs: Some code lifting for AutoComplete's support. First,
619 when handling non-navigation keys, save the original Text typed by the
620 user, and don't motify it BEFORE. This was a design mistake, since the
621 re-assignation happens only when navigating the append/suggest list,
622 not while creating the matches. Also, process the Delete key just like
623 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
625 Fixes some missing bits of #469967.
627 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
629 * DataGridView.cs: Fix row removal in the data-bound scenario.
631 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
633 * DataGridViewCell.cs: Use strict equality comparison in order to
634 prevent superfluous CellValueChanged events.
636 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
638 * DataGridView.cs: Do not reset the columns when the data list changes,
639 but only the rows. Fixes multiple bugs related to sorting, custom
640 column styles being reset and more.
642 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
644 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
647 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
649 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
651 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
653 * ToolBarButton.cs: Event for Enabled property (needed to fix
656 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
658 * TextBox.cs: When handling WndProc with autocomplete activated,
659 event if the new text is not causing any change in the look up
660 algorithm, save it as we normally do when numbers and letters.
663 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
665 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
666 Invalidate the proper bounds in the TreeView, not only resetting the
670 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
672 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
673 BackColor property. This is what .net does in both 1.1 and 2.0.
674 * TreeView.cs: When selected_node is not the same as highlighted_node,
675 we need to handle the back color in a different way, trying to use the
676 node's BackColor if it's not Color.Empty.
679 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
681 * TreeView.cs: When canceling selection in our MouseUp handler,
682 invalidate also the previous selected node bounds.
685 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
687 * DataGridView.cs: End or if end fails then cancel the current edit
688 operation before clearing the data source.
690 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
692 * DataGridView.cs: Data-bind only after the handle is created.
695 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
697 * TreeView.cs: When handling the MouseMove event, check if
698 focused_node and selected_node fields are null - usually they are non
699 null, since we have always a selected node, but canceling selection by
700 handling BeforeSelect event leaves the two of them as null.
703 2009-02-06 Neville Gao <nevillegao@gmail.com>
705 * TabControl.cs: Control enabled to support accessibility.
708 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
710 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
711 - Use ArrayList.Insert instead of the Item property so that the item
712 is actually inserted and not an existing item replaced.
713 - Call DataGridView.OnRowsAddedInternal and drop internal from
714 OnRowsAdded for binary compitability. This also fixes several
718 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
720 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
723 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
725 * ToolBarButton.cs: Add another event (OnUIATextChanged).
727 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
729 * ToolBarButton: Fix typo in previous commit (r125704).
731 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
733 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
734 when a button gets focus, firing the events from the ToolBar.
737 2009-02-04 Mario Carrion <mcarrion@novell.com>
739 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
741 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
742 ColumnHeader to raise ColumnWidthChanged.
745 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
747 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
748 code in the row collection code, so that the completion happens before
749 the CollectionChanged event, also better encapsulation.
752 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
754 * DataGridView.cs: When editing is finished do not remove the editing
755 row, because it has already become a real one. Instead add a new one.
758 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
760 * TreeView.cs: When drawing the node's image, check that the index
761 specified by the node is valid for the ImageList.
764 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
766 * ToolBar.cs: Add new UIAPerformClick method to be called by
767 UIAutomationWinforms when someone calls Invoke() on the
768 ToolBarButtonProvider. r: jpobst
770 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
772 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
773 MapNotify/UnmapNotify events - we are already firing those events in
774 the proper places, so we avoid this way to send the same message two
775 times. I'm leaving the handling code in case we could break something
776 in the future, as this change seems dangerous (but needed).
779 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
781 * DataGridView.cs: Complete incomplete rows when they are added to
785 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
787 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
788 binding is cleared prior to setting it to null. Fixes a regression
789 causing exceptions when the DataSource is set to null and then set
790 again to a data source.
792 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
794 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
795 - Make Image/Bitmap cells work.
796 - Handle images with size greater than the cell.
797 - Default to MiddleCenter alignment for image cells.
800 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
802 * UpDownBase.cs: Force Height to PreferredHeight.
804 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
806 * XplatUIX11.cs: We should use utf8 handling clipboard transference
807 with other x11 applications, and use utf16 when handling clipboard
808 data in the class library. Update the related points as well.
811 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
813 * DataGridViewCell.cs: Format strings according to the supplied
817 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
819 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
820 addition or removal. Fixes multiple crashes in OnMouseMove.
822 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
824 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
826 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
828 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
832 2009-01-26 Andreia Gaita <avidigal@novell.com>
834 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
835 won't be disabled by default.
838 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
840 * DataGridView.cs: Do not clear the rows if we are not databound.
842 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
844 * DataGridView.cs: Do not be too smart about selecting the first cell
845 when the first row is added as this is not what MS does. Fixes the
848 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
850 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
851 take into account the fact that OpenTreeNodeEnumerator needs to call
852 MoveNext/MovePrevious to actually put the passed node as the one
853 retrieved in Current. This way this property should work as really
855 Fixes part of #467225.
857 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
859 * TreeView.cs: When calculating the scrollbars, don't use
860 TreeNode.Bounds, since it still can have the values of the previous
861 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
862 could not have been updated as well-, and use the actual number of
863 visible number of nodes to compute the height needed to contain all
864 the nodes. Also reset the value of vbar to 0 when disabled - this way
865 we make sure that, when re-enabled, it will update the visible area of
866 the treeview, even if the previous value before disabling it is the
867 same as now. Finally don't do anything for the vbar.ValueChanged
868 handler - for the case wheer we manually set the value but don't the
869 vbar is disabled already.
870 Fixes part of #467225.
872 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
874 * ToolStrip.cs: Switch from foreach to for, in case the collection
875 somehow changes while enumerating it.
877 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
879 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
882 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
884 * DataGridView.cs: Fix new row adding/editing in the non-databound
887 2009-01-21 Mike Gorse <mgorse@novell.com>
889 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
891 Added UIAValueParamChangedEvent.
893 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
895 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
896 of trying to set as top node the highest parent of the previous top
897 node. Moving to the bottom of the TreeView after a call to CollapseAll
898 is exactly what .net does. This should avoid some nasty issue when
899 CollapseAll is called and we don't need the vertical scroll bar.
901 2009-01-21 Mario Carrion <mcarrion@novell.com>
903 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
904 and UIATopMostChanged.
906 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
908 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
909 UIAEnabledChanged, and UIATextChanged events.
911 * Form.cs: Add UIAMenuChanged event.
914 * MenuAPI.cs: Note which internal APIs are being used by UIA.
916 2009-01-21 Neville Gao <nevillegao@gmail.com>
918 * ToolBar.cs: Control enabled to support accessibility.
921 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
923 * TreeView.cs: When handling mouse up event, check whether
924 highlighted_node is null or not - usually it should be non-null
925 alwaays, since the mouse down handler sets it, but some externa
926 operations, such TreeNodeCollection.Clear, could set it to null.
929 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
931 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
934 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
936 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
939 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
941 * MonthCalendar.cs: When handling the selection changes using the
942 mouse, don't set SelectionRange if the selection range didn't actually
943 change. This matters because, even if we set the range to the same
944 previous range, an extra DateChanged event is fired. Just to be clear:
945 SelectionRage property doesn't check whether the new value is
946 different to the previous one (by ref equals doesn't work here).
947 Fixes other bits of #364914.
949 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
951 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
952 selection using the keyboard, since we are already firing this event
953 when setting SelectionRange. Also don't set SelectionRange if the
954 previous and the new value are the same (the property, just as .net
955 does, doesn't check whether the previous value and the new one are the
956 same). This saves us from firing OnDateChanged event if the selection
957 range didn't change actually.
958 Fixes the remaining bits of #364914.
960 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
962 * ListBox.cs: When removing an item and the last item is selected,
963 remove it from the selection, and if selection mode is One try to
964 select the new last item.
967 2009-01-16 Mike Gorse <mgorse@novell.com>
969 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
971 2009-01-16 Mario Carrion <mcarrion@novell.com>
973 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
976 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
979 * XplatUIX11.cs: Properly encode/decode the unicode strings we
980 store/retrieve in the Clipboard. Also, since we try to convert the
981 data to different formats, separate the source and the result of
982 it, so we can always fallback to the original and don't mix wrong
985 2009-01-16 Mike Gorse <mgorse@novell.com>
987 * TextControl.cs: Add UIASelectionChanged event.
989 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
991 * DataGridView.cs: Forward the first key events to the editing control.
994 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
996 * Application.cs: Oops, launch the copied handler of PreRun instead of
997 the global one (gendarme would bark otherwise). (Improving r123375)
999 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
1002 * Application.cs: Move the PreRun event fire to the end of the XplatUI
1003 static ctor (we don't move the PreRun event to this class because its
1004 usage would cause the call to the static ctor). This way we can get
1005 a11y support for dialogs that run without App.Run.
1007 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
1009 * ListView.cs: New internal property to know the inner array's length of
1010 the location of items, in order to avoid a try-catch strategy for the
1011 case when this array has not been resized yet (for reference, look at
1014 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
1016 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1017 reflection calls. This requires UIAutomationWinforms r123213.
1019 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1021 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1022 handlers and fire the DateSelected event until MouseUp is reached,
1023 like .net does, instead of firing it for each mouse event.
1024 Fixes part of #364914.
1026 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1028 * TreeView.cs: When the selection gets canceled using the BeforeSelect
1029 event, invalidate the previous highlighted_node bounds, to show the
1030 user that the item was *not* selected.
1033 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1035 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1036 well as -in DropDown and Simple modes- writing in the textbox should
1037 try to set the requested item as the top one, but navigating with the
1038 keyboard and handling mouse selection don't need that behaviour. Also,
1039 when resetting selected_index handling key press events, reset
1040 ComboListBox.HighlightIndex.
1041 Fixes the remaining bits of #464188.
1043 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1045 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
1047 - CurrentCellAddress should be -1, -1 and not 0, 0.
1048 - Be tolerant and fall back to clearing the current cell if either
1049 column or row is -1 in MoveCurrentCell.
1050 - Misc. more -1 checks.
1052 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1054 * DataGridView.cs: Preserve the column index. Fixes a regression
1055 introduced by the data binding position tracking code.
1057 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1059 * DataGridView.cs: If the bottom of the row matches the client height
1060 do not regard the row as partially visible. Fixes the weird scrolling
1061 when there is no scrollbar.
1063 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
1065 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1067 2009-01-09 Mario Carrion <mcarrion@novell.com>
1069 * MessageBox.cs: Fixed internal UIAIconRectangle property.
1071 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1073 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1075 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1077 * DataGridView.cs: Track the Position in the CurrencyManager.
1079 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1081 * DataGridView.cs: Implement data-bound new item editing/addition.
1082 * DataGridViewRowCollection.cs: Make it possible for us to internally
1083 remove the edit row.
1084 [Fixes bugs #457107, #457308, #325240]
1086 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1088 * CurrencyManager.cs: Even if Position is set to a greater value than the
1089 list count reset it to position of the last item.
1091 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1093 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
1094 Fix that in order to make CancelNew to work.
1096 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1098 * BindingSource.cs: When adding a new item try to delegate to the internal
1099 list first before throwing an exception.
1101 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1103 * ComboBox.cs: When setting the text and adjusting the top_item, do it
1104 *only* if the current item is *not* visible already.
1105 Fixes part of #464188.
1107 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
1109 * DataGridView.cs: Requesting the CurrencyManager for the first time can
1110 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
1114 2009-01-08 Brad Taylor <brad@getcoded.net>
1116 * ComboBox.cs: Expose a few private fields as internal UIA properties.
1118 2009-01-07 Mario Carrion <mcarrion@novell.com>
1120 * DataGrid.cs: CWL removed.
1122 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1124 * RadioButton.cs: When setting Checked, we should first update the
1125 check state of the current RadioButton, as well as invalidating it,
1126 and after that actually update the siblings. This is done to match
1128 Fixes the remaining bits of #463028.
1130 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1132 * RadioButton.cs: Setting Checked to false should set TabStop to stop
1133 as well. Also, when we get the focus and no other RadioButton is
1134 selected in the parent control, we should mark ourselves as Checked.
1135 Fixes part of #463028.
1137 2009-01-05 Mario Carrion <mcarrion@novell.com>
1139 * DataGrid.cs: UIA suppport. internal events:
1140 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
1141 UIASelectionChanged, UIACollectionChanged. Internal properties:
1142 UIARowHeight, UIACellsArea, UIACaptionArea,
1143 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
1144 UIAVScrollBar and UIAHScrollBar.
1146 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
1148 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1149 of the buttons are set to Overflow = Always.
1152 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1154 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1155 based on whether the binding source is availble or not. Fixes #463008.
1157 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
1159 * DataGridViewCell.cs: We should return a value even if we are not bound
1162 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1164 * CurrencyManager.cs, DataGrid.cs:
1165 - Rename CanAddRows to AllowNew. The CurrencyManager has no
1167 - Add two more internal properties AllowRemove and AllowEdit.
1168 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
1169 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
1170 CurrencyManager data source.
1172 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1174 * DataGridView.cs: Fix crashes caused by assigning negative values to
1175 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
1176 the column/row heights/widths.
1179 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1181 * DataGridView.cs: Non-autogenerated columns that have a data property
1182 set that exists in the current datasource should be set to be data-bound.
1184 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1186 * DataGridView.cs: Fix column sorting for columns containing null
1187 values. A "null" value is not always "null" (e.g could be String.Empty)
1188 and thus parsing numeric types throwed an exception for "null" values.
1190 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1192 * DataGridView.cs: Detach the editing control when the edit is
1195 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1197 * DataGridView.cs: Multiple fixes to handle last column/row removal
1198 and cell movement after that instead of throwing exceptions.
1200 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
1202 * DataGridViewCellCollection.cs: When cells are removed the column
1203 indices become invalid if the cell is not the last one and have to
1206 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1208 * DataGridView.cs: Return false in CommitEdit if there was an error.
1210 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1212 * DataGridView.cs: Remove a leftover Console.WriteLine.
1214 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1216 * DataGridViewRow.cs: Access the indexer of the data manager directly
1217 instead of the internal list.
1219 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1221 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
1222 Rewrite the value getting, setting, parsing, formatting logic:
1223 - If data-bound value get/set should actually get and set from the
1225 - Make proper usage of TypeConverters for value parsing/formatting.
1226 - Raise DataError if setting the new value fails.
1227 - Get rid off the internal valueType field and get/set the ValueType
1231 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1233 * DataGridView.cs: Rewrite the DataBinding layer:
1234 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
1236 - Get rid off the per DataSource type column autogeneration code.
1237 - Use the CurrencyManager for everything that is DataBinding related.
1239 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
1241 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1243 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
1245 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
1246 DataManager to fetch the CurrencyManager for the DataGridView and to
1247 spare this logic for the other components to follow.
1249 2008-12-31 Mario Carrion <mcarrion@novell.com>
1251 * MessageBox.cs: UIA support: new properties: UIAMessage,
1252 UIAMessageRectangle and UIAIconRectangle.
1254 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
1256 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1257 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1259 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
1261 * DataGridView.cs: Do not autogenerate duplicate column for a
1262 data member that has already problematically been assigned one.
1265 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
1267 * ProfessionalColorTable.cs: Better detection of user's theme.
1270 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
1272 * DataGridView.cs: In the case where there are no autogenerated
1273 columns and the user adds columns problematically we must generate
1274 the rows after the very first column is added.
1276 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1278 * DateTimePicker.cs: When increasing/decreasing the value of month
1279 with ShowUpDown set to true, moving from december to january, and
1280 moving from january to december should adjust the year to the next and
1281 the previous year, respectively.
1282 Fixes the remaining bits of #459674.
1284 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
1286 * DataGridView.cs: If a new cell is selected edit mode should be
1287 immediately enabled only if EditOnEnter is set. Whether the mouse
1288 or not was used to select the cell is irrelevant.
1290 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
1292 * DataGridView.cs: Remove a bogus ReBind call, which was causing
1293 recursive rebinding.
1295 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1297 * DateTimePicker.cs: Handle the "MMMM" month format.
1300 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
1303 - Make ReBind private and refactor various calls to call ReBind
1304 instead of ClearBinding/DoBinding
1305 - Rebind when the column collection changes
1306 * DataGridViewColumnCollection.cs:
1307 - Leave the rebinding on change to be handled by the DataGridView.
1309 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
1311 * DataGridView.cs: Add a ReBind convenience method.
1312 * DataGridViewColumnCollection.cs: Rebind when a column is added.
1315 2008-12-23 Neville Gao <nevillegao@gmail.com>
1317 * StatusBar.cs: Modified argument variable.
1318 * SplitContainer.cs: Control enabled to support accessibility.
1321 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
1323 * ToolStripMenuItem.cs: Guard against an NRE.
1326 2008-12-22 Mario Carrion <mcarrion@novell.com>
1328 * Control.cs: AccessibleXXXX properties don't return
1329 AccessibleObject.XXXX, instead a local referece is returned.
1331 2008-12-22 Neville Gao <nevillegao@gmail.com>
1333 * PrintPreviewControl.cs: Added internal properties to support
1337 2008-12-19 Mario Carrion <mcarrion@novell.com>
1339 * Control.cs: Reverted r121561.
1341 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
1343 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1344 it has been moved to the bridge.
1346 2008-12-18 Brad Taylor <brad@getcoded.net>
1348 * DateTimePicker.cs: Add a few UIA specific events, and a couple
1349 internal methods useful for UIA.
1351 2008-12-18 Mario Carrion <mcarrion@novell.com>
1353 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1356 2008-12-17 Mike Gorse <mgorse@novell.com>
1358 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1359 item's Focused property is set.
1361 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
1365 * TreeNodeCollection.cs: Add events for UIA support:
1366 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1367 UIACollectionChanged.
1369 2008-12-17 Bill Holmes <billholmes54@gmail.com>
1371 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
1372 SubItemStyle member field.
1374 Contributed under MIT/X11 license.
1376 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1378 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1379 y coord, since it's useless in this case, and we need to rely only on
1380 the number of rows and ItemHeight to compute this value.
1381 Fixes part of #257471.
1383 2008-12-15 Mike Gorse <mgorse@novell.com>
1385 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1387 2008-12-15 Mario Carrion <mcarrion@novell.com>
1389 * Control.cs: Accessibility properties instantiate AccessibilityObject when
1393 2008-12-15 Brad Taylor <brad@getcoded.net>
1395 * ToolStripItem.cs: Add a UIA specific event for listening for when a
1396 ToolStripItem becomes selected or deselected.
1398 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1400 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1401 .net does. Use the date in the point of the mouse move coords as the
1402 new range as well, if the left button of the mouse is being pressed.
1405 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1407 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1408 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1409 effectively repaint the control.
1410 Fixes the remaining bits of #417961.
1412 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1414 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1415 range to contain only dates within the new possible range.
1416 Fixes part of #417961.
1418 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1420 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1421 length of the text, but the end position, so we need to substract 1 to
1422 have a valid value. Also, in the same InputText method, don't use
1423 SelectionLength as the length of the text, since the selected text
1424 could actually be empty, but we need to set the value anyway.
1427 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1429 * TextBox.cs: Don't do any auto complete task if the custom source is
1430 null or empty. Also avoid duplication of code.
1433 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
1435 * DataGridView.cs: Refresh column sizes when new rows are added.
1438 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1439 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1440 Split to create a line - we are already doing this, by _adding_ a new
1441 one when rtf_cursor_x is 0 (this field gets this value just after we
1442 receive the newline param as true). This avoids having a proportional number
1443 of empty lines in the end of the rich text box.
1446 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1448 * RichTextBox.cs: When saving the contents as a plain text, don't add
1449 a new line for every Line structure, since the data in Document
1450 already contains the new line characters. This avoids duplicated new
1451 lines using the Save methods.
1454 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
1456 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1457 framework. Fixes bug #457678.
1459 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1461 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
1462 where datasource is null.
1463 [Fixes exception reported in bug 441240]
1465 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1467 * DataGridView.cs: EndEdit validation fixes.
1469 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1471 * DataGridView.cs: This is the cool patch that adds support for
1472 actually updating the data in the databinding backend after editing.
1473 With bonus firing and handling the DataError event.
1475 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1477 * Line.cs: When calculating the text tags's Shift value, store it as
1478 pixels instead of points. This way we can actually handle different
1479 fonts in the same RichTextBox, as well as the right size of the caret.
1480 Fixes part of #351938.
1482 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1484 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
1485 casted to CheckState causing InvalidCastExceptions.
1487 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1489 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
1490 to not depend on the item being clicked.
1492 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1494 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
1495 longer throws a NotImplementedException.
1497 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1499 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
1500 IDataGridViewEditingControl for editing.
1502 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1504 * DataGridViewComboBoxCell.cs: Implement data binding support.
1506 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1508 * DataGridView.cs: Use the CurrencyManager to update the data source
1509 binding position instead of casting the data sourcde to BindingSource.
1510 This enables position updating for other type of data sources.
1512 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
1514 * ComboBox.cs: Update the SelectedIndex before updating the Text
1515 in OnDisplayMemberChanged.
1517 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
1519 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1522 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1524 * DataGridView.cs: Sorting fixes:
1525 - Be strict when sorting is enabled.
1526 - If there is a data source delegate the sorting request.
1528 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1530 * Binding.cs: When converting the data also try with the destination
1531 type typeconverter. This indirectly adds support for Nullable types
1532 in our databinding layer.
1534 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1536 * DataGridView.cs: When cell editing is finished focus back the
1537 DataGridView. Fixes keyboard navigation post-editing.
1539 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1541 * DataGridView.cs: Fix the cell editing by delaying the currentCell
1542 setting to after EndEdit is called for the old cell.
1544 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1546 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1548 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
1550 * XplatUIX11.cs: Send WM_HELP only to the focused window.
1552 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1554 * CurrencyManager.cs: Fix exceptions when resetting the data source
1555 for the same time (e.g. in ComboBox):
1556 - Do not set the list position if we are still transferring data
1557 - When resetting the list firstly push the data then update the
1559 * Binding.cs: Check BindingManager.Position == -1 instead of
1560 BindingManager.Current == null in order to avoid unexpected
1563 2008-12-05 Brad Taylor <brad@getcoded.net>
1565 * MonthCalendar.cs: Add UIA specific events so that we can know when
1566 the selection changes, and when MaxSelectedCount changes.
1568 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1570 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
1573 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1575 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1576 to the control being drawn for the first time by:
1577 - Implement DisplayedRowsCount to not rely on the control being
1578 already painted. Also added support for the partial row flag.
1579 - Fix scrolling to take into account partial rows and scroll to
1583 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1585 * DataGridView.cs: Do not reset the CurrentCell when the handle is
1586 created if the user has already set it.
1588 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
1590 * DataGridView.cs: Fix CurrentCell to actually select the cell.
1592 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1594 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1595 text and then let the underneath users of IDataObject interpret and
1596 parse by themselves.
1599 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1601 * DataGridView.cs: Fix my previous commit to actually update what it
1604 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1606 * DataGridView.cs: Ensure that when a row is removed the all the
1607 current row/column/cell get updated. Fixes multiple exceptions.
1609 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1611 * DataGridView.cs: Fix scrolling to the current cell when key navigation
1615 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1617 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1618 * DataGridViewCell.cs: Set the cell as selected prior to setting the
1620 [Fixes issue 1 in bug #443560]
1622 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1624 * DataGridView.cs: Invalidate after the current row/column seletion
1628 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1630 * DataGridView.cs: Refresh the data if the data list is reset, etc.
1632 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
1634 * DataGridView.cs: Handle datasource state changes:
1635 - IBindingList - list changes
1636 - BindingSource - list changed and datasource changes
1638 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1640 * DataGridView.cs: Select the first cell when databound.
1641 Visually select when CurrentCell is set.
1643 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1645 * DataGridView.cs: Set the current cell before raising CellClick.
1647 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1649 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
1650 CellLeave events as this is already done in SetCurrentCellAddressCore.
1652 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1654 * DataGridView.cs: Set the minimum size for the columns to be the
1655 width of their header, so that the columns don't get squashed
1658 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1660 * DataGridView.cs: After the data is bound PerformLayout, so that
1661 the columns get autosized.
1663 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1665 * DataGridView.cs: Move all currentCell setting code into
1666 one central place - SetCurrentCellAddressCore. That way the
1667 current cell is properly updated when programatically set.
1668 Fire RowEnter/Leave events.
1670 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1672 * DataGridView.cs: Update the CurrencyManager.Position, so that
1673 when a BindingSource is used BindingSource.Current will be correct.
1675 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1677 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1678 - No caption text is drawn because Color.Empty is used.
1679 - Fix top and height off by 1.
1681 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1683 * DataGridViewRow.cs: Implement DataBoundItem.
1685 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
1687 * BindingSource.cs: Return null for Current if there is no data present.
1689 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1691 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1692 menus using the arrow keys. Also when handling the left arrow key, don't
1693 assign the current menu to the parent one, if the parent is null.
1696 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
1698 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1701 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1704 * ScrollableControl.cs: Simplify the code to manually set the size of
1705 the thum area, avoiding duplication of code, and also preserving the
1706 right value for different code paths - this can happen when size
1707 changes are made to the scrollbar after setting LargeChange, Maximum
1708 or related properties for the ScrollBar.
1710 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1712 * ScrollableControl.cs: When scrolling, don't invalidate the entire
1713 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1714 what .Net does: copy the visible area, and only invalidate the part of
1715 the area that wasn't visible before scrolling.
1718 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1720 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1721 can clear ourselves when it is raised, we don't have a newrowindex
1722 if we don't have any columns.
1723 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1724 re-index after each delete so the NewRow will have the correct index.
1727 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
1729 * Form.cs: Don't change min/max size if it is empty.
1732 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1735 * ScrollableControl.cs: When the manual thumb size is used, the
1736 maximum allowed value should depend on that thumb size, instead of
1737 LargeChange (using the maximum - LargeChange + 1 value). But
1738 LargeChange should be used normally when incrementing/decrementing.
1739 Fixes the remaining part of #441546.
1741 2008-11-23 Andreia Gaita <avidigal@novell.com>
1743 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
1744 until an about:blank has been loaded (according to spec). Fix
1745 ScrollbarsEnabled to set when a document is loaded (since we use js
1746 for it). Fix url so it reflects the current loading document and not
1747 the previous one. Send StatusChanged events.
1749 2008-11-23 Andreia Gaita <avidigal@novell.com>
1751 * Application.cs: If a message comes in for an embedded control
1752 (like webbrowser) when we're capturing the keyboard, release the
1753 capture and continue.
1756 2008-11-22 Andreia Gaita <avidigal@novell.com>
1758 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1760 2008-11-21 Andreia Gaita <avidigal@novell.com>
1762 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1764 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1767 * ScrollableControl.cs: Set manually the thumb size for the
1768 ScrollableControl scrollbars, so any further changes to the underneath
1769 scrollbars respect the original size.
1770 Fixes part of #441546.
1772 2008-11-21 Geoff Norton <gnorton@novell.com>
1774 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1775 PlatformID.MacOSX now exists.
1777 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1779 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1780 Having something internal abstract isn't very nice for people who want
1781 to inherit from this class.
1783 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1785 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1786 invalid value. Just return null for the Image, and use the ImageList's
1787 ImageSize for calculations.
1789 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
1791 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1792 through DroppedDown so the proper events get called and state gets reset.
1795 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
1797 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1798 the collection is modified.
1800 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1802 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
1803 aren't always correct, and fixing them for every case is not worth the
1804 negligible benefit they provide.
1807 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
1809 * DataGridView.cs: We should never add actual cells to the RowTemplate.
1810 Internally, use RowTemplateFull to give us a new row with cells.
1811 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1812 * DataGridViewRowCollection.cs: Use RowTemplateFull.
1814 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1816 * XplatUIX11.cs: Forms without borders should be able to change its
1817 size - specially they should be able to be maximized, adding the
1818 respective MotifFunctions.Resize bit when setting window properties as
1819 well as *not* marking the Hwnd as size fixed.
1822 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
1824 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1828 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1830 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1831 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
1832 AutoSizeColumnModeChanged.
1835 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
1837 * DataGridViewRowCollection.cs: Guard against the user deleting the
1838 NewRow. Add an internal delete so we can still delete it.
1839 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1842 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1844 * TextControl.cs: Add some order of operation to our math so
1845 we don't end up with a negative height for our invalidate rect.
1848 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
1850 * Control.cs: When our enabled changes, notify our implicit children
1851 controls as well as our regular controls.
1854 2008-11-08 Andreia Gaita <shana@jitted.com>
1856 * HtmlElement.cs: Small code cleanup
1858 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1860 * BindingNavigator.cs: MoveFirstItem should be enabled only if
1861 position is larger than 0, not only different than 0. Also Position
1862 and Count items should be enabled if the BindingSource is non null and
1866 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
1868 * TabControl.cs: Don't raise SelectedIndexChanged until we have
1869 actually modified the tab collection, so TabCount will be correct.
1872 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
1874 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
1875 NonSerialized to fix serialization of ListViewItem.
1877 2008-11-04 Mike Gorse <mgorse@novell.com>
1879 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
1880 focus change, and always call in SetFocusedItem.
1881 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
1883 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
1885 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
1886 mode. Based on a patch by John Mortlock.
1889 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1891 * ListView.cs: Use the UsingGroups property where needed, instead of
1892 duplicating the check in other places.
1894 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1896 * ListView.cs: When calculating layout, refresh the count of items
1897 belonging to the default item, insteas of doing it only one time. This
1898 was already working fine for icon views, not not for details.
1901 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1905 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
1906 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
1910 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1912 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
1914 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1916 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
1917 #441280, patch by Mike Gorse <mgorse@novell.com>.
1919 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1921 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
1922 if there is no scrollbar.
1925 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1927 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
1928 patch from Andy Hume that fixes many issues with ProgressBar.
1931 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
1933 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
1936 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1940 * NumericUpDown.cs: Internal events added to UpDownBase:
1941 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
1944 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
1946 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
1948 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1951 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
1952 Application.EnableVisualStyles hasn't been called.
1953 Fixes part of #437933.
1955 2008-10-31 Andreia Gaita <shana@jitted.com>
1957 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
1958 if the container is not focused already, we need to specifically set
1959 focus to the first available control, or to the form itself if there
1962 2008-10-31 Andreia Gaita <shana@jitted.com>
1964 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
1965 WM_ACTIVATE have been processed before returning, so it is guaranteed that
1966 once it returns and the form is visible, it is actually on the screen on X11
1968 * ContainerControl.cs: Only send focus to the control if the top container
1969 is already focused. This is so that, when a form is first shown, all
1970 the enter/leave events are done first before any focus stuff comes in.
1971 If a control has no top container, there's an extra check on Control.Focus
1972 to make sure it gets focused in this particular case.
1974 * Control.cs: Force focus if the control is active but did not receive
1975 focus after being set as active.
1977 * MdiClient.cs: Dispose the form when closing
1979 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
1980 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
1981 if the window is a top Form.
1982 Reset all hwnd properties when the window has been destroyed so that
1983 we don't land in any codepaths that might try to do something with it.
1984 Added a bunch of debugging messages. If TRACE is defined, all X calls
1985 are logged through DebugHelper. Set a few missing EntryPoint attributes.
1987 2008-10-29 Mario Carrion <mcarrion@novell.com>
1989 * ListViewItem.cs: Control enabled to support Accessibility:
1990 - Internal events: UIATextChanged, UIASubItemTextChanged.
1991 - Internal event UIATextChanged in ListViewSubItem that triggers
1992 UIASubItemTextChanged.
1993 * ListView.cs: Control enabled to support Accessibility:
1994 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
1995 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
1996 - Internal event UIACollectionChanged in ColumnHeaderCollection.
1997 - Internal event UIACollectionChanged in ListViewItemCollection.
1998 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
1999 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2000 - Internal methods: UIAGetHeaderBounds.
2002 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2004 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2005 the event from the respective scrollbars.
2008 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2010 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2011 textbox to know whether any navigation key will be handled or not. If
2012 not, don't pass the message to the textbox, and use it here instead.
2013 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2014 is more precise- than the previous AutoCompleteMatches one.
2015 This should the keyboard navigation in ComboBox when using auto
2018 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
2020 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2023 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
2025 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2026 overridden methods will get called.
2027 * ToolStripItem.cs: Raise Click before MouseUp.
2028 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2029 the item's location into account.
2032 2008-10-24 Neville Gao <nevillegao@gmail.com>
2034 * NumericUpDown.cs: Control enabled to support accessibility.
2035 [Fiexes bug #438135]
2037 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2039 * TextBox.cs: Check that we actually have items no navigate, select
2040 text when pressing enter, as well as handle direction keys only if
2041 mode is different to Suggest or the suggest listbox is visible.
2043 2008-10-23 Andreia Gaita <shana@jitted.com>
2045 * WebBrowser.cs: Use the new ContentStream property to retrieve
2046 a stream encoded from the document content
2048 2008-10-23 Andreia Gaita <shana@jitted.com>
2052 HtmlWindow.cs: Fix GetHashcode for null objects
2054 2008-10-22 Andreia Gaita <shana@jitted.com>
2058 HtmlWindow.cs: Fix equality operators (fixes #428173)
2060 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
2062 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2063 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2066 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
2068 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2069 same item with the mouse as was already selected.
2072 2008-10-21 Brad Taylor <brad@getcoded.net>
2074 * TextControl.cs: Break out code to get the visible range into
2075 GetVisibleLineIndexes to be used in UIA code.
2079 * TextBoxBase.cs: Add comments indicating that the method or property
2080 is used via reflection from UIA code.
2082 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2084 * ListViewItem.cs: Match .net serialization.
2085 Fixes remaining part of #417520.
2087 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
2089 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2091 2008-10-20 Mario Carrion <mcarrion@novell.com>
2093 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
2094 added: UIAToolTipRectangle.
2096 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2098 * ListViewItem.cs: When deserializing enumerate over the data, instead
2099 of accessing the data directly. This way we handle much better the
2100 cases were we lack information.
2103 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2105 * ListView.cs: When removing an item from a main ListView.Items
2106 collection (and not a ListViewGroupCollection.Items one), remove it
2107 also from the group, as .net does. Patch by Mario Carrion (mario at
2111 2008-10-19 Andreia Gaita <avidigal@novell.com>
2113 * Form.cs: Forms that get closed without a handle being created are
2114 disposed in 2.0. Fixes failing FormTest.FormClose and
2115 FormTest.FormClose2 on windows.
2117 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2119 * ListView.cs: If both scrollbars are visible, the vertical one
2120 shouldn't extend too far down.
2123 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
2125 * DataGridView.cs: Add the ability to resize columns and rows with
2126 the mouse. Also support double-clicking to autoresize.
2127 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2128 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2129 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2130 isn't shown on autoresize.
2133 2008-10-17 Mario Carrion <mcarrion@novell.com>
2135 * ComboBox.cs: Remove UIAListbox.
2137 2008-10-17 Mario Carrion <mcarrion@novell.com>
2139 * ComboBox.cs, ListBox.cs: Using added/removed item in
2140 OnUIACollectionChangedEvent instead of index.
2142 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
2144 * ComboBox.cs: When we are sorting the items, if the item's type
2145 doesn't support IComparer, use a default one that compares based
2146 off the item's visible text.
2149 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2151 * ColumnHeader.cs: Invalidate ListView.header_control when setting
2152 ImageIndex/ImageKey.
2153 * ThemeWin32Classic.cs: When drawing the column header, draw a image
2154 for the column if available, and make the required adjustments to the
2158 2008-10-17 Neville Gao <nevillegao@gmail.com>
2160 * StatusBarPanel.cs: Control enabled to support accessibility.
2163 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2165 * DataGridView.cs: When a user begins an edit in the 'new row',
2166 make that a real row, and add a new 'new row'. If the user
2167 cancels the edit, remove the new 'new row' and reset everything.
2168 Also, ensure UserAddedRow and UserRemovedRow events are raised.
2171 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
2173 * TableLayoutSettings.cs: Fix NREs when deserializing and
2174 panel is not yet set.
2177 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2179 * DataGridView.cs: Invalidate after deleting a row.
2181 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2183 * DataGridView.cs: Handle Enter and Escape keys.
2184 - Move call to EndEdit to MoveCurrentCell.
2185 - Remove call to EndEdit from navigation key routines.
2186 - Fire CellLeave and CellEnter.
2188 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2190 * DataGridViewCell.cs: Some fixes to the new cell border
2193 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
2195 * ThemeEngine.cs: Enable visualstyles rendering by default
2196 (on platforms that support it).
2198 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
2200 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
2201 MainForm.OnLoad has completed unless DoEvents is forced.
2204 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
2206 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2208 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
2210 * Control.cs: Make our implementation of DrawToBitmap better
2211 match WmPaint. [Fixes bug #435579]
2213 2008-10-14 Andreia Gaita <avidigal@novell.com>
2215 * WebBrowser.cs: Use DocumentElement as the document's root for the
2216 whole content. Should fix DocumentText and DocumentStream problems.
2218 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
2220 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2221 these will get called in DGV.OnCollectionChanged. Make sure
2222 OnCollectionChanged always gets called.
2223 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2224 from every row. Call this in OnCollectionChanged.
2227 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2229 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2230 textbox if auto complete is used, since we need to navigate over it.
2231 And in this case don't pass this messages to the base impl. Also hide
2232 the auto complete list box when displaying the drop down listbox.
2233 * TextBox.cs: new internal members to expose some of the auto complete
2234 functionality to combobox.
2236 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
2238 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
2239 MainForm.OnLoad has completed.
2242 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2244 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2245 Append support to this controls. We need it to apply new patches.
2247 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2249 * Control.cs: When updating z order in child controls, send to back
2250 the implicit controls. Also, do it explicitly, instead of making
2251 GetAllControls return the implicit controls in a specific order, and
2252 thus avoid depending on that, which could change in the future.
2255 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2257 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2258 call to StartDrag, since we must fire DragDrop/DragLeave *before*
2259 that, as .net does - instead of firing DragDrop/DragLeave *after* the
2260 call to Control.DoDragDrop has completed. This is needed since at the
2261 point of returning, we have sent related dnd ClientMessages, but we
2262 need to wait for them to fire the wmf respective ones.
2265 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
2267 * LinkLabel.cs: Recreate link pieces when change Padding.
2269 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
2271 * LinkLabel.cs: Take Padding into account when recreate link pieces.
2274 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
2276 * Control.cs: Implement internal property PaddingClientRectangle, it will be
2277 useful for drawing controls that must take care about Padding property.
2279 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
2281 * BindingSource.cs: Make item_type internal so we can access it in DGV.
2282 * DataGridView.cs: Add support for autogenerating columns from a
2285 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
2287 * DataGridView.cs: Comment out an exception that is getting thrown
2288 too often currently.
2290 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
2292 * DataGridView.cs: Always rebind to the datasource, as things may
2293 have changed in it that we aren't capturing yet.
2295 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
2297 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2298 drawing mode. If we are top aligned, give ourselves some top padding.
2300 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2302 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2303 events on the control under the mouse pointer, instead of firing them
2304 on the window generating the dnd operation. To achieve this re-use the
2305 code used to get the window under the pointer when getting MouseMove
2309 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2311 * X11Dnd.cs: Don't check that that the window sending the dnd events
2312 is the owner of the selection. Although Gtk+ sets it that way, it's
2313 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2314 So, just as Gtk+ does, we set our window sending the dnd events as the
2315 owner of the selection, but don't check it when receiving them. This
2316 should fix interoperability with Qt/Kde.
2319 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
2321 * DataGridView.cs: Make sure we take the vertical scrollbar into
2322 account when autosizing columns.
2324 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
2326 * DataGridView.cs: Handle sorting datetimes.
2328 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
2330 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
2331 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
2332 compilation warnings.
2334 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2336 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
2337 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
2338 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
2339 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
2340 compilation warnings.
2342 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2344 * DataGridView.cs, DataGridViewCell.cs,
2345 DataGridViewCellValidatingEventArgs.cs,
2346 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
2347 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2348 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2350 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2352 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
2353 Cleanup compilation warnings.
2355 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2357 * XplatUIWin32.cs: Cleanup compilation warnings.
2359 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
2361 * PropertyGrid.cs: Cleanup compilation warnings.
2363 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2365 * DataGridViewRow.cs: Only clear the row background if we
2366 are going to paint a new background.
2368 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2370 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2371 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2372 use PaintBorder instead.
2374 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2376 * DataGridView.cs: When CellBorderStyle is set, update the
2377 AdvancedCellBorderStyle to match.
2379 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2381 * DataGridViewCell.cs: Add helper methods to convert Alignment
2382 to TextFormatFlags and align rectangles.
2383 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2384 * DataGridViewImageCell.cs: Use Alignment when painting the image.
2386 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
2388 * ToolTip.cs: Display tooltips only for controls on the active form.
2391 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2393 * DataGridView.cs: Make OnCellValueNeeded internal.
2394 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2395 user can supply their own value if they choose.
2397 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2399 * DataGridViewColumnHeaderCell.cs: Create a new style object
2400 so the DefaultCellStyle doesn't get changed.
2402 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
2404 * ToolStripItem.cs: Check to make sure the owner is actually
2405 changing in InternalOwner before doing any work. Fixes some
2408 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2410 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2411 * DataGridView.cs: Use a column header's inherited style instead
2412 of just using the default.
2414 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2416 * SplitContainer.cs: Raise SplitterMoved when the splitter is
2419 2008-10-01 Mario Carrion <mcarrion@novell.com>
2421 * ScrollBar.cs: Internal property added: UIAThumbPosition.
2423 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2425 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2427 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2429 * ToolStripItem.cs: When the user sets Owner, we need to remove
2430 it from its previous owner and then add it to the new owner's
2431 item collection. Also, create InternalOwner, so we can set the owner
2432 that doesn't do this new stuff.
2433 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2435 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2437 * ToolStripItem.cs: When our parent changes, recalculate our text
2438 size, since we may be getting our Font from our parent. When our
2439 owner's Font changes, recalculate ourselves as we may be using
2442 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
2444 * MenuAPI.cs: Select the first option of a popup when opening the popup via
2445 return key. [Fixes bug #413792].
2447 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2449 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2450 ambient properties. (Get their value from their parents if
2451 values haven't been set.)
2453 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2455 * ToolStripSystemRenderer.cs: Call overridden methods' bases
2456 after our logic, so users can do painting by handling the events.
2457 Currently, we draw over any user painting.
2459 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
2461 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2462 after our logic, so users can do painting by handling the events.
2463 Currently, we draw over any user painting.
2465 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
2467 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2469 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2471 * TreeNode.cs, TreeView.cs: Move logic that determines the node
2472 image to draw to TreeNode. Give Index/Keys put on the node
2473 precedence over the global one for the TreeView.
2475 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
2477 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2479 2008-09-29 Mario Carrion <mcarrion@novell.com>
2481 * ListBox.cs: Index fixed.
2483 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2485 * TabControl.cs: When expanding the tab -because it's selected now-,
2486 using Right alignment, instead of adding some selected delta value to
2487 the X origin, substract it, so it gets a location adjacent to the panel,
2488 instead of be more separated.
2491 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
2493 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2496 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2498 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2499 as well as the other static fields, to avoid using their previous
2500 values my mistake when handling the dnd events. This should avoid
2501 handling any status event after the drop has been finalized/cancelled.
2503 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2505 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2506 operation, instead of waiting until we get any movement - this will
2507 help us to have the data available in case no movement was detected
2508 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2509 Finally add a windows.forms-only fallback to fire the mentioned events
2510 if no movement at all was detected, just like .net does.
2513 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
2515 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2516 return early if the text is empty because the icon doesn't get
2517 drawn then. [Fixes bug #428113]
2519 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2521 * FileDialog.cs: Implement basic support for sorting by columns in
2522 Details view. Patch by Eric Petit.
2525 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2527 * ThemeWin32Classis.cs: When drawing gridlines take into account the
2528 case where ListView.ItemSize hasn't been computed, and provide a
2529 fallback as well. This prevents a division by 0.
2531 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2533 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2534 correctly draw tooltip backgrounds.
2536 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2538 * ImageList.cs: Change CopyTo implementation to ensure clones are
2539 created of our images.
2542 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
2544 * Control.cs: When setting fonts, we need to ensure we change our
2545 reference to the new font object, even if it represents the same
2546 font as before. If we don't, the original font can get disposed
2547 and we will still try to use it.
2550 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2552 * FileDialog.cs: Take into account Tile view when selecting the view
2555 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2557 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2558 the item bounds, since we can't iterate over them in virtual mode.
2559 Also fix wrong calculation of the gridlines when using scrolling.
2562 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2564 * XplatUIX11.cs: When handling EnterNotify events, take into account
2565 both the public and implicit controls when trying to detect the
2566 grab/ungrab process. This should fix ListView selection in Details
2569 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2571 * TreeView.cs: Redraw the whole node area when the selected node changes.
2572 Things like state images were not getting redrawn because the invalid
2573 rectangle was too small.
2576 2008-09-23 Mario Carrion <mcarrion@novell.com>
2578 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2581 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2583 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2586 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2588 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2591 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
2593 * StatusBar.cs: Add tooltip support.
2596 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2598 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2599 alignments of sub items in Details view. Patch by John Mortlock (johnm at
2600 hlaustralia.com.au).
2603 2008-09-23 Neville Gao <nevillegao@gmail.com>
2605 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2608 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
2610 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2613 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2615 * ListView.cs: Don't do anything when EnsureVisible is called inside a
2616 BeginUpdate/EndUpdate block.
2619 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2621 * ListViewItem.cs: The semantics for the public .ctor of
2622 ListViewSubItemCollection need us to already have a Text value for the
2623 item, which in our implementation have as available *after* adding the
2624 first sub item. So create an internal .ctor that satisfies our needs
2625 and let the public .ctor have the same semantics as .net.
2628 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2630 * ListControl.cs: Changes in Formatting related values should call
2631 RefreshItems, as .net does.
2633 * ListBox.cs: In the respective overrides of RefreshItems calculate
2634 layout as well as refreshing - again, this is what .net does.
2637 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2639 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2640 since we are already doing that when we change the value of the
2641 scrollbar or force the call to ScrollWindow in the same method. This
2642 way we don't cause a Invalidate call for all the listbox bounds for
2643 methods calling UpdateTopItem with an already updated top item. This
2644 was happening specially calling EnsureVisible with already visible
2647 2008-09-18 Mike Gorse <mgorse@novell.com>
2649 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2650 XplatUIStructs.cs: Added KeyFilter
2653 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2655 * RelatedPropertyManager.cs: The properties returned by
2656 GetItemProperties should be that ones of the *actual* object returned
2657 by the property, not the property type - this is very special when the
2658 property exposes a type, but the returned object actually is a child
2659 class and implements more functionality and properties.
2661 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2663 * Binding.cs: Don't look for the property in the data source if the
2664 passed string is empty.
2666 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2668 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
2669 fix unused variable warnings.
2671 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2673 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2676 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
2679 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
2680 leads to the window manager overriding our border style and zorder.
2681 - Allow the activation of non-modal forms, which are children of a
2685 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2687 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
2688 ask the window manager to do the work instead of changing the property
2692 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2694 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2695 AddNew to fix some navigation for empty datasets. [Fixes #323053]
2697 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2699 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
2700 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2701 border and fixes some drawing issues when resize form.
2703 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
2705 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2707 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2710 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
2712 * TextBoxBase.cs: For standard textbox the scrollbars are always
2713 visible if Multiline is true.
2716 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2718 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2721 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
2723 [Fixes most od DBNull and HeadersVisible problems]
2726 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2727 returns the value that we need.
2728 - Fixed FromPixelToColumn method that return zero for first column and for
2729 row header cell, now it returns -1 for row header cell.
2730 - Fixed HitTest to check row header cell in column header area, it now
2731 returns HitTestType.None. [Fixes #322864]
2732 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2733 checks for RowHeadersVisible and other things.
2734 - If an exception occurs when setting CurrentCell and user type 'yes' in
2735 message dialog, invalidade current and new cell and set setting_current_cell
2736 to false to prevent future errors. [Partially fixes #323050]
2738 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2739 value (SetColumnValueAtRow), it must be done by grid to properly show
2740 messages. [Fixes #323050]
2742 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2743 better draw column and row header. Also dont draw anything when column
2744 headers is not visible.
2746 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2748 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2751 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2753 * TreeView.cs: Don't start editing a node on right click, only
2756 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2758 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2759 disabled over a year ago.
2760 * Form.cs: Wrap calling Load in a try/catch because it can happen
2761 before the catch-all one in NativeWindow.
2764 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2766 * ToolStripDropDownMenu.cs: Calculate the connected area better
2767 to take into account when the drop down is not directly under the
2769 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2771 2008-09-16 Mario Carrion <mcarrion@novell.com>
2773 * ScrollBar.cs: New event added: UIAValueChanged, generated when
2774 LargeChange, SmallChange, Maximum or Minimum values are changed.
2777 2008-09-16 Mario Carrion <mcarrion@novell.com>
2779 * ErrorProvider.cs: Component enabled to support accessibility.
2780 * Application.cs: Updated to Initialize UIA in ErrorProvider.
2783 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2785 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2786 so we don't highlight on first focus.
2789 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2791 * TextControl.cs: Correctly calculate the height of the area we
2792 need to invalidate when we have started scrolling and viewport_y
2793 is used. [Fixes bug #387608]
2795 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2797 * TextControl.cs: When getting the SelectedText, don't add in
2798 NewLine characters, as they are already contained in the lines.
2801 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
2803 * TextBoxBase.cs: Replace the buggy Lines setter with one that
2804 simply concats the lines and send it to the Text setter.
2805 [Fixes issue #2 and #3 of 388115]
2807 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2809 * Binding.cs: The default value of DataSourceNullValue should be
2810 Convert.DBNull actually. Also, the NullValue should only be used *if*
2811 itself is not null, and use the null/Convert.DBNull value instead.
2813 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2815 * TextControl.cs: Add a method to convert a string newline to the
2817 * TextBoxBase.cs: When the user hits enter, insert a native newline.
2818 [Fixes part 1 of bug #388115]
2820 2008-09-15 Mario Carrion <mcarrion@novell.com>
2822 * ToolTip.cs: UnPopup event set to internal to match public API.
2824 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2826 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2827 have to remove the Ctrl in order for the focus moving code to kick in.
2830 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
2832 * CheckedListBox.cs: Return the real item index from Add. It may not be
2833 the last item if the list is sorted. The user can change the NewValue in
2834 the ItemCheck event, we need to use that value if so.
2835 * ListBox.cs: Return the real item index from a sorted Add.
2838 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
2840 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
2841 happen that the icons from the theme is missing or the particular size
2845 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2847 * Binding.cs: When assigning null or DBNull depending on value/ref type,
2848 use IsValueType instead to get the precise desired value.
2851 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2853 * TreeNodeCollection.cs: When adding a new node to an opened node,
2854 we have to invalidate everything below the parent node because
2855 every node scoots down and we have to repaint them.
2858 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2860 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
2861 property into account when drawing.
2864 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2866 * ListBox.cs: When calling Items.Clear(), call
2867 SelectedIndexCollection.ClearCore instead of normal Clear method, to
2868 not fire any Selected*Changed event - this is done to match .net and
2869 don't have invalid values when changing the DataSourceProperty.
2872 2008-09-12 Mario Carrion <mcarrion@novell.com>
2874 * HelpProvider.cs: Control enabled to support accessibility.
2875 * Application.cs: Updated to Initialize UIA in HelpProvider.
2878 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2880 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
2881 make the dialog TopMost as well.
2884 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2886 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
2887 clipboard data better.
2890 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2892 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
2893 TextChanged and SelectionChanged events fire in the same order as .Net.
2896 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2898 * DataGridView.cs: When sorting a column, if it only contains numbers,
2899 do a numeric sort instead of a string sort.
2902 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
2904 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
2905 against NRE's when the settings have a null panel.
2906 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
2910 2008-09-11 Mario Carrion <mcarrion@novell.com>
2912 * ToolTip.cs: Control enabled to support accessibility.
2913 * Application.cs: Updated to Initialize UIA in ToolTip.
2916 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2918 * Control.cs: Make the custom Enumerator internal to fix build.
2920 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2922 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
2923 already in edit mode, begin edit mode. Generally edit mode isn't
2924 started until the second click, but CheckBoxes are special.
2926 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2928 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
2929 since that can be set to anything. Always add them to the Control's
2930 parent. [Fixes bug #416058]
2932 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2934 * ListView.cs: Use a custom enumerator for ListViewItemCollection
2935 so items can be deleted in a foreach.
2938 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2940 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
2941 Store the user set explicit height so that the row can be AutoSized
2942 and then when AutoSize is turned off, it can get its original size back.
2943 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
2944 duplicating the logic. When setting AutoSizeRowsMode to None, reset
2945 rows' heights back to their explicit values.
2948 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2950 * DateTimePicker.cs: When getting focus, select the checkbox if we are
2951 already showing it. Also, don't change its value when pressing space
2952 if the checkbox is not visible (ShowCheckBox as false). Finally, the
2953 checkbox should remain selected as long as Checked is false, and the
2954 other parts are disabled.
2957 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
2959 * MessageBox.cs: Handle shortcut keys to dialog buttons.
2962 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2964 * Binding.cs: When the value retrieved from the control property is
2965 null, don't return Convert.DBNull for Nullable instances, since they
2966 can *actually* get a null value.
2969 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2971 * Control.cs: Add an internal field to force doublebuffering regardless
2972 of what the public mechanisms are set to. This is because MS's native
2973 controls are doublebuffered even though their .Net bits are set to false.
2974 * ProgressBar.cs: Set force_double_buffer to true.
2977 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
2979 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
2981 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
2982 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
2983 without EditingControls, paint background selection for types without
2984 EditingControls, reset the EditingCellValueChanged flag when the
2985 cell's value is committed.
2986 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
2987 have EditingControls, remove a double call to a cell's OnContentClickInternal,
2988 don't do cell changing logic in OnMouseDown if the cell didn't change.
2991 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2993 * DateTimePicker.cs: Fix the edition of am/pm specifier.
2995 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
2997 * TextControl.cs: Add "&" to the list of valid characters in a URL.
2999 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3001 * DateTimePicker.cs: Before incrementing or decrementing any part in
3002 the textbox, end any current edit. Also when ending the current edit
3003 use the editing_part_index field instead of the current selected
3004 value, since they can be out of synch, and we really need to work on
3005 the *real* current edit part. Finally when PartData.Selected changes,
3006 always try to end any ongoing edit.
3007 This should fix some small errors handling mouse navigation and
3008 increase/decrease operations.
3010 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3012 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3013 respectively) should handled different, since the 12 hours format
3014 needs the value typed by the user to be adjusted depending on the
3015 a.m/p.m value, so it is preserved, and only changed when the value
3016 reaches the 12 value (when it changes from a.m to p.m).
3017 Fixes part of #416555.
3019 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
3021 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3022 * ToolStripDropDownItem.cs: Don't fire events and such again if
3023 ShowDropDown is called on an already dropped down item.
3024 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3025 subitems, the user may add some in the DropDownOpening event.
3028 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
3030 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3033 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
3035 * MdiClient.cs: When looking for menustrips on a child form to merge,
3036 look inside ToolStripContainers.
3039 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
3041 * ErrorProvider.cs: Unbreak my previous commit.
3043 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
3045 * ErrorProvider.cs: Icon should always be 16x16.
3048 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
3050 * GridEntry.cs: Invalidate the child items cache when the property
3053 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
3055 * GridEntry.cs, PropertyGridView.cs:
3056 - Update the ReadOnly detection and rendering to finally hopefully
3057 match the one of MSFT.
3058 - Niceify and move the debug CWLS.
3061 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3063 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3064 since we are already calling Invalidate for the entire control when
3065 needed - and call Redraw() when size changes, since we need to paint
3066 there by ourselved and not anymore from the mentioned method.
3067 This should improve the layout process. Also clean some not needed calls
3070 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
3072 * MenuAPI.cs: Add a null check to the Alt-F4 code.
3075 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
3077 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3080 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
3082 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
3083 PropertyGridView.sc: Implement lazy/delayed propertygrid population
3084 on item expansion. Improves performance and fixes bug #417955.
3087 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
3089 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3092 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3094 * TextControl.cs: Add "_" to the list of valid characters in a URL.
3097 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3099 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
3103 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3105 * FontDialog.cs: When storing our font size from the starting font,
3106 use SizeInPoints instead of Size in case Size is a different unit
3110 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
3112 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3113 don't use it for anything else, check if a directory is highlighted.
3114 If it is, navigate into it.
3117 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3119 * Binding.cs: When acquiring a BindingManagerBase for the first time,
3120 check that the specified property actually exists in the data source,
3121 and throw an ArgumentException if that's not the case - this is only
3122 done for this scenario, since for later cases (such Position changes)
3123 we throw different exceptions (match .Net).
3125 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
3127 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
3128 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
3129 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
3130 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
3131 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
3132 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
3136 2008-09-03 Neville Gao <nevillegao@gmail.com>
3138 * StatusBar.cs: Control enabled to support accessibility.
3141 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3143 * Binding.cs: When connecting the event handler for the "Changed"
3144 event for the property, only do it for PropertyManager, and not for
3145 CurrencyManager - this is exactly what does .Net, totally ignoring any
3146 change in the property of the elements of a list.
3149 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
3151 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3152 to Windows when creating a window, as we fake MDI stuffs.
3155 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
3157 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
3158 change takes effect.
3160 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
3162 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3165 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
3167 * DataGridView.cs: Raise CellContentClick event.
3168 [Fixes part of bug #420351]
3170 2008-08-27 Mario Carrion <mcarrion@novell.com>
3172 * ScrollBar.cs: Control enabled to support accessibility.
3175 2008-08-27 Mario Carrion <mcarrion@novell.com>
3177 * ComboBox.cs: Control enabled to support accessibility.
3180 2008-08-27 Mario Carrion <mcarrion@novell.com>
3182 * ListBox.cs: Control enabled to support accessibility.
3185 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
3187 * ComboBox.cs: Don't suppress the TextChanged event when changing
3189 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3193 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
3195 * ErrorProvider.cs: Fix a regression NRE when setting properties
3196 for a control before it has a parent.
3199 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3201 * Binding.cs: Use the BindingManagerBase.Current value to obtain
3202 connect the property "Changed" event, instead of using the data
3203 sources - this is useful when the property specifies actually a
3204 multiple objects path.
3205 Fixes part of #417973.
3207 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3209 * RelatedPropertyManager.cs: PropertyManager instances associated to a
3210 nested properties should return not the properties of the data source
3211 itself, but the properties of the type of a specific property in the
3212 data source - match .net.
3214 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
3216 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3217 AddRange overloads into AddItems method, and added missing NULL check.
3218 Added extra argument check to RemoveAt for compatibility with MS.
3219 Modified IList implementation of Add, Contains, IndexOf and Remove to
3220 throw an ArgumentException if item is not an int. Modified IList.Insert
3221 to throw a NotSupportException instead of an Exception. Implemented
3223 (ObjectCollection): To avoid duplication, use AddItems method from
3224 AddRange overloads. On 1.0 profile, first perform NULL check on items
3227 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
3229 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3232 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
3234 * X11Keyboard.cs : comment out some Console.WriteLine().
3236 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
3238 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3239 even if premises are not filled. Also XLookupString() was not
3240 receiving correct input, which blocked precise input handling
3243 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3245 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3246 type of delegate, instead of EventHandler - this was causing a type
3247 cast exception in all apps handling this event.
3250 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
3252 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3253 ShowDropDown to give the user a chance to dynamically add
3254 drop down items. [Step 1 of fixing bug #417877]
3256 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3258 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3259 had any mouse motion since the call to StartDrag, to match the dnd
3261 Fixes part of #381876.
3263 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3265 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3266 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3267 Also, if we are actually moving into a different window after
3268 grabbing, generate a LeaveNotify event for the previous window, since
3269 we need to fire the leave events until the grab ends, not when
3270 actually moving outside of the control.
3272 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3274 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3275 events only for client windows was wrong - we need to compare the
3276 client window against the window receiving the EnterNotify event, not
3277 against zero (since client window is never Zero, btw).
3278 This prevents having unnecessary handling of EnterNotify events for
3279 non-client windows when a gran begins.
3281 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3283 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3284 MouseMove/MotionNotify events at all (which should only happen after
3285 MouseUp/ButtonRelease, as .Net does).
3286 This avoids firing an extra and unnecessary MouseMove event just after
3287 every MouseDown event.
3289 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
3291 * LinkLabel.cs: Always clear any previous links when LinkArea
3292 is set. [Fixes bug #410709]
3294 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
3296 * ToolStripProfessionalRenderer.cs: Revert last change.
3297 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3298 for ToolStripDropDownBackground.
3300 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
3302 * ToolStripProfessionalRenderer.cs: Use Window color for the
3303 background of dropdowns to match .Net when the user is not
3304 using the default white. [Fixes bug #418108]
3306 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
3308 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3309 it caused timer registration twice. Fixed bug #418107.
3311 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3313 [Correction: This is the actual change to X11Dnd issue, not the
3314 previous one, which was actually a different issue.]
3316 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3317 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3318 when the pointer is actually in motion, but only when the pointer
3319 seems to stop (as .net does).
3320 Fixes part of #381876.
3323 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
3325 * ListBox.cs: Fix CopyTo implementation.
3328 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
3330 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3331 drawing a ComboBox's background. Fixes bad disabled rendering when
3332 the control is not at 0,0.
3335 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
3337 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
3338 ComponentModel layer, which will properly prioritize the attributes.
3339 Avoids wrong prioritization of duplicate attributes when retrieving
3340 the converter and editor.
3343 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3345 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3346 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3347 when the pointer is actually in motion, but only when the pointer
3348 seems to stop (as .net does).
3349 Fixes part of #381876.
3351 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
3353 * GridEntry.cs: Perform stricter check for the ParentEntry's
3354 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
3358 2008-08-14 Geoff Norton <gnorton@novell.com>
3360 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3361 Fixes #396983. Properly fix ActiveWindow trackin and do not
3362 prematurely show POPUP windows.
3364 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3366 * XplatUIX11.cs: Handle the obscured regions while scrolling using
3367 GraphicsExpose event, processing it just after we copy the scrolled
3368 area. This ensures that the next calls to ScrollWindow will copy
3369 regions already updated, and the scrolling will be smooth. Also remove
3370 the code that was trying to detect the obscured regions, since we are
3371 not using it anymore (too slow).
3373 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3375 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3376 MultiExtended mode, by separating some logic between the ctrl/shift
3377 handling. Also ignore any MouseMove events generated together with
3378 MouseDown events - we are only interested in the real motion event.
3379 Fixes part of #414963.
3381 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
3383 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3384 is selected. [Fixes bug #414143]
3386 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
3388 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
3389 and not the parent one (the propertyowner). Fixes the behavior of
3390 GetConverter/GetEditor.
3393 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
3395 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3396 [Fixes part of bug #415452]
3398 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
3400 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
3401 GridEntry, not the current.
3404 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
3406 * TextBoxBase.cs: De-internalize max_length field.
3407 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
3408 share the same logic.
3411 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3413 * ListBox.cs: Selection changes made in the MouseDown handler should
3414 use the *Core versions of selection in SelectedIndices collection,
3415 since the SelectedIndexChanged/SelectedValueChanged events are fired
3416 until we get a MouseUp event, and thus we need to separate the logic
3417 from the events, as done in the keyboard navigation. Also, fire those
3418 selection events from keyboard navigation in SelectionMode.None, even
3419 if we don't have a selection, as .Net does.
3421 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
3423 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3424 last change introduced when an item is clicked but isn't on a toolstrip.
3426 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3428 * ListBindingHelper.cs: When looking for an object's properties, check
3429 if it implements ICustomTypeDescriptor, in which case we should
3430 resolve the propertu based on its GetProperties method, not in its
3431 actual properties. This is what .Net seems to do.
3432 Fixes a UsingWebBrowser problem during initialization.
3434 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3436 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3437 sitting on a MenuStrip.
3439 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3441 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3442 no children with the keyboard, we need to release the keyboard capture.
3445 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
3447 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3448 no children with the keyboard, we need to release the keyboard capture.
3451 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3453 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3454 the GTK+-based implementation of VisualStyles.
3455 * ThemeWin32Classic.cs: Exposed various layout values for use in the
3456 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3457 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3458 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3459 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3460 TrackBarHorizontalTrackHeight.
3462 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
3464 * TabControl.cs: Added hot style handling for the scroll buttons.
3465 right_slider_state, left_slider_state are now of type PushButtonState to
3466 allow for a hot state. Added tracking of the mouse button being held down
3467 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3468 LeftScrollButtonArea.
3469 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3470 TabControlGetRightScrollRect.
3472 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3474 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
3477 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3479 * Form.cs: Ensure that we reset the shown_raised flag after
3480 the form is closed, so that we raise the show events the next
3481 time the form is shown.
3484 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3486 * Form.cs: Ensure closing events are raised only once.
3489 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3491 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
3492 so that we can successfully generate the LParam in-place instead of
3493 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
3494 navigation for menus.
3496 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3498 * MenuAPI.cs: When montion don't set the keyboard navigation state to
3499 'navigating'. Fixes bug #411356.
3501 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3503 [Fixed remaining issues of #406773 (#1)]
3504 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3506 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3507 MainMenu (already done) and ContextMenu creation.
3509 * ContextMenu.cs: Create tracker on construction.
3511 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3513 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3514 possible to instantiate MenuTracker without GrabControl.
3516 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3518 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3520 * MainMenu.cs: Set GrabControl on SetForm using current form.
3522 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3524 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3526 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3528 * MenuAPI.cs: Check if menu is activated before deactivate it in
3531 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
3533 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
3535 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3536 - One style instance can only participate in a single style collection.
3537 - Styles can request their owner to layout whenever their properties
3539 [Fixes bugs #412583 and #412582]
3541 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
3543 * X11Keyboard.cs: Implement the generation of the LParam for
3544 all keyboard messages.
3547 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
3549 * ListBox.cs: Don't let the user set TopIndex so high that it
3550 scrolls up far enough to show empty items.
3553 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3555 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3556 (I'm an idiot and forgot to commit the actual changes, as well as
3557 specify the right file, which is this one, not ListView.cs).
3559 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3561 * ListView.cs: Don't draw ListViewSubItem instances from
3562 DrawListViewItem - we need to reuse the main item's drawing for the
3563 first sub item in case owner draw is true, but wants the system to
3564 do the default draw for the first sub item, without incurring in a
3568 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
3570 * ToolStripButton.cs: Update Checked for CheckOnClick before
3571 raising the Click event. [Fixes bug #412505]
3573 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
3575 * Form.cs: Remove some seems leftover code for non-TopLevel's
3576 CreateParams, which is breaking ClientSize sizing, because it
3577 removes the border window styles.
3579 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
3581 * PropertyGrid.cs: Invalidate the View when the PropertyTab
3584 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
3586 * WebBrowser.cs: Removed debug output.
3588 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
3590 * FileDialog.cs: Apply patch from Ernesto to clean up some
3593 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3595 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
3596 that the change has an immediate effect.
3598 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3600 * ScrollableControl.cs: Update PerformLayout calls to include
3601 provide the name of the property that changed.
3603 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3605 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
3606 location. Fixes drawing of border and cell borders if scrollable.
3608 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3610 * ScrollableControl.cs: Perform layouting after the AutoScroll
3611 properties have changed, so that the changes have immediate
3615 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3617 * XplatUIX11.cs: Non Client area is actually Client such in the
3618 case of NotifyIcon, so double check WholeWindow == ClientWindow
3619 when adding an expose.
3620 [Fixes bugs #324237 and #357022]
3622 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3624 * TableLayoutPanel.cs: Invalidate after layouting, so that we
3625 repaint the cell borders.
3627 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
3629 * PropertyGridTextBox.cs: Stop filtering messages prior to our
3630 disposal to avoid unexpected ObjectDisposedExceptions.
3632 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
3634 * TableLayoutPanel.cs: Layout on Row/Column count change.
3636 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
3638 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3640 * PictureBox.cs: When ImageLocation is set to null or an empty string,
3641 only set image to null if it was previously initialized from an url
3642 (or using ImageLocation). In ImageLocation, load specified image
3643 asynchronously if WaitOnLoad is false. Added support for local file
3644 paths to LoadAsync, and added missing argument check.
3646 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3648 * DateTimePicker.cs:
3649 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3650 order to set the value as required (which means: when selection
3651 changes for a part being edited, and not before that if not needed).
3652 Also use an enum to describe which part are we using, and use the
3653 selection as a property in PartData, in order to notify the
3654 DateTimePicker owner that we need to end the current edit.
3657 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
3659 * PropertyGridTextBox.cs: Validation should be performed only if we
3660 are focused. We can lose focus for example if the Return key is used
3661 to set the entry and there is an error. When the message box is
3662 displayed we would have validate on click in the message box.
3664 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
3666 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
3667 in order to determine that we are expandable is wrong. There was a bug,
3668 now fixed, in TypeDescriptor that was causing the wrong converter to be
3669 returned which caused GetPropertiesSupported == false in most cases.
3672 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
3674 * ImageList.cs: Fix ICollection.CopyTo implementation for
3675 ImageListCollection. [Fixes bug #409169]
3677 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3679 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3680 WorkingArea so that menus can appear on the second monitor
3681 when one has dual monitors.
3683 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3685 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3688 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3690 * TextBox.cs: Implement navigation support for auto complete in
3691 TextBox, as well as refactor the code to show the auto complete window
3692 when receiving a WM_CHAR message, instead of TextChanged, since
3693 autocomplete itself should be able to set the Text a lot of times and
3694 finally only typing should show it, not changes from code.
3696 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3698 * TabControl.cs: When expanding the selected tab, don't adjust the
3699 width if alignment is Right, since it has a different offset than 0,
3700 as opposed to the other alignments.
3701 Fixes the selected tab not being painted at all with alignment = Right
3702 and using FillToRight size mode.
3704 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3706 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
3708 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3710 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3711 values from the textbox to the boundary values. [Fixes bug #409026]
3713 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
3715 * TreeNodeCollection.cs: We were copying one too many elements when
3716 doing our array copy. Fixes a crash when RemoveAt is called.
3719 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3721 * TabControl.cs: When doing the layout and need to call FillRow -using
3722 FillToRight size mode-, use the overload receiving a bool param
3723 indicating whether we need to do a vertical or horizontal calculation.
3724 Fixes part of #399583.
3726 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3728 * TextBox.cs: When painting, use the value returned by
3729 GetLastVisibleItem instead of using the cached last_item field, since
3730 there could be a desynchronization between the layout and the
3731 painting. Fixes a AOOR exception in auto complete mode.
3733 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
3735 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3736 NonClientAreaEnabled until our VisualStyles is modified to allow it.
3738 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
3740 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3742 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3744 * TextBox.cs: When focus is lost, if the auto complete listbox is
3747 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3749 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3750 tracking size for tool windows.
3751 * Theme.cs, ThemeWin32Classic.cs : Extracted
3752 ManagedWindowSpacingAfterLastTitleButton.
3754 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3756 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3757 They are bit-rotted and have always been listed as "unsupported".
3759 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
3761 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3763 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3765 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3767 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3769 * ListBox.cs: Make sure last_item_visible gets reset before we try
3770 to do a layout due to scrollbars appearing or disappearing.
3773 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3775 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3776 for different window themes. [Fixes bug #339140]
3778 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3780 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3781 in ManagedWindowBorderWidth.
3783 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3785 * InternalWindowManager.cs: Change MouseMove to take a point, so
3786 we can use the same point later on.
3787 * MdiWindowManager.cs: Store point sent to MouseMove so we can
3788 later reset to it. On Windows, the Cursor.Position had already
3789 changed by the time we were resetting to it.
3792 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3794 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3796 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3800 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
3802 * MdiWindowManager.cs: Double-clicking on the title bar should not
3803 maximize a MDI form if MaximizeBox = false.
3805 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3807 * ThemeVisualStyles.cs: Fixed a warning.
3809 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3811 * ThemeVisualStyles.cs: Fixed warnings and formatted.
3813 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3815 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3816 implementation produces a better result.
3818 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3820 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3823 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
3825 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3826 cannot be used from the ThemeEngine constructor.
3827 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3828 Application.VisualStylesEnabled because it does not work on X11.
3830 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
3832 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3833 that we did not always check for, as well as fixes to the IList
3834 implementations. [Fixes bug #402703]
3836 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3838 * IDeviceContext.cs: Added Dispose.
3840 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3842 * Control.cs: Added OnSizeInitializedOrChanged.
3843 * Form.cs: OnLoadInternal: Added a call to
3844 Control.OnSizeInitializedOrChanged.
3845 * InternalWindowManager.cs:
3846 * HandleTitleBarMouseMove: No longer invalidates the parent window.
3847 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3848 * TitleButton: Added Entered.
3849 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3850 * MdiWindowManager.cs:
3851 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3852 move over the maximized title buttons causes a change.
3853 * IsActive: Can now be called before the window is added to a MDI parent.
3854 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3855 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3856 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
3857 * ThemeWin32Classic.cs:
3858 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
3859 * DrawTitleButton takes a new form parameter.
3860 * Added ManagedWindowTitleButtonHasHotElementStyle,
3861 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
3863 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3865 * ThemeEngine.cs: ThemeVisualStyles is now selected if
3866 Application.EnableVisualStyles has been called, even if the current system
3867 configuration does not support rendering with Visual Styles.
3868 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
3869 Styles should not be used.
3871 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
3873 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
3874 ComboBox in FormsTest.
3876 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
3878 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
3879 for fixed toolwindows.
3881 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
3883 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
3885 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3887 * Control.cs: CreateControl just returns if the Control is diposed
3888 and doesn't throw ObjectDisposedException.
3891 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3893 * Control.cs: Do not create the control if the parent isn't created
3894 yet, e.g in the case of a parented form on which .Show is called.
3895 It will be created when the parent is made visible/created.
3898 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3900 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
3901 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
3904 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3906 * Form.cs: When disposed set owner to null. Improves #402446.
3908 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3910 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
3911 use children's PreferredSize if in AutoSize mode and ExplicitBounds
3913 * Form.cs: Take the Padding into account for the PreferredSize.
3916 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3918 * TabControl.cs: Since we don't support more than one direction in
3919 TabControl rows alignment (this is, the row becomes the
3920 bottom row when selected), make Direction return always 1. This way
3921 the layout doesn't get confused about a bad calculation.
3924 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3926 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
3927 so that the wparam is properly set.
3928 Fixes form moving in the test case in bug 402446.
3930 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
3932 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
3933 the full tree instead of nothing. [Improves bug #406584]
3935 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3937 * ThemeWin32Classic.cs: Adjusted minimized window painting.
3939 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
3941 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
3944 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
3946 * TreeView.cs: Add a null check when using CollapseAll on an
3947 empty tree. [Fixes bug #406449]
3949 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3951 * Form.cs: Make OnMenuComplete internal so we can call it.
3952 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
3955 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3957 * TabControl.cs: Handle Up and Down keys when TabControl is in
3961 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3963 * TabControl.cs: Invalidate when we remove a tab. Guard against
3964 an AOORE when trying to remove a tabpage that is not owned by the
3968 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3970 * ScrollBar.cs: Change the LargeChange calculation to be correct.
3971 Ensure we are using LargeChange instead of large_change so we our
3972 calculations are correct.
3975 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
3977 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
3978 we need to ensure the ColumnCount/RowCount gets set.
3981 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3983 * ListBox.cs: When handling item navigation, if selection mode is
3984 None, call EnsureVisible, since scrolling is normally handled by
3985 selection, that we are not calling in this case.
3988 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
3990 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
3991 a null check to our focus walking code. [Fixes bug #394332]
3993 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
3995 * ComboBox.cs: Case missed in bug 379596 "Support item
3996 navigation by entering text": On _close_ drop-down select
3997 the first item matching the text in the textbox. [Fixes bug #397265]
3999 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
4001 * DataGridView.cs: Fix a crash when sorting by column headers,
4002 mentioned in bug #404841. Remove some dead switch cases.
4004 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4007 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4008 uses the AutoComplete support in the internal TextBox. Also TextBox
4009 can store a reference to ComboBox, in case AutoCompleteSource is set
4010 to ListItems (this is, ComboBox's items, and we don't want to pass an
4011 additional collection).
4013 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4015 * ListViewItem.cs: Restore the initial value of bounds rect to
4016 Rectangle.Empty, and is this value for Layout detection in virtual
4017 mode. Fixes the tests.
4019 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
4021 * XPlatUI.cs: Remove references to "new" X11 backend.
4023 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
4025 * Control.cs: Add an internal virtual OnDragDropEnd method
4026 to allow controls such as ListBox, which depend on a sequence
4027 of MouseDown+Move+End events, to handle the lack of a MouseUp
4028 when a DnD operation is started in MouseDown.
4029 * ListBox.cs: If a DnD operation is started in MouseDown we won't
4030 get a MouseUp, so reset our state whenever a DnD operation ends.
4032 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
4034 * PropertyGrid.cs: Clear the root griditem first thing when
4035 new object/s is/are selected. Fixes some rare cases where
4036 the View will get a paint request and won't know that the
4037 grid is in the process of repopulating.
4039 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4041 * XplatUIX11.cs, InternalWindowManager.cs:
4042 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
4043 doesn't automagically update the FormBorderStyle, so we must
4044 double check the CreateParams explicitly to determine if the
4045 window is a toolwindow.
4046 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
4047 instead of doing custom checks.
4049 Fixes toolwindows for the test case in bug #402446
4051 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4053 * Control.cs: Visibility of the control should be false
4054 when the handle is destroyed in WmDestroy and not immediately
4055 in Dispose(). This is effectively where the disposing process
4056 ends even though the control is marked as Disposed immediately
4057 after calling Dispose().
4060 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4062 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
4063 when the textbox gets focus.
4066 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
4068 * PropertyGridTextBox.cs, PropertyGridView.cs:
4069 - Alt + Down should show the drop down editor.
4070 - Focus the editor when showing it
4073 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
4075 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4076 that are not the first panel.
4077 * StatusBar.cs: Ensure that the X coordinate of panels is always
4078 stored. Fix IList implementation of StatusBarPanelCollection to
4079 call the regular methods.
4080 [Fixes bug #403599, #402165]
4082 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
4084 * ThemeWin32Classic.cs: Fix position calculation for centered
4085 text on status bar panels. [Fixes bug #402165]
4087 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
4089 * Splitter.cs: Fix Splitter to:
4090 - Work for arbitrary splitter size
4091 - Handle MinSize and MinExtra properly
4092 - Get rid of absolute positioning during drag and use relative
4093 - Multiple other fixes
4096 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
4098 * Cursor.cs: Show shouldn't hide the cursor.
4100 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4102 * ListViewItem.cs: When invalidating, add some extra space to bounds,
4103 since focus rectangle and selection can add some space and need to
4104 take into account those small offsets - specially in Details view.
4105 * ListView.cs: Instead of invalidate using item Bounds directly, call
4106 item.Invalidate, to have the code centralized.
4107 Fixes focused/selection garbage when selecting and deselecting items
4110 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4112 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4113 mode we can check whether we have to force a Layout or not, and can
4114 cache based on this, instead of avoiding caching all the the time. Do
4115 this check in GetBounds and TextBounds.
4116 Fixes selection in Details view.
4118 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4120 * ListView.cs: Make HeaderControl internal, thus the theme engine can
4121 get its *real* height instead of trying to infere it.
4122 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4123 get the position of them, since it's in general a bad idea in general,
4124 and because we can't do that in virtual mode. Instead get the first
4125 visible item as well as item height, and draw them.
4128 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
4130 * ToolStripSplitButton.cs: We can't add in extra width if
4131 the button is not AutoSize. [Fixes bug #401279]
4133 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
4135 * PaddingConverter.cs:
4136 - Implement conversion to InstanceDescriptor
4137 - Handle "All" in CreateInstance by using the supplied
4138 ITypeDescriptorContext.
4139 [Fixes bugs #396076 and #396078]
4141 Patch by Andy Hume <andyhume32@yahoo.co.uk>
4142 Code contributed under MIT/X11 license.
4144 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
4146 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
4148 Add Category attributes.
4149 Code is contributed under the MIT/X11 license.
4151 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
4154 - Fix a NRE when unparenting a form.
4155 - Do not recreate or destroy a parented form when
4158 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4160 * TextBox.cs: Implement basic support for AutComplete with custom
4163 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
4165 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4166 DropDownButtonBounds should be from the origin of the button, not the
4167 ToolStrip. [Fixes bug #401279]
4169 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
4171 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4172 running gtk_init_check. This prevents GAIL from loading
4173 unnecessarily, which was breaking UIA support. Initial fix for bug
4175 * Application.cs: Add UIA support to Winforms. New static constructor
4176 uses reflection to initialize UIAutomationWinforms assembly. Added
4177 PreRun event so UIA can initialize before the mainloop starts, and
4178 FormAdded event so UIA can provide a11y support for new Forms in an
4181 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
4183 * DataGridView.cs: When binding to a dataset, subscribe to table
4184 and column change events. Unsubscribe to these when we clear bindings.
4187 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
4189 [DataGrid drawing refactory]
4191 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4193 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4194 must be handle by Theme, now it call DataGridPaintColumnHeader.
4196 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4197 test cases must be also fixed because it checks for wrong size.
4199 * ThemeWin32Classic.cs:
4200 - Draw the bottom line of grid caption.
4201 - Prevent to draw caption text when it is empty.
4202 - Use CPDrawBorder3D for 3D efects to simplify code.
4203 - Uses 3D (when not flat) to paint corner shared between row and column
4205 - Fix header drawing issues on win32, now borders are drawing.
4206 - Fix column header paint issues to mimic win32.
4207 - Adjust header drawing for last column, like first one it must be draw
4209 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4211 - DataGridPaintColumnHeader created to draw column headers, it also
4212 paint stuff right on Win32.
4213 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
4217 - DataGridPaintRowHeaderStar method added.
4218 - DataGridPaintColumnHeader method added.
4220 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
4222 * Control.cs: Don't reset to Dock style layout if DockStyle is
4223 set to none. [Fixes bug #399316]
4225 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
4227 * Win32DnD.cs: Fix the check for control not equal null.
4228 Fixes bug #341420 and #381886.
4230 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
4232 * DataGridViewRowCollection.cs: Update the indexes of rows after
4233 one has been removed.
4234 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4235 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4236 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4237 rows for the Rows collection, or deleting rows from the bound DataSet.
4239 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
4241 * DataGridView.cs: Listen to a DataSet's changed event even
4242 when autogeneratecolumns is false. Refactor the changed event's
4243 add row code to use the same as the existing add row code.
4246 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4248 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4249 much any time the caret moves and there is text, not just when
4250 the selection changes as one would think.
4251 * RichTextBox.cs: Override RaiseSelectionChanged and fire
4255 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4257 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4258 instead of trying to duplicate the code.
4259 * ListBox.cs: Make method internal so we can send keyboard events.
4262 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4264 * TextBoxBase.cs: When pasting and checking the max length,
4265 subtract the selected text length (the text we will be replacing) from
4266 the document length.
4267 * TextControl.cs: Ensure every character insertion is reflected in
4268 charcount, so max length will work properly.
4271 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4273 * ListBox.cs: Ensure scrollbars are updated when a single
4274 column listbox with an already set top-index is created.
4277 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
4279 * FontDialog.cs: Typing in the font/style textboxes should search
4280 the list boxes case-insensitively. [Fixes bug #398343]
4282 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
4284 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4285 widths of icon and buttons instead of hard coded values.
4287 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4289 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4290 as well as generating a SelectedIndexChanged event, just like .Net does
4294 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4296 * ListBox.cs: When navigating items visually, use FocusedItem as the
4297 reference point instead of SelectedIndex, since even in
4298 SelectionMode.None we need to support navigation, and in that case we
4299 just can't use SelectedIndex.
4300 Fixes part of #398345.
4302 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
4304 * Control.cs: Make a SetBoundsInternal that avoids the new
4306 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4307 SetBoundsInternal instead of SetBoundsCoreInternal.
4309 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
4311 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
4312 SetBounds for the scrollbars.
4314 2008-06-10 Andreia Gaita <avidigal@novell.com>
4316 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4317 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4318 OnMouseMove, OnMouseOver, OnMouseUp
4319 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4320 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4321 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4322 to the WebControl object to pass to new collection objects
4323 * HtmlHistory.cs: Implement support for individual window histories.
4324 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4325 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4326 GotFocus, LostFocus, OnLoad, OnUnload
4327 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4329 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4330 security level changes and context menu event support.
4332 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4334 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4335 as happens with Esc, patch my Andy Hume.
4338 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4340 * MdiWindowManager.cs: DrawMaximizedButtons now uses
4341 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4342 * Theme.cs: Made MenuButtonSize platform dependent. Added
4343 ManagedWindowButtonSize.
4344 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4345 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4347 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4349 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4350 Added support for rendering with VisualStyles.
4352 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4354 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4355 support for rendering the border with VisualStyles.
4357 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4359 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4360 the icon is not shown.
4361 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4364 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
4366 * InternalWindowManager.cs: Draw minimized windows even if they don't have
4369 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
4371 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4373 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
4375 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4378 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4380 * ComboBox.cs: When snaping height -because of IntegralHeight set to
4381 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4382 if the requested height leaves the listbox area with *less* than the
4383 required are to see one item. We were setting it to PreferredHeight
4384 even for values matching the height for a single item.
4387 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
4389 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4391 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
4393 * DataGridViewCell.cs: Use property instead of field.
4395 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4397 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4400 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4402 * Theme.cs: Added #region around the managed window code. Made the managed
4403 window methods abstract.
4404 * ThemeWin32Classic.cs: Added #region around the managed window code.
4406 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4408 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4410 * ThemeWin32Classic.cs: Removed HasBorders checks in
4411 DrawManagedWindowDecorations.
4413 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
4415 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4416 Extracted ManagedWindowGetTitleBarIconArea.
4418 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4420 * DataGridViewCellStyle.cs: Don't clone the font.
4422 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4424 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4426 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4428 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4429 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4432 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
4434 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4435 Use Format/FormatProvider before trying converters.
4436 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4437 are 'set'. Change constructor to not use ApplyStyle since it wants
4438 everything applied. Clone the Font.
4439 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4440 ApplyStyle the rest.
4442 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444 * ListView.cs: We need to calculate the scrollbars even if the handle
4445 hasn't been created - this is needed when methods using scrollbars
4446 info, such EnsureVisible, are called before control has been created.
4449 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
4451 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4452 only if the elements are defined.
4454 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4456 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4457 section. Also, when setting bounds, snap height as well as save the
4458 requested height if Dock has any value affecting the height: Left,
4459 Right and Bottom - important if using IntegralHeight as true.
4461 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4463 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4464 passed to SetBounds to reflect the new adjusted height (Integral-wise),
4465 instead of doing that only in our SetBoundsCore override, since the
4466 bounds cached can be the same as saved one and we could not get the
4470 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4472 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4473 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4474 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4475 ToolWindowCaptionButtonSize.
4476 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4478 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4480 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4482 * Theme.cs: Made DoubleClickTime plaform dependent.
4484 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4486 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4487 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4488 ToolWindowCaptionHeight.
4490 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4492 * InternalWindowManager.cs: The adjustment to ensure positive client area
4493 sizes is now platform dependent (disabled on Windows).
4494 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4495 RequiresPositiveClientAreaSize.
4497 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4499 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4501 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4503 * InternalWindowManager.cs: Changed IconicSize to use
4504 SystemInformation.MinimizedWindowSize.
4505 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4506 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4508 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4510 * ComboBox.cs: If the combobox is anchored both on top and bottom,
4511 adjust height if IntegralHeight is true when calling SetBoundsCore (as
4512 likely the height was modified even if Height wasn't specified in
4513 BoundsSpecified parameter).
4514 Fixes part of #396297.
4516 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
4518 * InternalWindowsManager.cs: Changed minimum window size while resizing to
4519 SystemInformation.MinWindowTrackSize.
4520 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4521 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4523 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4525 * MenuItem.cs: Fixed Dispose.
4527 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
4529 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4530 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4531 EnteredHeaderCell, PressedHeaderCell: Added.
4532 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4533 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4534 theme a chance to override default painting.
4535 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4536 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4537 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4538 ListView and DataGridView header rendering.
4540 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4542 * RichTextBox.cs: GetPositionFromCharIndex should return the
4543 visual position of the character relative to the viewport.
4544 [Fixes part of bug #396664]
4546 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
4548 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
4549 and not just for the existance of an UITypeEditor. In some cases
4550 there is an editor associated just to do PaintValue, but which
4551 doesn't actually support editing.
4554 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4556 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4557 if needed, instead of 0 - this should help us in the corner case where
4558 we have more than one item but we are only partially showing 1 item.
4559 Fixes part of #374713.
4561 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4563 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4564 control, return immediately if the any parent control's handle hasn't
4565 been created or isn't visible, as well as avoiding creating the parent
4566 Form if the handle hasn't been previously created.
4569 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4571 * TableLayoutPanel.cs: Use border sizes when calculating the
4572 panel's preferred size. [Fixes part of bug #396433]
4574 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4576 * SplitContainer.cs:
4577 - Fix SplitterDistance to update only if needed.
4578 - Make it force min and max validation.
4579 - Handle properly mouse moves outside the resizeable area.
4582 2008-06-02 Andreia Gaita <avidigal@novell.com>
4584 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4585 (which also suppresses all popup dialogs). Throw NotSupported
4586 exceptions for activex getters/setters.
4587 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4588 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4589 StatusText, Version, GoSearch
4590 * HtmlDocument.cs: Add DocType support
4592 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
4594 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4597 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
4599 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4601 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
4603 * TableLayoutPanel.cs: When calculating preferred size, use the
4604 actual number of columns and rows, not what the user set them to.
4607 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
4609 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4612 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4614 * XplatUIX11.cs: When detecting areas obscured in a control by other
4615 toplevel windows while scrolling, return if the control hasn't a
4619 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4621 * XplatUIX11.cs: Properly detect the visible area of a control being
4622 scrolled (obscured by other winforms controls and any X toplevel
4623 windows), to mark as invalid the requested area to be scrolled that
4624 isn't visible and thus can't be copied.
4627 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4629 * ListBox.cs: Compute the precise amount to vertically scroll when
4630 using DrawMode.OwnerDrawVariable.
4631 Patch by jkeymer (j.keymer@gmx.net).
4633 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4635 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
4636 to avoid setting an invalid value for the verticall scrollbar
4637 when navigating items. And, duh, also remove my silly debug messages
4638 from previous commits.
4641 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4643 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
4644 make it MS compatible.
4646 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
4648 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
4649 - Allow the editing of entries even if their parent is read-only.
4650 - Do not render expandable properties read-only.
4651 - Refactor expansion checks form PropertyGrid into PropertyGrid.
4653 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
4655 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4656 support for the hover style.
4658 2008-05-29 Andreia Gaita <avidigal@novell.com>
4660 * ContainerControl.cs: Check for null dead-end when traversing the tree
4663 [Fixes #394332, patch by Ernesto Carrea]
4665 2008-05-29 Geoff Norton <gnorton@novell.com>
4667 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4668 constant that it is. Fixes #393981
4670 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4672 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4673 that the user probably doesn't want to set this.
4675 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
4677 * ThemeWin32Classic.cs: Don't let the text size be bigger than
4678 the control size for CheckBox/RadioBox.
4679 [Fixes part of bug #394645]
4681 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4683 * PropertyGrid.cs: Update the state of the sorting buttons in
4684 the toolbar if PropertySort is set programatically.
4686 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4688 * GridItemCollection.cs: Add multiple items with conflicting names
4689 support and also preserve name ordering.
4692 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
4694 * GridItemCollection.cs: Revert my multiple items with same
4697 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4699 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4701 Fixes part of #393908.
4703 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
4705 * ToolStripDrowDown.cs: When using the Show () methods that have a
4706 Control parameter, set the menu owner to that Control.
4709 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
4711 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4714 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4716 * GridItemCollection.cs: Refactor to support multiple items with the
4720 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
4722 * Control.cs: The 2.0 check for illegal cross thread calls in
4723 Control.Handle were throwing an exception when we were getting
4724 the Handle in order to invoke correctly. Created a private
4725 version that does not contain this check.
4728 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4730 * PropertyGrid.cs: Respect DefaultTabType.
4732 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4734 * ListView.cs: SPACE selects an item.
4737 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
4739 * ListView.cs: Reset the search string whenever the items are
4743 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4745 * ListControl.cs: For the first added item PositionChanged is fired
4746 _before_ ItemChanged, which leave us in a temporary invalid state - so
4747 we need to set the selected index from ItemChanged handler *if* we
4748 know that the first item has just been added *and* the items have been
4749 actually added to the ListControl.
4752 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4754 * TabControl.cs: Only clicks with the left button should be
4758 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4762 * TextBox.cs: Expose an internal method in TextBox to restore the
4763 original context menu, and call it from ComboBox to re-use it in the
4764 combobox containing the file name in FileDialog.cs.
4765 Fixes part of #393775.
4767 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4769 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4772 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
4774 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4777 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4779 * ComboBox.cs: Minor correction to previous patch: PageDown should
4780 also *try* to move by one item if the computed offset is negative,
4781 just like the PageUp case.
4783 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4785 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4786 should be done for at least 1 item, and not stay at the same item.
4787 Fixes part of #374713.
4789 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
4791 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4792 directories. [Fixes bug #393931]
4794 2008-05-22 Andreia Gaita <avidigal@novell.com>
4796 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4797 Don't fire events until the initial about:blank page has finished
4798 loading. Clean up events.
4800 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4802 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4803 FocusIn() too. This should fix the issue on switching
4806 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
4808 * X11Keyboard.cs : set XIM font size to somewhat reasonable
4809 number (ideally the input textbox size, but that could be
4812 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
4814 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4815 the ToolStripItem's TextChanged. [Fixes bug #393597]
4817 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4819 * TabControl.cs: When invalidating in SelectedIndex and we need to
4820 inflate to take into account the border of the tabs, make sure that
4821 the invalidated rect doesn't overflow the control bounds, since that
4822 would avoid updating at all.
4824 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4826 * TabControl.cs: Don't substract scroller width from the row width,
4827 since we need to take into account the total width of the control when
4828 calculating the position of the tabs. This avoids showing scroller
4829 when it is actually not needed.
4830 Fixes part of #322325.
4832 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4834 * ThemeVisualStyles.cs: Added support for TextBoxBase.
4836 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4838 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4839 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4841 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4843 * DataGridView.cs: Only paint the top left header cell if there
4846 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4848 * DataGridView.cs: When binding to a BindingSource, get the underlying
4849 list to bind to. [Fixes bug #345483]
4851 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
4853 * DataGridView.cs: Do not bind to collection properties.
4856 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4858 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
4860 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4862 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
4865 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4867 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
4869 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4871 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
4874 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4876 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
4878 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4880 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
4883 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4885 * TabControl.cs: Extended to handle the hot style.
4887 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
4889 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
4890 Extended UpDownBase code to handle hot and disabled styles.
4892 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4894 * DataGridView.cs: Handle databinding to generic list type things.
4897 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4899 * DataGridViewCellCollection.cs: Add a method to find the cell
4900 with the given DataPropertyName.
4901 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
4902 * DataGridViewColumnCollection.cs: Add a method to clear all
4903 autogenerated columns.
4904 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
4908 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4910 * DataGridView.cs: Don't try to update the RowTemplate with
4911 a null CellTemplate.
4913 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4915 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
4916 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
4917 * DataGridView.cs: Lots of fixes/enhancements to databinding to
4920 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
4922 * Control.cs: Remove invalidating implicit child controls when
4923 control is invalidated. It was causing too many redraws on
4924 controls with implicit scrollbars.
4925 * ListView.cs: Listen to the Invalidated event and invalidate
4928 2008-05-20 Andreia Gaita <avidigal@novell.com>
4930 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
4931 * HtmlDocument.cs: Check for nulls
4933 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4935 * Control.cs: In ControlCollection.RemoveInternal, remove the
4936 internal control before calling PerformLayout and OnControlRemoved,
4937 which was leaving us in an invalid state and causing a X error (bad
4938 match). Observe that Remove () call has the same order.
4939 Fixes an X error changing ComboBoxStyle.DropDownStyle.
4941 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4943 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
4944 being fired if ControlStyles.UserPaint style is activated.
4947 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4949 * GridEntry.cs: Don't be so strict when setting the value -
4950 do not check if what we set is what we get.
4953 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4955 * XplatUIX11.cs: If there are no timers timeout should be 0
4958 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
4960 * Control.cs: As a followup to invalidating implicit children when
4961 a control is invalidated, only invalidate them if they are in the
4964 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4966 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
4968 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4970 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
4972 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4974 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
4975 * XplatUIWin32.cs: Made Win32DeleteObject public.
4977 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
4979 * GridEntry.cs: Determine HasDefaultValue more strictly by using
4980 PropertyDescriptor.ShouldSerializeValue.
4983 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4985 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
4986 in the classic theme.
4988 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4990 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
4992 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
4993 ScrollBarHasPressedThumbStyle.
4995 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
4997 * TextRenderer.cs: Included some methods in the 1.1 profile.
4999 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
5001 * Control.cs: When we make a control visible, it may have been
5002 previously visible and while it wasn't visible, the z-order of
5003 things may have been shuffled, so the control needs to have its
5004 z-order updated just in case. [Fixes bug #391518]
5006 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5008 * ThemeVisualStyles.cs: Added support for GroupBox.
5010 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
5012 * GroupBoxRenderer.cs: Included in the 1.1 profile.
5014 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
5016 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5017 bug #389996; XSelectInput() behaved as mouse handler robber,
5018 so remove extra call to it.
5020 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5022 * Control.cs: Simplify ControlCollection.Contains method.
5024 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5026 * DataGridViewRow.cs: Implement GetPreferredSize.
5028 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5030 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
5032 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
5034 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5035 painting and edit control fixes.
5037 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5039 * DataGridView.cs, DataGridViewCell.cs: Work around some external
5040 checks to make sure we are in an actual row/col for top left header cell.
5041 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5043 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5045 * Control.cs: Use long instead of int when handling WParam from
5046 mousewheel scrolling. Int was overflowing on Win64.
5048 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5050 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5051 flow panel without scrolling first, and then calculate the
5052 scrolling based on the new layout. [Fixes bug #390149]
5054 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
5056 * ListBox.cs: Invalidate after scrolling up when selected index
5057 changes. [Fixes bug #390151]
5059 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5061 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5062 set, default height to 150. I tried first with DefaultSize, but this
5063 is not generating a SetBoundsCore call before handle creation time, so
5064 we can take it into account. This is just what .net does.
5066 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
5068 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5069 as it broke some stuff. Calberto is filing a bug for eno to
5072 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5074 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5075 to 0 is the current value is -1, and if style is not Simple, just
5076 return, like .net does.
5077 Fixes part of #374713.
5079 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
5081 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5082 progress bar stuffs, use doubles instead of ints to prevent
5083 overflow. [Fixes bug #389798]
5085 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
5087 * XplatUIX11.cs, X11Keyboard.cs :
5088 Significant refactoring on XIM support. Now IM engine UI
5089 should show up, at mostly-correct preedit position.
5090 - Eliminated use of FocusWindow, as it is never mapped
5091 and hence blocks correct preedit position. XIC is now
5092 created per window, and it must be destroyed too when
5093 the window is destroyed.
5094 - WM_QUIT messages should not be filtered even when hwnd
5095 is zombie. Filtering it could cause endless loop.
5096 - Preedit position must move only when the window is alive.
5097 - Make it IDisposable and make sure to release XIM/XICs.
5099 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
5101 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5102 XplatUIX11.cs, XplatUIWin32.cs :
5103 fix for bug #325033 and #387693;
5104 - WM_QUIT should not be sent when no running application
5106 - SetTimer/KillTimer (especially on win32) should be
5107 invoked for the window that the timer is/will_be attached.
5108 - There could be unattached timers to a window when it's
5109 started. For those timers, hold pending timers and when
5110 a window is mapped, attach them to it.
5111 - WaitForHwndMessage() could run into loop when
5112 WM_SHOWWINDOW is handled before this method is called.
5113 So, strictly check wm_showwindow state.
5114 - Tick handler should not be invoked while one Tick handler
5115 call is still running (introduced Busy state).
5117 2008-05-13 Andreia Gaita <avidigal@novell.com>
5119 * WebBrowserBase.cs: Override Internal alternative methods for
5120 SetBoundsCore and OnResize instead of the protected ones.
5121 * Control.cs: Move SetBoundsCore and OnResize implementations to
5122 SetBoundsCoreInternal and OnResizeInternal, so they can be
5123 overriden internally (WebBrowserBase needs to catch them but can't
5124 override the protected methods without api compat problems)
5126 2008-05-13 Andreia Gaita <avidigal@novell.com>
5128 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5130 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5133 * ListView.cs: Remove debug messages.
5135 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5137 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5138 area is empty. Also calculate scrollbars in Simple mode based in area
5139 height and total number of items, not in MaxDropDownItems.
5140 Fixes part of #371991.
5142 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5144 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
5146 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5148 * BindingSource.cs: GetListSortDescription is not public.
5150 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5152 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5154 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5156 * HtmlElement.cs: Fix parameter names to match MS.
5157 * HtmlWindowCollection.cs: Should not be sealed.
5159 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5161 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5162 button, because the thumb button will not get drawn if the scrollbar
5163 is disabled. [Fixes bug #389262]
5165 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5167 * ListBox.cs: Handle End key for multi-column listboxen.
5170 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5172 * ListBox.cs: Fix algorithm to determine which column our item is in.
5175 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5177 * ListBox.cs: Invalidate when the listbox is resized.
5180 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5182 * ListBox.cs: There is always at least one row in the ListBox (if
5183 we are doing these calculations.) [Fixes bug #389253]
5185 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
5187 * ListBox.cs: There is always at least one column in the ListBox.
5190 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5192 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5193 ensure in Simple mode that the height is exactly the requested one.
5194 Also add the ComboBoxListControl to the controls collection in Simple
5195 mode even if handle hasn't been created.
5196 Fixes part of #371991.
5198 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5200 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5201 our ComboBox owner instead of giving it back to the previous control (
5202 as done in other controls). Also remove the empty override of Select
5203 method, since we want to be selected *and* give focus to our owner.
5204 This should let the user do keys-navigation in Simple mode.
5206 2008-05-10 Geoff Norton <gnorton@novell.com>
5208 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5209 problems with rapid scrolling of treeviews. Fixes #381084
5211 2008-05-10 Geoff Norton <gnorton@novell.com>
5213 * XplatUICarbon.cs: Deactivate the active window before
5214 activating the desired window. Completes fixing #386504
5216 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5218 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5219 SmallChange to the item size width plus the padding, to match .net.
5221 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5223 * FileDialog.cs: Apply the custom filter typed by the user in the file
5224 name combobox as much as possible while navigating in the file dialog.
5227 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5229 * Binding.cs: Actually use NullValue if the retrieved value of
5230 data source is null or DBNull. Makes a test pass.
5232 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
5234 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5235 * MimeIcon.cs: Provide a way to get icons from resources.
5237 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5239 * Binding.cs: When the value retrieved from the control to be assigned
5240 to the data source is null, actually use the 2.0 DataSourceNullValue
5241 value. Make pass a data binding test.
5243 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
5245 * Control.cs: We need to invalidate implicit children even when
5246 invalidate is called with invalidatechildren = false. (Implicit
5247 children are really part of the parent.)
5248 * ListView.cs: Double-buffer internal child controls for less
5250 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5251 owner ListView subitems for greatly increased performance.
5254 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5256 * FileDialog.cs: When the user types a wildcard character in the
5257 filename combobox, update the contents of the folder using the text as
5259 Fixes part of #385261.
5261 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
5263 * ListBox.cs: Various fixes for MultiColumn listboxen.
5266 2008-05-08 Andreia Gaita <avidigal@novell.com>
5268 * HtmlElement.cs: Implement Style property
5270 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
5272 * ListBox.cs: Respect checkboxes when measuring item size.
5273 * ThemeWin32Classis.cs: When drawing list items, don't draw
5274 text outside of the item's bounds to prevent overlapping.
5275 (.Net actually overlaps, but that's just silly.)
5278 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
5280 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5281 Gert Driesen. Fixes bug #324830.
5283 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
5285 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5288 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5290 * BindingSource.cs: When calling IsSynchronized, return the value of
5291 the related IList list.
5293 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5295 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5298 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
5300 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
5301 navigation to scroll the grid if the current cell is not visible.
5303 2008-05-07 Andreia Gaita <avidigal@novell.com>
5305 * HtmlElement.cs: Implement TabIndex
5307 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
5309 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5310 properties, even when there are no items.
5313 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
5315 * NativeWindow.cs: Add support for multiple handles per window.
5316 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
5317 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
5318 directly - use FromHandle instead.
5321 2008-05-07 Andreia Gaita <avidigal@novell.com>
5323 * HtmlElement.cs: Implement InnerHTML setter
5325 2008-05-07 Andreia Gaita <avidigal@novell.com>
5327 * HtmlDocument.cs: Implement Focused
5329 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5331 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5332 methods, as well as add messages to the exceptions.
5334 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5336 * BindingSource.cs: Setting DataSource should only reset DataMember if
5337 the previous value was null (make pass a not working test).
5339 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5341 * BindingSource.cs: When EndInit call is postponed and is called until
5342 DataSource.EndInit is called, remove the handler for data source.
5344 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5346 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5348 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5350 * ToolStripManager.cs: Store references to toolstrips as
5351 weak references so they do not prevent forms from getting collected.
5354 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5356 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5357 on .Net. So do the same thing in WndProc.
5359 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5361 * TrackBar.cs: Commit patch from Andy Hume that corrects
5362 the clickable areas to better match .Net.
5365 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5367 * TrackBar.cs: Commit patch from Andy Hume that adds the
5368 ResizeRedraw control flag so the track bar repaints itself
5369 when it is resized. [Fixes bug #387072]
5371 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
5373 * TrackBar.cs: Commit patch from Andy Hume that adds better
5374 support for keyboard navigation when the TrackBar is vertical.
5377 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5379 * BindingSource.cs: Implement ISupportInitializeNotification support.
5381 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
5383 * ThemeVisualStyles.cs: Added support for ToolBar.
5385 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
5387 * ToolBar.cs: Made the Vertical property internal.
5389 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5391 * ThemeVisualStyles.cs: Added support for TrackBar.
5393 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5395 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5396 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5397 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5398 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5399 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5400 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5402 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5404 * ThemeVisualStyles.cs: Added support for UpDownBase.
5406 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
5408 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5409 Extracted Theme.UpDownBaseDrawButton.
5411 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
5413 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5414 removed from the static toolstrips collection in ToolStripManager
5415 when they are disposed. Provides a workaround for bug #386483.
5417 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
5419 * GridEntry.cs: Read-only properties with Editor with
5420 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5423 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
5425 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5426 the menu key and there are no items on the menu.
5429 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
5431 * Control.cs: Avoid calling ToString on a string.
5432 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5433 * GroupBox.cs: In FlatStyle property throw, not just create, the
5434 exception. Avoid calling ToString on a string.
5435 * ProgressBar.cs: Avoid calling ToString on a string.
5436 * ScrollBar.cs: Avoid calling ToString on a string.
5437 [All issues were found using Gendarme]
5439 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5441 * NotifyIcon.cs: Prevent click events to be trigger after double click
5442 events. Fixes remaining issues of bug #324832.
5444 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
5446 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5447 to mimic win32 behavior. Partially fixes bug #324832.
5449 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5451 * BindingSource.cs: Implement Find methods.
5453 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5455 * BindingSource.cs: Implement Sort, ApplySort overloads, and
5458 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5460 * ListBindingHelper.cs: When calling GetListItemProperties and the
5461 passed object is ITypedList, return the result of
5462 ITypedList.GetItemProperties instead.
5464 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5466 * LinkLabel.cs: Set default value of name on constructor of Link class
5467 only for 2.0 profile.
5469 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5471 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5472 Fixes remaining issues of bug #346154.
5474 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5476 * LinkLabel.cs: Set a default value for name on internal contructor of
5477 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5479 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
5481 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5482 and refer all instances to owner.links. Partially fixes #346154.
5484 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5486 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
5487 length equal zero. Also called CreateLinkPieces in constructor. It fixes
5488 the LinkLabel test 'TestLinkArea'.
5490 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5492 * Form.cs: Remove menu before close form to prevent form to be not gaced.
5495 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5497 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5500 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5502 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5505 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5507 * MenuAPI.cs: Remove unused ProcessCmdKey method.
5509 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5511 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
5514 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5516 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5519 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
5521 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5522 sometimes we open a conext menu on mouse down of some controls and the mouse
5523 up is dispatched to menu and dont need to. It fix remaining issues of
5524 #363711 and other problems related to menu mouse click events.
5526 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5528 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5529 some var names to better fit changes, now we have month_menu and today_menu
5530 vars. Fixes bug #363711.
5532 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5534 * MonthCalendar.cs: Handle every right mouse click to open context menu,
5535 right now the default month menu but it will be change to have "Go to today"
5538 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5540 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5542 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
5544 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5546 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5548 * ThemeVisualStyles.cs: Added support for TreeView.
5550 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5552 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5553 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5555 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5557 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5559 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5561 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5562 Implement 2.0 SP1 stuffs.
5564 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5566 * FileDialog.cs: Implement 2.0 SP1 stuffs.
5568 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5570 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5571 Implement CanEnableIme property. (2.0 SP1)
5573 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5575 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5578 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5580 * Control.cs: Provide an internal way for a control to override
5581 the setting of Height.
5582 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5583 set height using new method.
5585 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5587 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5589 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5591 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5592 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5594 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5596 * ThemeVisualStyles.cs: Added support for StatusBar.
5598 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5600 * DataObject.cs: Add the other IDataObject interface.
5602 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
5604 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5605 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5607 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5609 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5610 * ListView.cs: Hide non-public API.
5611 * MaskedTextBox.cs: Remove extra attribute.
5613 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
5615 * DataGridViewImageCell.cs: Use formatted value instead of value
5616 to calculate preferred size.
5618 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5620 * ListBox.cs: Move some initialization around so that selected_indices
5621 is not accessed before it is created.
5623 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5625 * InputLanguageCollection.cs: Implement the collection better.
5628 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5630 * ToolStripDropDownItem.cs: Get the correct event object for
5631 DropDownItemClicked.
5632 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5635 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
5637 * DataGridViewRowCollection.cs: We don't currently support shared
5638 rows. Should fix test failures caused by previous commit.
5640 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5642 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5643 datagridview gets set. Only paint cells in visible columns.
5644 * DataGridViewCell.cs: Draw border after cell content.
5645 * DataGridView.cs: Invalidate after setting some properties. Only
5646 use visible columns. Fit hit test bug with areas in the col/row header
5647 area but not in a row or col. Implement UpdateCell/Row methods.
5649 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5651 * DataGridViewElement.cs: Don't throw NIEX.
5652 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5653 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5654 * DataGridViewCheckBoxColumn.cs: Implement ToString.
5655 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5656 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5657 if the user filled in the formatting Value, use it.
5659 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
5661 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5664 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5666 * BindingSource.cs: Some corrections to Filter property, as well as
5667 setting it for our list when resetting it.
5669 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
5671 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5672 than the maximum. Fixes reopened bug #384182.
5674 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5676 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5677 Fixes remaining issues of #367490.
5679 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5681 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
5682 SystemInformation.WorkingArea to get max_screen value.
5684 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5686 * BindingSource.cs: Implement Filter and RemoveFilter.
5688 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5690 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5692 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5694 * X11Dnd.cs: When trying to convert data and we know we started the
5695 dnd loop, don't try to use the cached data if the loop is not running,
5696 which means that the data has been resetted.
5699 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5701 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5704 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5706 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5707 it to drawn off screen edge. Fixes bug #367490.
5709 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5711 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5712 menu position to have only one assignment of Location var.
5714 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
5716 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5717 for this patch. Fixes bug #384115.
5719 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5721 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5722 the same. If LargeChange is zero, set a minimum size for the scroll
5723 thumb grip. [Fixes bug #384182]
5725 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5727 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5730 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
5732 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
5734 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5736 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5737 patch from Ernesto).
5739 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5741 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5743 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5745 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5747 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5749 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5751 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
5753 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5755 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
5757 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5759 2008-04-27 Andreia Gaita <avidigal@novell.com>
5761 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5762 supposed to return a reference to an mshtml interface, which we
5764 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5765 reference to an mshtml interface, which we don't support). Code
5767 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5768 DomDocument getter (it's supposed to return a reference to an
5769 mshtml interface, which we don't support). Code formatting cleanup.
5771 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5773 * ListView.cs: Ouch, forgot to commit.
5775 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5778 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5780 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5782 * ListView.cs: When calculating box selection for virtual mode, don't
5783 look for intersection with item's text, but item bounds, since that
5784 would mean read ListViewItem's text for _every_ item, and that's
5785 something we just can't do in virtual mode (items are only requested
5788 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
5790 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5791 partial support for managed windows (based on the patch from Ernesto).
5793 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5795 * ListView.cs: When doing a key search use FindItemWithText method
5796 instead of doing the search by ourselves, this way we avoid
5797 duplicating the code and also we handle the special case for virtual
5798 mode. To achieve that make our private overload of FindItemWithText
5799 internal and also have a 'roundtrip' parameter.
5801 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5803 * ListView.cs: When doing the layout don't request the
5804 ListViewItem instance if we are in virtual mode (since we can't request it
5805 until the item is actully drawn).
5807 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5809 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
5812 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5814 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
5815 the patch from Ernesto).
5817 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5819 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5820 * ThemeVisualStyles.cs: Added.
5822 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5824 * IDeviceContext.cs: Added a missing using.
5826 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5828 * ButtonBase.cs: Made IsDefault protected internal.
5829 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5831 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5833 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5834 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5835 RadioButtonRenderer.cs: Included in the 1.1 profile.
5836 * IDeviceContext.cs: Added.
5837 * TextRenderer.cs: Included a member in the 1.1 profile.
5839 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
5841 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5843 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5845 * ErrorProvider.cs: Make the error icons come after the control
5846 they refer to. It isn't the way the MS does it, but its better
5847 than what we were doing. See bug #368587.
5849 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5851 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5852 from Eric Albright that lazy loads the input language as ensures
5853 everything gets properly initialized. Fixes bug #373871.
5855 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
5857 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
5858 implicit mnemonics. [Fixes bug #383000]
5860 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5862 * X11Dnd.cs: When canceling the operation, automatically restore the
5863 default cursor - normally the default cursor is restored when the
5864 mouse buttons are released, but we should be able to restore it even
5865 if the buttons are still pressed (for example, when pressing ESC to
5869 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5871 * X11Dnd.cs: When starting a new drad and drop operation, set control
5872 field to null, just as the other fields, to avoid calling any
5873 operation on a previous control. Also, when calling DndLeave on a
5874 control, set it to null, thus we don't fire that event multiple times
5878 2008-04-23 Geoff Norton <gnorton@novell.com>
5880 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
5881 the whole_window object. Fixes #377084.
5883 2008-04-23 Andreia Gaita <avidigal@novell.com>
5885 * HtmlElement.cs: Implement RaiseEvent (event injection into the
5888 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
5890 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
5892 2008-04-23 Andreia Gaita <avidigal@novell.com>
5894 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
5897 2008-04-23 Andreia Gaita <avidigal@novell.com>
5899 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
5902 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5904 * X11Dnd.cs: When the drop was cancelled, or could just not be
5905 performed, return DragDropEffect.None always (match .net).
5907 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5909 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
5911 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5913 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
5915 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
5917 * DataGridView.cs: Add support for error icon tool tips.
5918 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
5919 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
5921 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
5923 * X11Structs.cs: Add mouse button masks enum.
5924 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
5925 WM_EXITSIZEMOVE only once at the beginning and at the end of the
5926 form resize/move operation instead of for each step of it.
5927 [Fixes bug #346529 for the x11 backend]
5929 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5931 * DataGridView*: Implement support for drawing error icons.
5933 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5935 * TreeView.cs: Make vbar and hbar internal.
5936 * TreeNode.cs: If collapsing the node removes one of the TreeView's
5937 scrollbars, invalidate the whole thing.
5940 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5942 * TreeView.cs: Calling Sort() sets Sorted = true.
5943 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
5944 if the nodes need to be sorted.
5947 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
5949 * Form.cs: Fire SizeChanged for both when the form is minimized and
5951 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
5952 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
5954 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
5956 * ComboBox.cs: If the combobox is disabled, draw a disabled
5957 background before painting anything else.
5960 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5962 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
5963 forget to send a Leave event to the target window - just as .net does
5964 when cancelling dnd operations.
5966 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5968 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
5969 soon as possible - this happens when we send the drop message to the
5970 target window. This way we avoid firing any DragOver _after_ drop finished.
5973 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5975 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
5976 * Form.cs: Handle form minimization as a special state, where size doesn't
5977 change, but we have to fire SizeChanged.
5978 [Fixes bug #325122 for the win32 and x11 backends]
5980 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5982 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
5983 if the handle is disabled.
5986 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5988 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
5989 for forms with FormBorderStyle.None.
5992 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
5994 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
5996 [Fixes bug #346529 for the X11 backend]
5998 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6001 - Send a mouse Enter message after say dragging the mouse with a
6002 button down and then release it in another client.
6003 - Reset the cursor to prevent X11 from remembering it and setting it
6004 before the control gets WM_SETCURSOR.
6005 - Qeueue a mouse move after a mouse enter like win32.
6008 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6010 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
6011 It's sent when the form gets moved, resized, closed.
6012 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6013 [Fixes bug #359193 for X11]
6015 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6017 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
6020 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
6022 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
6023 group. Fixes the 1.1 build.
6025 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6027 * ListView.cs: Use display indexes for selection in Details view, as
6028 well as do the proper layout based on display indexes for that view
6031 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6033 * ListView.cs: Focused item information is now stored as a display
6034 index, and display indexes are used all over the place for selection,
6035 instead of ListViewItem.Index values, which doesn't give us enough
6036 information to modify the selection in groups mode, and was broken.
6038 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
6040 * Control.cs: Do not fire MouseDown if validation of the control has
6042 * Form.cs: Validate the form before closing.
6043 [Fixes bugs #330501 and #353310]
6045 2008-04-18 Andreia Gaita <avidigal@novell.com>
6047 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6048 CreateWebBrowserSiteBase implementations
6049 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6050 Style and TabIndex setters
6052 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6054 * ListViewGroup.cs: When returning the actual item count, return the
6055 proper count for default group.
6058 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6061 * ListViewGroup.cs: When calculating groups layout, get the actual
6062 number of items per group, since groups added to the group BUT not
6063 added to the ListView are just ignored, and can cause some nasty
6064 exceptions because of the lack of synchronization. Also for
6065 ListViewGroup don't use lazy initialization for items, since we
6066 the common scenario is to use it always - and it helps us to refactor
6067 and clean the .ctor overloads.
6069 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6071 * ListView.cs: When adding an item to a ListViewItemCollection
6072 belonging to a group (ListViewGroup.Items), don't generate a redraw if
6073 the added item hasn't beeen previously added to the ListView instance
6074 refered by the group, since it will be ignored. This should avoid some
6075 really nasty flickering.
6077 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6079 * ListView.cs: When accessing an item in a specific display
6080 position, use the helper method GetItemAtDisplayIndex, instead of
6081 direct access to the reordered_items_indices array. When doing layout
6082 for groups set the correct Items index for the display position (since
6083 in groups mode items don't have the same position as in Items
6085 * ListViewGroup.cs: Add a field to store the starting item number,
6086 which is later used when calculating the layout.
6090 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
6092 * Application.cs: Fixed ProductVersion to fallback to the assembly
6093 version. Fixes regression for bug #325413.
6095 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6097 * ListView.cs: New helper method to retrieve an item in a _specific
6098 display_ position (the items can be displayed in a different order
6099 than one of Items collection).
6100 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6101 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6102 specific display position (again remember that items can be sorted
6103 different than Items).
6105 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
6107 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6108 list and update it when the collection changes. We were recreating
6109 this several times per row paint and for every pixel the mouse moved
6111 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6114 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
6116 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6117 list to use generics.
6118 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6119 and remove unneccessay casts.
6121 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
6123 * DataGridViewBand.cs: Add internal way to set displayed variable.
6124 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6125 * DataGridView.cs: Make sure we always keep track of Displayed
6126 rows and columns, and only draw things that are displayed.
6128 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
6130 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6131 whether the key events are filtered or not. Introduced
6132 PreFilter() process for this purpose. This fixes atokx3/iiimx
6135 2008-04-16 Andreia Gaita <avidigal@novell.com>
6137 * HtmlHistory.cs: Implement Length property
6139 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
6141 * DataGridView.cs: Call EndEdit when a sort is performed so we take
6142 away the edit textbox. Refactor to reuse column sort code.
6144 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
6146 * MenuAPI.cs: Remove the code that save and restore capture status of
6147 grab_control, this fixes some Menu and Context menu bugs but maybe it can
6148 cause some others, I cant figure the possible problems of this patch but
6149 right now remove the code looks to be better than keep it. This patch fixes
6150 bugs #357638, #378721 and #379570.
6152 2008-04-12 Andreia Gaita <avidigal@novell.com>
6154 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6155 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6156 add missing properties and event handlers.
6158 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
6160 * ListBox.cs: Make sure the LargeChange we are setting is at least
6161 zero, to prevent an IOORE. [Fixes bug #379531]
6163 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
6165 * ComboBox.cs: Support item navigation by entering text. Firstly,
6166 in DropDownList mode, for each key-press select the next item
6167 starting with that letter.
6168 For other modes, when no item selected, on arrow-up/-down and open
6169 drop-down select the first item matching the text in the textbox.
6171 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
6173 * X11Keyboard.cs : Control.FromHandle() could return null
6174 in MoveCurrentCaretPos().
6176 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6178 * ListView.cs: When changing the size in VirtualMode, also Reset the
6180 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6181 changing selection info for VirtualMode.
6184 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6186 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6187 view, don't use LineLimit for the first item - use NoWrap *always*
6188 instead, since ListView.LabelWrap is not used for this view.
6191 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6193 * Binding.cs: Call UpdateIsBinding when setting control - probably
6194 Binding is already usable and we don't need to wait to check the
6195 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6196 Created, just like 2.0 does.
6197 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6199 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6201 * Binding.cs: Just realized we don't need to have a handler for
6202 BindingContextChanged, since this info should be now consumed directly
6203 in the BindingManagerBase. And also, the manager.IsBindingSuspended
6204 state info is checked directly, instead of caching it.
6206 * CurrencyManager.cs: IsSuspended should return always false if Count
6209 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6211 * Binding.cs: When calling PushData, return if manager.Count == 0,
6212 since we just don't have data to be read. Also, when setting the
6213 Control for binding, hook up some events to refresh the IsBinding
6214 state when BindingContext change or control gets created; use
6215 Control.IsHandleCreated instead of Control.Created check to set
6216 IsBinding state - we *actually* need to modify IsBinding when control
6217 is created, but we don't have any Created event, only HandleCreated.
6218 Fixes part of #349364.
6220 2008-04-11 Geoff Norton <gnorton@novell.com>
6222 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
6223 warping a null Caret.
6225 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
6227 * DataGridView.cs: Implement row/column autosizing methods. Implement
6229 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6230 * DataGridViewRowCollection.cs: Add an internal sorting method.
6232 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
6234 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6235 value in ListView drawing code.
6237 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
6239 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6240 is clicked. Respect the user setting Cancel in FileOk.
6242 2008-04-11 Geoff Norton <gnorton@novell.com>
6244 * ListView.cs: Avoid setting and resetting control Width/Heights and
6245 calculate the final value and set it once. Prevents a feedback loop
6248 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
6250 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6253 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
6255 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6256 Add some on-the-spot code, but it seems we don't need it.
6258 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
6260 * Form.cs: Add method for DataGridView to trigger focus cues
6261 even when it handles the tab keypress.
6263 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
6265 * DataGridView.cs: More keyboard handling, tab, esc.
6266 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6267 when at the beginning or end of the text in the text box.
6269 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6271 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6273 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6275 * DataGridView.cs: Some fixups for showing and adding the edit control.
6276 * DataGridViewButtonColumn.cs: Implement ToString.
6277 * DataGridViewCell.cs: Size and position the control simultaneously.
6278 * DataGridViewTextBoxCell.cs: Use base to position control.
6280 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6282 * DataGridViewCell.cs: Fix up some formatting and painting code.
6283 * DataGridViewImageCell.cs: Implement some NIEX methods.
6285 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6287 * ToolStripItemCollection.cs: What moving an item from one owner
6288 to another, remove from source owner before adding to destination.
6291 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
6293 * PictureBox.cs: Call Load when ImageLocation is set.
6296 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
6298 * X11Keyboard.cs, XplatUIX11.cs :
6299 Implement over-the-spot mode (with some odd offsets).
6300 - set preedit position when caret is set.
6301 - Wrap XMoveResizeWindow() to move preedit position.
6303 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
6305 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6308 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
6310 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6311 and ScanTableIndex public, it fix compilations errors when compiling
6312 WinForms to generate keyboard layout resources.
6314 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
6316 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
6317 different element count than scan table. It prevents some errors in non
6320 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
6322 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6324 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
6326 * DataGridView.cs: Call OnContentClick.
6327 * DataGridViewCell.cs: Do a null check on ValueType instead
6329 * DataGridViewCheckBoxCell.cs: Implement.
6331 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
6333 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6335 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
6337 * X11Keyboard.cs : Check XGetIMValues() return value in
6338 case it does not return input styles in some environment.
6340 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
6342 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6344 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6346 * BindingContext.cs: Stub UpdateBinding method.
6348 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
6350 * X11Structs.cs : added couple of structs for XIM support.
6352 Release XIM in case it failed to create XIC.
6353 Use consts for XNblah string.
6354 Add support for IM style customization and XIC creation
6355 for preedit-position and preedit-callback.
6356 Right now use MONO_WINFORMS_XIM_STYLE environment variable
6357 (list of: over-the-spot | on-the-spot | root). Only root
6360 (redoing r99172 with fix.)
6362 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6364 * TreeView.cs: Center the checkbox a little better.
6366 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6368 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6369 Apply very nice patch from Ernesto Carrea that simplifies our
6370 scrollbar drawing. [From bug #376146]
6372 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
6374 * TreeView.cs: Correct the location of the root node checkbox when
6375 ShowRootLines = false. Don't draw the root lines for the root node
6376 when ShowRootLines = false. [Fixes bug #377535]
6378 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
6380 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6382 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6384 * MaskedTextBox.cs: Added missing attribute. Code formatting.
6385 * PageSetupDialog.cs: Added missing attribute. Code formatting.
6386 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6387 * ImeMode.cs: Added missing field.
6388 * HtmlWindow.cs: Code formatting. Fixed line endings.
6389 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6391 * HtmlHistory.cs: Code formatting. Fixed line endings.
6392 * HtmlDocument.cs: Code formatting. Fixed line endings.
6393 * ToolStripPanel.cs: Added missing IList implementation.
6394 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6396 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
6398 * BindingContext.cs: Changed argument names to fix corcompare errors.
6399 * DataGridView.cs: Removed extra explicit interface implementation
6400 of IDropTarget. Code formatting.
6401 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6402 * ComboBox.cs: Changed argument names to fix corcompare errors.
6403 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6405 * GridColumnStylesCollection.cs: Changed argument names to fix
6406 corcompare errors. Removed extra tabs.
6407 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6409 * Control.cs: Changed argument names to fix corcompare errors. Code
6410 formatting. Removed extra explicit IList implementation.
6411 * TextBox.cs: Changed argument names to fix corcompare errors. Code
6412 formatting. Use string.Empty instead of "".
6413 * GridItemCollection.cs: Changed argument names to fix corcompare
6414 errors. Code formatting.
6415 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6416 corcompare errors. Code formatting.
6417 * ImageList.cs: Changed argument names to fix corcompare errors.
6418 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6419 * DataGridViewRowCollection.cs: Changed argument names to fix
6420 corcompare errors. Code formatting.
6421 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6422 * DataGridViewSelectedCellCollection.cs: Changed argument names to
6423 fix corcompare errors. Code formatting.
6424 * DataGridViewComboBoxCell.cs: Changed argument names to fix
6425 corcompare errors. Code formatting.
6426 * LinkLabel.cs: Changed argument names to fix corcompare errors.
6427 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6429 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6431 * BindingSource.cs: Changed argument names to fix corcompare errors.
6432 Removed extra explicit interface implementations.
6433 * DataGridViewSelectedRowCollection.cs: Changed argument names to
6434 fix corcompare errors. Code formatting.
6435 * ToolStripItemCollection.cs: Removed extra explicit interface
6436 implementation of IList.ReadOnly.
6437 * DataGridViewColumnCollection.cs: Changed argument names to fix
6438 corcompare errors. Code formatting.
6439 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6440 * ListView.cs: Changed argument names to fix corcompare errors.
6441 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6443 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6445 * ListBindingHelper.cs: Changed argument names to fix corcompare
6447 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6448 fix corcompare errors. Code formatting.
6449 * ToolStripPanel.cs: Removed extra explicit implementation of
6450 IDropTarget interface.
6451 * ListBox.cs: Changed argument names to fix corcompare errors. Code
6452 formatting. Removed extra tabs and spaces.
6453 * DataGridViewCellCollection.cs: Changed argument names to fix
6455 * Help.cs: Changed argument names to fix corcompare errors. Code
6457 * TabControl.cs: Changed argument names to fix corcompare errors.
6458 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6460 * TableLayoutSettings.cs: Changed argument names to fix corcompare
6463 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6465 * ListBindingHelper.cs: When returning properties, only return those
6466 that are browsable. Also, don't do a linear search of the properties,
6467 but use the indexer of the PropertyDescriptorCollection class.
6469 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6471 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6472 Dictionary containing the related (child) currency managers. Also,
6473 when setting DataSource, add datasource to our List if it is not a list.
6475 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6477 * PropertyGridTextBox.cs: Fix background color of the buttons.
6478 * PropertyGridView.cs: Make the entry less jumpy.
6480 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6482 * PropertyGrid.cs: Fix unused variable warnings.
6484 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
6486 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
6487 double-click. It expanded it once in the mouse down and then
6488 again in the double-click handler.
6490 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6492 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
6493 TypeConverter and UITypeEditors.
6495 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
6497 * Control.cs: Visibility should be set synchronously,
6498 so we must also redraw once it is and not rely on layouting or
6499 other code to repaint.
6502 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
6504 * DataGridViewCell.cs: Respect DataGridView.GridColor.
6506 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6508 * Control.cs: Invalidate when the alpha channel is less than 255,
6509 not only when control is transparent.
6511 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6513 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6514 Implement some painting convenience methods that threw NIEX.
6516 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
6518 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6519 * DataGridViewLinkCell.cs: Implement.
6521 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6523 * GridEntry.cs: Report the conversion exception error description.
6526 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
6528 * PropertyGridView.cs: Do not scroll to item on resize.
6531 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6533 * BindingContext.cs: When retrieving a BindingManagerBase, if the
6534 dataSource parameter is ICurrencyManagerProvider, then return
6535 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6536 instead of creating a new one.
6538 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6540 * BindingSource.cs: Implement support for Type instances as
6543 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6545 * DataGridView.cs: Minor cleanups and call CellMouseUp.
6546 * DataGridViewCell.cs: Make some painting routines internally virtual.
6547 * DataGridViewButtonCell.cs: Implement.
6549 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
6551 * Control.cs: We always need to invalidate our children with
6552 transparent backgrounds when we are invalidated.
6555 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6557 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6558 and CancelCurrentEdit on CurrencyManager respectively. Implement
6559 support for ICancelAddNew too.
6561 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6563 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6564 call EndNew/CancelNew if list is ICancelAddNew.
6566 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6568 * DataGridView.cs: Guard against an exception while painting
6569 if there are no rows.
6571 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
6573 * DataGridView.cs: Implement a bunch of keyboard commands.
6575 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
6577 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
6578 isn't set, don't call OnPaint. [Fixes bug #375300]
6580 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6582 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6583 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6584 hookup the remaining events related to CurrencyManager, and fire
6585 OnListChanged also for the Clear () method.
6587 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6589 * BindingSource.cs: Use Current and Position implementations in
6590 CurrencyManager instead of using our own routines, since we need
6591 to be in synch with it. Count should NEVER return a -1 value, and
6592 also report ListChanged events for both simple IList data
6593 sources (manually) as well for IBindingList ones (by hooking up an
6594 event handler for it).
6596 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6598 * BindingSource.cs: Make one .ctor call the another, to avoid
6599 duplicate code. Add the CurrencyManager property, and also for AddNew
6600 throw the proper exceptions and show better error messages.
6602 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6604 * ComboBox.cs: Only adjust selectedindex if Handle has been
6605 created. Fixes failing test.
6607 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6609 * ComboBox.cs: Adjust selectedindex if we insert a new item
6610 above the current selectedindex in a sorted ComboBox.
6613 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6615 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6618 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
6620 * DataGridViewTextBoxCell.cs: Implement stuffs.
6622 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6624 * TreeView.cs: Create the scrollbars even earlier to be
6625 double dog certain they are created before they are accessed.
6627 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6629 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6631 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6633 * ScrollBar.cs: Create an internal safe Value setter so we
6634 won't crash if we try to set a value outside the min and max.
6635 * TextBoxBase.cs: Use safe value setter to guard against a
6636 potential NRE that is being reported by Reflector.
6638 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6640 * TreeView.cs: Create the scrollbars earlier in the constructor
6641 to attempt to guard against an NRE in SetTop in Reflector.
6643 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
6645 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6646 DataGridViewRowCollection.cs: Do not scroll column and row headers,
6647 show messagebox on data format error, use column display index
6648 correctly, make sure HitTest supports new layout stuff,
6649 make sure scrollbars support new layout stuff.
6651 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6653 * XplatUIX11.cs : Patch by Doug Rintoul.
6654 For some IM engines, keypress events need to delay call
6655 to XPending() and XNextEvent() in the loop so that it
6656 does not mess the orders in XIM commit callback.
6657 Some KeyRelease events such as shift keys need to be
6658 processed both in the IM engine and winforms driver
6659 itself since winforms holds its own state check.
6661 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6663 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
6665 * X11Keyboard.cs, XplatUIX11.cs :
6666 add primitive support for XIM input support (preedit-
6667 nothing and status-nothing). It requires precise event
6668 capturing (XSelectInput/"filterEvents") and different
6669 call to XFilterEvent against root window.
6670 Get composed string and send dummy WM_IME_COMPOSITION.
6671 Free XIM and XIC instances in finalizer.
6673 (This first patch does not include suggested changes
6674 by Doug Rintoul. It will follow.)
6676 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6678 * DataGridView.cs: When binding to a property, if the property
6679 doesn't have a setter, set the column to readonly.
6682 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6684 * ComboBox.cs: Guard against NRE if an arrow key is hit while
6685 we aren't dropped down. Support Home/End in DropDownList mode.
6688 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
6690 * TreeNodeCollection.cs: Don't increment count until we've
6691 saved our index to return.
6694 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6696 * Label.cs: Add padding to the label's AutoSize calculation.
6699 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6701 * ListBindingHelper.cs: Actually implement GetListName method.
6703 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6705 * BindingSource.cs: Throw the propert expceptions for some methods, as
6706 well as detect the list item type for Add method if DataSource is null.
6708 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6710 * DataGridViewCell.cs: I don't know why I commented this out,
6711 putting it back for now.
6713 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6715 * DataGridViewCell.cs: Remove storage for owning column, just
6717 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6718 * DataGridViewColumnHeaderCell.cs: If the header text has been
6719 explicitly set, return it.
6722 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
6724 * DataGridViewRowCollection.cs: Disable row sharing when
6725 using data binding. Its a great feature, but lets work on
6726 getting DGV usable first before we worry about optimizations.
6728 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6730 * BindingSource.cs: When resetting our internal list, compute list
6731 item type information to be used for indirect list access. Also
6732 implement/tune some properties and methods related to the list access
6734 * ListBindingHelper.cs: Add a stub for GetListName method, used from
6737 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6739 * DataGridView.cs: If RowCount is increased while ColumnCount
6740 is zero, add a column. [Fixes bug #331649]
6742 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6744 * DataGridViewRowCollection.cs: When adding new rows for
6745 databinding, make sure they are place before the add row.
6748 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6750 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6751 instead of Index order.
6753 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6755 * DataGridView.cs: If columns are added by increasing ColumnCount,
6756 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6759 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6761 * DataGridView.cs: Turn off and on the "new row" when
6762 AllowUserToAddRows is toggled. When the handle is created,
6763 set current cell and selected cell/row/col.
6765 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
6767 * ComboBox.cs: When navigating the drop down by keyboard, we
6768 need to scroll the list box if our selection moves out of the
6769 currently shown items. [Fixes bug #371990]
6771 2008-03-24 Luke Page <luke.a.page@gmail.com>
6773 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6774 on the control. Also now handles unicode compatibility characters and
6775 stores the unicode compatibility length on the stack. Fixes Bugs
6776 #355198 and #366436.
6778 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6780 * BindingSource..cs: Take into account DataMember when re-creating the
6781 List property, and also create a specific kind of list as needed.
6783 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6785 * ListBindingHelper.cs: Add a new case for GetList () method - when we
6786 get an empty IEnumerable, try to detect whether the datamember is
6787 valid or not for that type, if true, return null, and throw exception
6790 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
6792 * ComboBox.cs: Alt-Down should drop down the list, Esc should
6793 retract it. [Fixes bug #371989]
6795 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6797 * PropertyGrid.cs: Initialize the sorting button as pushed.
6799 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
6802 - Visually select the PropertyTab.
6803 - Filter Properties by Attributes properly.
6805 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6807 * MenuItem.cs: Remove menu item from parent when disposed.
6810 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6812 * ToolBar.cs: Don't reset layout_type if Dock = None.
6814 2008-03-21 Andreia Gaita <avidigal@novell.com>
6816 * UserControl.cs: Select the first available control when we get focus.
6819 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6821 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6822 the content if we are in edit mode. [Fixes bug #343964]
6824 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
6826 * DataGridViewCell.cs: Fix border painting for column headers.
6828 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6830 * BindingSource.cs: When setting or resetting data source,
6831 use ListBindingHelper.GetList () method, since it will get the list in
6832 case datasource is IListSource.
6834 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6836 * DataGridViewCell.cs: Implement lots more stuffs.
6838 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6840 * PropertyGridView.cs, GridEntry.cs: Implement support for
6841 UITypeEditor.IsDropDownResizable.
6843 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
6845 * DataGridViewCell.cs: Remove unused variables, improve how
6846 several of the property getters work.
6847 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6848 get its size from the parent row/col.
6850 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6852 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
6853 user alters manually the PropertyTabs collection via the
6854 PropertyTabs property.
6856 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6858 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
6859 new tests for them to be sure to be compatible with .net.
6861 2008-03-20 Andreia Gaita <avidigal@novell.com>
6863 * WebBrowserBase.cs: Fix attributes, add events
6864 * WebBrowser.cs: Fix Padding signature
6866 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
6868 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
6870 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
6872 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
6873 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
6874 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
6875 passes the new suite of tests for it.
6877 2008-03-18 Andreia Gaita <avidigal@novell.com>
6879 * WebBrowser.cs: Add missing attributes, missing Padding and
6880 DefaultSize properties, remove extraneous getters
6882 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6884 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
6887 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6889 * ComboBox.cs: Move resetting the selected index to keypress
6890 instead of textchanged. Changing the text programmatically
6891 should not trigger resetting the selected index. Fixes test.
6893 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6895 * ComboBox.cs: When the user types into the textbox, reset
6896 the selected index to -1. [Fixes bug #371672]
6898 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
6900 * FileDialog.cs: Support Control-A for selecting everything
6901 in an OpenFileDialog. [Fixes bug #371564]
6903 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
6905 * DataGridView.cs: When row/column visible/height properties
6906 change, invalidate. Take the NIEX out of InvalidateRow/Column
6907 etc. We don't support them yet, but we can just invalidate
6908 everything until we do support them. (Added MonoTODO). Set
6909 proper control styles.
6910 * DataGridViewRow.cs: Don't call PaintHeader if row headers
6913 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6915 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
6917 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6919 * DataGridViewRow.cs: Only paint the white background in
6920 cell bounds, the row bounds extends past the cells if the
6921 grid width isn't as wide as the DGV.
6923 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
6925 * DataGridView*: Completely revamp the drawing to match the
6926 public API. Our grids now look better, and call all the
6927 appropriate methods and event to allow users to override
6928 the painting and do their own.
6930 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6932 * ListBindingHelper.cs: Implement 2.0 GetList methods.
6934 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6936 * DataGridView.cs: Implement BorderStyle.
6938 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6940 * FileDialog.cs: Apply patch from Andy Hume: Any time we
6941 are comparing attributes, make sure we only look at the
6942 one we are interested. These calls were failing if there
6943 were more than one attribute.
6946 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
6948 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
6950 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6952 * PageSetupDialog.cs: Stub EnableMetric.
6953 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
6954 * PrintPreviewDialog.cs: Add ProcessDialogKey,
6957 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6959 * MonthCalendar.cs: Remove unused variable.
6961 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
6963 * DataGridView*.cs: corcompare stuffs.
6965 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6967 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
6968 The savings aren't worth the extra code to fix the optimization.
6971 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6973 * ToolBar.cs: Always call base.Dock in the Dock override so that
6974 Control's layout_type gets reset correctly.
6977 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
6979 * X11Dnd.cs: End DnD operation also for the middle mouse button.
6981 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6983 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
6984 at the same time we do explicit ones, because we have to give all
6985 other controls on the container a chance to handle explicit ones
6986 first. If no one has an explicit mnemonic, then we can let the
6987 MenuStrip have a shot at implicit mnemonics.
6988 * MenuStrip.cs: Create an implicit mnemonic function.
6989 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
6990 mnemonics for MenuStrips.
6993 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
6995 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
6996 DataGridColumnStyle.cs: corcompare stuffs.
6998 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7000 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7001 Details - This is needed after we added the bits to use any available
7002 column also for List and SmallIcon view.
7004 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7006 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7007 at the proper place, not only when changing SelectedIndex and changing
7008 the selection using keys/mouse, as .net does.
7010 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7012 * ControlBindingsCollection.cs: Implement last 2.0
7013 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7014 in the new 2.0 Add methods.
7016 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7018 * ListBox.cs: When calling SelectedIndexCollection.Clear,
7019 return if no items are previously selected - this is done to avoid
7020 firing OnSelectedIndexChanged without need to do so. Also,
7021 when creating handle ensure that the focused item is visible (as
7024 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7026 * ListBox.cs: Rewrote/refactored most of selection code. We require
7027 the following things in selection: a) keep selection sorted (both
7028 indices and items), b) SelectedIndices automatically detect the
7029 selection mode, c) SelectedIndex should be the first selected item
7030 index, d) Need to Focus/adjust scroll bar when selecting a new item,
7031 not only for SelectedIndex, which is specially important in Multi*
7032 selection modes. To achieve this we are moving the selection core to
7033 SelectedIndexCollection and make depend all selection modifications on
7037 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7039 * ToolStrip.cs: Enable implicit mnemonics for drop down
7040 menu strips. [Fixes part of bug #367692]
7042 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7044 corcompare - fix parameter names [stragglers].
7045 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7046 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7049 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7051 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7052 was a mnemonic pressed as well as Alt. Also, if nothing handles a
7053 mnemonic, let the ToolStripManager have it even if it doesn't
7054 have a matching mnemonic.
7057 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7059 corcompare - fix warning about implicit implementation
7060 * ToolStrip.cs: Add IToolStripData interface.
7061 * IToolStripData.cs: Add.
7063 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
7065 corcompare - fix warning about implicit implementation
7066 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7069 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
7071 corcompare - fix parameter names [N-Z].
7072 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7073 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7074 PropertyManager.cs, RichTextBox.cs,
7075 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7076 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7077 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7078 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7079 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7080 ToolStripContentPanel.cs, ToolStripDropDown.cs,
7081 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7082 ToolStripPanel.cs, ToolStripSeparator.cs,
7083 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7084 UICuesEventHandler.cs, UpDownBase.cs.
7086 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
7088 corcompare - fix parameter names [G-M].
7089 GridColumnStylesCollection.cs, GridItemCollection.cs,
7090 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7091 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7092 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7093 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7094 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7096 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
7098 corcompare - fix parameter names [A-F].
7099 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7100 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7101 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7102 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7103 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7104 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7105 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7107 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
7109 * GridEntry.cs: Do not convert not only if the types match,
7110 but also if the property type is assigneable from the value's
7114 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
7116 * PropertyGridView.cs:
7117 - Subscribe to the listbox only once and not everytime.
7118 - Update the textbox even if SetValue fails.
7119 - Close the listbox before calling TrySetValue just in case.
7122 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
7124 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7126 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7128 * ListView.cs: Implement support for custom column width based on
7129 Columns collection (we were previously using this collection only
7133 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7135 * ListViewItem.cs: For Tile view, always set bounds for the first
7136 subitem (which is the main one), and also don't let Width be larger
7137 than ListView.TileSize.Width. Improve code readibility also.
7138 * ThemeWin32Classic.cs: When painting the ListViewItem instances
7139 in Tile view, _always_ use the NoWrap flag.
7142 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
7144 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
7146 * GridEntry.cs: For MS compitability make all child properties
7147 readonly if the parent is readonly. Ugh.
7148 [Fixes bug #365945 and #365944]
7150 2008-02-29 Andreia Gaita <avidigal@novell.com>
7152 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7153 relative to the history
7155 2008-02-29 Andreia Gaita <avidigal@novell.com>
7157 * HtmlElement.cs: More handlers for mouse and key events
7159 2008-02-28 Andreia Gaita <avidigal@novell.com>
7161 * WebBrowserBase.cs: MouseClick sig changed.
7162 * HtmlHistory.cs: Implement history navigation
7163 * HtmlElement.cs: Add event handlers, and connect them.
7165 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
7168 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7169 so that DisplayNameAttribute doesn't get ignored.
7170 - Check for ParenthesizeNameAttribute and parenthesize the Label.
7171 - Add support for PasswordPropertyTextAttribute
7172 * PropertyGridView.cs: Check if an entry is a password.
7173 [Fixes bugs #365589, #365586, #365588]
7175 2008-02-28 Andreia Gaita <avidigal@novell.com>
7177 * PropertyGridView.cs: Revert the message filtering change, as we
7178 need it to block after all. Remove block parameter, unnecessary.
7180 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
7182 * UserControl.cs: Better implementation of GetPreferredSize.
7183 First step to fixing bug #361441.
7185 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7187 * Binding.cs: Actually implement data binding support for
7188 classes implementing IBindableComponent.
7189 * ControlBindingsCollection.cs: Likewise.
7191 2008-02-26 Andreia Gaita <avidigal@novell.com>
7193 * PropertyGridView.cs: Use a message filter to check when to
7196 2008-02-26 Andreia Gaita <avidigal@novell.com>
7198 * Application.cs: Change the message_filters loop so a filter
7199 can be removed while looping.
7201 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
7203 * GridEntry.cs: Optimization in ToggleValue so that it caches
7205 * PropertyGridView.cs: An optimization so that the property isn't
7206 re-read twice for each StandardValue added to the drop-down menu.
7207 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7211 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
7213 * Application.cs: Apply patch from Justin Cherniak to match
7214 MS better for ProductName, ProductVersion, and CompanyName.
7217 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7219 * Binding.cs: Actually implement 2.0 NullValue property. Also
7220 when changing the formatting related properties, only update the state
7221 if formatting_enabled is true (we don't mind otherwise).
7223 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
7225 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7228 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
7230 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
7231 of GetType on the current value as it uses reflection to
7232 determine the type. This fixes the case where the new value is
7235 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
7237 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7240 2008-02-24 Luke Page <luke.a.page@gmail.com>
7242 * Line.cs, TextControl.cs: Implement offset x and y so that a
7243 document doesn't have to begin at (0,0) on the viewpoint.
7244 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7245 bars and switches the text alignment (and therefore is now
7246 implemented for textbox). Fixes #321383.
7248 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7250 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7251 properties. Also when changing FormattingEnabled update the control
7252 property -as .Net does-.
7254 2008-02-22 Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
7256 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7257 * Binding.cs: Add stubs for the overloads of the Add method in
7260 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7262 * Binding.cs: PullData () returns a false value if we got an exception.
7263 Also when validating the control and we get an error, instead of
7264 setting the value of the previous one, cancel the event (tested in 1.1
7267 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
7269 * TreeView.cs: Make selected_node and highlighted_node internal.
7270 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7271 to null when Nodes.Clear is called.
7274 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7276 * FontDialog.cs: Ensure that when the Font is set in code,
7277 all the gui pieces are updated accordingly.
7280 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7282 * TextRenderer.cs: Respect proposed size for MeasureString.
7283 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7284 autosize, use a proposed width to force wrapping for long text.
7287 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7289 * TreeView.cs: Factor in checkboxes = false and state images in
7290 to HitTest. [Fixes bug #363360]
7292 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7294 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7295 when drawing the selected range.
7298 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
7300 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7301 ResizeRedraw control styles.
7304 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7306 * TreeView.cs: StateImages are basically custom checkboxes, so
7307 factor their size the same as real checkboxes when determining
7311 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7313 * MessageBox.cs: Make the message box wider if the form caption
7314 is longer than the text in the form.
7317 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
7319 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7321 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7323 * TreeNode.cs: Guard against an NRE when the parent's
7324 StateImageList hasn't been set.
7327 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7329 * SplitContainer.cs: Add SupportsTransparentBackColor and
7330 OptimizedDoubleBuffering control styles.
7333 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7335 * Application.cs: For the app data paths and the registry key paths,
7336 ensure they are created before returning them to the user.
7339 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7341 * Application.cs: Guard against an NRE in CompanyName and
7344 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
7346 * Application.cs: For CompanyName, ProductName, and ProductVersion,
7347 make sure we handle all three cases correctly: attribute is present,
7348 attribute is present but is an empty string, and attribute is not
7351 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
7353 * PropertyGridView.cs:
7354 - Fix a NRE that caused a test failure
7355 - Another performance improvement - cache the standard values
7358 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7360 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7363 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
7365 * PropertyGridView.cs: Fix a big performance bug.
7367 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7369 * SelectionRange.cs: Apply patch from Andy Hume to make
7370 constructor behavior more accurate. [Fixes bug #362117]
7372 2008-02-19 Andreia Gaita <avidigal@novell.com>
7374 * Control.cs: Added a new flag is_disposing to track if the
7375 window is currently in the process of being disposed of.
7376 This is used so that, when firing visibility changes triggered
7377 by unparenting controls during Dispose, the control doesn't
7380 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
7382 * ComboBox.cs: Set height to preferred height when the handle
7383 is created. [Fixes bug #360862]
7385 2008-02-18 Andreia Gaita <avidigal@novell.com>
7387 * XplatUIX11.cs: Create FosterParent with border width at 0.
7388 With the previous value of 4, everytime a control got reparented
7389 from parent = null, it's location would be shifted right and
7390 down by 4, since these coordinates would be offset by the
7391 FosterParent's border width.
7393 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
7395 * Control.cs: During diposing firstly remove ourselfes from
7396 the parent and *then* destroy our handle, because removing
7397 ourselfes from the parent controls collection causes
7398 VisibilityChange, etc events, which require a handle and end
7399 up recreating the control.
7401 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
7403 * GridEntry.cs: Set expanded state before notifying that the
7404 expansion has taken place.
7405 * PropertyGridView.cs:
7406 - Set the propertygridtextbox text to the selected
7407 StandardValue before proceeding to setting it.
7408 - Scrolling bugfixes.
7410 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7413 - Fix ValueText to not return null.
7414 - Fix conversion error reporting to actually happen.
7415 * PropertyGridView.cs: Set entry only if the text has changed.
7418 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7421 - Fix handling of a null current value.
7422 - Swallow editor exceptions.
7425 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
7427 * PropertyGrid.cs: Clear current items first thing before
7428 repopulating subitems.
7430 - Handle null StandardValuesCollection.
7431 - Mark as not editable if there is no PropertyDescriptor and
7432 if the Converter cannot convert from string.
7433 [Part of fix for bugs #360666 and #358332]
7435 2008-02-15 Luke Page <luke.a.page@gmail.com>
7436 * MaskedTextBox.cs: Now skips non editable characters after a
7437 character has been entered and we are progressing to the next
7438 position in the MaskedTextBox.
7440 2008-02-15 Luke Page <luke.a.page@gmail.com>
7441 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7442 that it changes the selection rather than just repositioning the
7443 cursor. Fixes Bug #360873.
7445 2008-02-15 Luke Page <luke.a.page@gmail.com>
7446 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7447 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7448 correctly. See #359330
7450 2008-02-15 Andreia Gaita <avidigal@novell.com>
7452 * XplatUIX11.cs: If the handle is null when posting a message, use the
7453 current thread queue to post instead. Fixes #332409
7455 * SendKeys.cs: Slight optimization
7457 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
7459 * PropertyGrid.cs, PropertyGridView.cs:
7460 Fix multiple scrolling and sizing issues.
7463 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7465 * PropertyGridView.cs: Ensure that drop down editors are shown
7466 in the WorkingArea of the screen.
7469 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
7471 * GridEntry.cs: Fail silently when UITypeEditor is missing.
7474 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7476 * Binding.cs: Implement 2.0 DataSourceNullValue property.
7478 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7480 * PropertyGridView.cs:
7481 - Clear the controls in the drop down form after it is hidden.
7482 - Fix Width sizing of the dropdown editors to match MSFT.
7484 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7486 * PropertyGridView.cs:
7487 - Fix height for drawing the grid entry
7488 text value, so that it clips multiline text properly.
7489 - Fix unfocusing to match MSFT.
7491 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
7493 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7494 Fixes a bug where on repopulation after value changed items become
7497 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7499 * Binding.cs: For the 2.0 profile, look for a
7500 'PropertyChanged' event in the target control, and add checks for
7501 DataSourceUpdateMode property to change -or not- the data source
7502 from validation/control property change.
7504 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
7506 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7507 not compare struct with null in 2.0).
7509 2008-02-10 Luke Page <luke.a.page@gmail.com>
7511 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7512 updates the provider and if not using a provider, uses the internal document
7513 class implementation of password char. Also when showing text, uses display string
7514 from the provider, instead of the actual text.
7516 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518 * Binding.cs: Ooooops, forgot to take into account the data_source
7519 and binding_member_info null case (it was breaking the Binding tests).
7521 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7523 * Binding.cs: Implement support for data source changes exposed by
7524 'PropertyNameChanged' events, and update the control property as
7527 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7529 * Binding.cs: Implement 2.0 WriteValue method.
7531 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7533 Commit patch from James Purcell for better AutoScale implementation:
7535 * ScaleControl should call GetScaledBounds with the control's total size rather
7536 than client size. GetScaledBounds should handle ignoring the borders in its
7537 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
7538 (for the most part they just call the base code now since that is fixed).
7539 * Added ScaleChildrenInternal to allow controls to disable scaling of children
7540 without having to override ScaleChildren (since none of .NET's controls do).
7541 This is required for most controls in Mono that have scrollbars to prevent the
7542 scrollbars from being moved/resized.
7543 * Nested ContainerControls can have a different scale mode than their parent.
7544 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7545 designer produce different results both of which look incorrect).
7546 * Default AutoScaleMode for ContainerControl should be Inherit.
7547 * Simplified workaround for ComboBox scaling issue.
7548 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
7549 1.0 style auto scaling should scale the whole control's size instead of
7550 ignoring the borders (except for Form) and the rounding is done differently to
7551 preserve control alignment.
7552 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7554 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7555 * CurrentAutoScaleDimensions should round the estimated character width instead
7557 * ListBox's GetScaledBounds should always use the height it was set to instead
7558 of the height that was passed in. This prevents rounding errors from
7559 accumulating quickly with IntegralHeight.
7562 2008-02-08 Andreia Gaita <avidigal@novell.com>
7564 * Form.cs: Add a null check (darn it).
7566 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7568 * MdiClient.cs: Make sure the requesting form actually owns the
7569 control menu items before removing them. Also, use
7570 Suspend/ResumeLayout when adding or removing items so we only
7574 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
7576 * Control.cs: Guard against an NRE in ShowFocusCues.
7579 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7581 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7582 property, as well as stubbing DataSourceUpdateMode.
7584 2008-02-08 Andreia Gaita <avidigal@novell.com>
7586 * Form.cs: When closing forms, get focus back to the active control of the
7587 active form. [Fixes #341314, corner case]
7589 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7591 * MdiClient.cs: After we move the scrollbars, invalidate the NC
7592 area, so any old scrollbar artifacts are cleaned up.
7595 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7597 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7598 for our menus, display that control box menu instead of the 1.1
7601 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7603 * MdiControlStrip.cs: Add property to access the mdi form tied to
7605 * MdiClient.cs: Be smarter about removing and adding toolstripitems
7606 to the implicitly merged menu. Every time we clicked the form, items
7607 were getting removed and the re-added, causing the form to jump around
7608 as the menu resized.
7610 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7612 * MdiClient.cs: Make sure the NormalBounds always gets set. It
7613 was being reset by the implicit menu merge for menustrips.
7616 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7618 * Form.cs: Don't do the previous change when WindowState = Normal,
7619 or it messes up where the window is placed. Fixes test failure.
7621 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
7623 * Form.cs: When becoming visible, if we are an MDI child, call
7624 SetWindowState with a dummy old_state so that changes will actually
7626 [Fixes the 2nd part of bug #325473]
7628 2008-02-07 Andreia Gaita <avidigal@novell.com>
7630 * Control.cs: Reset properties to their pre parent-change values in case
7631 the new parent == null (in which case we're basically removing the control,
7632 and don't want any events fired due to fake property changes)
7635 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
7637 * PropertyGridView.cs:
7638 - Refactor SetValue to allow setting the value
7639 when a custom editor is used, but the entry is not editable.
7640 - Remove the custom editor control on CloseDropDown.
7643 2008-02-06 Andreia Gaita <avidigal@novell.com>
7645 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7646 reflection only on 1.1, this property is public on system.drawing on 2.0.
7649 2008-02-06 Andreia Gaita <avidigal@novell.com>
7651 * WebBrowser.cs: Do a normal page refresh by default.
7653 2008-02-05 Andreia Gaita <avidigal@novell.com>
7655 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
7656 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7657 platforms. Fixes #359036
7659 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
7660 platform-specific flags.
7662 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7664 * Binding.cs: Add 2.0 BindableComponent property - just return control
7667 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
7669 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7670 Jonathan for this patch. Fixes #358442.
7672 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
7674 * Form.cs: If we change the active MDI child form, let the others
7675 know they need to repaint their title bar so it will appear inactive.
7676 [Fixes part 1 of bug #325473]
7678 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
7680 * PropertyGridView.cs: Do not trucate custom editors' width
7681 and align them to the left.
7682 [Fixes #358353 and #358349]
7684 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7686 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7687 Also fix the arguments passed to CollectionChangeEventArgs in the
7690 2008-02-04 Geoff Norton <gnorton@novell.com>
7692 * Hwnd.cs: The conversion to Quartz coordinates happens in
7693 System.Drawing. Removing this translation from here.
7695 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7697 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7698 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7699 GridItemCollection.cs:
7700 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7702 2008-02-04 Geoff Norton <gnorton@novell.com>
7704 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
7705 SYSKEYUP if any other key has been pressed in the mean time.
7708 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7710 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7711 when the item in current position is different than 0. Also, save the
7712 item index in the beginning of the operation, instead of getting the
7713 index of the item when the event is actually performed. Lastly clean
7714 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7718 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7720 * Form.cs: Alt-Minus for MDI children system menu should work
7721 with both the minus keys on the keyboard.
7724 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7726 * Control.cs: Don't invalidate on region change. The WM should
7727 take care of this automagically. Keeps us out of an infinite
7728 paint loop if someone changes the Region in the OnPaint.
7731 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
7733 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7735 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7737 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7738 down the MonthCalendar only on F4, not Alt+F4.
7739 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7742 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7744 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7745 if its part of a DateTimePicker, else, use the back color.
7748 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
7750 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7753 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7755 * CurrencyManager.cs: When we get a ListChanged event from our source,
7756 always fire our own ListChanged event, as .Net does.
7758 2008-02-03 Luke Page <luke.a.page@gmail.com>
7760 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7763 2008-02-03 Luke Page <luke.a.page@gmail.com>
7765 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7766 property. Removed if for richtext property that was always true.
7767 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7769 2008-02-03 Luke Page <luke.a.page@gmail.com>
7771 * TextBoxBase.cs - commited patch from James Purcell that
7772 correctly sets the FixedHeight control style when the MultiLine
7773 property is changed on a TextBox control. Fixes bug 358229.
7775 2008-02-02 Luke Page <luke.a.page@gmail.com>
7777 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7778 Fixes bug 351938 - caret is positioned correctly when drawn
7779 and when calculating textual position of caret, no longer
7780 has a NRE in certain situations.
7782 2008-02-01 Geoff Norton <gnorton@novell.com>
7784 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7785 get that region removed from the paint event.
7786 * XplatUICarbon.cs: Remove the window mapping after disposing of
7787 window. Prevents a crash with handle reuse. Optimize exposes
7788 only onto visible windows (rare; but possible).
7790 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7792 * UpDownBase.cs: Make sure the internal textbox calls the base's
7793 OnMouseDown and OnMouseUp so the textbox will function correctly.
7794 There were notes saying it doesn't chain up, but its an internal
7795 class, so our implementation may differ.
7798 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7800 * ListBox.cs: Fix a logic error and don't process MouseDown
7801 for mouse buttons other than Left.
7803 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7805 * Control.cs: Remove HeightInternal.
7806 * ListBox.cs: Commit patch from James Purcell that correctly
7807 calculates heights for ListBoxen.
7810 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7812 * Label.cs: Apply patch from James Purcell that corrects the
7813 signature of the AutoSize property.
7816 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
7818 * ListBox.cs: Don't throw [Mouse]Click events for buttons
7819 other than the left mouse button.
7821 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
7823 * Control.cs: Remove my awesome optimization as it caused some
7824 regressions with control ordering. :(
7827 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
7829 * PropertyGridView.cs: Fix a NRE on double click when there is no
7832 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7834 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7836 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
7838 * ListBox.cs: Call MouseClick and MouseDoubleClick.
7841 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7843 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7844 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7845 instead of Hwnd.bmp_g.
7847 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7849 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7850 Use the Hwnd one instead.
7852 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7854 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7856 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7858 * Form.cs: corcompare for RestoreBounds.
7860 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7862 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
7864 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
7866 * Form.cs: Handle Alt-Minus for MDI children forms.
7867 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
7868 Add mnemonics to the control menu.
7871 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7873 * Binding.cs: Initial implementation bits of FormattingEnabled
7874 property and BindingComplete event (2.0).
7875 * BindingCompleteEventArgs.cs: Internal methods for setting error text
7878 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7880 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
7881 table.Location. [Fixes bug #354672]
7883 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
7885 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
7886 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
7888 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7890 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
7891 of doing all the re-bound work, just invalidate and call SetControlText
7892 to set the updated text of selected item to our textbox.
7895 2008-01-28 Andreia Gaita <avidigal@novell.com>
7897 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
7898 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
7899 missing properties and methods. Add Load, Unload, Error, GotFocus,
7900 LostFocus, Resize, Scroll events (only load and unload are connected)
7902 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
7904 * AccessibleObject.cs: Modified argument names to match MS.
7905 * Button.cs: Modified argument names to match MS.
7906 * BindingContext.cs: Modified argument names to match MS.
7907 * BindingMemberInfo.cs: Modified argument names to match MS.
7908 * ButtonBase.cs: Modified argument names to match MS.
7909 * ComboBox.cs: Modified argument names to match MS.
7910 * Control.cs: Modified argument names to match MS.
7911 * CheckedListBox.cs: Modified argument names to match MS.
7912 * CommonDialog.cs: Modified argument names to match MS.
7913 * DataGrid.cs: Modified argument names to match MS.
7914 * CursorConverter.cs: Modified argument names to match MS.
7915 * ControlPaint.cs: Modified argument names to match MS.
7916 * CheckBox.cs: Modified argument names to match MS.
7917 * ControlBindingsCollection.cs: Modified argument names to match MS.
7918 * BindingSource.cs: Modified argument names to match MS.
7919 * DataFormats.cs: Modified argument names to match MS.
7920 * ContainerControl.cs: Modified argument names to match MS.
7921 * CurrencyManager.cs: Modified argument names to match MS.
7922 * Application.cs: Modified argument names to match MS.
7923 * ContextMenuStrip.cs: Modified argument names to match MS.
7924 * ContextMenu.cs: Modified argument names to match MS.
7925 * BindingManagerBase.cs: Modified argument names to match MS.
7926 * WindowsFormsSection.cs: Fixed line ending.
7928 2008-01-27 Andreia Gaita <avidigal@novell.com>
7930 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
7931 detecting that the dropdown toolwindow is hidden. EndLoop outside the
7934 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
7936 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
7937 MS. Code formatting.
7939 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7941 * Binding.cs: Don't avoid the Format event if the control
7942 property type is object. Also, if the value retrieved by
7943 the data source is null _and_ the control proeprty type
7944 is object, return Convert.DBNull (match .Net).
7945 Fixes part of #324286.
7947 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7949 * ListControl.cs: Since we are getting two BinginContextChanged events
7950 for the same binding context instance (when the control is added to
7951 form, and when the form is actually shown), take it into account only the
7952 first time for a given binding context instance.
7953 Fixes part of #324286.
7955 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7957 * PropertryGridView.cs: Ops.
7959 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
7961 * PropertyGridView.cs: Close dropdown form if the owner form is
7965 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
7967 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
7968 RootGridEntry.cs, CategoryGridEntry.cs:
7969 PropertyGrid rewrite.
7970 - Rewrite all of the control logic in PropertyGrid.
7971 - Rewrite all of the ComponentModel logic in GridEntry.
7972 - Rewrite all UI work in PropertyGridView.
7973 - Many bugfixes, etc.
7975 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
7977 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
7978 when all contained controls are autosize or dock-fill. Also take into
7979 account when the total percentage of column/row sizes is not 100%.
7982 2008-01-24 Andreia Gaita <avidigal@novell.com>
7985 - Save a reference to the IDocument in the instance and
7986 use that one instead of going to WebHost.Document; the document that the
7987 WebHost returns might not be the right one (in case of frames).
7988 - Use the hashcode returned from the IDocument interface.
7989 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
7990 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
7991 LinkColor, Url, VisitedColor, Window
7994 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
7995 set_Attribute, NextSibling, Parent, TagName, AppendChild,
7996 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
7997 SetAttribute, Equals, equality operators.
7998 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
7999 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
8001 * HtmlElementCollection.cs: Change implementation to use a generic
8002 collection. Implemented Enumerator and CopyTo
8004 * HtmlHistory.cs: Add constructor, no implementation yet.
8006 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8007 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
8008 Equals, equality operators.
8010 * HtmlWindowCollection.cs: Implemented.
8012 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8013 has been deprecated).
8015 * WebBrowserBase.cs: Use Completed event to track document loading
8016 (Navigated has been deprecated)
8018 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
8020 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
8021 level MenuItems do not respect tabs.
8024 2008-01-23 Geoff Norton <gnorton@novell.com>
8026 * XplatUICarbon.cs: Ensure that windows are created in their initial
8027 FormWindowState. Finished fixing Fullscreen windows on Carbon
8029 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8031 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8032 be used as grab_control. Also save status of capture before show ContextMenu
8033 and restore it after close.
8035 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8037 * Control.cs: Internal FindRootParent method added to return high control
8040 2008-01-23 Geoff Norton <gnorton@novell.com>
8042 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8043 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8044 it work again. Handle HITTEST events.
8046 2008-01-23 Geoff Norton <gnorton@novell.com>
8048 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
8049 a crash in certain cases. Support for fullscreen windows in certain cases.
8051 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
8053 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8056 2008-01-23 Geoff Norton <gnorton@novell.com>
8058 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8060 2008-01-23 Geoff Norton <gnorton@novell.com>
8062 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
8064 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8066 * SplitContainer.cs: Remove unused declarations.
8067 * Binding.cs: Remove unused declarations.
8069 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8071 * Form.cs: Remove unused declaration of 'active' in Activate method.
8072 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
8073 prevent compilation warnings.
8074 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8075 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8076 * Bindings.cs: Remove unused formatting_enabled declaration.
8077 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
8079 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
8081 * PropertyGridView.cs: Remove usused 'ex' declaration.
8082 * DataGridView.cs: Remove unused declarations.
8084 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8086 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8088 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
8089 to Control class, it makes possible to grab menu to controls that can't
8090 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8091 WmMouseMove removed since it was used only to track menu events.
8094 - Moved all active_tracker stuff from Form.
8095 - ProcessActiveTracker added to prevent code duplicity, now mouse events
8096 can call this method instead of reimplement all necessary code handle for
8098 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8102 - Remove special handle to ToolStripOverflow, now we can grab menu to
8103 controls that can't reach Form using parent tree.
8104 - Change type of grab_control from Form to Control.
8106 2008-01-22 Geoff Norton <gnorton@novell.com>
8108 * TextBoxBase.cs: Split up the sizing of controls and placing of
8109 controls. Fixes a bug where scrollbars in Reflector could be sized
8110 wrong and have non-working thumbers.
8112 2008-01-23 Geoff Norton <gnorton@novell.com>
8114 * XplatUI.cs: Refactor environment variables to default support to the
8115 Carbon driver on the Mac.
8117 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
8119 * Label.cs: Uses new LabelPainter for drawing operations.
8120 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8121 * Theme.cs: DrawLabel and LabelDefaultSize removed.
8123 2008-01-22 Geoff Norton <gnorton@novell.com>
8125 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8127 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
8129 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8130 through the normal flat button code and don't draw the checkbox glyph.
8131 * Theme.cs: Button->ButtonBase signature change.
8134 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
8136 * LinkLabel.cs: Uses new class LinkLabelPainter.
8138 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
8140 * MessageBox.cs: Adjust right border space, we don't need to add
8141 "space_border*2" two times.
8143 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
8145 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8146 becomes a wrapper around Padding.
8147 [Fixes a part of bug #354676]
8149 2008-01-22 Geoff Norton <gnorton@novell.com>
8151 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
8152 acquired. Also ensure the buffer is large enough to grab the header
8153 we need on linux boxes.
8155 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
8157 * Control.cs: Implement a custom enumerator so people can delete
8158 from the Controls collection while in a foreach.
8161 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
8163 * PropertyGridView.cs: Fix focusing behavior:
8164 - Tab should focus the grid text box.
8165 - Clicking on the labels shouldn't focus the grid text box.
8167 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
8169 * PropertyGridView.cs: IsValueTypeGridItem should return true
8172 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
8174 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8175 - Renamed GridEntry.SelectedObjects to TargetObjects to better
8176 reflect the property name role.
8177 - PropertyGrid.GetTarget is not required as the target is known
8179 - Setting values will handle value types as a special case now and
8180 populate them up in the chain.
8183 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
8185 * Hwnd.cs: Create a public property for the Graphics we keep around.
8187 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
8189 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
8190 when the current object selection changes.
8191 Fixes failing test SelectedObject_Null2.B5.
8193 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
8195 * PropertyGrid.cs: Process Browsable properties with
8196 DesignerSerializationVisibilityAttribute.Content as being expandable.
8197 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8198 will not be expandable. We should be nested components-friendly now.
8200 2008-01-21 Andreia Gaita <avidigal@novell.com>
8202 * WebBrowserBase.cs: Check if control was loaded properly,
8203 don't bind if it wasn't.
8205 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
8206 GetElementFromPoint, equality operators, OpenNew, Write.
8207 Remove extra set_Body
8209 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
8211 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8212 that makes our AutoScale* stuff more tolerant to different orders
8213 of being set. [Fixes bug #354669]
8215 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
8217 * PropertyGridView.cs, PropertyGridTextBox.cs:
8218 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8219 [Fixes #339005 and #348209]
8221 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
8223 * PropertyGridView.cs: Hide the grid text box before adjusting it
8224 for the newly selected GridItem.
8227 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
8229 * Form.cs: Give MDI children the opportunity to cancel the parent form
8230 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
8231 properly for both the parent and child.
8232 * Application.cs: Signature of internal method changed, pass the previous
8236 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
8238 * PropertyGridView.cs: Set the property value only if it has changed.
8241 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
8243 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8244 If the mouse hasn't actually moved, ignore these messages so the currently
8245 highlighted menuitem isn't reset to the one under the mouse.
8248 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
8250 * PropertyGridView.cs: When the property changes Invalidate the GridItem
8251 in order for the properties with UITypeEditor.GetPaintValueSupported == true
8252 to reflect the change visually.
8255 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
8257 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8258 to 2.0 button drawing.
8259 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
8260 the button text is tall enough for one line. LineLimit says it will
8261 always draw at least one line, but it is a lie.
8264 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
8266 * XplatUIStructs.cs, X11Keyboard.cs :
8267 added some more VK_* keys to be handled.
8269 2008-01-16 Andreia Gaita <avidigal@novell.com>
8271 * Control.cs: Check if there is a container before setting or getting
8272 the validation flag.
8274 2008-01-16 Andreia Gaita <avidigal@novell.com>
8276 * ContainerControl.cs: Add flag to track if a control cancels validation,
8277 so we don't fire click events.
8280 - (HandleClick) Check if validation was cancelled before firing the click
8281 events (doubleclicks are fired, but not clicks)
8282 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
8283 ContainerControl.set_ActiveControl, but in the case of non-selectable
8284 controls, like a Label, activecontrol is not set.
8286 * ButtonBase.cs: Only fire clicks if validation passes.
8290 2008-01-16 Geoff Norton <gnorton@novell.com>
8292 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8295 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
8297 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8298 SelectedPath, just display the default dialog instead of crashing.
8301 2008-01-16 Geoff Norton <gnorton@novell.com>
8303 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
8304 AddExpose instead of trusting apples compositing manager which doesn't
8305 work for our use case. Remove some dead code causing warnings and
8306 redecorate some other code to prevent warnings.
8308 2008-01-16 Geoff Norton <gnorton@novell.com>
8310 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
8311 carbon signals us to redraw. Fixes another portion of the flickering bug
8313 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8315 * Form.cs: Prevent the MdiParent property to be set when value is the same
8316 as value already set. Fixes bug #328019.
8318 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8320 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
8321 it prevents NRE when closing mdi child windows. Fixes bug #325211.
8323 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8325 * InternalWindowManager.cs: Invalidade close button after mouse up when
8326 mdi form is prevented to close.
8328 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
8330 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8331 thanks to Andy Hume. Fixes bug #325433.
8333 2008-01-16 Andreia Gaita <avidigal@novell.com>
8335 * LinkLabel.cs: Reset focused_index when resellecting the control.
8338 2008-01-15 Geoff Norton <gnorton@novell.com>
8340 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
8343 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
8345 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8348 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
8350 * ContainerControl.cs: Setting AutoScaleMode to anything should set
8351 Form.AutoScale to false.
8352 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8353 AutoScaleBaseSize should be changed on Font change unless it has been
8357 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
8359 * MenuAPI.cs: On instance of MenuTracker check if source control is
8360 ToolStripOverflow and use properly method to find form.
8363 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
8365 [Fixes bug #323241 Transparent toolbar support]
8367 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8370 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8371 defined in control style to mimic win32 behavior.
8373 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
8374 it will be transparent.
8376 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
8378 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8379 CreateParams for ToolBar controls.
8381 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8383 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8384 FixedToolWindow, SizeableToolWindow, or None for border styles have
8385 different minimum sizes than regular forms. Implemented to fix
8386 regression in PDN with toolbox being too wide.
8388 2008-01-14 Andreia Gaita <avidigal@novell.com>
8390 * HtmlElementCollection.cs: Implemented
8392 * HtmlElement.cs: Implemented:
8400 * HtmlDocument.cs: Implemented GetElementsByTagName.
8402 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8404 * Screen.cs: Stub BitsPerPixel to always return 32.
8406 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8408 * Form.cs: Implement RestoreBounds.
8410 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
8412 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8413 Sebastien and his fabulous magical problem-finding machine:
8414 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
8415 respect the value set.
8417 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
8419 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8420 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
8422 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8424 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8425 messages (to match .Net), we need to remove the capture ourselves.
8427 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
8429 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8430 will process the message and close our window.
8433 2008-01-10 Geoff Norton <gnorton@novell.com>
8435 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
8436 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
8439 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8441 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
8444 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8446 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
8447 Linux doesn't care, having a minimum matches MS and keeps the window
8448 from becoming too small to use window decorations.
8451 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8453 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8454 ShowFocusCues. Make focus rectangles fit the text instead of the whole
8455 control. [Fixes bug #325419]
8457 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
8459 * ComboBox.cs: Guard against an NRE if the user open a new form from a
8460 SelectedIndexChanged event. This closes the combobox dropdown, and we
8461 were trying to dispose it. [Fixes bug #352830]
8463 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8465 * Control.cs, Form.cs: Implement the necessary semantics for
8466 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
8467 to determine if a focus rectangle should be drawn.
8468 * PropertyGrid.cs: Fix property visibility to match override.
8469 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8471 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
8473 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8476 2008-01-09 Geoff Norton <gnorton@novell.com>
8478 * XplatUICarbon.cs: Scroll windows in the correct direction.
8480 2008-01-09 Geoff Norton <gnorton@novell.com>
8482 * XplatUICarbon.cs: Track all created utility windows so we can hide them
8483 when the app is deactivated or spaces is enabled.
8485 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8487 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8488 extra separation pixel for the label rect origin if SmallImageList is
8489 null, and thus we don't need that separation between icon and label
8491 Patch by Ernesto Carrea.
8494 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
8496 * StatusStrip.cs: Invalidate after completing a layout. The base
8497 OnLayout does this, but we don't call the base.
8498 * ToolStripItem.cs: Revert the previous change to invalidate after
8500 [Fixes bug #351341 better.]
8502 2008-01-07 Geoff Norton <gnorton@novell.com>
8504 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
8505 not a notification to exit the application. Listen for WM_QUIT
8508 2008-01-07 Andreia Gaita <avidigal@novell.com>
8510 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8512 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
8514 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8515 so it can repaint at the correct location.
8518 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8520 * ListControl.cs: SelectedValue should return a null value if
8521 SelectedIndex is -1. Also, when setting it, it should throw an
8522 ArgumentNullException if the value is null, as well as taking
8523 into account the String.Empty value, instead of ignoring it (we have
8524 tests for that now).
8525 Fixes part of #324286.
8527 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
8529 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8530 SelectionStart is updated after pressing enter. Fixes bug #351918.
8532 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8534 * TextControl.cs: Revert a piece r92316 that prevented the fix
8535 from working when there were multiple tags in the text box.
8538 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8540 * TextControl.cs: Apply patch from Luke Page that prevents an
8541 NRE when determining the beginning of a paragraph.
8544 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8546 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8547 caret gets moved with clicking away from a selected block of
8548 text. Fixes bug #351885.
8550 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8552 * TextControl.cs: Apply patch from Luke Page that takes line
8553 alignment into account for mouse selection, so that center and
8554 right aligned text can be selected.
8557 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8559 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8560 issues after loading an RTF file by using the correct line feeds.
8563 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
8565 * TextControl.cs: When deleting multiple line selections, we need
8566 to invalidate every line beginning at the first line of the selection.
8567 Patch from Luke Page fixes bug #351791.
8569 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8571 * ListControl.cs: When getting a CurrencyManager.PositionChanged
8572 event, don't set SelectedIndex if the number of items is 1. This is
8573 because, for the first item, PositionChanged is fired _before_
8574 ItemChanged (the place where we actually populate the items), and
8575 leave us in a temporary invalid state (since items collection is
8579 2008-01-04 Geoff Norton <gnorton@novell.com>
8581 * XplatUICarbon.cs: Create native toolwindows instead of
8582 the managed drawing ones.
8584 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8586 * LineTag.cs: If the line doesn't have any characters, return
8587 0 for GetCharIndex. Fixes an AOORE exception after certain
8588 caret movements. Fixes bug #351683. Patch by Luke Page.
8590 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8592 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8593 is hit when there is selected text, only the selected text gets
8594 deleted, not the character in front of the selection as well.
8597 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8599 * ComboBox.cs: When the values are displayed, calculate the
8600 ComboListBox scrollbar's LargeChange based on the visible area's
8601 height and the actuall ItemHeight, instead of calculating it
8602 based on MaxDropItems value, since it's not used by our _current_
8606 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8608 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8609 Patch from Luke Page that fixes issues with font colors and styles
8610 not showing up in a readonly RichTextBox. Fixes bug #324354.
8612 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
8614 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8615 from Luke Page. This one fixes bug #349926.
8617 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8619 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8620 an item in the IBindingList source changes with
8621 ListChangedType.ItemAdded. Ignore for now firing the event for other
8622 changes, since we want to have tests for those cases as well.
8624 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8626 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8629 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8631 * TextBoxTextRenderer.cs: Implement a cache for measuring each
8632 character. This is effective because the typical usage of a
8633 TextBox is with a limited amount of fonts and characters, and
8634 the current implementation of TextBox measures everything one
8635 character at a time. Another second or two speedup for bug #347238.
8637 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8639 * Control.cs: Rewrite the Font getter to only query the parent's
8640 Font property once instead of twice. Since this operation is
8641 recursive, the queries were growing exponentially as the control
8642 tree got deeper. Another second or two speedup for bug #347238.
8644 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
8646 * Control.cs: Avoid setting a parent (and more importantly, updating
8647 the zorder of all its children) if the parent is already correct in
8648 WmShowWindow. Decreases the startup time of the test case on bug
8649 #347238 from 35 seconds to 11 seconds.
8651 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8653 * X11Dnd.cs: When the dnd operation has started and we are
8654 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8655 This is done to match .Net, which doesn't send those messages after
8656 dnd operation was completed/cancelled.
8659 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8661 * ToolStrip.cs: Previous change should be != null, not == null.
8664 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
8666 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8667 user may have moved the mouse off the current item during the event.
8669 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8671 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8672 calling GetItemAt for every MouseMove event by also taking into
8673 account whether any mouse button is pressed (probably dragging);
8674 if so, we can call GetItemAt, and if not, try to not call it
8675 (GetItemAt can be quite expensive when used with a large number of items).
8677 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8679 * ListView.cs: Implement -finally- support for dnd, by calling
8680 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8682 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8683 simple calculation of distances for all the items in the owner
8686 2007-12-21 Geoff Norton <gnorton@novell.com>
8688 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
8689 for windows that are originally created as invisible. Fixes missing
8690 main window in paint-mono.
8692 2007-12-21 Geoff Norton <gnorton@novell.com>
8694 * XplatUICarbon.cs: Register our D&D handler. Register our custom
8695 subclass handler for com.novell.mwfview subclassing HIView. Implement
8696 Pasteboard and Dnd methods.
8698 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8700 * ListBox.cs: When we got focus, give focus to first item if there
8701 wasn't any pervious focused item. Also update navigation to depend on
8702 SelectedIndex rather than FocusedItem, just as .Net does.
8705 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8707 * ListBox.cs: Both FindString and FindStringExact methods must do an
8708 case insensitive search, should allow the last valid index to be
8709 passed in the overload taking an initial index, and should also
8710 continue searching from the top back to the specified index when it
8713 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8715 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8716 redraw issue, and allows RichTextBox to draw colored text even while
8717 disabled or readonly.
8719 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8721 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8722 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8723 and doesn't grey text in a disabled RichTextBox.
8725 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8727 * RichTextBox.cs: Apply patch from Luke Page that adds better support
8728 for many RTF commands: quad alignment, separate formatting for blocks
8729 inside groups, and ParDef support. Makes the test case from bug #324589
8732 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8734 * LineTag.cs: Fix an error in the new Draw method that caused
8735 a crash when rendering the document on bug #324589.
8737 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
8739 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8740 TextControl.cs: Apply patch from Luke Page that adds support
8741 for URL links in RichTextBox.
8742 [Fixes enhancement #342516]
8744 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
8746 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8747 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8749 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8751 * ListBox.cs: When a key gets pressed, try to find a string
8752 if the key is a character or a digit.
8755 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8757 * TableLayoutPanel.cs: Remove some unused variables.
8759 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8761 * DateTimePicker.cs: Commit patch from Luke Page that ensures
8762 we don't end up at an invalid date when we click the up/down
8763 spinner to change the month or year. Fixes bug #348682.
8765 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
8767 * Application.cs: Calling Exit in 2.0 should chain to the
8768 Exit (CancelEventArgs) version so it can be cancelled.
8769 * Form.cs: Create a flag to allow raising the Closing
8770 events to be skipped. We raise them once in Application.Exit
8771 and don't want to raise them again when the Form is actually
8772 closed. [Fixes bug #349073]
8774 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
8776 * ToolStripDropDown.cs: Guard against an NRE when there
8777 hasn't been a mainform set in the application context.
8780 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8782 * ListBox.cs: When SetBoundsCore gets called, besides
8783 calling UpdateScrollBars, update the value of
8784 last_visible_index, since we could need to show more items
8785 than before, and we need to let the paint routines know that.
8788 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8790 * ListView.cs: Add DesignerSerializationVisibility attribute to
8791 InsertionMark property.
8792 * ListViewItem.cs: Add same attribute to Position property.
8794 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8796 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8799 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
8801 * ThemeWin32Classic.cs: Don't draw the background on a
8802 flat button if there is a background image.
8805 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8807 * ListBox.cs: If we remove the item currently selected,
8808 remove it not only from SelectedItems, but also
8809 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
8810 the items count decreased and focused_item has bigger value than that.
8812 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8814 * Control.cs: Perform our layout after we resize ourselves
8815 if we had to adjust our AutoSize. Missed commit for bug
8818 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
8820 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8821 we can provide an implementation of AutoSize.
8824 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8826 * ListBox.cs: Add the internal overload Sort (bool paint),
8827 to indicate whether we actually need a paint or we will
8828 call Refresh ourselves. This way we don't request a paint
8829 _before_ having an updated and valid layout.
8832 2007-12-12 Andreia Gaita <avidigal@novell.com>
8834 * XPlatUIX11.cs: Send paint messages when updating a systray icon
8835 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8836 properly invalidated.
8839 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8841 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8842 don't simply assign it to our internal group field, but instead
8843 use our Group property, which should do all the neccessary work
8844 required to support groups. Fixes an issue reported to me (mail) by a
8845 guy using this new feature.
8847 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
8849 * Control.cs: Use Scale instead of ScaleControl to ensure the
8850 whole hierarchy gets scaled.
8853 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8855 * DateTimePicker.cs: Don't set the internal MonthCalendar's
8856 Parent property. Doing this causes the control to be hosted by
8857 the Form instead of being a popup window.
8860 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8862 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
8863 at an index higher than Count, just use Add instead of Insert.
8866 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
8868 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
8869 DrawPictureBox, this is handled by Control.PaintBackground.
8872 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
8874 * MenuAPI.cs: When process menu keys return true by default only if menu is
8875 active. Fixes bug #342892.
8877 2007-12-09 Andreia Gaita <avidigal@novell.com>
8879 * Control.cs: check if windows are actually mapped before
8880 trying to zorder. Fixes #342509, #346955
8882 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8885 * ListViewInsertionMark.cs:
8886 * ThemeWin32Classic.cs: Implement the drawing side of the
8887 new 2.0 ListView.InsertionMark property.
8889 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
8891 * CurrencyManager.cs: Silence some debug spew.
8893 2007-12-07 Geoff Norton <gnorton@novell.com>
8895 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
8896 masks for our children as well as siblings to avoid having to query
8897 Quartz for this information.
8898 * XplatUICarbon.cs: Implement a delegate based system to pass
8899 information to System.Drawing. Implement Async methods. Remove
8900 the hack for the resize thumb and imlpement a transparent Grow Box.
8901 Rework the messaging system to proplery create window's and messages,
8904 2007-12-06 Andreia Gaita <avidigal@novell.com>
8906 * X11Keyboard.cs: Use Xutf8LookupString to support international
8907 characters under alternate codepages. Patch from #340878
8909 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8911 * ListView.cs: When doing layout computations, set position in the
8912 ListView instances (we cache the position just as .Net does).
8913 * ListViewItem.cs: New internal setter method for Position. Also set
8914 position field as also available in 1.1, since we are going to use it
8915 now in the common case.
8917 2007-12-06 Andreia Gaita <avidigal@novell.com>
8919 * Control.cs: When removing controls, get the actual container
8920 to notify about active control changes. Fixes 341314.
8922 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8924 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
8926 2007-12-05 Andreia Gaita <avidigal@novell.com>
8928 * Control.cs: When updating the zorder, ignore windows that are not
8929 mapped. Fixes #342509
8931 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8933 * ListViewItem.cs: Actually implement serialization on this class.
8935 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
8937 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
8938 LinkCollection. Spaces to tabs, and removed extra tabs.
8940 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
8942 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
8943 tests to fail (hopefully).
8945 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8947 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
8948 the image margin so custom renderers can correctly place it.
8950 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8952 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
8953 so custom renderers can correctly place it.
8955 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
8957 * Application.cs: Let WM_CHAR messages flow through to controls
8958 hosted in Strips. [Fixes bug #343972]
8960 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8962 * ToolStripManager.cs: Guard against an NRE I ran into.
8964 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
8966 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
8967 a Link is manually added to the Links collection, we need to set
8968 its owner, so it can invalidate properly.
8971 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8973 * ListView.cs: When changing ListViewItem.Position (which calls
8974 ListView.ChangeItemLocation), invalidate not only the area
8975 corresponding to the main item, but also to the area occupied
8976 by the items being moved.
8978 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8980 * ListView.cs: When changing the position of a given item,
8981 don't use item bounds, but item areas (which includes the item spacing
8982 between them). Also, use first/last position if the requested
8983 position is outside bounds (as .Net does). Invalidate the previous and
8984 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
8985 in a specific position, instead of directly accessing Items collection
8986 (this is done to get the right item - remember an Item can have a
8987 different position in the grid than in the Items collection).
8989 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8991 * MessageBox.cs: Calculate text area instead of just top left, this rect
8992 area will be used in DrawString. Fixes bug #343364.
8994 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
8996 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
8997 screen width. Partially fixes bug #343364.
8999 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
9001 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9002 code inside recalculate, it makes code more simple.
9004 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
9006 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9007 between update or add icon. Fixes bug #324344.
9009 2007-11-21 Andreia Gaita <avidigal@novell.com>
9011 * XPlatUIX11.cs: Do not treat tool windows as if they have no
9012 window manager, since that stretches the drawing area to include
9013 the window decorations, and they get hidden. Reverts r84444 and fixes
9014 #335849 and #342790 (mdi and pdn3 regression)
9016 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9018 * ListView.cs: When setting focused item, try to give focus to the
9019 previous one _only_ if the previous one remains valid.
9022 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
9024 * Application.cs: Revert r89650, as it broke a common case to fix
9025 an obscure case. Fixes bug #342606.
9027 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
9029 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9031 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
9033 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
9034 alignment. [Fixes #324228]
9036 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
9038 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9041 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
9043 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9044 it prevent problems when empty captions. [Fixes #342141]
9046 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
9048 * Label.cs: Use Size instead of None. Fixes bug #342077.
9050 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9052 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9054 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
9056 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9057 but there isn't a MdiContainer.
9060 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
9062 * TextControl.cs: Don't recalculate document if the recalc_start and
9063 recalc_end hasn't changed.
9066 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
9068 * DataGridViewTextBoxCell.cs: Removed CWL.
9070 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9072 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9074 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
9076 * TextControl.cs: Missed some code for bug 341534 to trigger a
9077 recalculation when the font changes.
9079 2007-11-16 Andreia Gaita <avidigal@novell.com>
9081 * Control.cs: When updating the zorder, check if the child to update is
9082 the same control that is set to always be on top (i.e., scrollbars), and
9083 just put it on top directly. Fixes BadMatch error on pdn3
9085 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9087 * ListView.cs: Throw the needed exceptions for FindNearestItem.
9089 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
9091 * Control.cs: Don't perform a new layout when a label changes its text,
9092 cause label handles its own autosizing.
9095 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9097 * ListView.cs: Implement 2.0 FindNearestItem methods.
9099 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
9101 * ToolStripPanel.cs: Make Join at least add the control to the panel,
9102 even if the rest of what Join does isn't supported. Add some more
9103 support for vertical toolbars.
9104 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9105 [Fixes the application breaking parts of bug #341998]
9107 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
9109 * ToolStripItem.cs: When determining if we have a check/image margin,
9110 we need to look at ShowCheckMargin as well as ShowImageMargin.
9112 2007-11-15 Geoff Norton <gnorton@novell.com>
9114 * XplatUIOSX.cs: Rename to...
9115 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9116 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
9118 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
9120 * KeysConverter.cs: The default values should be an array of Keys, not
9121 strings. Also, the array has more values for 2.0.
9124 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
9126 * Application.cs: Change ExecutablePath to use
9127 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9130 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
9132 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9133 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9134 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9135 be ignored. Create a new GetLineEnding that can specify which types of
9136 line endings to look for. On Insert, only create new lines for \n and \r\n.
9139 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
9141 * TextBoxBase.cs: As we loop through each line changing the font, tell
9142 the document that the line needs to be recalculated. Fixes bug #341534.
9144 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
9145 [Another round of refactoring]
9146 * Line.cs: Add DeleteCharacters.
9147 * LineTag.cs: Add Delete.
9148 * TextBoxBase.cs: Update to use new methods.
9149 * TextControl.cs: Refactor the Delete* methods.
9151 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
9153 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9154 the patch. [Fixes #324856]
9156 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9159 * ListViewItem.cs: Add an initial implementation of
9160 2.0 ListViewItem.Position getter.
9162 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9164 * ListView.cs: Add a reordered_items_indices array, to allow us
9165 to have a different sorting than that of Items (the sorting in Items
9166 could not match the actual sorting in screen). This is needed to
9167 implement a pair of 2.0 features.
9168 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9169 actual position in the ListView grid, since it could have a position
9170 different than its Index (position in ListViewItemCollection).
9172 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
9174 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
9175 not draw partial lines.
9176 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9177 LineLimit flag from the base is preserved.
9178 Fixes the windows part of bug #338965.
9180 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
9182 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9183 so that it can be canceled in KeyPress.
9186 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9188 * ListView.cs: In ItemControl, reset mouse-handling related
9189 fields even if we dont' have items (we still should reset them when
9190 we had items but then called Items.Clear). Partially based in a patch
9194 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
9196 * Application.cs: In ProductVersion first try AssemblyFileVersion
9197 before falling back to assembly version. Fixes bug #339787.
9199 2007-11-08 Andreia Gaita <avidigal@novell.com>
9201 * HtmlElement.cs: Implement InnerText setter.
9202 * WebBrowserBase.cs: Implement Navigated event support.
9203 Add flag to track when the browser "document" is ready to be retrieved.
9204 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9205 Make sure browser document is ready before retrieving it.
9206 Clean up cached objects (document) when moving to a new page through
9207 any of the navigation methods.
9208 Use the new Mono.WebBrowser.INavigation interface to control navigation.
9209 Implement OnNavigated event.
9211 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
9213 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9214 DrawLinkLabel, this is handled by OnPaintBackground.
9215 Fixes bug #339565, part II.
9217 2007-11-07 Andreia Gaita <avidigal@novell.com>
9219 * Control.cs: Revert r88915. Selecting text on a textbox depends on
9220 getting a Select call on click, so this call needs to be here for now.
9223 2007-11-07 Geoff Norton <gnorton@novell.com>
9225 * OSXStructs.cs: Add the kEventClassApplication constants.
9226 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
9227 application is deactivated otherwise Menu overlays linger on top of
9228 other application windows.
9230 2007-11-07 Geoff Norton <gnorton@novell.com>
9232 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9233 dont support cursors yet anyways. This allows Reflector to run.
9235 2007-11-07 Geoff Norton <gnorton@novell.com>
9237 * XplatUIOSX.cs: Implement DragSize.
9239 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9241 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9242 ItemControl, request the focus, as .Net does. This is needed after
9243 Control does not request focus anymore when it receives a
9246 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
9248 * Label.cs: Make DrawImage internal so it can be called from Theme code.
9249 Remove the DrawImage call from OnPaint.
9250 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9251 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9252 but before we draw the text for DrawLabel and DrawLinkLabel.
9255 2007-11-05 Andreia Gaita <avidigal@novell.com>
9257 * Control.cs: Remove select call on click. Fixes #325809
9259 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9261 * ListViewItem.cs: Add 2.0 Position property getter.
9263 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9265 * ListView.cs: Add 2.0 BackgroundImageTiled property.
9266 Also, to make it work properly, change item's BackColor and
9267 BackgroundImageLayout as needed.
9268 * ThemeWin32Classic.cs: Don't fill any background rectangle
9269 in ListView.ItemControl when drawing items; just let the Control
9270 base implementation fill it.
9272 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9274 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9275 as well as adding a custom 'dummy' Converter, as .net does.
9277 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9279 * PropertyGridView.cs: When clicking drop-down button,
9280 select an index in the listbox only if our standard values collection
9281 has one or more items.
9283 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9285 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9288 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
9290 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9291 the value is not changed. This ensure a pushed button remains in that
9292 state when clicked again. When switching the value of PropertySort
9293 between Categorized and CategorizedAlphabetical, do not update the
9294 grid items and do not fire a PropertyChangedEvent. When clicking the
9295 sorting buttons, do not modify the PropertySort value when switching
9296 between Categorized and CategorizedAlphabetical but only update the
9299 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
9301 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9303 * PropertyGrid.cs: Also put Categorized button in pushed state when
9304 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9305 for help description label.
9307 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9309 * ListView.cs: When calculating the biggest item for a given column,
9310 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9313 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
9315 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9316 value for PropertySort on 1.0 profile. PropertySortChanged event
9317 should only be fired on 2.0 profile. Fixed NullReferenceException
9318 in UpdateSortLayout when PropertyGrid contains no items.
9320 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
9322 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9325 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9327 * ListViewItem.cs: Implement 2.0 IndentCount property.
9329 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9331 * X11Dnd.cs: When sending status in a dnd operation, compare current
9332 effect with the 'allowed' field instead of 'drag_data.Allowed', since
9333 the later is only created when a Winforms application is both the
9334 source and the target, but not when we are the target only.
9335 Fixes part of #324251.
9337 2007-11-01 Geoff Norton <gnorton@novell.com>
9339 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9341 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
9342 children out of the drawing view on mac.
9343 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
9344 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9346 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
9348 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9349 on the non-hosted-control part of it shouldn't do anything.
9350 Fixes part of bug #327498.
9352 2007-11-01 Andreia Gaita <avidigal@novell.com>
9354 * WebBrowserBase.cs: revert previous change, resize can be called anytime
9356 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
9358 * Application.cs: When a toolstrip has the keyboard input loop, let messages
9359 it does not use flow through to controls that are hosted in menus.
9360 Same with mouse clicks.
9361 * Form.cs: Don't close all menus on click if the click is on a
9362 control hosted in a menu.
9363 Fixes part of bug #327498, and part of bug #325969.
9365 2007-10-31 Andreia Gaita <avidigal@novell.com>
9367 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9369 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
9371 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9372 Addresses an issue raised in bug #336218.
9374 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
9376 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9377 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
9379 2007-10-30 Andreia Gaita <avidigal@novell.com>
9381 * ContainerControl.cs: Check if the active control is a
9382 child of a removed control and update active_control accordingly.
9385 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9387 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9388 or the MaxDate. Fixed bug #337693.
9390 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9392 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9393 after calling SetWindowLong for a form, to force an immediate NC refresh.
9394 Fixes first part of bug #325150.
9396 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9398 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9399 simple. Fixes the last part of bug #322668.
9401 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
9403 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9404 needs to be TopMost as well, or else the MessageBox is under the form.
9405 Patch by George fixes bug #325300.
9407 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9409 * X11Dnd.cs: When starting a new drag operation, reset the static
9410 'dropped' field to false (previously the implementation didn't reset
9411 it and got confused after the first drag).
9414 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9416 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9417 items instead of re-creating them all. For this purpose we now cache
9418 both CategoryGridEntry items and the GridEntries for the main object's
9420 * GridItem.cs: Make SetParent method abstract.
9421 * GridEntry.cs: Override the SetParent method (already there, but now
9425 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9427 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9428 depending on its depth (as .Net does). Update the needed values in
9429 MouseDown handler. Also draw the plus/minus rect after the label,
9430 so we don't draw on top of it.
9432 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
9434 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9435 processed by forms or controls when menu is active. [Fixes #333548]
9437 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9439 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9440 parent doesn't have focus. This was causing ToolStripTextBoxes to take
9441 focus on mouse over.
9443 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9445 * TextControl.cs: Code cleaning, simplifying.
9447 2007-10-24 Geoff Norton <gnorton@novell.com>
9449 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9450 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9452 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
9454 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9455 the cap is maxvalue, not actually 0. [Fixes bug #336218]
9457 2007-10-24 Andreia Gaita <avidigal@novell.com>
9459 * SendKeys.cs: apply jpobst's patch to bug #332409
9461 2007-10-23 Andreia Gaita <avidigal@novell.com>
9463 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
9464 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9467 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9469 * PropertyGridView.cs: If a property has an UIEditor available,
9470 make the drop-down/editor button available only if the property
9473 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9475 * PropertyGridView.cs: Don't make the grid item textbox
9476 editable when a drop-down control is available, but
9477 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9478 true. The same bur the color of the grid item value's label.
9480 2007-10-22 Geoff Norton <gnorton@novell.com>
9482 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9483 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9484 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
9485 driver. Padd the bottom of all real windows so the resize thumb doesn't
9486 obscure scroll/status bars.
9488 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
9490 * WindowsFormsSection.cs: Implement.
9492 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9494 * MdiClient.cs: Maximize new active mdi child when a maximized child is
9495 closed see #325434 patch.
9497 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
9499 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9502 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9504 * PropertyGridView.cs: When showing the textbox for a grid item,
9505 have two local variables to store the read-only and non-editable
9506 status of a grid item (we were previously using just one variable
9507 to do this, when actually they are slightly different).
9508 Fixes part of #325023.
9510 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9512 * PropertyGridView.cs: When showing a drop-down list, try to get the
9513 values using TypeConverter.ConvertTo (to convert to a string). Fixes
9516 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9518 * PropertyGrid.cs: When updating a property and populating sub grid
9519 items, remove the previous ones, and invalidate the specific area.
9520 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9521 area behind a grid item.
9522 * GridItemCollection.cs: Add an internal Clear method, to allow us to
9523 clean the items if needed (specially for controls implementing
9524 ICustomTypeDescriptor and returning a variable number of properties).
9527 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
9529 * TextControl.cs: Clean up and document the Insert function.
9531 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9533 * TextControl.cs: Make sure we know our start point for updating the view
9534 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
9537 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9539 * ListView: Couple of corcompare fixes.
9541 2007-10-17 Geoff Norton <gnorton@novell.com>
9543 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
9544 the title caption of real window.
9546 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9548 * ErrorProvider.cs: Add the error provider's internal window to a
9549 containercontrol when the parent changes. [Fixes bug #329714]
9551 2007-10-17 Geoff Norton <gnorton@novell.com>
9553 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
9554 When we make a new window; restore the old active window - fixes dialogs.
9556 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9558 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9559 when modifying a property, and if found then invalidate as
9561 Fixes part of #324865.
9563 2007-10-17 Geoff Norton <gnorton@novell.com>
9565 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
9566 highly experimental. Fixed coordinate translation. Fixed window locations.
9567 Initial support for clipping. Implemented NC areas and menus. Support for
9568 launching from command line from Will Johansson (wjohansson@atacomm.com).
9569 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9570 wjohansson@atacomm.com)
9571 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9572 Hwnds now track the existence of all of their children for Mac clipping.
9573 * XplatUI.cs: Re-enabled the native driver on the Mac.
9575 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
9577 * Line.cs: Move the InsertString function to here.
9578 * TextControl.cs: Cleanup some duplicate code, move some InsertString
9579 functionality to Line.
9581 2007-10-17 Geoff Norton <gnorton@novell.com>
9583 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
9585 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
9587 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9588 always setting value to true.
9589 * Form.cs: When changing AcceptButton, notify new and original button.
9591 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
9593 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9594 a custom control that implements IButtonControl instead of an actual
9595 button. [Fixes bug #334244]
9597 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9599 * Form.cs: Change SelectActiveControl to internal, we need to call it in
9602 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9603 active control when activate a new mdi window.
9607 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
9609 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9613 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9615 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9616 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
9617 so we always recalculate the whole document instead of just the new part.
9620 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9622 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9623 when the mouse was to the left of the first character in the line.
9625 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
9627 * TextBox.cs, TextBoxBase.cs: When setting the document's password
9628 character, use the property instead of the variable so that the
9629 UseSystemPasswordChar property is taken into account.
9632 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9634 * FolderBrowserDialog.cs: When a node is right clicked and the "New
9635 folder" contex menu appears, actually add the new folder to it, even
9636 if the node is not currently selected. Still use SelectedNode in case
9637 there wasn't found a node under the pointer.
9640 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9642 * ListViewItem.cs: When retrieving the focused state, the index check
9643 should be done only when ListView is in virtualmode, as it is an
9644 expensive check for normal mode.
9646 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9648 * ListViewItem.cs: Make the focus state information be stored
9649 in the ListView, not in the items. This is done to match the MS
9650 behaviour for items that are not yet part of a ListView control;
9651 besides that, since just one item can be focused at the same time,
9652 we save a little space in our items.
9653 Fixes part of #331643.
9655 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9657 * ComboBox.cs: When focus is lost, deselect the text. When setting
9658 text of control, select all text. Do not hide selection when control
9659 does not have focus. Fixes bug #333663.
9661 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9663 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9664 instead of ArgumentException when SelectionLength is set to negative
9665 value. Added same check to SelectionStart. Code formatting.
9667 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9669 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9670 or SelectionStart. Code formatting.
9672 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9674 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9675 indicating that there was not a previous drag-and-drop operation going
9677 Fixes part of #325071.
9679 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9681 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9682 AllowedEffect, don't let the drop operation happen.
9685 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9687 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9689 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9691 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9694 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
9696 * Line.cs: Add a method that finds the tag that contains an x-coord.
9697 * LineTag.cs: Add a method that finds the character at an x-coord using
9698 a binary search, the old way was a linear search.
9699 * TextControl.cs: Change FindCursor to use the above new methods.
9701 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9703 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9704 value different than AllowedEffect). This should be possible to
9705 indicate that dragging is not possible in some control/area.
9707 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
9709 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
9710 descent internally when font changes instead of outside code being responsible
9712 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9713 instead of accessing internal variables.
9715 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
9717 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9718 remove special treatment for ArrangeIcons since it is already arranged.
9720 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9722 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9723 the Win32 backend uses Color.
9724 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9725 Refactor to store a Color instead of a Brush for Color.
9727 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9729 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9730 away. I didn't realize I needed this when I refactored these earlier.
9732 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9734 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9735 store a Color structure and use the ResPool for back color instead of
9736 holding onto brushes.
9738 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
9740 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9743 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9745 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9746 to recalculate its size. Fixes a part of bug #331052.
9748 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9750 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9751 button. Fixes a part of bug #331052.
9753 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9755 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9757 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9761 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9763 * TextBoxTextRenderer.cs: Don't make this a static class, as static
9764 doesn't exist in 1.1. (Thanks jb!)
9766 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
9768 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9769 class to allow us to use different backends on different platforms.
9770 Linux uses the current [Draw|Measure]String backend. Windows uses
9771 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9772 of GDI+. This leads to better looking text and more accurate measurements
9773 on Windows, fixing many of the reported issues.
9774 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9776 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9778 * FolderBrowserDialog.cs: When running on Windows,
9779 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9780 since we must match both "C:" and "C:\" forms. A little hackish, but
9784 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9786 * ListView.cs: When calling EndEdit (after editing an item),
9787 create a new instance of LabelEditEventArgs to keep clean the fields
9788 in case we get a new call to BeginEdit; also do Application.DoEvents
9789 to have focus in synch. This is a fix similar to TreeView's #325244.
9791 2007-10-07 Andreia Gaita <avidigal@novell.com>
9793 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9794 * WebBrowserBase.cs: Added dialog support, calling the
9795 WebBrowserDialogs classes for each specific dialog type.
9797 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9799 * ListView.cs: When the last item is focused and is removed,
9800 move the focus to the previous item (in Items order). This is what MS
9804 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9806 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9807 instead of the opposite (RemoveAt call Remove). This is a better
9808 approach since we don't need to to a pair of traversals when using
9811 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9813 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9814 check that the node actually has nodes, and if not, move to the
9815 parent node instead.
9818 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9820 * TreeView.cs: Move the previous change to the general case (to
9821 call Application.DoEvents in cases where the method was called by
9824 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9826 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9827 call Application.DoEvents. This is neccessary when we get a call to
9828 BeginEdit from an AfterLabelEdit handler, because the focus always
9829 goes to the TreeView, even if we try to give it to our
9830 LabelEditTextBox. The call do Application.DoEvents seems to
9831 synchronize the focus, basically.
9834 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9836 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9837 should be false. This also removes some nasty recursive paths. Fixes
9840 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
9842 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9843 state to normal. Also resize window when cascading. Fixes #325433.
9845 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9847 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9848 DefaultForeColor, as drawing empty colored lines isn't very useful.
9849 [Fixes the not drawn lines part of bug #324358]
9851 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
9853 * TextControl.cs: Move Line and LineTag classes into separate files to
9854 make things easier to find.
9855 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
9856 * RichTextBox.cs: Capitalize LineTag.Length property access.
9857 - This is purely an organizational/formatting change, no logic changed. -
9859 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9861 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
9864 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9866 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9869 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9871 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
9872 prevent calling of OnBackColorChanged. Fixes #325321.
9874 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
9876 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
9877 because control can be disabled because owner is disabled.
9879 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9881 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
9882 string.Empty, test failed from previous change.
9884 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
9886 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
9887 is null, not String.Empty. See bug #323038.
9889 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
9891 * TextControl.cs: Change the margins to match MS a little better.
9892 Still not perfect for X11 due to some DrawString differences, but
9893 is still an improvement over the old stuff.
9894 Partially fixes #324467.
9896 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9898 * FolderBrowserDialog.cs: When using MyComputer as
9899 RootFolder, let absolute paths be considered as valid ones. Also, use
9900 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
9901 for Windows compatibility.
9902 Partially fixes #325247.
9904 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9906 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
9907 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
9908 method, since it causes the dialog to not select folders directly
9909 under the root path (when setting SelectedPath property).
9911 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9913 * TreeNode.cs: When calling Expand/Collapse and need to call
9914 ExpandBelow/CollapseBelow respectively, take into account
9915 partially visible nodes (previously Expanding/Collapsing
9916 a partially visible node in the bottom was not updating its +- sign).
9918 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9920 * TreeView.cs: When calling Expand on a TreeNode, and we need to
9921 expand nodes below (ExpandBelow), scroll the entire Viewport
9922 area if the node is above it and not visible (instead of scrolling
9923 the area from node's Bottom, which applies only when the node is
9927 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9929 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
9930 node in the bottom area (as .Net does). This is done to preserve the
9931 scroll position when ExpandAll is called before handle is created for
9932 the 1.1 profile (bottom area, as opposed to top area in 2.0).
9935 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9937 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
9938 bottom area if we are in fact not using the vertical scroll bar.
9941 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9943 * Control.cs: Comment out a double buffering optimization that doesn't
9944 take into account invalidates created in OnPaint, causing the control
9945 to never be redrawn. It would take quite a bit of work to work around
9946 this, but I left it commented with an explanation for later possible
9950 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
9952 * Control.cs: Ask parent to perform a layout if control is AutoSize and
9954 * RadioButton.cs: Implement GetPreferredSizeCore.
9957 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9959 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
9962 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
9964 * Application.cs: Move the sync context stuff to Run instead of RunLoop
9965 so that it doesn't get uninstalled on modal forms.
9966 * Control.cs: Install a sync context when a control is created.
9967 * WindowsFormsSyncronizationContext.cs: Create a private static control
9968 to invoke on. This is easier than trying to find a created control we
9972 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
9974 * Application.cs: Install a WindowsFormsSynchronizationContext in the
9975 run loop, and uninstall it when done.
9976 * WindowsFormsSynchronizationContext.cs: Implement.
9977 [Fixes the common case in bug #327608]
9979 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
9981 * DataGridViewCellCollection.cs: Added argument checks for indexers.
9982 Use case-insensitive lookup of column name in indexer. Code
9985 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9987 * TreeNode.cs: When collapsing or expanding a node, check whether its
9988 change will affect the visible area (we were previously doing a
9989 IsVisible check, but that check is not enough since children nodes
9990 could be still visible). Fixes part of #325266.
9992 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
9994 * TreeView.cs: Always select the first node when the TreeView gets
9995 focus if there is no currently selected node.
9998 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
10000 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10001 node being selected is null.
10002 [Patch from Yves Bastide fixes bug #326858]
10004 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10006 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10007 whether all the parent nodes are expanded.
10008 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10009 call RecalculateVisibleOrder if all previous nodes are expanded.
10010 Before that we were doing a IsVisible check, but sometimes the node
10011 is not in the visible area, but _should_already be ready, because of
10012 all previous nodes are expanded. Fixes #325259.
10014 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10016 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10017 portion of the item is clicked.
10019 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10021 * TextControl.cs: Do not tell the system to move the cursor if the
10022 textbox isn't focused. Fixes part of bug #322668.
10024 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10026 * ComboBox.cs: When there are no items, do not show the dropdown if
10027 the down arrow is clicked. Fixes part of bug #322668.
10029 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
10031 * ToolStripComboBox.cs: Manually set the size of this control in the
10032 constructor, as it doesn't seem to be the same as DefaultSize.
10033 Fixes a failing monobuild test.
10035 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
10037 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10038 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
10040 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
10042 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10043 Desktop. This lets it work for people who have moved their desktops
10044 from the default location on windows. For people who have not, both
10045 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
10047 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10049 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10050 but when the base constructor sets this, the control is null. Set it
10051 again in the constructor. Fixes a failing monobuild test.
10053 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10055 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10057 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10060 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10062 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10063 will handle it themselves.
10064 * ToolStripItem.cs: When deciding what the text of a tooltip should
10065 be, use the Text property instead of the text field.
10066 * ToolStripTextBox.cs: Handle tooltips.
10067 [Fixes bugs #325417 and #325973]
10069 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10071 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10072 left click. Fixes the easy part of bug #325969.
10074 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
10076 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10077 bug #325406, but set a minimum for StatusStrip to 22 to keep
10078 bug #325390 fixed. I think this minimum would have been figured
10079 up automatically if the grip was actually a ToolStripItem, but it
10082 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10084 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10085 as this is apparently the actual value used by .Net. Also apply
10086 ItemPadding in Details view only, and decrease the general width padding,
10087 to have only the needed. This should fix #324340 in Windows too.
10089 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10091 * ListViewItem.cs: Don't Invalidate item if parent is inside
10092 a BeginUpdate/EndUpdate block. This prevents to have differences
10093 between the ListView and items state, as well as avoid some exceptions
10095 * ListView.cs: Make 'updating' field internal.
10097 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10099 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10100 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10101 size if appropriate.
10102 Fixes reopened bug #325414.
10104 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10106 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10107 * ToolStripItem.cs: Invalidate before and after our new autosize when
10109 Fixes reopened bug #325390.
10111 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10113 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10114 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
10117 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
10119 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
10121 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10123 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10124 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10127 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
10129 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
10130 item to select when the ToolStrip is selected.
10131 * ToolStripControlHost: Realign the control when the bounds or visibility
10133 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10134 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10136 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10137 base.OnPaint. Was causing text not to be drawn.
10139 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
10141 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10143 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10145 * TreeView.cs: When creating the label edit text box,
10146 set is initially to Visible = false. This is done to
10147 prevent a confusion in the layout which makes it to lose
10148 focus when shown the first time. Fixes part of #82592.
10150 2007-09-13 Andreia Gaita <avidigal@novell.com>
10152 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10154 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10156 * ToolStrip.cs: Take Margin into account when calculating preferred
10157 size. Also, allow preferred size to get smaller than the explicit
10159 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10160 First step towards fixing bug #82747.
10162 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10164 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10165 full row select background over the plus/minus glyph. Also, turn
10166 off the focus rectangle for full row select since MS doesn't seem
10167 to ever paint it. [Fixes bug #81839]
10169 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10171 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10172 This was causing keyboard opened dropdowns to lose focus.
10175 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10177 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10178 ClientRectangle instead. [Fixes bug #82838]
10180 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
10182 * SplitContainer.cs: We can't reset Visible on every layout because
10183 someone may have set Visible = false explicitly on a SplitterPanel.
10184 Make sure when we switch orientation the SplitterDistance does not
10185 change. Fixes two failing tests.
10187 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10189 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10190 TextRenderer, since the latter is only available in 2.0.
10192 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
10194 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10195 * SplitContainer.cs: Implement FixedPanel layouting.
10197 2007-09-12 Andreia Gaita <avidigal@novell.com>
10199 * WebBrowserBase.cs: setup shutdown routine
10201 2007-09-12 Andreia Gaita <avidigal@novell.com>
10203 * Application.cs: Let keyboard events that are targetted
10204 to non-mwf windows hosted inside mwf (as in, webbrowser),
10205 propagate properly. Fixes keyboard handling on the webbrowser.
10207 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10209 * ListView.cs: When handling MouseUp event and we are
10210 highligting a node with the mouse right button, don't trigger
10211 Before/AfterSelecting event, since we are not actually selecting
10214 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10216 * TreeView.cs: When editing a node, modify the edit text box
10217 depending on the text length (as you are typing), like MS does.
10219 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
10221 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
10222 Override GetPreferredSizeCore to perform calculations. Remove custom
10223 autosize logic. [Fixes bug #82739]
10225 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
10227 * TextBoxBase.cs: Modified should default to false.
10229 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10231 * Control.cs: Update the anchoring distances even when layout is supspended.
10232 Patch provided by George fixes bug #82805.
10234 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10236 * Control.cs: Provide a setter for ExplicitHeight.
10237 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10238 remove the hacks in here for requested_height.
10241 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10243 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10244 Maximum to lower that its current Value caused an ArgumentException by setting
10245 the Value to the new Maximum.
10247 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10249 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
10250 handle moves to the closest tick when it is being dragged.
10253 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
10255 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10256 can't let them count as real items when calculating where to merge in the
10257 user's items. [Fixed bug #82786]
10259 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10261 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10262 who want to add a menu item directly onto a toolstrip.
10263 [Fixes bug #82775, part II]
10265 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10267 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10268 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10269 don't set it to available.
10270 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10271 [Fixes bug #82727, part II]
10273 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10275 * StatusStrip.cs: Change item placement to None if not visible.
10276 * ToolStripItem.cs: Invalidate when InternalVisible changes.
10277 These should have been committed to fix 82723, but I missed them.
10279 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
10281 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10282 Click, and that it is only called once.
10283 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10284 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10288 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10290 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10292 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10293 instead of 8, just like above. Partially fixes #82734.
10295 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10297 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
10300 * ListView.cs: Remove extra space between rows in Details view (match
10302 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10305 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
10307 * Application.cs: Modified ProductVersion to return value of
10308 AssemblyInformationVersion if available, and fallback to assembly
10309 version. Fixes bug #82746. Code formatting.
10310 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10313 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10315 * Control.cs: When updating ZOrder for a child control,
10316 take into account the implicit ones (we need it in our controls
10317 using them). Fixes #82642.
10319 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
10321 * ToolStripItem.cs: Add support for animated images.
10324 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
10326 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
10327 visible. [Fixes bug #82727]
10329 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10331 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10332 so we repaint using the new size. [Fixes bug #82723]
10334 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10336 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10337 option. [Fixes bug #81779]
10339 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10341 * TreeView.cs: Override HandleClick because the StandardClick style is
10342 set to false. According to MSDN (and testing), the click events should
10343 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
10345 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10347 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10348 the border will disappear. Fixes reopened #82653.
10350 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10352 * Control.cs: If the control is autosize, and its preferred size changes
10353 when it lays out its children, tell its parent so it can be re-layed out.
10354 Fixing some of the fallout from r85433.
10356 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10358 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10359 and CheckBox share some code.
10361 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10363 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10364 the TrackBar, not every mouse move. [Fixed bug #82718]
10366 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10368 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10369 under 2.0 rendering. [Fixes bug #82657]
10371 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10373 * TreeView.cs: If we found a TreeNode to display a context menu, but
10374 it doesn't have one to show, let the TreeView display its menu
10375 instead. [Fixes bug #82680]
10377 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
10379 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10380 OnPaintInternal instead. Give the internal TextBox a Border property
10381 so it can draw itself more correctly. [Fixes bug #82653]
10383 2007-09-06 Zoltan Varga <vargaz@gmail.com>
10385 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10387 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10389 * ComboBox.cs: Adjust combobox button state to reflect current state when
10390 back to enabled = true. Fixes first issue of #82654.
10392 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10394 * Control.cs: Fix last patch regression, prevent forms to update zorder when
10395 setting visible property.
10397 2007-09-05 Everaldo Canuto <everaldo@simios.org>
10399 * Control.cs: Update zorder after control creation in SetVisibleCore, it
10400 fix zorder for controls initially created as non visible. Fixes #82667.
10402 2007-09-04 Everaldo Canuto <everaldo@simios.org>
10404 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10405 mimic win32 look. Fixes #82656.
10407 2007-09-01 Zoltan Varga <vargaz@gmail.com>
10409 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
10410 Stubs for new net 3.5 classes.
10412 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10414 * ListViewItem.cs: In ListViewItemCollection operations calculate
10415 Layout for owner as well as invalidate it. Fixes part of #82642.
10417 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
10419 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10420 when returning Enabled. [Fixes bug #82651]
10422 2007-08-30 Everaldo Canuto <everaldo@simios.org>
10424 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10426 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10428 * ListView.cs: Put item padding info in a single place
10429 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10431 * ThemeWin32Classic.cs:
10432 * Theme.cs: Likewise.
10434 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10436 * ListView.cs: When a ListViewSubItem instance is invalidated,
10437 invoke Invalidate on parent ListViewItem, not parent ListView.
10440 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10442 * ListView.cs, ListViewItem.cs: corcompare stuffs.
10444 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10446 * BindingMemberInfo.cs: Implement == and != operators.
10448 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
10450 * HtmlElementEventArgs.cs: Implement properties.
10452 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10454 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10456 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10458 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10459 Add (string,string,string) to implement the imagekey. It turns out, we
10460 use the requested imagekey whereas .Net does not. So I broke ours to match
10463 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10465 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10467 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
10469 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10471 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
10473 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10474 up-to-date. Fixes bug #82618.
10476 2007-08-29 Everaldo Canuto <everaldo@simios.org>
10478 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10479 reflect document changes. Fixes #82367.
10481 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10483 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10484 as well as add new ones. This should make work the BackgroundImage
10485 property for ListView again.
10487 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10489 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10490 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10491 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10493 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10495 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10498 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10500 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10501 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10503 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
10505 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
10506 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10508 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10510 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10512 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
10514 * GridEntry.cs: Implement GetService.
10516 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
10518 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10519 for label editting, make sure we focus back on the TreeView.
10522 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10524 * ListView.cs: Add some 2.0 overrides.
10526 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10528 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10529 because getter dont returns right value before handle creation. Thanks
10530 to George. Fixes #82569.
10532 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10534 * Theme.cs: Revert last patch, it causes error under win32.
10536 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
10538 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
10539 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
10540 logical Desktop rather than the physical file system location. Fixes #82603.
10542 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
10544 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10545 for the patch. Fixes #82568.
10547 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10549 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10552 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10554 * ListViewInsertionMark.cs: New stubbed class.
10556 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10558 * FolderBrowserDialog.cs: When adding folder, immediately create the
10559 directory with temporary name and rename the directory when editing
10560 finishes. This matches MS. Ensure the node for the new folder is
10561 selected and LabelEdit is disabled, when editing is either finished
10564 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10566 * TreeView.cs: When editing label of node, ensure node is visible.
10568 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
10570 * PropertyGridView.cs: Set the value only if it has changed.
10572 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10574 * ListView.cs: Some more code refactoring to add support sorting
10575 with groups (now for Details view). Remove unused code also.
10577 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10579 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10580 Not a big fan of reacting immediately to a field in an EventArg, but that's
10581 the way it's done. (This is part of the previous commit that got left out.)
10583 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
10585 * FolderBrowserDialog.cs: Removed need for separate description field.
10586 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10587 has focus when dialog box is displayed again, regardless of what
10588 button was pressed the previous time. Set RootFolder and SelectedPath
10589 each time dialog box is displayed. This ensures the treeview is
10590 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10591 when it does not have focus. Added support for more special folders.
10593 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10595 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
10596 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
10597 it resets the edit_args.
10598 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10601 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
10603 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10604 button to match MS. Provide more meaningful exception message for
10605 invalid RootFolder value. Use zero-length string when SelectedPath
10606 is set to null. Allow non-rooted paths in SelectedPath, but ignore
10607 them in FolderBrowserTreeView. Allow folders to be created in
10608 RootFolder. Fixes bug #82576.
10610 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10612 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10613 since we need to take into account the group headers and the margin
10615 * ListViewGroup.cs: Add a rows field to store the number of rows per
10618 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10620 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10621 Anyways, let's just follow the lead.
10623 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10625 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10626 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
10627 controls in GetPreferredSizeCore.
10628 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10631 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
10633 * PrintDialog.cs: Need to instantiate the form variable here too.
10635 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10637 * ListView.cs: Do some reorganization to support sorting in groups,
10638 by doing the layout sequentially in ListView.Items. Also add support
10639 for the Default Group, which should be available for items with no
10641 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10642 for storing layout info also.
10643 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10644 collection, as well as providing internal members to do a traversal
10645 including the default group (needed when doing layout/drawing).
10646 * ThemeWin32Classic.cs: When drawing group headers use internal
10647 ListViewGroupCollection members to take into account the default
10650 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
10652 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
10654 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10656 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10657 been created. If handle is created, we want arror keys. If we are editing
10658 a node, we want things like enter, esc, home, end, page up, page down.
10659 Allows Esc to work for FolderBrowserDialog.
10661 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10663 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10664 they close when ESC is pressed. Thanks Andy!
10666 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10668 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10669 This way we can tell if this is a CommonDialog provided with mono, or one
10670 that is being implemented outside by a developer. If it is an external one,
10671 the developer is responsible for showing their own form. We were showing
10672 our blank form after the developer showed his.
10673 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10674 PageSetupDialog.cs: Instantiate form variable in our constructor.
10677 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10679 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10680 and always return true. [Fixes bug #81616]
10682 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
10684 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10685 TextBox. [Fixes bug #82549]
10687 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
10689 * FileDialog.cs: When Save/Open is clicked and no filename is selected
10690 or entered then do not close the dialog. Fixes bug #82539. Removed
10693 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
10695 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10696 code to this method. It is calling every time filter changes. This method
10697 will help to fix the bug #80887.
10699 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10701 * CheckBox.cs: Implement AutoSize calculation.
10703 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
10705 * CheckBox.cs: Use new 2.0 rendering for 2.0.
10706 * Theme.cs: Method declarations for 2.0 rendering path.
10707 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10709 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10711 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10713 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10715 * ListViewGroupCollection.cs: Implement AddRange the right way, to
10716 only call Redraw on the parent one time.
10718 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10720 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10721 GetClipboardContent.
10722 * DataGridViewCell.cs: Implemented GetClipboardContent,
10723 GetEditedFormattedValue, GetFormattedValue.
10724 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10726 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10728 * TableLayoutStyleCollection.cs: corcompare fix.
10730 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10732 * DataObject.cs: Implemented retrieval of convertible / not convertible
10735 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
10737 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10738 ourselves. This ensures the entire old bounds are repainted, in case our new
10739 size is smaller. [Fixes bug #82518]
10741 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
10743 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10744 flag to make fast handle of mouse events, without this the mouse move is
10745 handled in some manner, whether it is a mouse move or not. Fixes #81588.
10747 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10749 * ListView.cs: When doing layout calculations don't use a ref
10750 param to keep the current item; instead use its Index value (this
10751 is specially important when doing the layout with Groups
10752 and Items being sparse). Also don't take into account items added to
10753 the Group but not yet added to the main ListView.Items collection.
10755 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10757 * ListViewGroupCollection.cs: Forgot to mimic an issue
10758 in the indexer (don't assign the ListView owner for new values).
10760 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10762 * ListViewGroupCollection.cs: Make the string indexer use
10763 the int based indexer to re-use code, instead of duplicate the code.
10764 Also Redraw as needed and take into account null values.
10766 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10768 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10771 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
10773 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10774 when other buttons are clicked or navigated to.
10776 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10778 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10779 it's XplatUIX11 that attaches them.
10781 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10783 * DataGridView.cs: If a column has been added, recreate the editing row.
10786 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10788 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10789 of the tag to draw. Makes disappearing text show up again.
10791 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10793 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10794 Contents. Fixes #82487.
10796 2007-08-19 Andreia Gaita <avidigal@novell.com>
10798 * Added HtmlElement.cs, HtmlElementCollection.cs,
10799 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10801 2007-08-19 Andreia Gaita <avidigal@novell.com>
10803 * BindingSource.cs: Implement this, dispose and getenumerator.
10804 * DataGridViewRowCollection.cs: Move the InvalidOperationException
10805 out of AddInternal, throw it only on public Add calls. The
10806 UsingWebBrowser sample was blowing up with this when setting the
10807 DataSource after adding DataBindings, so it's likely that .net
10808 only throws this exception when Add is called directly.
10810 * ToolStripControlHost.cs: Return the hosted control's text
10811 property, and not the ToolStripItem one (it would always return
10812 the initial value).
10814 * HtmlDocument.cs: Implement GetElementById and All
10815 * WebBrowser.cs: Remove exception on set_DocumentStream.
10817 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10819 * Form.cs: Fix the max and min value for opacity (0~1).
10821 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10824 * DataGridTableStyle.cs: Default header font is now null, on getter it
10825 returns datagrid font when is null. On setter permits null.
10828 - When ResetHeaderFont set header font to null.
10829 - On EndInit set grid_style.DataGrid.
10831 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10833 * TabControl.cs: Fix regression in default padding x.
10835 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10837 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10839 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
10841 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10842 not 2. Fixes #82229.
10844 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10846 * TabControl.cs: Fix tab size when image height is less than text height.
10847 Partially fixes #81837.
10849 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10851 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
10852 "alt + tab". It works only for Win32, for X11 theres no way to remove window
10853 from taskbar and keep it on "alt_tab". Fixes #81722.
10855 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10857 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
10858 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
10859 Fixes #80877 and #79418.
10861 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10863 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
10864 between position and one of the screen borders. Fixes #82349.
10866 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10868 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
10869 the MessageBox in the taskbar. Fixes #82457.
10871 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
10873 * MessageBox.cs: Fix form size when icon is set and text height is bigger
10874 than icon. Fixes #82468.
10876 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10878 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
10879 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
10880 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
10881 Refactored HandleNCCalcSize somewhat to avoid code duplication.
10882 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
10883 FormBorderStyle to decide if we're calculating a new size from the
10884 client size or not. CreateParams: Don't fake tool windows, only the X11
10885 backend manages toolwindows manually.
10887 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10889 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
10890 ObjectDisposedException.
10892 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10894 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
10895 in OnLoad should not have any effect. [Fixes bug #82470]
10897 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10899 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
10900 paint for controls that create their own ToolTipWindow instead of
10901 going through ToolTip.
10903 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10905 * ToolTip.cs: Make Hide internal instead of public to match MS API.
10907 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10909 * ListViewGroupCollection.cs: Use generic List instead of an
10910 ArrayList, since this collection is 2.0 only.
10912 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
10914 * ToolTip.cs (Hide): Made public to make the build work (should
10915 this not be public?).
10917 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10919 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
10921 * ToolTip.cs: Add an internal Visible property to facilitate transition.
10923 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
10925 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
10926 PopupEventHandler.cs: Make these internal for 1.1.
10927 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
10928 use ToolTipWindow internals.
10929 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
10930 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
10932 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10934 * X11Dnd.cs: Add a null check.
10936 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10938 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
10939 nothing else succeeds. Fixes #82453.
10941 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10943 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
10944 rectangle if we're painting to another window than the one the paint
10945 message was generated on. Simplify the code somewhat, which makes
10946 PaintEventEnd also simpler.
10948 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10950 * Control.cs: When changing parent of a form, let the form decide whether
10951 XplatUI.SetParent should be called or not.
10952 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
10953 recreating the handle. If the new parent's handle isn't created, don't
10954 recreate our handle, just destroy it. CreateParams: Check if the
10955 parent's handle is created before fetching it.
10957 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10959 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
10960 Update calls to PaintEventStart/End to take a Message argument.
10961 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
10962 take a Message argument.
10963 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
10964 Message argument, and handle the case where we don't paint to the window
10965 for which the paint message was generated.
10967 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10969 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
10970 Marshal.GetLastWin32Error. Plug nasty memory leak in
10971 PaintEventStart/End, we were creating a DC we weren't releasing.
10973 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10975 * ListView.cs: Add Groups support in Details view. Also have a small
10976 method to do the layout of the group header. Don't use a separate
10977 method to do the groups calculation in Icons view, since our methods
10978 are now a little simpler.
10979 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
10981 * ThemeWin32Classic.cs: Likewise.
10983 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10985 * Application.cs: Add FilterMessage method and rework our message loop
10988 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
10990 * Application.cs: Add some methods and stub a few methods that are
10991 pretty much never used.
10993 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
10995 * TreeNode.cs: Add some serialization methods.
10997 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10999 * ListView.cs: In ListViewItemCollection have a
11000 'is_main_collection' field to not modify ListViewItem.ListView
11001 when using it as ListViewGroup.Items (and not ListView.Items)
11002 and also don't modify selection state (.Net behaviour).
11003 Instead, set group for items contained in a ListViewGroup.Items collection.
11004 * ListViewItem.cs: Simplify some code in Group setter.
11005 * ListViewGroup.cs: use the new .ctor to pass the current instance
11006 to the ItemsCollection.
11007 * ListViewGroup.cs: Set the ListView property for ListViewGroup
11008 instances when adding/removing. Also make Remove use RemoveAt, which
11009 should perform better.
11011 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
11013 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11014 that crept into the 1.1 profile.
11016 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
11018 * ToolBarButton.cs: Implement ImageKey.
11020 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
11022 * ToolBar.cs: Implement ScaleControl/ScaleCore.
11024 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11026 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11027 created, it might have gotten destroyed since we last checked. Fixes
11030 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
11032 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11033 tooltip will hide when mouse is moved off the control.
11036 2007-08-11 Andreia Gaita <avidigal@novell.com>
11038 * WebBrowserBase.cs, WebBrowser.cs: add implementation
11039 using Mono.Mozilla for loading and navigating webcontrol
11041 The initial implementation was done on
11042 /trunk/mozembed/tests/browser , and copied here.
11044 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
11046 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11047 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11049 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11051 * DataGridView.cs: Add support for an editing row. Fixes #82226.
11052 RowTemplateFull: throw an exception if a column doesn't have a template.
11053 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11054 add the row just before it.
11055 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11057 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11058 DataGridView field to be able to reach the grid's editing row.
11060 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
11062 * ToolTip.cs: If the control's handle hasn't been created when it has a
11063 tooltip set on it, don't check to see if we need to show the tooltip. This
11064 check was causing the control's handle to be created.
11067 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
11069 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11071 Handle Not Created -1 0
11075 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
11077 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11080 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
11082 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11083 * ToolTip.cs: Implement some properties and owner draw.
11085 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11087 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11088 show them again, since setting visibility causes a paint, causing an
11089 endless loop (instead use a temporary and set it all when it's known if
11090 they should be shown or not). Fixes #79265.
11092 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11094 * DataGridView.cs: Only do a full column/row selection if a header was
11095 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11096 isn't pressed, deselect everything before selecting something.
11098 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11100 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11101 behaviour according to bug #81075 - they are returned in the order they
11102 are selected. Fix HitTest to check if the point is within any of the
11103 headers. Allow for row/column selection when in ColumnHeader or
11104 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11105 the row and column to call when their selected state changes, and
11106 updated selected_[rows|columns] whenever SetSelected* is called.
11107 * DataGridViewBand.cs: Initialize isRow correctly. Call
11108 SetSelected[Row|Column]CoreInternal when the selected state changes, and
11109 add a SelectedInternal to avoid StackOverflows.
11110 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11111 ReadOnly no matter what.
11112 * DataGridViewSelectedColumnCollection.cs,
11113 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11114 the items in reverse order (just as MS does...)
11116 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
11118 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11119 itself, not part of a mnemonic. [Fixes bug #82378]
11121 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11123 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11124 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11125 the DGV, the column, the row, or the cell itself is readonly.
11127 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
11129 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11130 OSVersion.Platform.
11131 * FileDialog.cs: Same.
11132 * TextRendered.cs: Same.
11133 * FolderBrowserDialog.cs: Same.
11134 * TextBoxBase.cs: Same.
11135 * Application.cs: Same.
11136 * Cursors.cs: Same.
11137 * ThemeClearLooks.cs: Same.
11139 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
11141 * XplatUI.cs: Added RunningOnUnix property to be used by controls
11142 instead of duplicating these checks everywhere.
11143 * FileDialog.cs: Use case-insensitive comparison for populating the
11144 DirComboBox when not running on unix. Fixes bug #82385.
11145 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
11148 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11150 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11151 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11152 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11153 cell and column selection with ctrl and shift pressed. Call the correct
11154 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11155 the corresponding virtual method (PaintBackground to paint background,
11157 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11158 either the column, row or the cell itself is selected.
11159 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11161 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11162 here. When the row is selected, don't select all cells. Each cell now
11163 queries the row to see if the row is selected.
11165 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11167 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11170 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11172 * ListView.cs: In ListViewItemsCollection check that owner is
11173 not null before trying to access it (this happens quite often
11174 using Groups). Also don't duplicate calls by calling CollectionChanged
11177 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
11179 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
11180 when we are dismissed to clear keyboard mnemonics.
11181 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
11182 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11183 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11184 was activated by keyboard or the OS tells us to always draw them.
11185 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11186 [Fixes bugs #82376, #82377]
11188 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
11190 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
11191 shot at having it because Alt was pressed.
11192 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11193 the first real menu item.
11194 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11195 a mnemonic if Text is null.
11198 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11200 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11201 search do check whether the item is already contained in the
11202 collection or not; instead check if the owner of the item is the same
11203 as ours. Also, remove a redundant check in the same method.
11205 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
11207 * Control.cs: Allow the clip region to be set back to null.
11208 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11209 [Fixes button still showing up in bug #82370 when Show Through is turned off]
11211 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11213 * GridEntry.cs: Add a null check.
11214 * PropertyGrid.cs: When checking for existing grid entries, ignore category
11215 entries. Fixes #82297.
11217 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
11219 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11222 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
11224 * ListBox.cs: Implement ScaleControl.
11226 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11228 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11230 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11231 parent has a menu strip. Fixes #81689.
11233 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11235 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11236 moments, so apply some fuzzy logic to determine if the mouse is still
11237 inside a control or not. Fixes #82288 (for the third time).
11239 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11241 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11242 Don't create the child if it has been disposed already (may happen if
11243 the user closes the form the Load event).
11245 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11247 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11250 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
11252 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11253 might call us after we've been destroyed, in which case our own private
11254 parent field is null. Fixes #82326.
11256 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
11258 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11259 check for setting the dropdown's owner.
11261 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
11263 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11264 before removing system menu items.
11266 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
11268 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11270 * MdiControlStrip.cs: Added. These are the menu items used in mdi
11272 * ToolStrip.cs: Add a null check to mnemonics.
11273 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11275 [Fixes most of bug #81689]
11277 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11279 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11281 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11283 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11285 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11287 * DataGridViewCell.cs: EditType: returns
11288 DataGridViewTextBoxEditingControl always.
11290 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
11292 * TextRenderer.cs: Remove the LineLimit string format flag from the
11293 DrawString fallback method so that things like buttons that aren't
11294 tall enough to draw a full line will still draw part of the text.
11295 [Fixes part of bug #82272]
11297 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11299 * DataGridView.cs: Implemented AutoResizeColumn(s).
11300 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11301 according to the Alignment.
11302 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11303 Implement alignment and padding when painting.
11304 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11306 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11308 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11311 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
11313 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11316 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
11318 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11319 hide GetPreferredSize from public API.
11320 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11321 * ToolStripItem.cs: Stub out drag and drop methods and events.
11322 * ToolStripManager.cs: Stub out Save/LoadSettings.
11323 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11324 * ToolStripPanel.cs: Fix corcompare error.
11325 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11326 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11327 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11329 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
11331 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11332 bounds height instead of PreferredHeight. Puts things back the way
11333 they were for height while still fixing the width. Fixes broken unit
11336 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11338 * Binding.cs: Implement 2.0 constructors and add a null check.
11340 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11342 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11343 and fix row index (off by one).
11345 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11347 * PropertyGridView.cs: Remove debug output.
11349 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
11351 * Control.cs: We need to reset the is_created flags when the handle is
11352 destroyed. Fixes #82187.
11353 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11354 client coordinates if the window doesn't have a parent.
11355 Win32GetParent returns the parent or the owner, and for top-level
11356 windows with no parent (but with an owner) we were calculating the
11357 location from the location of the owner.
11358 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11359 form has been disposed.
11360 * MdiClient.cs: Add a null-check.
11362 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
11364 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11365 actually do auto-sizing. Override the internal GetPreferredSizeCore
11366 so we can provide an implementation that returns the current width
11367 and preferred height. Allows anchor = right to work with TextBox 2.0.
11370 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11372 * ListView.cs: Add support for navigating items in Groups mode, by
11373 creating a big matrix containing all rows and cols of all groups. When
11374 are in other mode than Details, pressing Up should have a similar
11375 behaviour as that one of Down (moving to the next available column if
11376 current one doesn't have an item in the requested row). Also, don't
11377 proceed to use groups if ShowGroups is false.
11378 * ListViewGroup.cs: Add an internal int field to store the starting
11379 row of the group (used by the big matrix used for navigating the
11381 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11384 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
11386 * ToolStripDropDown.cs: When we do Show, start with the
11387 DefaultDropDownDirection, but if our popup menu is going to off-screen,
11388 modify the direction to keep it on screen. [Fixes bug #82210]
11390 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
11392 * FileDialog.cs: Accept any FilterIndex value, and store it
11393 unmodified. When FilterIndex is less than 1, or greater than number
11394 of filters, then default to first filter. Only add filter extension to
11395 file if user did not specifiy an extension. When type of dialog is
11396 OpenFileDialog and DefaultExt is set, then only use filter extension
11397 if: CheckFileExists is true and no file wih the default extension
11398 exists, or CheckFileExists is false, and user specified file does not
11399 exist. When CheckFileExists is true, then add first extension of
11400 selected filter that matches existing file. Perform checks for
11401 existing file, overwrite and create after extension has been added to
11402 file name. When CheckFileExists is true and type is SaveFileDialog,
11403 then only consider first filter extension if DefaultExt is set.
11404 When CheckFileExists is true, then ignore DefaultExt if file with that
11405 extension does not exist. Also perform check for existing file when
11406 type is SaveFileDialog. Changed some field to constants.
11408 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11410 * ListView.cs: Take into account the region used by header
11411 control when doing the vertical scroll (this way we invalidate
11412 the precise area, and don't get any dirty one).
11414 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
11416 * FileDialog.cs: Check for valid filterIndex on button open/save.
11419 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11421 * ListView.cs: Update some layout calculations in details view
11422 and clean the code in a pair of assignations.
11424 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11426 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11427 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11428 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11429 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11431 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11433 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11434 performance of thread-safe Graphic methods. (Thanks rolf!)
11436 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11438 * ListView.cs: When doing the layout calculations, don't calculate
11439 scroll bars before handle is created. This is unnecessary and also
11440 calculating them before handle creation item causes a number of random
11441 bugs (which begin to appear after Chris' big patch for handle creation
11444 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
11446 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11447 for things that don't have a Graphics object. Currently, things just use
11448 the static Hwnd.bmp_g which is not thread safe.
11450 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11452 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11453 dialog. Fixes #82187.
11455 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11457 * DataGridViewElement.cs: Initialize state.
11458 * DataGridView.cs: Forward a few Mouse events to cells. Add
11459 GetRowInternal and GetCellInternal that doesn't unshare rows.
11460 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11461 don't use the index, but look it up. Add
11462 DataGridViewControlCollection.RemoveInternal to remove controls
11463 that Remove won't remove (scrollbars, edit control).
11464 * DataGridViewColumn.cs: Initialize State correctly.
11465 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11466 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11468 * DataGridViewRowCollection.cs: Implemented shared rows.
11469 * DataGridViewRow.cs: Throw exceptions as MS do.
11470 * DataGridViewCell.cs: A few properties are implemented by a
11471 Get<Property> method, so move implementation there and remove the
11472 NIEX in the method. Add a bunch of OnXInternal that DataGridView
11473 calls when necessary.
11474 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11475 complicates matters.
11476 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11479 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11481 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11482 the children controls. Instead, we will just set up the proper docking for the
11483 children controls so we don't have to worry about it. [Fixes bug #82188]
11485 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11487 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11488 canceling and correct Before/AfterLabelEdit properties as layed out in bug
11489 81847. [Fixes bug #81847]
11491 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
11493 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11494 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
11495 an explicit size based on the design-time size of the text. Since our fonts
11496 may not match this explicit size, we tend to cut off the ends of people's labels.
11498 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
11500 * Menu.cs: Add some missing methods to MenuItemCollection.
11502 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11504 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11505 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11506 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11507 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11508 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11509 * DataGridViewElement.cs: State defaults to Visible.
11510 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11511 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11513 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11515 * Control.cs: Minor 1.1 corcompare fix.
11517 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11519 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11520 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11522 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11524 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11525 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11526 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11527 DataGridViewSelectedColumnCollection.cs,
11528 DataGridViewSelectedRowCollection.cs: Corcompare work.
11530 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11532 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
11533 it is autoset by VS2005 designer and the effect is barely noticeable.
11535 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
11537 * TreeView.cs: Implement HitTest.
11539 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11541 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11542 manually adding and removing the control from the Controls
11544 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11545 EditingControlInternal property that tracks the editing control.
11546 Always keeping the scrollbars in the Controls collection, as MS
11547 testing confirms is the right behaviour.
11549 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11551 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11552 according to MSDN and new test.
11554 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11556 * TreeNode.cs: Implement ToolTipText.
11557 * TreeView.cs: Implement tooltips, NodeMouse* events.
11559 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11561 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11563 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11565 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11566 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11568 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
11570 * Control.cs, Form.cs, ContainerControl.cs,
11571 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
11572 for misc properties.
11574 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
11576 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11577 * TreeView.cs: Implement StateImageList.
11579 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11581 * Form.cs: Don't check if the current form is the active form before
11582 activating it. Fixes #81904.
11584 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11586 * Form.cs: Don't check if the current form is the active form before
11587 activating it. Fixes #81904.
11589 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11591 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11593 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11595 * Form.cs: Don't try to position the form after loading if the form was
11596 disposed. Fixes #81969.
11598 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11600 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11601 properties. Had to change ToolBar into ToolStrip, which required a
11604 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11606 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11607 resized, fixes part of #79829 (vertical lines in toolbar).
11608 PropertyGrid: Refactored Populate* to something that's easier to
11609 follow at least for me, as well as splitting it up into several new
11610 methods, required to update only subitems when something has
11611 changed by a popup editor or listbox. Don't use events to check
11612 when any values are changed, since the events are unreliable (we're
11613 changing the objects the events are registered with, and if the
11614 event handling requires the objects to be immutable (objects stored
11615 in hashtables for instance), the events will never be raised).
11616 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11617 everytime we change a value, since events are unreliable.
11618 DropDownButtonClicked: For the same reason don't compare objects to
11619 check if it has changed or not, it would require all objects to
11620 derive Equals. Fix dialog location on windows, MS is doing weird
11621 things when creating parented forms.
11622 * GridEntry.cs: Add a SelectedObject setter.
11624 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11626 * TreeNode.cs: Add some corcompare attributes.
11627 * TreeNodeCollection.cs: Implement 2.0 stuffs.
11628 * TreeView.cs: Implement some 2.0 stuffs.
11630 2007-07-18 Andreia Gaita <avidigal@novell.com>
11632 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11635 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
11637 * ListBox.cs: Implement custom tab offsets.
11639 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11641 * ToolStripContentPanel.cs: Support System renderer.
11642 * ToolStripControlHost.cs: Set RightToLeft to default to No.
11644 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11646 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11648 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11650 * CheckBox.cs: Chain TextAlign to base implementation instead of
11651 maintaining another one.
11653 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11655 * ButtonBase.cs: Fix an incorrect string constant.
11657 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11659 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11660 of creating one for measuring strings.
11662 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
11664 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
11665 Implement MaxItemSize.
11667 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11669 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11670 for DeviceContext. Instead, use the static one available in Hwnd.
11671 Informal tests show this saves about 500k on formtest.exe.
11673 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
11675 * ContainerControl.cs: Implement 2.0 AutoScaling.
11677 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11679 * ComboBox.cs: Work around bug #82120 (bug in mcs).
11681 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11683 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11684 Darken the focus color.
11686 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
11688 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11690 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11691 X, Y instead of a rect for drawing text.
11692 - For ControlPaint.DrawCheckBox, center the check a little better when the
11693 checkbox is odd width. When drawing a flat checkbox, use a white background
11694 when state != inactive.
11695 [Fixes bugs #82097, 82100]
11697 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
11699 * ListControl.cs: When changing CurrencyManager, disconnect event
11700 handlers from previous one. Fixes bug #81771. Code formatting.
11702 2007-07-15 Andreia Gaita <avidigal@novell.com>
11704 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11705 full preview invalidation from layout invalidation, and only invalidate
11706 the layout when setting zoom or other properties. Invalidation should
11707 always be done even when resetting properties with the same values as
11708 what is there. Fixes #81744 and #79830.
11710 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11712 * ListView.cs: Implement initial support for Groups. Split some of the
11713 LayoutIcons code to render a partial list of the items (needed by
11714 items contained in ListViewGroup instances). Let the
11715 ListViewItemsCollection.ListView property be modifiable (needed when
11716 using Groups, too).
11717 * ListViewGroup.cs: Use a Bounds property rather than a Location
11718 one. Also invalidate the bounds when they get changed.
11719 * ThemeWin32Classic.cs: When drawing items, also draw the group header
11720 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11723 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11725 * ListView.cs: When space gets pressed and CheckBoxes is true,
11726 don't invoke the Begin and EndUpdate methods. We are generating
11727 a redraw of the entire control without need to do so.
11729 2007-07-13 William Holmes <billholmes54@gmail.com>
11731 * Control.cs: Changing logic in FindFlatForward and
11732 FindFlatBackward to handle multiple Controls with
11734 This fixes bug 81687.
11736 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
11738 * OSFeature.cs: Enable IsPresent.
11740 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11742 * Control.cs: Don't do anything in WmShowWindow if the control has been
11743 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11744 control is created, put on a form, the control is disposed (the
11745 form is never shown), and then we get a MapNotify, triggering a
11747 * Form.cs: Exclude the current form when sending Deactivate to all
11749 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11750 there was a race condition because assigning the handle raises
11751 events, we can get more messages, therefore trying to assign the
11752 handle again, which would fail if any of those event handlers
11753 closed/disposed the control.
11755 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
11757 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11759 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11761 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11762 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11764 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11766 * DateTimePicker.cs: If there's no part format specifier, return an
11769 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
11771 * FlatButtonAppearance.cs: Throw NotSupportedException for a
11772 Transparent BorderColor.
11774 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
11776 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11777 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11778 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11779 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11780 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11781 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11782 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11784 * X11Structs.cs: Remove warnings, add ToString implementations.
11786 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11788 * XplatUIX11.cs: Translate min/max size according to the actual min/max
11789 size, and not the current size. Fixes #81798.
11791 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11793 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11794 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11795 to the control yet).
11797 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11799 * PropertyGridTextBox.cs: Add a method that sends any forwarded
11800 mousedowns to the contained textbox.
11801 * X11Structs.cs: More ToString implementation.
11802 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11805 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11807 * PropertyGridView.cs: Add a null-check, fixes a few tests.
11809 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11811 * TableLayoutPanelCellPosition.cs: TypeConverter.
11813 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11817 * PropertyGridTextBox.cs: Propagate any color changes to all contained
11819 * PropertyGridView.cs: A few color fixes.
11821 2007-07-10 Jackson Harper <jackson@ximian.com>
11823 * TextControl.cs: Remove some old unused text formatting stuff.
11825 2007-07-10 Jackson Harper <jackson@ximian.com>
11827 * TreeView.cs: Update full row select invalidation to match the
11828 newer DrawSelection... method.
11829 - Make sure to invalidate the entire width when selecting a new
11830 node, if we have full row selection enabled.
11832 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11834 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11835 display of properties again.
11837 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
11839 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11840 to existing collections.
11842 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11844 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11845 that changed between 1.1 and 2.0.
11847 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11849 * PowerStatus.cs: Added. This is just a data class, it is filled
11850 in by SystemInformation.
11852 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11854 * Message.cs: Add op_Equality and op_Inequality.
11856 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11858 * MenuStrip.cs: Finish corcompare work.
11860 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11862 * LinkArea.cs: Add op_Equality and op_Inequality.
11864 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11866 * Application.cs: Add MessageLoopCallback delegate.
11868 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11870 * ListBox.cs: First set of 2.0 stuffs.
11872 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
11874 * Control.cs: Make an internal Height property we can override
11875 without messing up the public API.
11876 * ListBox.cs: Override HeightInternal to always return the size
11877 the user set. [Fixes bug #80466]
11879 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
11881 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
11882 paint cell borders if we haven't calculated where they go yet.
11883 [Fixes bugs #82040 and #82041]
11885 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11887 * ListView.cs: In Details view, set the location of item_control
11888 in the (0,0) position (and the header_control is thus on the
11889 item_control). This way the Bounds of the Items are relative to the
11890 ListView control (before this, they had a Bounds value without the
11891 header_control offset, which wasn't matching .Net). Fixes #82004.
11893 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11895 * ListControl.cs: When DataSource is set to null, pass an empty
11896 array of object to SetItemsCore. This is done to clean the items
11897 in the ListContol children. Fixes #81788.
11899 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11901 * ListControl.cs: Add 2.0 stuffs.
11903 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11905 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
11906 Refresh is overkill for just about every repaint request.
11908 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11910 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
11911 so remove my custom Get method and fix the property getter.
11913 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11915 * Label.cs: DefaultMargin for 2.0.
11917 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11919 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
11920 reported issue where other controls with mnemonics would steal strokes
11921 from a selected ComboBox.
11923 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
11925 * ScrollOrientation.cs: Make internal for 1.1.
11926 * ScrollEventArgs.cs: Add 2.0 stuffs.
11928 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
11930 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11931 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
11932 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
11934 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11936 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
11938 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11940 * ListView.cs: Implement the so-incredibly broken 2.0
11941 VirtualItemsSelectionRangeChanged event.
11943 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11945 * ListView.cs: When enter is pressed and selection is non empty,
11946 an OnItemActivate event must be fired.
11948 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11950 * ListView.cs: Store the FocusedItem information as an
11951 int instead of a ListViewItem (needed by VirtualMode).
11952 Update the calls to SetFocusedItem to pass an index instead of
11954 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
11955 the Focused state from the owner ListView.
11957 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11959 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
11960 property. Also, invalidate previous focused item in the mentioned
11961 property (match .Net).
11963 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11965 * ListView.cs: Implement 2.0 FocusedItem property setter.
11967 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11969 * ListView.cs: Implement 2.0 TopItem property setter.
11971 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
11973 * StatusStrip.cs: The default renderer is System.
11974 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
11975 if the user specifies it.
11976 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
11977 if we are ManagerRenderMode.
11978 * ToolStripMenuItem.cs: Calculate our text color better.
11979 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
11980 from Professional to the base class based off working with the System renderer.
11981 * ToolStripSystemRenderer.cs: Added.
11983 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11985 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
11987 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
11989 * ToolTip.cs: Implement 2.0 Tag property.
11991 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11993 * ListView.cs: Implement 2.0 HitTest methods.
11995 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11997 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
11998 item is under the pointer or not (sugar). Also remove the TODO
11999 regarding to the cursor changes in OneClick activation.
12000 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12001 the subitems use the parent's HotFont if UseItemStyleForSubItems is
12002 true; otherwise don't show the underline style.
12004 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12006 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12007 the code to retrieve the item at position only one time. Also
12008 change cursor when Activation is ItemActivation.OneClick as well
12009 as invalidate the item if HotTracking is true (to show/hide the
12010 underline style). Add an internal HotItemIndex property to retrieve
12011 the current hot item's index.
12012 * ListViewItem.cs: Add an internal HotFont property to cache the
12013 font used when HotTracking is true and the pointer moves within the
12015 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12016 HotFont depending on the hot state of the item.
12018 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12020 * ListView.cs: Implement 2.0 HotTracking property.
12022 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
12024 * ToolStripControlHost.cs: If our hosted control never got created,
12025 don't try to dispose it. [Fixes bug #81909]
12027 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
12029 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12031 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
12033 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
12035 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12037 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
12039 * DrawListViewColumnHeaderEventArgs.cs:
12040 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12041 using the DrawText () methods.
12043 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
12045 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12046 background which got erased in my changes yesterday.
12048 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12050 * ListViewItem.cs: Actually set bounds for subitems in Details view
12052 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12053 can invoke from the owner draw routines if we need it. Also, add
12054 support for Owner draw in Details view.
12056 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
12058 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12059 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12060 ShowImageMargin setting, properly align text in a ToolStripLabel
12061 hosted on a ToolStripDropDown.
12063 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
12065 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12066 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12068 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12070 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12072 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
12074 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12075 location to match ToolStripMenuItems.
12077 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12079 * DrawListViewColumnHeaderEventArgs.cs:
12080 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12081 column headers in ListView.
12083 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
12085 * UserControl.cs: Implement AutoSize.
12087 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12089 * DrawListViewItemEventArgs.cs:
12091 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12094 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
12096 * ToolStripDropDownItemAccessibleObject.cs: Added.
12097 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12098 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12099 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12100 ToolStripTextBox.cs: corcompare work.
12102 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
12104 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12105 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12106 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12109 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
12111 * OSFeature.cs: Add IsPresent.
12112 * PrintPreviewControl.cs: Add RightToLeft.
12113 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12114 * SplitterPanel.cs: Add AutoSizeMode.
12116 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12118 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12119 * MdiClient.cs: Add 2.0 ScaleControl.
12120 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12121 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12123 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12125 * Form.cs: Implement some scaling methods, stub some RTL methods,
12128 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12130 * Control.cs: corcompare work.
12131 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12133 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
12135 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12136 ControlPaint 2.0 stuffs.
12138 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12140 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12142 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12144 * UpDownBase.cs: Add 2.0 stuffs.
12146 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12148 * NumericUpDown.cs: Add 2.0 stuffs.
12150 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12152 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12154 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12156 * ErrorProvider.cs: Implement 2.0 stuffs.
12158 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12160 * DomainUpDown.cs: Implement 2.0 stuffs.
12162 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12164 * CheckedListBox.cs: Fix RefreshItems signature.
12166 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
12168 * PictureBox.cs: Implement 2.0 stuffs.
12170 2007-06-12 Andreia Gaita <avidigal@novell.com>
12172 * TabControl.cs: Check if there are tabpages before checking
12173 the selected index - fix #81802 (font changes raise a ResizeTabs
12174 call on controls.add, which blew up nicely with no tabpages)
12176 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12179 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12181 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12184 * ListViewItem.cs: In VirtualMode the selection information
12185 resides in the ListView, rather than in the Items. Also, throw
12186 InvalidOperationExceptions when VirtualMode is being used and
12187 CheckedItemCollection is accessed.
12189 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12191 * ComboBox.cs: Add ScaleControl.
12193 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12195 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12197 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12199 * GroupBox.cs: Add 2.0 stuffs.
12201 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
12203 * Panel.cs: Add autosize properties/event.
12205 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
12208 - When we remove a control, remove it from the collection before performing the layout.
12209 - Setup an internal property for explicit_bounds.
12210 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12211 - Perform a layout when we set a new AutoSizeMode.
12213 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
12215 * ScrollableControl.cs: Add 2.0 stuffs.
12217 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12219 * ScrollBar.cs: Add 2.0 stuffs.
12221 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12223 * Splitter.cs: Add 2.0 stuffs.
12225 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12227 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12228 to have BindingContext simply use base implementation.
12230 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12232 * ColumnHeader.cs: corcompare fix.
12234 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12236 * Button.cs: corcompare fixes.
12237 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12239 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
12241 * Button.cs: Override GetPreferredSizeCore.
12242 * ButtonBase.cs: PerformLayout after changing properties that can affect
12243 AutoSize. Simplify some mouse/keyboard code.
12244 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12245 * MouseEventArgs.cs: Make Location internal for 1.1.
12246 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12247 * Theme.cs: Add CalculateButtonAutoSize.
12248 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12250 2007-06-05 Miguel de Icaza <miguel@novell.com>
12252 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12254 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12256 * ListViewItem.cs: We can't cache Bounds in VirtualMode
12257 since we can get different item instances every time we retrieve it.
12259 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12261 * ListView.cs: Work around for #81602, since an unkown an pretty
12262 infrequent condition appears only in some systems (old linux boxes, it
12265 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12267 * Button.cs: Completely reformat and a little refactor to bring
12268 this closer to Mono circa 2007.
12270 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12272 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12273 to be ButtonBase.Invalidate.
12275 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12277 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
12279 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
12281 * ButtonBase.cs: Completely reformat and a little refactor to bring
12282 this closer to Mono circa 2007.
12284 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
12286 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12287 values for autosize. Fixes #80137.
12289 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
12291 * Control.cs: Don't perform layout when AutoSize changes.
12292 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
12293 directly when autosizing, use SetBounds with BoundsSpecified.None.
12294 Fixes unit tests my last commit broke.
12296 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
12298 * Control.cs: Perform layout when AutoSize changes.
12299 * Form.cs: Implement AutoSizing.
12301 2007-06-01 Chris Toshok <toshok@ximian.com>
12303 * DataGrid.cs: remove the XXX'ed check at the top of
12304 ProcessGridKey. fixes #80464.
12306 2007-06-01 Chris Toshok <toshok@ximian.com>
12308 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12309 adding idempotent (add/remove in Edit()), and also make sure we
12310 don't add it until after we set the text, so it's not tripped in
12311 Edit(). Fixes unit test regression.
12313 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
12315 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12316 change is user explicit, not when the layout engine moves stuff. Fixes
12317 anchoring to bottom and right. [Fixes bug #81790]
12319 2007-06-01 Andreia Gaita <avidigal@novell.com>
12321 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12323 2007-06-01 Andreia Gaita <avidigal@novell.com>
12325 * ContainerControl.cs:
12326 Fire enter event for common ancestor if it is not a ContainerControl.
12327 Send focus to the active_control and not the 'value', the active
12328 control might have been changed in one of the events fired.
12329 Definitely fixes #80159.
12331 2007-06-01 Andreia Gaita <avidigal@novell.com>
12333 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12335 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12337 * PropertyGrid.cs: Anchor the help description to the bottom of the
12338 help panel and refactor SelectGridItem into a
12339 SelectGridItemInternal that can be set to null (and update it to
12340 clear the help texts when it is set to null). Set root item to null
12341 when there's no SelectedObject. Fixes #80438.
12342 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12343 when we're recalculating after a resize (only).
12345 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12347 * ListView.cs: Implement 2.0 RedrawItems method.
12349 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12351 * ListControl.cs: Disconnect PositionChanged and ItemChanged
12352 handlers from previous data manager when DataSource is set to
12353 null. Fixes #81771.
12355 2007-05-31 Jackson Harper <jackson@ximian.com>
12357 * TextBoxBase.cs: These seem to be the correct values.
12359 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
12361 * FileDialog.cs: When close dialog with ok set filterindex using combobox
12362 value. Fixes #81784.
12364 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
12366 * Control.cs: Implement 2.0 scaling methods.
12368 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12370 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12371 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12374 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12376 * ProgressBar.cs: Implemented missing 2.0 members.
12378 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12380 * Control.cs: Corcompare issues.
12381 * MessageBox.cs: Implemented missing 2.0 functions.
12383 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12385 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12386 Implemented more 2.0 members.
12388 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12390 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12391 null (strange, but it seems to happen when running unit tests).
12393 2007-05-30 Andreia Gaita <avidigal@novell.com>
12395 * ContainerControl.cs: Set active_control even earlier, before
12396 firing any events, and undo it if validation returns false.
12398 2007-05-30 Andreia Gaita <avidigal@novell.com>
12400 * ContainerControl.cs: Raise Validation and Enter/Leave events
12401 even if there is no Form and set active_control earlier, just
12402 before firing Enter events (toshok's patches). Fixes #80647.
12404 2007-05-30 Jackson Harper <jackson@ximian.com>
12406 * TextControl.cs: Redid the pageup/pagedown a little to simplify
12407 things and fix bug #81311.
12409 2007-05-30 Jackson Harper <jackson@ximian.com>
12411 * X11Dnd.cs: Now that we have our own event loop, we need to
12412 cancel when we get a mouseup but it won't be accepted.
12414 2007-05-30 Chris Toshok <toshok@ximian.com>
12416 * DataGrid.cs (set_CurrentCell): guard against negative
12419 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12420 array index syntax instead of looping over the property names.
12422 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12423 and set IsInEditOrNavigateMode to false there.
12425 2007-05-30 Jackson Harper <jackson@ximian.com>
12427 * TreeView.cs: Make sure we don't get a bad visible order when
12428 setting to the top node. Fixes some misc crashing in
12431 2007-05-30 Andreia Gaita <avidigal@novell.com>
12433 * UserControl.cs: Add 2.0 AutoSizeMode
12435 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12437 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12439 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12441 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12442 lines. Fixes #80285.
12444 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12446 * DataGridColumnStyle.cs: Add char trimming column header text format.
12448 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
12450 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
12453 2007-05-29 Jackson Harper <jackson@ximian.com>
12455 * TreeNode.cs: Fix off by one on calculating whether or not a node
12458 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
12460 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12461 * ScrollableControl.cs: Force an UpdateDistances when we move the
12465 2007-05-29 Andreia Gaita <avidigal@novell.com>
12467 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12468 update the page setup screen.
12470 2007-05-29 Andreia Gaita <avidigal@novell.com>
12472 * PageSetupDialog.cs: Fix landscape mode.
12474 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12476 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12477 IconSizeHorizontalSpacing.
12479 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12481 * ListView.cs: The declaration of prev_tooltip_item should be inside
12482 a NET_2_0 conditional (avoid a warning).
12484 2007-05-28 Andreia Gaita <avidigal@novell.com>
12486 * PageSetupDialog.cs: Implement PrintPreview control to display
12487 the preview thumbnail. Change unit conversion to use
12488 PrinterUnitConvert methods.
12490 Note: there is a huge bug in ms.net where the default margins are
12491 interpreted as centimeters (?), when in fact they are set in inches. When
12492 loading the page setup dialog initially (ms.net), the default margins
12493 are set to 1 inch, and the dialog shows them with value 10, when in fact
12494 it should be 25 (properly converted). Our dialog doesn't have this bug.
12496 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
12498 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12500 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12503 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12506 2007-05-28 Andreia Gaita <avidigal@novell.com>
12508 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12509 an IntPtr on csc (it builds fine on mcs, could it be a compiler
12510 bug?), convert the ptr to Int32 first.
12512 2007-05-28 Jackson Harper <jackson@ximian.com>
12514 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12515 recieved, we will exit the dnd tracking loop.
12517 2007-05-28 Jackson Harper <jackson@ximian.com>
12519 * X11Dnd.cs: Keep tracking until the xdnd finished event is
12520 recieved. TODO: I should probably stick a timer on the dropped
12521 event, and finish the drag if the XDND Finished event never shows
12522 (because some apps don't seem to send it).
12524 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
12526 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12529 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12531 * MonthCalendar.cs: Only mark the keypresses we actually handle as
12534 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12536 * MonthCalendar.cs: Set the size after initializing all the relevant
12537 variables. Fixes #81742.
12539 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12541 * KeyEventArgs.cs: Fix typo.
12543 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
12545 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12546 to match MS. Fixed MinDate to only accept value less than or equal
12547 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12548 Removed TODO's that are now verified by unit tests.
12550 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
12552 * TreeNodeCollection.cs: Minor corrections to exceptions to match
12555 2007-05-25 Jackson Harper <jackson@ximian.com>
12557 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12558 it's own message loop.
12559 * XplatUIX11.cs: Remove some of the dnd hooks
12561 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
12563 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12564 instead of MinimizedWindowSize.
12566 2007-05-25 Jackson Harper <jackson@ximian.com>
12568 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12570 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
12572 * KeyEventArgs.cs: Added SuppressKeyPress.
12573 * Control.cs: Added support for SuppressKeyPress.
12575 2007-05-24 Andreia Gaita <avidigal@novell.com>
12577 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12578 problems with PieChart. suppress_validation should not be a counter,
12579 if there are several BeginInit calls, the first EndInit will
12580 activate validation. Fix exceptions thrown by set_Value.
12581 * UpDownBase.cs: ValidateText only if it's the user editing it.
12583 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12585 * ListControl.cs: FilterItemOnProperty should return the filtered
12586 item proeprty even if DataSource is null. The same applies for
12587 GetItemText. Fixes #80427.
12589 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12591 * Control.cs: If a control doesn't have a parent when it's Dock is
12592 set, but it has children, it needs to do a layout. Fixes some nested
12593 controls issues. [Fixes bug #81199]
12595 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12597 * ComboBox.cs: If there are few items in the drop down list, make it
12598 the exact size the items need, no bigger. Fixes #81612.
12600 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12602 * Application.cs: When we have captured the keyboard for a menu,
12603 check for mouse down events in case we need to close the menu.
12604 * Control.cs, Form.cs: Remove mouse down checks for menus.
12606 2007-05-24 Jackson Harper <jackson@ximian.com>
12608 * TextControl.cs: Handle tabs in non multiline mode a little
12611 2007-05-24 Jackson Harper <jackson@ximian.com>
12613 * TextControl.cs: We need to manually break apart tabbed text and
12614 move the tabs, since the system.drawing tabbing mechanism relies
12616 * TextBoxBase.cs: Move the caret properly when the user enters a
12619 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
12621 * ContainerControl.cs: Don't check CanSelect before calling
12623 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
12624 release a KeyboardActive on click if it's not ours.
12626 2007-05-23 Andreia Gaita <avidigal@novell.com>
12628 * ColumnHeader.cs: Add TypeConverter
12630 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12632 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12634 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12636 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12638 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12640 * LinkLabel.cs: Implement public Padding property.
12642 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12644 * LinkLabel.cs: Implement public FlatStyle.
12646 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
12648 * Control.cs: Apply patch from George to call parent.PerformLayout
12649 when Visible is changed. [Fixes bugs #81118, 81718]
12651 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12653 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12655 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12657 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12659 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
12661 * ContextMenu.cs: Implement Collapse.
12663 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12665 * ToolBarButton.cs: Implement Name.
12667 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12669 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12670 use current_item, it prevents some NRE. Fixes #81675.
12672 2007-05-22 Andreia Gaita <avidigal@novell.com>
12674 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12675 without updating the text.
12677 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12679 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12680 without calling DeleteObject. [Should fix bug #81709]
12682 2007-05-22 Jackson Harper <jackson@ximian.com>
12684 * RichTextBox.cs: Set the line endings correctly, when flushing
12687 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
12689 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12690 {Width=0,Height=0}.
12692 2007-05-22 Jackson Harper <jackson@ximian.com>
12694 * TreeView.cs: Setting top with a null node should set to the very
12697 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12699 * Form.cs: ShowDialog: destroy the handle when message loop is
12700 finished, matches MS behaviour. Refactor parts of WmClose into
12701 RaiseCloseEvents, that only raises events if they haven't already
12702 been raised. Fixes #81688 and #81521.
12703 * Application.cs: Don't call close on the form when exiting a modal
12704 loop, it will raise all the (Form)Closed/Closing events again if
12705 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12706 which doesn'r raise any events it they have been raised before.
12708 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
12710 * Control.cs: Add OnPrint.
12711 * ToolStrip.cs: Add GetChildAtPoint.
12712 * ToolStripContainer.cs: Add OnRightToLeftChanged.
12713 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12715 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
12717 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
12719 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12721 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12722 isn't visible anymore. Fixes #81651.
12724 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12726 * Control.cs: WmShowWindow: Update children's z-order after setting
12727 their parent. SetParent may show the window, thereby corrupting
12728 z-order, since the window will be shown on top.
12729 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12730 multiple (and redundant) WM_SHOWWINDOW messages.
12731 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12732 event has already been raised.
12733 * Form.cs: Change is_changing_visible_state to a counter, since
12734 SetVisibleCore can be called recursively. CreateHandle: when
12735 creating mdi children, send (De)Activated events.
12736 * MdiClient.cs: Update use of is_changing_visible_state.
12737 * Application.cs: OnThreadException: Surround exception handling with
12738 try/finally to ensure we always reset the error-handling state
12741 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12743 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12746 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12748 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12749 SmallIcon views, now that we have a standarized horizontal spacing.
12751 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12752 4, just like the other views (Match .Net).
12754 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
12756 * Control.cs: Delay calculating anchor distances until we actually layout.
12757 Always query the WM for the actual size and location it put us at instead of
12758 only when we send negative values.
12759 [Fixes bugs #81694, 81695]
12761 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12763 * Application.cs: Avoid a possible stack overflow when trying to exit
12766 2007-05-19 Marek Safar <marek.safar@gmail.com>
12768 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12771 2007-05-19 Andreia Gaita <avidigal@novell.com>
12773 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12774 * NumericUpDownAcceleration.cs,
12775 NumericUpDownAccelerationCollection.cs: Added 2.0
12778 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
12780 * RichTextBox.cs: Recalculate the document after the ScrollBars
12781 property is changed. Fixes bug #81681.
12783 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12785 * DataObject.cs: Implement 2.0 methods.
12787 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12789 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12790 in the center of the checkbox, not in the left-top corner.
12793 2007-05-18 Jackson Harper <jackson@ximian.com>
12795 * RichTextBox.cs: Recalculate the document after the scrollbars
12796 property is changed.
12797 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12800 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12802 * CreateParams.cs: Make HasWindowManager marginally faster.
12803 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12804 into Hwnd so that other drivers can use it as well.
12805 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12806 the default location from Hwnd. Fixes MDI client windows always
12807 showing up at (0,0) in Windows (Win32 won't set the default
12808 location since the window styles aren't correct).
12810 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
12812 * TreeView.cs: Modified DoubleBuffered to just use the base
12815 2007-05-18 Jackson Harper <jackson@ximian.com>
12817 * TreeView.cs: Set the top node to the last child node when
12819 - When we get focus, if there is no selected node, use the top
12822 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
12824 * KeysConverter.cs: Add CanConvertTo.
12825 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12826 * LinkConverter.cs: Added.
12828 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12830 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12831 it prevents error when file dont have write access. Fixes #81669 and #81667.
12833 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12835 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
12836 button text. Fixes #79640.
12838 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12840 * Control.cs: According to MSDN controls created in the designer theres
12841 keyboard accelerators visible by default. So included check for design
12842 in ShowKeyboardCuesInternal.
12844 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12846 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
12847 text. Fixes #81621.
12849 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
12851 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12852 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
12854 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12856 * Control.cs: Finish implementation of UI State using WmChangeUIState
12857 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
12858 in some controls to check for show_keyboard_cues to draw accell keys "_".
12860 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12862 * ListBox.cs: When calculating the horizontal scrollbar
12863 in single column mode, don't use values less than 0 for
12864 Maximum. Fixes #81474.
12866 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12868 * ListBox.cs: Throw the some missing exceptions in
12869 ListBox.ObjectCollection methods.
12871 2007-05-17 Jackson Harper <jackson@ximian.com>
12873 * TextBoxBase.cs: Recalculate the document when the word wrap
12874 value has changed. This fixes 81488.
12876 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12878 * Clipboard.cs: Implement missing GetText overload.
12880 2007-05-17 Chris Toshok <toshok@ximian.com>
12882 * Control.cs (CheckDataBindings): remove the binding_context arg
12885 * CurrencyManager.cs (OnItemChanged): fix this now that
12886 BindingManagerBase is fixed. also remove the comment telling where
12887 the fix should go. We set transfering_data to true/false around
12888 the call to PushData to keep UpdateIsBinding from being called.
12889 (ListChangedHandler): remove the extra OnMetaDataChanged call for
12890 PropertyDescriptorAdded in the 1.1 case. The extra call is
12891 actually generated by System.Data generating 2 metadata changed
12892 events of its own per column add. The fix should go there. Add a
12893 comment to that affect in our test's Assert.Ignore.
12895 * BindingManagerBase.cs: Rework PullData and PushData slightly.
12896 we keep a boolean flag (transfering_data) that keeps us from
12897 calling UpdateIsBinding multiple times if we re-enter either of
12900 * ControlBindingsCollection.cs (AddCore): remove the
12901 binding_context arg to binding.Check.
12903 * Binding.cs (IsBinding): don't check if we're binding here, just
12904 return our cached value. we update it in UpdateIsBinding.
12905 (Check): don't take the binding_context arg, we'll just use our
12906 control's. Also, for some reason MS doesn't use the data member
12907 field when getting the bindingmanager for this binding. it just
12908 uses the datasource. Make this method callable multiple times,
12909 and only do the is_null_desc stuff if manager.Position != -1 (so
12910 we don't get an exception accessing manager.Current).
12911 (UpdateIsBinding): move the code from IsBinding here.
12912 (PositionChangedHandler): call Check here to we can initialize
12913 things that require a non- -1 position.
12915 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12917 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
12920 2007-05-17 Andreia Gaita <avidigal@novell.com>
12922 * TabControl.cs: Add 2.0 methods and events, including
12923 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
12924 * TabPage.cs: Add 2.0 methods
12926 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
12928 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
12929 keyboard_cues is properly handled by message method.
12931 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12933 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
12935 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
12937 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
12939 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
12942 - WmUpdateUIState added to handle state changes, it make call to
12943 OnChangeUICues event.
12944 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
12947 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
12949 * ImageKeyConverter.cs: Added.
12950 * TreeViewImageKeyConverter.cs: Added.
12952 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12954 * ToolTips.cs: Update Text if SetToolTip is called for a control
12955 already showing the tooltip, as well as restarting its timer; show
12956 tooltip if we are inside the control bounds by the time of calling
12957 SetToolTip. Inside ShowTooltip remove the check to not show the
12958 tooltip again for the active control (it is allowed by .Net to
12959 show the tooltip on the same control multiple times).
12961 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12963 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12965 2007-05-16 Andreia Gaita <avidigal@novell.com>
12967 * ContainerControl.cs: only process tab key if there are no
12968 modifier keys present, otherwise the control does the
12969 tab processing, if it needs to. Fixes #81622
12970 * TabControl.cs: Fixes calculation for which tab to select on
12973 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12975 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
12977 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
12979 * Control.cs: Make IsInputCharInternal to allow controls to
12980 override it and still match MS API.
12981 * TextBoxBase.cs: Override IsInputCharInternal and always
12985 2007-05-15 Jackson Harper <jackson@ximian.com>
12987 * TextBox.cs: Disable some of the menu options when using a
12990 2007-05-15 Jackson Harper <jackson@ximian.com>
12994 * RichTextBox.cs: Some new 2.0 methods
12996 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
12998 * FileDialog.cs: On 1.0 profile, do not support multidotted
13001 2007-05-14 Jackson Harper <jackson@ximian.com>
13003 * TextBoxBase.cs: Implement some of the new 2.0 methods.
13004 * RichTextBox.cs: We need to override these methods on 2.0.
13005 * MaskedTextBox.cs: These are implemented now
13006 * TextControl.cs: This was off by one.
13008 2007-05-14 Jackson Harper <jackson@ximian.com>
13010 * TextControl.cs: Because the line endings are including in the
13011 text, we don't need to add them in anymore.
13013 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13015 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13016 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13018 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13020 * ToolBar.cs: Adjust size to default size when button theres no text and
13021 image, it fixes remaining issues from #81524.
13023 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13026 - When not flat call redraw to recalculate sizes on creare handle to match
13028 - Revert 77220 because it causes some regressions in toobar
13031 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13033 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13034 now actually enters a usable state.
13036 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13038 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13039 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13042 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13044 * ToolBar.cs: Save default_size on create handle to use later for buttons
13045 without text, needed to mimic win32 behavior.
13047 2007-05-11 Everaldo Canuto <everaldo@simios.org>
13049 * ToolBar.cs: Fix button layour to best fit width or height according to
13050 vertical or not. Fixes #81524.
13052 2007-05-10 Everaldo Canuto <everaldo@simios.org>
13054 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13055 toolbar size info because different styles theres different sizes.
13058 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13060 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13061 if we are using checkboxes, checked is true, and we have less
13062 than two images in StateImageList; for the 1.1 in the same scenario
13063 draw the first image if we have at least one image in StateImageList.
13064 Fixes part of #81191.
13066 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
13068 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13069 the owner's Items collection on merge.
13071 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
13073 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13074 * ToolStripItemCollection.cs: Lots of fixes to when events get called
13075 and parent/owner gets changed based on gert's unit tests.
13077 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13079 * MaskedTextBox.cs: Started implementing parts of it.
13081 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13083 * ListView.cs: When clicking the checkbox on the items
13084 take into account the double clicks even if we have only
13085 one image in StateImageList (only for 1.0/1.1). Also
13086 generate an extra change of checked state when we receive
13087 the second click on checkbox (match .Net behaviour).
13088 Fixes part of #81191.
13090 2007-05-10 Everaldo Canuto <everaldo@simios.org>
13092 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13094 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
13096 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13097 even if OnLoad is overriden and base.OnLoad is not called.
13100 2007-05-10 Andreia Gaita <avidigal@novell.com>
13102 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
13103 shame. (I blame my ever-persisting and annoying cold)
13105 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13107 * ListView.cs: Don't eat navigation keys. Let them flow through to
13108 KeyDown/KeyPress routines. [Fixes bug #81569]
13110 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13112 * ListView.cs: When handling keys for selecting the item based off
13113 keyboard input, do not consider keys pressed with Alt or Control. Also,
13114 correctly handle keys when the Shift key is down. [Fixes bug #81578]
13116 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13118 * Control.cs: When using UseWaitCursor, we have to store the requested
13119 Cursor to use when UseWaitCursor is turned off.
13121 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
13123 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
13125 * Application.cs: Use PreProcessControlMessage instead of
13127 * PreProcessControlMessage.cs: Make internal for 1.1.
13129 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13131 * Control.cs: Add InternalContains focus property, which hast the same
13132 functionality of ContainsFocus, but also including implicit controls.
13133 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13134 since we need to know if the focus is contained in our implicit
13135 ItemControl when calculating Layout. Fixes part of #80888.
13137 2007-05-08 Everaldo Canuto <everaldo@simios.org>
13139 * ToolTip.cs: Remove center form string alignment as it must be align to
13142 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
13144 * ToolStripItemCollection.cs: Set the new item's parent and owner
13145 in Insert like we do in Add. [Fixes bug #81568]
13147 2007-05-08 Jackson Harper <jackson@ximian.com>
13149 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13150 - Off by one error in SetTop
13151 - Disable DoubeBuffering
13153 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13155 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13156 control as much as necessary in order to make it entirely visible,
13157 instead of centering the control in the container (matches MS
13158 behaviour). CalculateCanvasSize: we need to take the current scroll
13159 position into account when calculating the maximum canvas,
13160 otherwise the following scenario will fail: resize so that the
13161 scrollbars appear, use the scrollbars to scroll, resize again
13162 smaller, and now the canvas size is too small. Recalculate: when
13163 showing scrollbars make sure they start off at 0, and try to scroll
13164 the active control into view. Fixes #79540. HandleScrollBar: don't
13165 scroll anywhere if the scrollbar isn't visible.
13167 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13169 * ListView.cs: When focus changed, call Layout/Invalidate
13170 in the focused item to update the selected state (should show
13171 entire label when ListView is focused, and a part of it if is not).
13172 * ListViewItem.cs: When doing layout for LargeIcon, take into account
13173 for displaying the entire label not only the Focused state of the
13174 item, but also the Focused state of the ListView (match .Net
13177 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13179 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13180 Implement UseWaitCursor.
13182 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13183 Applying contributed patch from Sergey Volk.
13185 * Clipboard.cs: Implement SetDataObject retry logic and new overload
13187 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13189 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13191 * Control.cs: Implement DrawToBitmap.
13193 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13194 Applying contributed patch from Stefan Noack.
13196 * Control.cs: Add [Get|Set]AutoSizeMode.
13198 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13200 * MdiClient.cs: Unmerge menus when the last child is closed.
13202 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
13204 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13205 * ToolStripManager.cs: Call Merge on DropDowns.
13208 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
13210 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13212 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13213 visibility. We can't create forms visible, since we have to set the
13214 owner before making the form visible (otherwise Win32 will do
13215 strange things with task bar icons). The problem is that we set the
13216 internal is_visible to true before creating the control, so
13217 is_changing_visible_state is the only way of determining if we're
13218 in the process of creating the form due to setting Visible=true -
13219 this works because SetVisibleCore explicitly makes the form
13220 visibile afterwards anyways. Fixes #80775.
13222 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13224 * ThemeWin32Classic.cs: When drawing ListViewItems,
13225 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13226 or LargeIcon _and_ item is not focused (match .Net behaviour).
13228 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
13230 * Control.cs, Form.cs: Fix some obsolete method warnings.
13232 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
13234 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13235 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13237 2007-05-04 Andreia Gaita <avidigal@novell.com>
13239 * ContainerControl.cs: Fix active_control attribution when going
13240 up the parent chain so that the first parent container gets the control
13241 and the rest of the parent containers get the child containers (skips
13242 non-containers). Fixes #80729
13244 2007-05-04 Randolph Chung <tausq@debian.org>
13246 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13249 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13251 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13252 takes a size parameter, since the CreateParam's size isn't true for
13253 minimized forms. Fixes #81518,
13255 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13257 * Form.cs: Add OnDeactivateInternal.
13258 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13260 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13262 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13263 accessing the parent. Fixes #81508.
13265 2007-05-03 Chris Toshok <toshok@ximian.com>
13267 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13268 2.0 block, pass listposition + 1 to ChangeRecordState when a row
13269 was added before the current listposition. Fixes the
13270 TestInsertRowBeforeCurrent unit test.
13272 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
13274 * Application.cs: Add RaiseIdle.
13275 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13276 XplatUIX11.cs: Implement RaiseIdle.
13278 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
13279 corcompare work: N - Z
13283 * ScrollableControl.cs
13284 * SplitContainer.cs
13287 * SystemInformation.cs
13289 * TableLayoutControlCollection.cs
13290 * TableLayoutPanel.cs
13295 * ToolStripComboBox.cs
13296 * ToolStripContainer.cs
13297 * ToolStripContentPanel.cs
13298 * ToolStripDropDown.cs
13299 * ToolStripDropDownItem.cs
13300 * ToolStripDropDownMenu.cs
13302 * ToolStripItemCollection.cs
13303 * ToolStripMenuItem.cs
13304 * ToolStripPanel.cs
13305 * ToolStripSplitButton.cs
13308 * TreeNodeCollection.cs
13309 * TreeNodeMouseHoverEventArgs.cs
13312 2007-05-01 Everaldo Canuto <everaldo@simios.org>
13314 * ContextMenu.cs: Add public method Show with alignment property to 2.0
13315 stuff. Thanks aatdark for the patch.
13317 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13319 * GridItem.cs: Implement 2.0 Tag property.
13321 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
13323 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13324 count instead of Nodes.Length. [Fixes bug #81448]
13326 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13328 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13331 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13332 corcompare work: A - M
13333 * BindingNavigator.cs
13338 * FlowLayoutPanel.cs
13344 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
13346 * Application.cs: Give toolstrips a chance to process mnemonics.
13347 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13348 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13349 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13351 2007-05-01 Jackson Harper <jackson@ximian.com>
13353 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13355 - Don't set the BoundsSpecified
13357 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13359 * Application.cs: When using the toolstrip shortcut mechanism, allow the
13360 message to pass through to a regular control if it hosted by a toolstrip.
13361 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13362 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13364 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13366 * TextRenderer.cs: Use the flags argument when using the MeasureString
13367 fallback algorithm.
13369 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
13371 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13372 the MDI menu item. [Fixes bug #81483]
13374 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
13376 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13377 string. When setting Name to null, use zero-length string instead.
13379 2007-04-29 Andreia Gaita <avidigal@novell.com>
13381 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
13382 DeselectTab). Implement missing 2.0 TabPageCollection methods
13383 (Add, ContainsKey, RemoveByKey, IndexOfKey)
13385 2007-04-29 Pedro Martínez Juliá <pedromj@gmail.com>
13387 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13389 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
13391 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13392 Fixes bug #81479. Include details of exception when LoadFile fails.
13394 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
13396 * DrawListViewSubItemEventArgs.cs: Added missing setter
13398 2007-04-27 Andreia Gaita <avidigal@novell.com>
13400 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
13401 Hide methods (not complete). Implement missing 2.0 OnPopup event.
13403 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13405 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13406 removed in ly last commit (it was breaking the Label edit feature).
13408 * ThemeWin32Classic.cs: When drawing a ListViewItem use
13409 StringAlignment.Near for LineAlignment (match .Net).
13411 2007-04-27 Andreia Gaita <avidigal@novell.com>
13413 * TabControl.cs: Change SetTab so it adds the tabpage to the list
13414 of controls if it isn't already there - was blowing up when doing
13415 tabcontrol.TabPages[i]=new TabPage().
13416 SetTab now does a replace by removing the page at the index.
13417 Add a new InsertTab method that inserts a page in a given index
13418 instead of replacing.
13419 Implements TabPageCollection.Insert(int, TabPage).
13421 2007-04-27 Chris Toshok <toshok@ximian.com>
13423 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13424 internal handler that can be invoked from our subclasses.) Also,
13425 add a comment to PushData about how we need to fix it.
13427 * CurrencyManager.cs: tons of changes here. trying to get things
13428 matching the behavior of .net wrt event orders (ItemChanged,
13429 CurrentChanged, PositionChanged.) I've implemented a private .net
13430 symbol (ChangeRecordState) that appears in stack traces because
13431 it's actually easier to do this than to effective inline all its
13432 various behaviors at every call site.
13434 * RelatedPropertyManager.cs: guard against an exception here by
13435 not using parent.Current if the position is set to -1 (if the
13436 parent datasource is cleared, for instance).
13438 * Binding.cs: don't parse data in PushData (this might be wrong,
13439 but it jives with MS's behavior.) Also, don't call PushData when
13440 we get a CurrentChanged event.
13442 2007-04-27 Andreia Gaita <avidigal@novell.com>
13446 WebBrowserSiteBase.cs,
13447 HtmlDocument.cs: Added stubbed out classes, no real implementations
13450 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13452 * MainMenu.cs: In draw method without parameters call draw method with
13453 PaintEvent, another one (just rect) adjust rectangle and we dont need it
13454 as Rect property is already adjusted. Fixes #80694.
13456 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
13458 * Application.cs: Need to handle keyboard menu deselection here.
13459 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13460 navigation, allowing keyboard to work on X11.
13461 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13463 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13465 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13466 menu bar. It fixes some drawing issues in menu bar.
13468 2007-04-27 Everaldo Canuto <everaldo@simios.org>
13470 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
13471 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13472 when <alt> key is pressed.
13474 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13476 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
13477 example just set visible to false and make this prevent from other problems.
13478 In SystrayAdd always remove pending expose. Fixes #81072.
13480 2007-04-26 Marek Safar <marek.safar@gmail.com>
13482 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13485 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13487 * ListView.cs: Added three missing 2.0 events and corresponding
13488 EventHandlers. Added the OwnerDraw property.
13489 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13491 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13493 * DrawListViewItemEventArgs.cs
13494 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13496 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
13498 * TextControl.cs: Fixed typo in constructor
13500 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
13502 * Application.cs: Create a shortcut path so that currently selected
13503 MenuStrips can intercept keyboard events without having focus.
13504 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13505 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13506 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13507 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
13508 generate WM_SYSCOMMAND message in X11 for other platforms.
13509 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13510 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13511 * ToolStripSplitButton.cs: Add DefaultItem property.
13513 2007-04-26 Everaldo Canuto <everaldo@simios.org>
13515 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13516 fixes some menu draw problem on Windows with border diferent from default
13517 it also fixes #81403.
13519 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13521 * Form.cs: Refactor WndProc into separate methods, just like Control is
13524 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13526 * Control.cs: set_Text: move the call to the driver into a seperate
13527 virtual method so that Form can override it.
13528 * MaskedTextBox.cs: Corcompare fixes.
13529 * Form.cs: Override UpdateWindowText and only update the styles if the
13530 form has been shown (fixes #81405).
13532 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13534 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13535 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13536 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
13537 the form lost focus or another control was clicked.
13539 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
13541 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13544 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13546 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13547 DrawListViewItemEventHandler.cs,
13548 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13550 * X11Structs.cs: More ToString implementation.
13552 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
13554 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13555 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13557 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13559 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13561 * FormCollection.cs: Don't add a form if it's already in the
13563 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13564 according to behaviour and MSDN. The ownerWin32 is the active
13565 window at the moment when we call ShowDialog, not the context's
13566 main form (the context's main form may open another form that opens
13567 a form with ShowDialog, the win32 owner is the second form). Add
13568 and remove forms to the Application.OpenForms in other places to
13569 better match MS behaviour. Add an IsActive property that raises
13570 On(de)Activated only if the active state has changed (we were
13571 raising OnDeactivated before OnActivated while creating forms).
13572 * Application.cs: Refactor Enabling/Disabling of windows for modal
13573 dialog loops out to separate methods, and restore the thread
13574 context when we quit the method. Fixes #81407.
13576 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13578 * ListView.cs: In ItemControl.HandleClicks, also fire
13579 2.0 MouseClick or MouseDoubleClick events on the parent,
13580 not only the Click/DoubleClick events.
13582 2007-04-24 Andreia Gaita <avidigal@novell.com>
13584 * TableLayoutSettings.cs:
13585 - Added a GetControls method and a support structure to help the
13586 TypeConverter to enumerate the controls for serialization.
13587 - Added a new serialization constructor.
13588 - Added a isSerialized flag initialized to true on the
13589 serialization constructor so that the TableLayoutPanel.LayoutSettings
13590 setter does not throw the designed NotSupportedOperation exception
13591 when the object is built through deserialization.
13592 - Implemented GetObjectData
13594 * TableLayoutPanel.cs: Added check on LayoutSettings.
13596 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13598 * ListView.cs: Report Click and DoubleClick events to the parent
13599 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13600 from breaking the click count state when using dialog forms (Control
13601 reports the clicks in a similar fashion). In the previous behaviour
13602 the last WM_LBUTTONUP message in a double click was sent to the
13603 ListView's form, instead of the ListView, which was breaking the click
13604 count for it. Fixes #80387.
13606 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13608 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13610 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13612 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
13613 us from created dropdowns for menu items that do not have subitems.
13614 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13615 Check HasDropDownItems before calling DropDown so a dropdown will not be
13616 created if it isn't needed.
13618 2007-04-24 Jackson Harper <jackson@ximian.com>
13620 * TreeView.cs: Set the first node to the selected node when we get
13621 focus if there is no selected node.
13623 2007-04-24 Andreia Gaita <avidigal@novell.com>
13625 * MimeIcon.cs: remove using blocks so that image streams are
13626 not disposed of. Fixes #80151
13628 2007-04-24 Jackson Harper <jackson@ximian.com>
13630 * TextBoxBase.cs: Fixup the height of textboxes when the control
13633 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
13635 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
13636 for each ToolStripItem when the parent's RightToLeftChanged is called.
13638 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13640 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13642 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13643 property, so that the setter can be overriden too.
13644 * TextBox.cs: Change GetContextMenuInternal() to use
13645 ContextMenuInternal.
13647 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13649 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13652 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13654 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13657 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13659 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13660 avoid duplicate work. Mostily skeleton code, it's not working at
13663 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
13665 * NotifyIcon.cs : stub for MouseClick event
13666 * Application.cs: stub for SetUnhandledExceptionMode
13668 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
13670 * BindingNavigator.cs : Initial (partial) implementation
13672 2007-04-23 Jackson Harper <jackson@ximian.com>
13674 * TreeView.cs: Do not create the treeview's handle when setting
13675 the scroll position.
13676 - ExpandAll needs to compute the scrollbars so it knows which
13677 position to set the bar too.
13679 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13681 2007-04-23 Jackson Harper <jackson@ximian.com>
13683 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13686 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
13688 * ToolStripItem.cs: Make GetImageSize internal.
13689 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13690 need to draw an item. Fixes a reported issue where images on menus
13691 that were not 16x16 were drawing incorrectly.
13693 2007-04-21 Miguel de Icaza <miguel@novell.com>
13695 * Padding.cs: Use the converter, fixes the resgen2 issue with
13698 2007-04-21 Jackson Harper <jackson@ximian.com>
13700 * TreeView.cs: Dont try to unhighlight the selected node if there
13701 isn't a selected node.
13703 2007-04-21 Jackson Harper <jackson@ximian.com>
13709 * TreeView.cs: Use the InternalBorderStyle property to set the
13710 initial border style, this forces the client rectangle to be sized
13713 2007-04-20 Jackson Harper <jackson@ximian.com>
13715 * TreeView.cs: Simplify scrolling to the last node after expanding
13717 - Fix some off by ones with setting the bottom.
13719 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13721 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13722 that. We were incorrectly doing it the other way around. Also,
13723 update ClientSize if we change the BorderStyle before the control
13726 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13728 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13729 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13730 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13731 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13732 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13733 Caption to CaptionHeight.
13734 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13735 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13736 and FixedFrameBorderSize to return value from current XplatUI driver.
13737 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13738 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13739 and FixedFrameBorderSize using win32 API. Renamed Caption to
13741 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13742 * SystemInformation.cs: Fixed typo in BorderSize.
13744 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
13746 * XplatUI.cs: Added MenuAccessKeysUnderlined.
13747 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13748 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13750 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13751 value from XplatUI driver.
13752 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13753 SystemParametersInfo.
13754 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13756 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13759 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13761 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13763 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13765 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13767 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
13769 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13770 MenuStrips that contain ToolStripSeparators.
13772 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13774 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13775 DefineStdCursorBitmap.
13776 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13777 has been created off a standard cursor. This is used to get a
13778 bitmap of the standard cursor when Draw or DrawStretched is called
13779 in order to draw the cursor.
13780 * X11Structs.cs: Added XcursorImage and XcursorImages.
13781 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13782 DefineStdCursorBitmap.
13783 * Cursors.cs: Update all relevant creations of Cursor to use the new
13784 internal constructor.
13786 2007-04-19 Jackson Harper <jackson@ximian.com>
13788 * TextBox.cs: Move the has_been_focused into the base control, so
13789 some of the text adding methods can manipulate it (probably time
13790 for a better name for this flag too).
13791 - Call a new version of selectall that doesn't scroll
13792 * TextBoxBase.cs: When we append text, if the document is empty,
13793 don't scroll. If the document has text already, we scroll to the
13794 end of the appended text.
13795 - When the text is changed, we reset the has_been_focused, so the
13796 next time the control gets focused, all the text is selected.
13798 2007-04-19 Jackson Harper <jackson@ximian.com>
13800 * TextControl.cs: Move the margins to the document, add a method
13801 so the margin sizes can be updated.
13802 * TextBoxBase.cs: When the border style is changed, update the
13805 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
13807 * Control.cs: Respect DefaultPadding.
13808 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13809 padding into account.
13810 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
13812 2007-04-19 Jackson Harper <jackson@ximian.com>
13814 * TextControl.cs: Oops, we need to use the ClientRect not the
13817 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13819 * ListView.cs: In ItemControl.ItemsMouseDown, take into
13820 account the double clicks when CheckBoxes are used and
13821 the pointer is inside the checkbox. Fixes part of #81191.
13823 2007-04-18 Jackson Harper <jackson@ximian.com>
13825 * TextControl.cs: Pressing the end key shouldn't move the caret
13826 past the line ending.
13827 * TextBoxBase.cs: We can still delete if we are in the line
13828 ending and the combine will just kill the existing line ending.
13830 2007-04-18 Jackson Harper <jackson@ximian.com>
13832 * TextControl.cs: We can't move lines, then invalidate their
13833 bounds, we need to get the old bounds and combine that with the
13835 * TextBoxBase.cs: Before combining two lines for a delete, we need
13836 to invalidate the area of the old line, since that will be moved
13837 in the combine operation.
13839 2007-04-18 Everaldo Canuto <everaldo@simios.org>
13841 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13842 with transparent background. Fixes #80482.
13844 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
13846 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13847 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13850 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13852 * CreateParams.cs: Add a couple of helper methods and do a less string
13853 concatenation in ToString.
13854 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13855 overload that takes a Control parameter, since this method may be
13856 called before a control is assigned to the hwnd (from
13857 CreateWindow), and update CreateWindow to use the new overload. In
13858 GetMenuOrigin subtract the title bar from the y position if the
13859 form has a window manager (since we're painting it and not X).
13860 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
13861 CreateParams to calculate the origin (since border sizes may vary).
13862 In ScreenToMenu only subtract the title height if we actually have
13864 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
13865 mdi children never have menus of themselves.
13866 * InternalWindowManager.cs: Implement menu handling like form does.
13867 Added GetMenuOrigin to calculate the menu origin, can't use the
13868 CreateParams from the form like normally since it's lying.
13869 * Hwnd.cs: Implement GetBorderSize better (in the sense more
13870 windows-like) and add Inflate and comparison operators to the
13871 Borders type. When calculating MenuOrigin and it's a form with a
13872 window manager, use the window manager to calculate it.
13874 2007-04-17 Chris Toshok <toshok@ximian.com>
13876 * Control.cs (CreateControl): turns out in 2.0 we don't need this
13877 OnBindingContextChanged thing here. It's only generated from
13878 ContainerControl.OnCreateControl. Fixes a newly written unit test
13879 - BindingTest.BindingContextChangedTest4.
13881 2007-04-17 Jackson Harper <jackson@ximian.com>
13883 * ScrollBar.cs: When setting values, make sure the current
13884 position stays within the new values range.
13886 2007-04-17 Chris Toshok <toshok@ximian.com>
13888 * Control.cs (CreateControl): talk about a bizarre corner case.
13889 Don't emit OnBindingContextChanged here if we're a parentless
13890 control (i.e. if we're a form.). Fixes
13891 BindingTest.BindingContextChangedTest2.
13893 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13895 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
13896 from win32. Fixes #81255.
13898 2007-04-17 Everaldo Canuto <everaldo@simios.org>
13900 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
13901 already present in CalculateButtonTextAndImageLayout.
13903 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
13905 * XplatUIX11.cs: When setting min/max size for a window we need to
13906 translate the coordinates to x coordinates. Create an overload of
13907 SetWindowMinMax that takes a CreateParams handling this, and change
13908 SetWMStyles to call this function (can't use Control.FromHandle in
13909 the SetWindowMinMax to get the control/CreateParams from the handle
13910 because the handle might not have been assigned to the control
13911 yet). Fixes #81371.
13913 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13915 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
13916 if StateImageList is non-null and it has less than two items (match MS
13917 behaviour). Also, in HandleNavKeys handle the Space key, calling
13918 the new ToggleItemsCheckState method, which tries to change the
13919 checked state of the selected items. Fixes part of #81191.
13921 2007-04-16 Jackson Harper <jackson@ximian.com>
13923 * RichTextBox.cs: namespace cleanup.
13925 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13927 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
13929 2007-04-16 Everaldo Canuto <everaldo@simios.org>
13932 * Control.cs: Call invalidate in set_Region.
13934 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
13935 it dont works here.
13937 2007-04-16 Jackson Harper <jackson@ximian.com>
13939 * TextBoxBase.cs: When enter is pressed, we need to update all
13940 lines below the current.
13942 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
13944 * MdiClient.cs: Implement implicit menu merging for MDI
13945 children. When a child form is active, if it has a menustrip
13946 and the parent form has a MainMenuStrip, automatically merge
13949 2007-04-15 Andreia Gaita <avidigal@novell.com>
13951 * TabControl.cs: Refactored sizing methods to not repeat
13952 code all over the place. Tab bounds are now calculated
13953 as if alignment is top and single line, and only when
13954 setting the bounds are the positions adjusted according
13955 to alignment. Replaced hardcoded positions, spacings and
13956 paddings by getting the values the ThemeEngine.
13959 * Theme.cs: Change TabControl properties and methods so
13960 that all start with TabControl*. Added more properties
13961 to help remove hardcoded values on tabcontrol.
13962 Add CPDrawBorder3D declaration so the Theming classes
13965 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
13967 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
13968 on the Theming namespace, and call the appropriate methods here.
13969 Change CPDrawBorder3D to public.
13971 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13973 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
13974 the control after firing the OnMouseUp event, instead of sending
13975 the message before the mentioned event. This is so we can match the
13976 MS behaviour. Fixes part of #80385.
13978 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13980 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
13981 RightToLeft property.
13983 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
13985 * ToolStrip.cs: Add properties and internal methods to support merging.
13986 * ToolStripItem.cs: Add MergeAction and MergeIndex.
13987 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
13988 not trigger reparenting or layouts.
13989 * ToolStripManager.cs: Add Merge and RevertMerge methods.
13990 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
13991 is hosting the overflow menu.
13993 2007-04-13 Jackson Harper <jackson@ximian.com>
13995 * TextControl.cs: Set the line ending correctly for the first
13998 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
14000 * Theme.cs: Update GetMethod to get the new definition for
14001 KnownColors.Update (and fix theme color updates).
14003 2007-04-12 Everaldo Canuto <everaldo@simios.org>
14005 * MessageBox.cs: Fix some test and button position.
14007 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14009 * Form.cs: Consider the implicit controls in
14010 GetRealChildAtPoint. We need it since this method
14011 is called on Form when handling the some messages in
14012 WndProc, and need to consider those implicit ones too.
14015 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
14017 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14018 if there are no ShortcutKeys set.
14019 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14020 set, use it when painting.
14022 2007-04-12 Jackson Harper <jackson@ximian.com>
14024 * TextControl.cs: Fix some off-by-one issues in line duplication
14025 and insertion in the undo manager. Also, overwrite the first tag
14026 of a line on insert, if it is just a zero lengthed tag. This
14027 prevents us from getting an extra stranded tag at the beginning of
14030 2007-04-11 Everaldo Canuto <everaldo@simios.org>
14032 * Label.cs: Remove check for handle created in CalcAutoSize, we need
14033 to calculated proper size including when handle was not created yet.
14035 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14037 * MdiWindowManager.cs: When moving a form, allow the form to be moved
14038 when the mouse is outside of it's parent's client rectangle. Fixes
14039 #79982 (take 3, part 2).
14041 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
14043 * X11Structs.cs: Add a few ToString() overrides.
14044 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14045 the window location in a window-manager independent way. Reworked
14046 FrameExtents, it now actually works. Reworked AddConfigureNotify
14047 and ReparentNotify handling to use GetTopLevelWindowLocation
14048 instead of the earlier, more hacky solution. Reworked SetWMStyles,
14049 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14050 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14051 for all other windows (fixes #81281 part 1), a toolwindow is hidden
14052 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14053 and generally refactored to do as few calculations as possible
14056 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
14058 * Theme.cs: Change "reflective-contract" between MWF and SD to
14059 minimize # of calls, avoid Color serialization and avoid updating
14060 every "known colors" each time a single one is updated.
14062 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
14064 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14065 when not readonly and the text is explicitly set. Code style updates.
14066 * DataGridTableStyle.cs: Removed extra line.
14067 * DataGrid.cs: Code style updates. Removed extra whitespace.
14068 * DataGridColumnStyle.cs: Code style updates. Removed extra
14071 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
14073 * XplatUIX11.cs: Added comment that "fixes" #80021.
14075 2007-04-09 Jackson Harper <jackson@ximian.com>
14077 * TextControl.cs: We don't need this -1 on the line count anymore.
14079 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
14081 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14082 entered value to underlying type, and convert it back to a string to
14083 apply formatting. Modified GetFormattedValue to use TypeConverter
14086 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
14088 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14089 Use SubItems property when we want to ensure there's at least one
14090 subitem. Modified SubItems property to ensure there's always at least
14091 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14092 the NRE's reported by MS.
14094 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
14096 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14097 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14098 Spaces to tabs. Removed extra tabs.
14100 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
14102 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14103 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
14105 2007-04-06 Jackson Harper <jackson@ximian.com>
14107 * TextBoxBase.cs: When a delete removes a line, recalculate all
14108 lines below that line (they need to get offsets setup correctly)
14111 2007-04-05 Jackson Harper <jackson@ximian.com>
14113 * TextControl.cs: We need to invalidate across the width of the
14114 document when we are invalidating multiple lines.
14115 * TextBoxBase.cs: Don't delete into the line ending.
14117 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14119 * ListView.cs: Restore the check for the MouseHover event
14120 in ListView. It looks like the ListView fires more than one MouseHover
14121 event when HoverSelection is true _only_ in weird-corner scenarios, but
14122 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14125 2007-04-05 Mike Kestner <mkestner@novell.com>
14127 * ListView.cs : raise MouseDown before updating selection.
14128 [Fixes #80373 tab 1&3]
14130 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
14132 * ToolStripRenderer.cs: Add static method to mirror image.
14133 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14134 and RightToLeftAutoMirrorImage.
14135 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14137 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
14139 * ToolStripSplitStackLayout.cs: Support Alignment property.
14140 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14142 2007-04-05 Jackson Harper <jackson@ximian.com>
14144 * TextControl.cs: Move around the line endings when crossing line
14146 - When combining lines, strip the ending text off the first line.
14148 2007-04-05 Jackson Harper <jackson@ximian.com>
14151 * TextBoxBase.cs: Try to never move the cursor into the line
14154 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
14156 * ToolStripItem.cs: Make sure we aren't firing mouse events when
14157 the item is disabled. Also add a few missing methods.
14159 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14161 * ListView.cs: We don't need the MouseEnter/MouseLeave check
14162 to fire just one MouseHover event when HoverSelection is true, since
14163 .Net does fire more than one MouseHover event in that scenario. Also,
14164 fix the selection in HoverSelection, by invoking UpdateMultiSelect
14165 if MultiSelect is true, instead of only setting ListViewItem.Selected.
14166 Finally, we need to reset the Hover logic in MouseMove, even when we
14167 don't have a selected item.
14169 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
14171 * ToolStrip.cs: Add several missing methods, properties, and events.
14173 2007-04-04 Chris Toshok <toshok@ximian.com>
14175 * DataGridTextBoxColumn.cs: set the bounds of the text box to
14176 (0,0,0,0) in Commit, as MS does.
14178 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14179 make sure we set CurrentRow on a row header click *before* calling
14180 Select. This moves the current cell (and the textbox) to the new
14181 row. The call to Select then hides the textbox, giving us the
14182 correct behavior. Fixes #80362.
14184 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14185 (ListChangedHandler): reorder the position/current changed events,
14186 and call UpdateIsBinding in the ItemAdded case.
14188 * GridColumnStylesCollection.cs: add some columns events, one of
14189 which raises the CollectionChanged event.
14191 2007-04-04 Jackson Harper <jackson@ximian.com>
14193 * TextControl.cs: When we delete multiple selection lines
14194 invalidate the selection area, don't need to do that for single
14195 lines because the final update view will handle it.
14197 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
14199 * Control.cs: When we CreateControl, we need to also create all of the
14200 control's children. The child's OnLoad must also fire before the parent's
14201 OnLoad. Fixes the toolbox size in PDN.
14203 2007-04-04 Jackson Harper <jackson@ximian.com>
14205 * TextBoxBase.cs: When the user presses enter, insert a line
14206 ending into the text. (Maybe this would be a good spot for
14207 Environment.NewLine).
14208 * TextControl.cs: Remove undo manager hack, line endings get
14209 inserted properly now.
14211 2007-04-04 Everaldo Canuto <everaldo@simios.org>
14214 - Remove unneeded parameters in UpdateCursor.
14215 - Fix UpdateCursor to check if menu is active.
14216 - Call UpdateCursor when menu deactivate my click.
14217 [Fixes remaining issues from #80410]
14219 2007-04-04 Everaldo Canuto <everaldo@simios.org>
14221 * Control.cs: GetRealChildAtPoint method added, it make an
14222 recursive child control search for the point.
14224 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14227 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14229 2007-04-03 Everaldo Canuto <everaldo@simios.org>
14231 * Form.cs: Fix mouse position when send back mouse event after closes
14234 2007-04-03 Everaldo Canuto <everaldo@simios.org>
14236 * Form.cs: Simplify the BUTTONDOWN for active tracker.
14238 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
14240 * Control.cs: Fix an issue where if a user resized a control inside
14241 a sizing method like OnResize, we would overwrite their explicit
14242 value. Also, only call DefaultSize once in the constructor instead
14243 of 4 times. Also, do not call SetBoundsCore from SetBounds if
14244 nothing actually changed.
14246 2007-04-03 Jackson Harper <jackson@ximian.com>
14248 * TextControl.cs: Don't attempt to copy text for lines with no
14249 text in them (technically this shouldn't happen, but we aren't
14250 always inserting line endings when we should be).
14252 2007-04-03 Jackson Harper <jackson@ximian.com>
14254 * TextBoxBase.cs: Calculate the scrollbars before calculating the
14255 document, because this sets some of the document size properties
14258 2007-04-03 Jackson Harper <jackson@ximian.com>
14260 * TextBoxBase.cs: We need to calculate maximums even if this is
14261 not a multiline control, because the maxs are used for scrolling.
14262 - Display the caret after doing a page up/down, we need to
14263 manually display it because a proper CaretMoved event isn't
14264 triggered (this is because of the way the math is done to
14265 determine how far to scroll).
14267 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
14269 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14270 (ToolBar was relying on SetBoundsCore to default the values sent
14271 base off of BoundsSpecified.)
14273 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14275 * DateTimePicker.cs: Change Text so that when a null value or empty
14276 string is assigned to the test we always raise ValueChanged and
14277 TextChanged (earlier implementation would only raise ValueChanged
14278 if the current date value was different from DateTime.Now).
14280 2007-04-03 Andreia Gaita <avidigal@novell.com>
14282 * ButtonBase: Call update after invalidation, fixes #80194
14284 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14286 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14289 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14291 * XplatUIX11.cs: SetWMStyles: If the control is a form with
14292 FormBorderStyle = None, don't give the window any decorations.
14295 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14297 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14298 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14299 to check for is a mix of several styles (such as WS_CAPTION for
14301 * Control.cs: Don't paint an area bigger than the client area when
14302 painting the background colour. Add an internal GetCreateParams.
14303 Update calls to XplatUI.CalculateWindowRect due to API change.
14304 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14305 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14306 the size if it hasn't been handled by any windows. When creating
14307 and moving windows, X wants the location of the entire window, but
14308 the size of the client window, so add
14309 TranslateClientRectangleToXClientRectangle,
14310 TranslateWindowSizeToXWindowSIze and
14311 TranslatedXWindowSizeToWindowSize to cope with this, and call them
14312 before every window creation and move. Update CalculateWIndowRect
14313 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14314 In AddConfigureNotify don't do anything if the hwnd is a zombie
14315 (fixes the BadWindow we were getting while running the tests),
14316 always calculate the offsets when it's a parentless window, not
14317 only when reparented, and translate the window size, since we're
14318 getting the client size of the whole window, excluding entire
14320 * Theme.cs: Added BorderSizableSize.
14321 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14322 anymore. Update calls to XplatUI.CalculateWindowRect due to API
14324 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14325 change. Fake the window styles here instead of in XplatUIWin32 so
14326 that all back-ends get the same window styles (and it's Form that's
14327 deciding when to use wm, not the Win32 backend anyways)
14328 * Hwnd.cs: Completely reworked GetWindowRectangle and
14329 GetClientRectangle - they are now passed a CreateParams and they
14330 only use Style and ExStyle to determine the rectangles (they should
14331 now work just like Win32AdjustWindowRectEx - though quite a few
14332 special cases are probably missing). They should also be 100%
14333 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14334 == rect), and all numbers (borders, menu sizes) are taken from the
14335 current theme. Added a GetBorders helper function that will return
14336 the borders for any given CreateParams (including captions and
14337 menus), and GetBorderSize that returns the given border size only.
14338 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14339 Hwnd.GetClientRectangle.
14341 2007-04-02 Chris Toshok <toshok@ximian.com>
14343 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14344 logic between the values we present to the user and the values
14345 which are stored in the column's property. Also, don't call
14346 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14348 2007-04-02 Jackson Harper <jackson@ximian.com>
14350 * TextBoxBase.cs: Scroll faster!
14352 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
14354 * StatusStrip.cs: Layout fixes for PDN.
14355 * ToolStrip.cs: Set item's available to true, and placement to main when
14357 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14358 changing in setter before doing any work, add InternalVisible.
14359 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14360 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14363 2007-04-02 Jackson Harper <jackson@ximian.com>
14365 * TextBox.cs: LBUTTON does not make the textbox select all of it's
14368 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14370 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14371 Makes ToolStripComboBoxes show up again.
14373 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14375 * ListView.cs: Add a hover_pending field in ListView
14376 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14377 cycle (we are resetting the MouseHover logic in XplatUI
14378 to handle HoverSelection). Fixes #80429.
14380 2007-04-02 Jackson Harper <jackson@ximian.com>
14382 * TextControl.cs: Make sure the attributes get set on the last
14384 - Still have to do the end tag if we have stepped all the ways to
14387 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
14389 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14390 on an internal libgdiplus call when the information is already
14391 available via the public API.
14393 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14395 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14396 control is removed from a control collecftion.
14397 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14398 Fixes FormPropertyTest (failed on rare occasions).
14399 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14400 of Win32SetParent (when changing from no parent to a parent it
14401 might add the new parent's location in screen coordinates to this
14402 window's location).
14403 * Form.cs: Rework ChangingParent once again, now the handle is
14404 recreated whenever a FormWindowManager is added or removed (that is
14405 whenever a normal form is parented or abandoned). Also change
14406 CreateParams so that all non-toplevel windows always get the
14407 specified sice (StartupPosition is never considered for
14408 non-TopLevel forms).
14409 * ContainerControl.cs: Add ChildControlRemoved, the container control
14410 needs to be notified when a control is removed from it's
14411 collection, in the case the removed control is the active control.
14413 2007-04-02 Jackson Harper <jackson@ximian.com>
14415 * RichTextBox.cs: Use the new methods for setting the font and
14416 color, these methods set the specified attribute without
14417 overriding the other attributes.
14419 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
14421 * ToolStripPanel.cs: Fixes for better layouts in PDN.
14423 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
14425 * TextBox.cs: Added internal ChangeBackColor method to special-case
14426 Color.Empty. Added check for invalid ScrollBars value.
14427 * TextBoxBase.cs: Added internal ChangeBackColor method.
14428 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14429 internal ChangeBackColor method to special-case Color.Empty. Added
14430 check for invalid ScrollBars value.
14432 2007-03-30 Everaldo Canuto <everaldo@simios.org>
14434 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14436 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14438 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14439 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14440 [Based on submitted patch from Olivier Duff.]
14442 2007-03-30 Jackson Harper <jackson@ximian.com>
14444 * TextBox.cs: Only select all on initial focus if the user has not
14445 specified a selection area.
14447 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
14449 * UserControl.cs: Override CreateParams.
14451 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14455 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14456 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14457 check for is a mix of several styles (such as WS_CAPTION for instance).
14458 * Control.cs: Don't paint an area bigger than the client area when painting
14459 the background colour. Add an internal GetCreateParams. Update calls to
14460 XplatUI.CalculateWindowRect due to API change.
14461 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14462 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14463 hasn't been handled by any windows. When creating and moving windows, X
14464 wants the location of the entire window, but the size of the client
14465 window, so add TranslateClientRectangleToXClientRectangle,
14466 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14467 to cope with this, and call them before every window creation and move.
14468 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14469 removing DeriveStyles). In AddConfigureNotify don't do anything if the
14470 hwnd is a zombie (fixes the BadWindow we were getting while running the
14471 tests), always calculate the offsets when it's a parentless window, not
14472 only when reparented, and translate the window size, since we're getting
14473 the client size of the whole window, excluding entire window.
14474 * Theme.cs: Added BorderSizableSize.
14475 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14476 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14477 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14478 Fake the window styles here instead of in XplatUIWin32 so that all
14479 back-ends get the same window styles (and it's Form that's deciding when
14480 to use wm, not the Win32 backend anyways)
14481 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14482 they are now passed a CreateParams and they only use Style and ExStyle
14483 to determine the rectangles (they should now work just like
14484 Win32AdjustWindowRectEx - though quite a few special cases are probably
14485 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14486 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14487 sizes) are taken from the current theme. Added a GetBorders helper
14488 function that will return the borders for any given CreateParams
14489 (including captions and menus), and GetBorderSize that returns the given
14491 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14492 Hwnd.GetClientRectangle.
14494 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14496 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14497 layout of the mdi children is handled by CreateParams. Fixes
14500 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14502 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14505 * Form.cs: When active tracker mouse down is not processed, send event
14506 back to control inside mouse position. [Fixes #81227]
14508 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14510 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14511 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14512 stealing focus from the active form on Windows. (Control will be made
14513 visible in ShowWindow.)
14515 2007-03-29 Mike Kestner <mkestner@novell.com>
14517 * ImageList.cs : add internal Changed event.
14518 * ListView.cs : hook up to StateImageList.Changed to perform
14519 invalidations when the the state icon list changes. [Fixes #81191]
14521 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
14523 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14524 to prevent tooltips from stealing focus from the active form on Windows.
14526 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14528 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
14530 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14532 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14534 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14537 2007-03-29 Jackson Harper <jackson@ximian.com>
14539 * TextControl.cs: When deleting text from non multiline textboxes,
14540 we need to update the entire document, because line offsets will
14543 2007-03-29 Everaldo Canuto <everaldo@simios.org>
14545 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14546 added to theme, now we can create themes that uses diferent notify engines
14547 like notification-daemon from galago project or growl for Mac OS.
14549 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14551 * NotifyIcon.cs: Prevent Balloon to show in task bar.
14553 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14555 * XplatUIX11.cs: Prevent system to open more than one balloon.
14557 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14558 some compiler warning messages.
14560 2007-03-28 Everaldo Canuto <everaldo@simios.org>
14564 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14566 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
14567 implemented, this methods is used by NotifyIcon.BalloonWindow class.
14569 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
14572 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14574 * ListViewItem.cs: Forgot to make Invalidate internal.
14576 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14578 * ListView.cs: Add a InvalidateSelection method to
14579 invalidate methods which are currently selected, and call
14580 it when setting FullRowSelect and HideSelection, instead of
14583 2007-03-28 Chris Toshok <toshok@ximian.com>
14585 * XplatUIX11.cs (UnmapWindow): reindent this block.
14587 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14588 the selection_start if we're moving the selection (that is, not
14589 extending it). Fixes bug #80461.
14591 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14593 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14594 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14595 create private ControlCollection.
14597 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14599 * Control.cs: We need to call OnVisibleChanged for our implicit
14600 children as well as our normal children. Fixes scrollbars in
14601 comboboxes not showing up.
14603 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14605 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14606 the check for IsHandleCreated first. The check in CreateHandle is not
14607 good enough because CreateHandle can be overriden, and the override
14608 should not be called if the handle is already created.
14610 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
14612 * ToolStrip.cs: Remove MonoTODO for tooltips.
14613 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14614 * ToolStripContainer.cs: Add custom ControlCollection class.
14615 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14616 * ToolStripDropDown.cs: Add some missing properties/methods.
14617 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14618 * ToolStripItem.cs: Remove MonoTODO for tooltips.
14619 * ToolStripManager.cs: Add IsShortcutDefined.
14620 * ToolStripOverflow.cs: Override LayoutEngine.
14621 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14622 * ToolStripSeparator.cs: Add ImageKey.
14624 2007-03-28 Jackson Harper <jackson@ximian.com>
14626 * TextControl.cs: If a char delete removes a line ending, we need
14627 to update the ending style.
14628 - Make sure the line ending calcs get called.
14630 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14632 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14633 it was making the new code not work. Fixed a typo in the new code
14634 as well. Fixes #79826.
14636 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14639 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14640 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14641 - SystrayBalloon method implemented.
14642 [Add support for notifyicon balloon on win32, #79149]
14644 2007-03-27 Mike Kestner <mkestner@novell.com>
14646 * ThemeWin32Classic.cs : update StateImageList selection to mirror
14647 the ms behavior when only one image is added to the list.
14650 2007-03-27 Jackson Harper <jackson@ximian.com>
14652 * TextControl.cs: Improvements to non multiline line ending
14655 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14657 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
14659 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14662 - Balloon message handling added.
14663 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
14665 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14666 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
14667 to SystrayBalloon to me like other Systray method, also a
14668 handle parameter added.
14670 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14672 * ListView.cs: Show scrollbars even when items.Count == 0
14673 but the columns Width is bigger than the ListView.Width.
14674 Also, when columns.Count == 0 set layout_wd and layout_ht
14675 to the ClientRectangle values, so we don't show any scrollbar
14678 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14680 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14682 2007-03-27 Jackson Harper <jackson@ximian.com>
14684 * RichTextBox.cs: The RTF library decodes the text properly for us
14687 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14689 * ListView.cs: Display HeaderControl even when columns.Count == 0.
14690 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14691 ListView header (HeaderControl), instead of Control.BackColor.
14693 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14695 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14696 Fixes tab control issues where controls would not show up because they
14697 never received their OnVisibleChanged call.
14699 2007-03-27 Everaldo Canuto <everaldo@simios.org>
14701 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14704 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
14706 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14707 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14708 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14709 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
14710 the handle. Fix WindowState by using the internal variable until we are
14711 sure that we've been shown.
14712 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14716 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14718 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14719 (at least borders). Fixes #79386 on Linux (with a small difference
14720 in behaviour: when trying to resize a caption-less window metacity
14721 shows the sysmenu. Resizing is still possible though).
14722 * XplatUIWin32.cs: When setting window styles send request an extra
14723 WM_NCCALCSIZE when it's a form without title (due to no text and no
14724 caption), since Win32 seems to calculate it wrong the first time we
14725 get the message, though the second time things work as they should.
14726 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14727 newly reparented window might show up unparented. Update
14728 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14729 there's no title text. Fixes #79386.
14731 2007-03-27 Mike Kestner <mkestner@novell.com>
14733 * ListBox.cs : don't perform invalidations if the handle hasn't been
14734 created. [Fixes #80753]
14736 2007-03-27 Mike Kestner <mkestner@novell.com>
14738 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14741 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14743 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
14744 needed to implement Balloon.
14746 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14748 * ListViewItem.cs: In the constructors that take
14749 an array of strings, don't use ListViewSubItemCollection.AddRange
14750 method to add items, since we need to have a different behaviour (in
14751 the constructors we add an item for each null string, opposed to
14752 the behaviour of AddRange, which adds nothing).
14754 2007-03-26 Andreia Gaita <avidigal@novell.com>
14756 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14758 2007-03-26 Jackson Harper <jackson@ximian.com>
14760 * TextControl.cs: Draw and measure line endings when in non
14762 - When searching the text, count the end of the last line as a
14765 2007-03-26 Jackson Harper <jackson@ximian.com>
14767 * RichTextBox.cs: The selection_start and selection_end don't
14768 really track the correct tags for the selection. So we'll manually
14769 compute the correct tag here.
14771 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14773 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14774 and Continuous styles. Fixes #79469.
14776 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14778 * ToolStrip.cs: Implement Tooltips.
14779 * ToolStripItem.cs: Create internal method for determining tooltip.
14781 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
14783 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14785 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14787 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14788 it prevents a problem thak keeps icon visible after application
14791 2007-03-26 Everaldo Canuto <everaldo@simios.org>
14793 * NotifyIcon.cs: Balloon properties and methods created.
14795 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14796 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14798 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
14800 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14802 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14804 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
14805 parameter indicates which aspects were explicit/user-set.
14806 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14808 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
14810 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14811 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14812 SmallChange, and Value (2.0).
14813 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14815 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14817 * ListView.cs: Always set item_control.Width in LayoutDetails
14818 if View is Details. Setting it later in CalculateScrollBars
14819 in a not-so-corner scenario (the sum of columns width is
14820 not bigger than the ListView width when handle is created, and then
14821 that sum gets bigger by increasing the width of the columns)
14822 causes a very weird recursion path (which shouldn't be happening,
14823 since header_control sets it in CalculateScrollBars too). This bug
14824 appeared after Chris' fixes for handle created issues, so probably
14825 it's related to some handle-creation time.
14827 2007-03-23 Chris Toshok <toshok@ximian.com>
14829 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14830 case where there's an add row, just so we don't end up in a case
14831 where it's not displayed (this happens when the row is partially
14832 obscured). Fixes bug #79574.
14834 2007-03-23 Jackson Harper <jackson@ximian.com>
14838 * RichTextBox.cs: Preserve line endings in the lines text buffer,
14839 also added an enum that represents the line ending type.
14841 2007-03-23 Andreia Gaita <avidigal@novell.com>
14843 * NumericUpDown.cs: Fix logic so Text and Value properties are not
14844 messed with in every method call, but only from DownButton,
14845 UpButton, UpdateEditText() and ValidateText. Fixes #80346
14847 2007-03-23 Chris Toshok <toshok@ximian.com>
14849 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14850 format objects if the format spec is "". Fixes bug #80889.
14852 2007-03-22 Miguel de Icaza <miguel@novell.com>
14854 * ToolStripPanel.cs (Join): added stubs to build PDN3
14856 * Control.cs (AutoScrollOffset): Add.
14858 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
14859 property, its only implemented for Win32, on X11 it defaults to
14860 some hardcoded value.
14862 * ToolStripItem.cs (AllowDrop): Add property
14864 2007-03-22 Mike Kestner <mkestner@novell.com>
14866 * ListView.cs : in FullRowSelect Details mode, only enable box
14867 selection if the user clicks over the "item" column outside of the
14868 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
14870 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14872 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
14873 handle is not created yet.
14874 * Form.cs: Select: Don't call CreateHandle if the handle is already
14875 created, avoids a stack overflow on Windows when we are recreating
14877 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
14878 they are made visible, and override AfterTopMostControl to keep
14879 them on top when other controls are brought to front.
14880 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
14881 or force_*scroll_visible is true (old implementation always shows
14882 scrollbars when needed, no matter what auto_scroll was set to).
14883 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
14884 IsHandleCreated check.
14886 2007-03-22 Andreia Gaita <avidigal@novell.com>
14888 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
14889 row or col separator.
14890 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
14892 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14894 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
14896 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14898 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
14899 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
14900 every time. Fixes #80410.
14902 2007-03-22 Chris Toshok <toshok@ximian.com>
14904 * BindingSource.cs (AddNew): partially implement.
14906 remove a couple of NotImplementedException's
14907 to get bug #81148 closed.
14909 2007-03-22 Everaldo Canuto <everaldo@simios.org>
14914 - UpdateCursor method added to update the screen cursor.
14915 - GetAvailableCursor method added to return cursor for enabled tree,
14916 it searches for cursor on control and it's parent's for enabled control.
14917 - Call UpdateCursor method on setter of Cursor property.
14918 - On setter of Enabled call UpdateCursor when it is false, we need to
14919 change cursor to normal (or to this parent cursor) because cursor
14920 setting theres no effect to disabled controls.
14921 - Some minor source changes to follow the coding style guidelines.
14923 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
14926 2007-03-22 Chris Toshok <toshok@ximian.com>
14928 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
14931 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14933 * XplatUIX11.cs: Implement default locations for forms.
14934 * Form.cs: Completely rework startup location for forms. Fixes #79964.
14935 * Hwnd.cs: Add previous_child_startup_location (to track the current
14936 startup location for any child forms of the current form) and
14937 previous_main_startup_location (to track the startup location for
14938 the current toplevel form).
14940 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14942 * Control.cs: Don't trigger a layout if an implicit control is added
14943 that isn't visible. Also, don't notify the owner when an implicit control
14944 is added. (Owners shouldn't even know about their implicit controls.)
14946 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14948 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
14949 to save some re-layouts.
14951 2007-03-21 Everaldo Canuto <everaldo@simios.org>
14953 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
14956 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
14958 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
14959 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
14961 2007-03-21 Mike Kestner <mkestner@novell.com>
14963 * ListView.cs : disable selection update for non-left button clicks
14964 with mods and over selected items. [Fixes #80524]
14966 2007-03-20 Jackson Harper <jackson@ximian.com>
14969 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
14972 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14974 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
14975 very probably a more complicated calculation there. Update the
14976 textbox' ForeColor and BackColor when the ComboBox' colors are
14977 changed. Change the border change in LayoutComboBox to only affect
14978 the textbox, not all the calculations there. Seems to fix most of
14981 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14983 * ComboBox.cs: Handle Home and End keys as well as all combinations of
14984 modifiers + navigation keys as input keys, enables advanced text
14985 selection in the combobox (like Shift+Left Arrow for instance).
14986 ComboTextBox now overrides Focused and returns whatever
14987 ComboBox.Focused returns, since it really should be focused
14988 whenever the ComboBox is. Fixes #80795. Also make the border around
14989 the text box one pixel bigger, as mentioned in #79436.
14991 2007-03-20 Jackson Harper <jackson@ximian.com>
14993 * TreeView.cs: Don't offset the images, this was causing some
14994 artifacts when expanding/collapsing with images that were the
14995 exact height of the treenode.
14997 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14999 * TrackBar.cs: Query the theme for the correct value when the mouse
15000 moves and the thumb is pressed.
15001 * Theme.cs: Added TrackBarValueFromMousePosition
15002 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15003 implementation was updating the trackbar value when drawing, now
15004 the drawing methods only draw. Fixes #80900. Refactored the
15005 calculations out to TrackBarValueFromMousePosition and
15006 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15007 according to the mouse position whenever it wants to. Changed the
15008 light coloured pen when drawing the thumb from ControlLight to
15009 ControlLightLight, because the ControlLight is the same colour as
15010 the background so the 3D effect is lost.
15012 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15014 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15015 defined. Fixes #80784.
15017 2007-03-20 Marek Habersack <mhabersack@novell.com>
15019 * ContextMenuStrip.cs: align with the change introduced in
15022 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15024 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
15025 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
15028 2007-03-19 Chris Toshok <toshok@ximian.com>
15030 * Control.cs (WmPaint): don't make use of the Handle property
15031 after an event is emitted, as the user could have closed the
15032 form/destroyed the control. Store the Handle in a local variable
15033 and make use of that. Fixes bug #80768.
15035 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15037 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15038 behavior in X11 environments.
15040 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15042 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15043 because on setter of topmost we dont call SetTopmost when handle is not
15046 2007-03-20 Jackson Harper <jackson@ximian.com>
15048 * TextControl.cs: Need to use SelectionLength () not
15049 selection_length, since that var is reset to -1.
15050 - Draw the caret when we don't have focus.
15051 * TextBox.cs: The selectall actually doesn't occur until the first
15053 * TextBoxBase.cs: Need to update the caret position after a
15056 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15058 * ListView.cs: Enable scrolling when using Tile view.
15060 2007-03-20 Everaldo Canuto <everaldo@simios.org>
15064 * XplatUIDriver.cs: Abstract SetOwner method created.
15066 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
15067 must be implemented and was masked as todo.
15069 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
15072 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
15073 cheking for null owner to remove transient. The SetTopmost will be change
15076 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15077 SetTopmost. Now owned forms will work properly in win32 and X11.
15079 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
15081 * MdiWindowManager.cs: Update function name.
15082 * Form.cs: After closing a form MdiParent is always null.
15083 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15084 better what it should do: necessary book-keeping when the form is
15085 closed, it should not close the form itself.
15087 2007-03-19 Andreia Gaita <avidigal@novell.com>
15089 * ListViewItem.cs: Fix back and fore color. The subitems only
15090 use their own colors if they are set, otherwise use the listview's
15091 colors. Don't set default colors on constructor for subitem.
15094 2007-03-19 Mike Kestner <mkestner@novell.com>
15096 * ListView.cs : make box selection for Details views with
15097 FullRowSelect conform to MS behavior when clicking in the "item"
15098 column and clicking outside the defined columns.
15099 [Fixes case 5-6 of #80374]
15101 2007-03-19 Chris Toshok <toshok@ximian.com>
15103 * ScrollableControl.cs: create the controls from within the ctor,
15104 but don't actually add them until our handle is created. this
15105 fixes a NRE possibility jpobst found (if you override OnLayout in
15106 a subclass, it's called before your ctor). Also, add a
15107 IsHandleCreated guard to UpdateSizeGripVisibility as well.
15109 2007-03-19 Jackson Harper <jackson@ximian.com>
15111 * TextBox.cs: Reduce the amount of invalidation we do.
15112 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15113 some of them are true by default on MS.
15114 - Add some functions to reduce the amount of invalidates we do.
15115 * TextControl.cs: Less invalidation.
15117 2007-03-19 Chris Toshok <toshok@ximian.com>
15119 [ Fixes #81773, and *seems* to fix #81553 as well ]
15121 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15122 AccumulateDestroyedHandles. We need to do it *after* we send
15123 WM_DESTROY, as the user's code can access Control.Handle in
15124 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
15125 move the WM_DESTROY/zombie handling to before the call to
15126 XDestroyWindow. For some reason without this ordering
15127 FormTest.RecreateHandle hangs. This ordering is semantically
15128 equivalent, however, as XDestroyWindow is async anyway.
15130 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
15132 * RichTextBox.cs: Reset backcolor_set after setting default.
15134 2007-03-19 Chris Toshok <toshok@ximian.com>
15136 * ScrollableControl.cs: the scroll position should not effect the
15137 canvas size. commit patch from georgegiolfan@yahoo.com, which
15138 fixes some really bizarre behavior on resizing. Fixes bug #80778.
15140 2007-03-19 Chris Toshok <toshok@ximian.com>
15142 * ScrollableControl.cs: clean this up a bit. create the
15143 scrollbars in the ctor and just show/hide them as needed. Also,
15144 make hscroll_visible/vscroll_visible internal to Recalculate, and
15145 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15146 everywhere else. This seems to fix the scrollbars appearing
15147 beneath the content for me (i have *no* idea why that is,
15150 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
15152 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
15153 some redundacy for stuff in Anchor and Dock that base will take care of.
15156 2007-03-19 Mike Kestner <mkestner@novell.com>
15158 * ListView.cs : make box selection for Details views without
15159 FullRowSelect dependent on the text bounds, not item bounds.
15160 * ListViewItem.cs : add an internal property to obtain the TextBounds
15161 in Details view. [Fixes case 1-4 of #80374]
15163 2007-03-19 Andreia Gaita <avidigal@novell.com>
15165 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15166 we're < 2.0. #78448 && #80316
15168 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
15170 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15171 have the same style available as the previously selected one. Also,
15172 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
15174 2007-03-19 Jackson Harper <jackson@ximian.com>
15176 * TextControl.cs: Add an alignment property that all new lines
15178 - Make sure to use the align shift when calculating the line's X
15180 * TextBox.cs: Set the alignment on the document as well as on all
15181 the document lines.
15183 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15185 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15186 throw if setting the parent of an mdichild that already has an
15187 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15188 AssemblyProductAttribute in the assembly, use the type's namespace (as
15189 MS seems to do). CreateControl: don't create the handle if the control
15190 is not visible (according to MS behaviour and spec). SetTopLevel: Only
15191 create handle if the control is not a form. Change FocusInternal to
15192 virtual so that it can be overriden by Form.
15193 * TextBox.cs: Update call to FocusInternal.
15194 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15195 form is not a toplevel form when it's a mdi child, so update is_toplevel
15196 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15197 hasn't been created. Show (IWin32Window): Don't allow this overload for
15198 toplevel windows. CenterToParent/CenterToScreen/Select: create the
15199 handle as MS does. SetVisibleCore: if called on a MdiChild and the
15200 parent isn't visible yet, save the visibility and restore it when the
15201 parent is made visible.
15202 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15203 methods, since the visibility of the scrollbars can be changed from
15204 several places, not only from AutoScroll.
15207 2007-03-19 Jackson Harper <jackson@ximian.com>
15209 * RichTextBox.cs: Enable shortcuts by default.
15210 * TextBoxBase.cs: Add conditional shortcuts.
15212 2007-03-19 Everaldo Canuto <everaldo@simios.org>
15214 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
15216 2007-03-19 Chris Toshok <toshok@ximian.com>
15218 [ Fixes bug #80604]
15220 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15221 swallow the message we're waiting on, instead of delivering it, as
15222 this is only used for the WM_SHOWWINDOW raised from
15223 MapWindow/UnmapWindow, and the message needs to be generated
15224 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15225 before doing the Map/Unmap. Also make sure that the Hwnd is still
15226 alive after the message has been handled.
15228 *before* the window is shown.
15230 * Control.cs (CreateControl): guard a few more things inside the
15231 if (!is_created) block, as we might end up being called again -
15233 (WmShowWindow): call CreateControl if we're showing the control.
15235 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15237 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15238 controls without a handle if they have any parent with a handle. In
15239 Dispose add a check whether the handle is created or not before
15240 calling BeginInvoke, this removes the need of the extra disposing
15241 parameter (which was bogus anyway since it didn't prevent the
15242 invoke from happening, it only skipped the check for an existing
15243 handle, meaning that the invoke would call on an inexistent
15246 2007-03-19 Everaldo Canuto <everaldo@simios.org>
15248 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15249 appears in taskbar.
15251 2007-03-18 Everaldo Canuto <everaldo@simios.org>
15254 - Fixed a problem that dont show help button for messages with 3 buttons.
15255 - Refactory button size and position calculations, now dont use fixed
15256 values, also fixed button sizes (#80043) and form's border space.
15257 - AddButton method created, now all other AddButton methods call this one.
15258 - Some other source code cosmetic changes.
15260 2007-03-18 Jackson Harper <jackson@ximian.com>
15262 * RichTextBox.cs: Don't do this all fonts must match check if
15263 there is only one char selected.
15265 2007-03-18 Jackson Harper <jackson@ximian.com>
15267 * TreeView.cs: ScrollWindow works properly now, so we don't need
15268 to screw around with the scroll area. This fixes some artifacts
15269 when expanding and collapsing.
15271 2007-03-18 Jackson Harper <jackson@ximian.com>
15273 * TextBoxBase.cs: Allow updating the selection position when the
15274 cursor is outside the textarea, but we have a capture.
15275 * TextControl.cs: A special case for when the cursor is outside
15276 the bounds of the TB.
15278 2007-03-18 Jackson Harper <jackson@ximian.com>
15280 * TextBoxBase.cs: Remove image pasting code for now. There is no
15281 way to get an image on the clipboard right now anyways.
15283 * RichTextBox.cs: Use the new RTF Picture class for pictures.
15285 2007-03-18 Everaldo Canuto <everaldo@simios.org>
15288 - Set window properties in constructor intead of on CreateParams.
15289 - Remove topmost from Window ExStyle.
15290 - Set ShowInTaskbar to false.
15291 - Set form border to FixedDialog.
15292 - Some cosmetic changes and remove unneeded comments.
15293 - It fixes itens 2,3 and 4 of bug #80043.
15295 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
15297 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15298 none was explicitly set. Fixes part of bug #79949.
15300 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
15302 * ToolStripComboBox.cs: Add AutoComplete*.
15304 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
15306 * ToolStripComboBox.cs: Add FlatStyle.
15308 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
15310 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15311 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15313 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15315 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15316 CheckBox.cs, RadioButton.cs, BindingSource.cs,
15317 DataGridColumnStyle.cs: Remove warnings.
15319 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
15321 * Menu.cs: MergeMenu: Check menu argument for null before looping over
15323 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15324 visibility of mdi child forms. FormSizeChangedHandler: update the
15325 maximized size if size has changed while maximized.
15326 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15327 creating the handle.
15328 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15329 avoid creating the handle if not created.
15330 * XplatUI.cs: Update debug output.
15331 * XplatUIStructs.cs: Added ToString's for a couple of structs.
15333 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
15335 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15337 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
15338 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15339 Implement keyboard shortcuts.
15341 2007-03-15 Everaldo Canuto <everaldo@simios.org>
15343 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15344 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
15345 ColorDialog and all derived classes.
15347 2007-03-15 Everaldo Canuto <everaldo@simios.org>
15349 [ Fixes bug #79828 ]
15352 - Rename ToolBarButtonInfor to ToolBarItem.
15353 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15354 - Maintain an array of ToolBarItem, used instead of ToolBarButton
15355 collection to be able add same button more than one time on a toolbar.
15356 - Refactory all properties and methods to use ToolBarItem.
15358 * ToolBarButton.cs:
15359 - Remove all propeties and methods that is now in ToolBarItem.
15360 - Rectangle propery now gets the rectangle from first ToolBarItem to
15361 mimic win32 behavior.
15362 - Size calculation and layout methods also removed.
15364 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15365 ToolBarItem instead of ToolBarButton to right drawing buttons when
15366 same button/separator was added more than one time to ToolBar.
15368 * ThemeNice.cs: Same as above.
15370 2007-03-15 Andreia Gaita <avidigal@novell.com>
15372 * XplatUIX11.cs: Fire extra MouseMove events right after
15373 MouseDown and MouseUp, emulating win32's <censored> behaviour
15374 for apps that rely on it.
15376 2007-03-15 Jackson Harper <jackson@ximian.com>
15379 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15380 it is drawn on the controls client window and there is no NC
15382 - Set the background color to gray on 2.0 when we are readonly.
15384 2007-03-15 Chris Toshok <toshok@ximian.com>
15386 [ Fixes bug #81144 ]
15388 * XplatUIX11.cs: implement VirtualScreen independently of
15389 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15392 2007-03-15 Chris Toshok <toshok@ximian.com>
15394 * Hwnd.cs: add an internal field for the cached_window_state.
15396 * XplatUIX11.cs: cache the window state, invalidating the cache
15397 (and thus re-querying the X server) only when we see an update to
15398 the _NET_WM_STATE property.
15400 2007-03-15 Chris Toshok <toshok@ximian.com>
15402 * BindingSource.cs: get a lot of the unit tests working.
15404 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
15406 * Control.cs: Modify UpdateStyles to store distances when bounds >=
15407 0 instead of just bounds > 0. [Fixes bug #80912]
15409 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
15411 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15414 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
15416 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15417 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15418 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15419 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15421 2007-03-15 Chris Toshok <toshok@ximian.com>
15425 * Control.cs: add Ivan's fix for 81101, with a slight modification
15426 - you can set control.Target to null.
15428 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
15430 * ToolStripItem.cs: If our OwnerItem is null, we can't use
15431 HideDropDown, use Hide instead to prevent an NRE.
15434 2007-03-14 Jackson Harper <jackson@ximian.com>
15436 * TextBoxBase.cs: Mess with the creation stuff a little. We need
15437 to calculate the document before the handle is created, in some
15438 cases. (Actually just one case).
15440 2007-03-14 Jackson Harper <jackson@ximian.com>
15442 * TextBoxBase.cs: Need to display the caret after letting the base
15443 wndproc handle the focus methods, because the caret display
15444 methods check the focus state.
15445 - Try to display the caret after updating it's position with SelectWord.
15446 - Don't need to do an immediate update on this recalc, since there
15447 will be an invalidate anyways.
15449 2007-03-14 Jackson Harper <jackson@ximian.com>
15451 * TreeView.cs: Some workarounds so that we can match event order a
15454 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
15456 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15457 #80803. Avoid NullReferenceException when Control does not have
15458 parent. Fixed different blinkstyle issues. Only subscribe to Tick
15459 event a single time. Only draw error icon when control is created and
15460 visible. Fixes failing unit tests.
15462 2007-03-14 Andreia Gaita <avidigal@novell.com>
15464 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15465 Selecting events. Fire Leave and Enter events when changing tabs.
15467 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
15469 * TreeView.cs: Add TreeViewNodeSorter.
15470 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15472 2007-03-14 Chris Toshok <toshok@ximian.com>
15474 * Form.cs: go ahead and remove the RecreateHandles that jpobst
15475 removed earlier and I had him add back it. It turns out metacity
15476 *does* in fact handle the MOTIF_WM_HINTS property changing, it
15477 just doesn't redraw the window titlebar until you resize the
15478 window. This also means we aren't recreating the entire window
15479 hierarchy on X when you change this property. And it looks better
15482 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15485 * ListView.cs: Collecting selection information
15486 is now done in SelectedIndexCollection rather than in
15487 SelectedListViewItemCollection. This is done so we can
15488 have the selection information code in one single place
15489 (virtual mode selection information entirely depends on
15490 SelectedIndexCollection).
15492 2007-03-13 Miguel de Icaza <miguel@novell.com>
15494 * ErrorProvider.cs: Add stubs for ISupportInitialize
15496 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15498 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15499 in the right order with the right values, from the Checked property,
15500 just as MS does (instead of triggering them from ListView).
15502 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15504 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15506 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
15507 the correct handler in OnItemCheck method (ItemCheckEventHandler
15508 instead of EventHandler). This used to throw an InvalidCastException.
15510 2007-03-13 Jackson Harper <jackson@ximian.com>
15512 * TextBoxBase.cs: Calculate the document before the handle is
15513 created, so there isn't an extra invalidate called.
15515 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
15517 * Form.cs: Don't set owner in ShowDialog until we are sure
15518 that we aren't going to throw an exception. [Fixes bug #80773]
15520 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
15522 * TreeView.cs: Make it compile.
15524 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15526 * Control.cs: Another place we don't call SizeFromClientSize.
15527 * Form.cs: Another place we don't call SizeFromClientSize.
15530 2007-03-12 Jackson Harper <jackson@ximian.com>
15532 * TreeView.cs: Basically emulating some strangness here with
15533 exanding nodes and setting node positions when windows aren't
15535 - Also attempting to walk the node tree less than previously, and
15536 just use visible order calculations for determining offsets.
15537 - oops made scrolling backwards.
15538 * TreeNode.cs: We need to start nodes with a zero visible order,
15539 because the order calcs are based on the first nodes order.
15541 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15543 * Form.cs: Don't exit the program if RecreateHandle is called on
15546 2007-03-12 Chris Toshok <toshok@ximian.com>
15548 * XEventQueue.cs: remove the use of PostQuitState.
15550 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
15551 WM_QUIT message in GetMessage, return false (and if we're in the
15552 nested WaitForHwndMessage, repost the WM_QUIT message).
15554 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15556 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15557 or the MaximizeBox properties. [Part of bug #80640]
15559 2007-03-12 Everaldo Canuto <everaldo@simios.org>
15561 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15564 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15566 * ToolStripItem.cs: Fix some tests I broke by checking Visible
15567 instead of visible.
15569 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
15571 * FileDialog.cs: Use text of File name combobox to determine what
15572 files the user selected. Added tokenizer to parse the file names.
15575 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
15577 * Control.cs: We can't call SizeFromClientSize in the constructor,
15578 but we still need to do the same work, so make an internal version.
15581 2007-03-12 Jackson Harper <jackson@ximian.com>
15585 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15588 2007-03-12 Jackson Harper <jackson@ximian.com>
15590 * TextBoxBase.cs: Now that the handles are being created a little
15591 later, we need to make sure that the document is recalculated when
15592 the handle is created.
15594 2007-03-11 Everaldo Canuto <everaldo@simios.org>
15596 * Theme.cs: GetLinkFont abstract method added.
15599 - Remove CalcTrimRectangle, no longer needed.
15600 - Factor also remove, position issues must be fixed in libgdiplus.
15601 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15602 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
15603 care about font used to draw links.
15604 - Set TabStop to true when control is "Selectable", control is selectable
15605 when have one or more links. Fixes #80501 (test case is also added).
15606 - Set the LinkArea values after links change, LinkArea values must be
15607 based in first link position and size, a test case was created.
15608 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
15609 the attribute must be true LinkArea.Length > 0. The same was applied to
15612 * ThemeWin32Classic.cs:
15613 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
15615 - Use CPDrawStringDisabled to draw disabled text instead of hard code
15617 - Draw focus rectangle for every parts focused, including parts that
15618 is on another line, its because regions returns various rectangles
15619 and not only one. Needed to mimic W32 look.
15620 - Uses Graphics.Clip to delimite region painted, it mean that now
15621 complete text is passed to DrawString, with this we solve layout
15622 issues without create another text renderer.
15623 - Uses Region.Intersect to fix some flickers problems, now only needed
15624 parts will redrawed.
15625 - This changes fixes #79614 and some other unreported issues, on Linux
15626 some layout problems still remain, the problem is under
15627 MeasureCharacterRanges but it is an libgdiplus bug.
15629 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
15631 * TextBox.cs: Set for foreground color.
15632 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15633 this is already done in Control.
15635 2007-03-10 Jackson Harper <jackson@ximian.com>
15637 * TextBox.cs: Set the background color, but reset the
15638 backcolor_set flag which is just for the user setting the
15641 2007-03-09 Chris Toshok <toshok@ximian.com>
15643 * Control.cs: really remove the call to XplatUI.SetVisible from
15644 CreateHandle(), like I said I did when I merged the branch.
15646 * BindingSource.cs: implement some more of this stuff.
15648 2007-03-09 Jackson Harper <jackson@ximian.com>
15650 * TextBox.cs: Don't explicitly set our background colors.
15652 * TextBoxBase.cs: Draw readonly text.
15653 - Need to invalidate when backcolor or readonly are changed.
15655 2007-03-09 Jackson Harper <jackson@ximian.com>
15657 * TextBoxBase.cs: Don't set the forecolor until the handle is
15659 - Do not raise OnPaint, and removed some old debug code.
15661 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
15663 * ScrollableControl.cs: Fix mouse wheel scrolling.
15665 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15667 * Control.cs: Wire up MouseDoubleClick event.
15669 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
15671 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15673 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15674 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15675 item is added. This logic was moved to ToolStrip.OnItemAdded.
15678 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15680 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15682 2007-03-08 Jackson Harper <jackson@ximian.com>
15684 * TreeView.cs: Show the correct image for selected node (this used
15685 to work, not sure how the code got deleted). Also implemented 2.0 feature
15688 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15691 * ListViewItem.cs: Cache index in items when retrieving them
15694 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15696 * ToolStripItem.cs: Don't return the explicit_size if we are using
15697 AutoSize. Fixes invalidation issue when user has explicitly set a
15698 size and has AutoSize = true.
15700 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15702 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15704 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15706 * DataGridView.cs: Remove event handler from DataView when a
15707 DataTable is used as DataSource.
15709 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
15711 * Control.cs: Create internal setter for client_size to allow it to be
15712 set without triggering resizing code.
15713 * Form.cs: Calculate client_size in constructor, only change client_size
15714 in FormBorderStyle property if Handle has been created.
15715 [Fixes #80574, #80791]
15717 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
15719 * SystemInformation.cs: Add TerminalServerSession.
15721 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15723 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15726 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15728 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15729 Handle before we were supposed to. Now checks ActivateOnShow property
15731 * Control.cs: Add internal ActivateOnShow property.
15732 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15733 for ActivateOnShow.
15734 * Hwnd.cs Remove no longer needed no_activate field.
15736 2007-03-07 Jackson Harper <jackson@ximian.com>
15738 * TreeView.cs: Implement owner draw tree nodes. And a couple more
15740 * DrawTreeNodeEventHandler.cs: Add
15741 * DrawTreeNodeEventArgs.cs: Correct default value.
15743 2007-03-07 Chris Toshok <toshok@ximian.com>
15745 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15746 to be called before NativeWindow.WndProc. Put the HwndCreating
15747 magic there to hook up our Hwnd's to handles.
15749 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
15751 * DataGridView.cs: Comment out debug code.
15753 2007-03-07 Chris Toshok <toshok@ximian.com>
15755 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15756 to make the rest of the world happy]
15758 * Control.cs (CreateHandle): there's no need to call
15759 XplatUI.SetVisible here, it's effectively done by
15760 XplatUI.CreateWindow on X now, and always was on windows.
15762 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15763 shortcircuit out of the loop if we have a message loop running on
15766 [Changelog from merge]
15768 2007-03-05 Chris Toshok <toshok@ximian.com>
15770 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15771 causes handle creation.
15773 2007-02-28 Chris Toshok <toshok@ximian.com>
15775 * ApplicationContext.cs: Add a flag to make sure we only raise the
15776 ThreadExit event once (ExitThreadCore can be indirectly called
15777 from a few places.) I don't like the additional flag, but it
15778 makes the event ordering/count correct.
15780 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15781 without locking the collection. An enumerator doesn't give us any
15782 protection from modification anyway. Lock the thread hash and
15783 replace the complicated enumerator loop with a foreach.
15784 (Application.CloseForms): make internal so it can be called from
15785 ApplicationContext. This should probably be moved to MWFThread.
15786 (Application.ExitThread): don't call MWFThread.Current.Exit()
15787 here. just call XplatUI.PostQuitMessage. We'll exit the thread
15788 when the runloop exits (in response to WM_QUIT.)
15789 (Application.RunLoop): add a comment (and check) for
15790 context.MainForm being null after setting context.MainForm.Visible
15791 = true. This is because you're perfectly free to dispose of a
15792 form in VisibilityChanged. Chalk this up to another case where we
15793 need to synchronously generate WM_ACTIVATE from Control.Show.
15794 Also, add handling for WM_QUIT here so we'll exit the loop.
15796 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
15797 fact that we don't wait if we're only unmapping the whole_window
15798 makes me a bit nervous, but it doesn't seem to cause any problems
15801 also, add a comment about the stupid, broken and wrong resetting
15802 of PostQuitState to false in GetMessage().
15804 In PostQuitMessage, we need to add a WM_QUIT message to the
15805 thread's queue. We use the FosterParent to get the right
15808 Lastly, in SetVisible, we need to unmap both windows, since the
15809 waiting only happens when we're unmapping the client window. So
15810 now, the *only* time we unmap just the whole_window is in the hack
15811 for resizing a control to 0,0.
15813 2007-02-21 Chris Toshok <toshok@ximian.com>
15815 * Application.cs (CloseForms): rewrite this so that we don't
15816 modify the list while we're traversing it.
15818 2007-02-20 Chris Toshok <toshok@ximian.com>
15820 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15821 of OnHandleCreated.
15822 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15823 handle is created. otherwise we'll create it here.
15824 (VerticalScrollEvent): same here.
15826 * Application.cs (CloseForms): call Form.Dispose, don't post
15829 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15830 here. Application should Dispose() of the Form's.
15832 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15833 WM_DESTROY as well.
15834 (MapWindow,UnmapWindow): only actually do the waiting for
15835 SHOWWINDOW if the control we're dealing with is a Form.
15836 (CreateWindow): if the control isn't a form, SendMessage
15837 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15839 * Control.cs (SetVisibleCore): always use is_visible here, not
15840 value. If we use value, we can end up re-setting something
15841 visible if, for instance, you do Control.Hide() in a delegate
15842 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15844 2007-02-20 Chris Toshok <toshok@ximian.com>
15846 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15847 the message we need. PeekMessage returning false should not be a
15848 condition under which we exit the loop.
15850 2007-02-15 Chris Toshok <toshok@ximian.com>
15852 * Control.cs (Refresh): only refresh if we've got a handle and are
15854 (CreateAccessibilityInstance): CreateControl() here.
15855 (UpdateChildrenZOrder): complicate the code loop even more by
15856 taking into account controls that haven't had their handle
15857 created, and those that aren't visible. But on the flip side,
15858 simplify the code by splitting it into two loops. one which
15859 builds up the list of child controls we're interested in, and the
15860 other that sets the z order of those children.
15862 2007-02-14 Chris Toshok <toshok@ximian.com>
15864 * Control.cs: Control.AccessibilityObject causes the control to be
15865 created, not just the handle.
15867 2007-02-14 Chris Toshok <toshok@ximian.com>
15869 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
15870 problem on X where a window might have its handle created (and be
15871 visible) while the window is unmapped. calling XConfigureWindow
15872 on an unmapped window is bad, and generates X errors.
15874 2007-02-13 Chris Toshok <toshok@ximian.com>
15876 * Control.cs (CreateHandle): don't loop over our children setting
15877 their parent here. do it when in WndProc when we're shown.
15878 (UpdateChildrenZOrder): make this internal so we can call it from
15880 (WndProc): for WM_SHOWWINDOW, reparent the child control after
15881 creating its handle. Also, remove the calls to PerformLayout from
15882 here. they're done in ScrollableControl.OnVisibleChanged. Also,
15883 OnVisibleChanged only seems to be called directly here for the
15884 toplevel control. It's propagated down the window hierarchy by
15885 calls to child.OnParentVisibleChanged.
15886 (OnVisibleChanged): don't do layout here - it's done (oddly
15887 enough, according to a glance at stack traces on ms.net..) in
15890 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
15891 z order of our children before calling PerformLayout.
15893 2007-02-12 Chris Toshok <toshok@ximian.com>
15895 [big change, fixes #80020]
15897 * AccessibleObject.cs: we need to make owner internal again to fix
15898 some of ControlAccessibleObject.
15900 * Control.cs: lots of changes here. add support for WM_CREATE,
15901 for which we generate OnHandleCreated. Remove the OnHandleCreated
15902 call from CreateHandle. Also add support for WM_SHOWWINDOW where
15903 we create child controls. leave the MonoTODO's for the
15904 accessibility calls, but fix the exceptions so the tests pass.
15906 Add the InvalidOperationExceptions to Invoke methods, and remove a
15907 couple of InvokeInternal methods we aren't using.
15909 Also, add a couple of CreateHandle calls in places where we know
15910 the handles are being created but our code doesn't reference
15913 Make SetVisibleCore call OnVisibleChange if the handle isn't
15914 created. If the handle is created, we rely on XplatUI.SetVisible
15915 generating the event synchronously.
15917 Lastly, make sure we don't use this.Handle inside CreateHandle,
15918 because we can call back into client (and that code can dispose of
15921 * XplatUIStructs.cs: misc/cleanup.
15923 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
15924 although we don't populate the wParam properly.
15925 (CreateWindow): generate WM_CREATE.
15926 (MapWindow,UnmapWindow): make these calls synchronous, at great
15927 performance expense (particularly in the unmap case), to match
15930 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
15932 (set_MdiParent): don't recreate the handle unless it's been
15935 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
15938 * NativeWindow.cs: this is probably the weirdest part of the
15939 patch. We need a way to link up the window being created to the
15940 WM_CREATE message. Since we can only be creating one window at a
15941 time on a given thread, we keep track of a per-thread reference so
15942 we can dispatch it properly. We also need to keep track of the
15943 Hwnd currently being created so that the win32 backend doesn't
15946 * XplatUIWin32.cs: a similar change to the one we made in
15949 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
15951 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
15952 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
15953 to draw the menu shortcut string.
15955 2007-03-07 Jackson Harper <jackson@ximian.com>
15957 * TreeNode.cs: Add the 2.0 collapse method.
15959 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15961 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
15963 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15965 * DataGridView.cs: Change DataSource will clear column and row
15966 lists. Call Invalidate() to reflect DataSource change.
15968 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15970 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
15971 and a new row is added to it.
15973 2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
15975 * DataGridView.cs: Add columns when DataSource is en empty list but
15976 is a System.Data.DataView (from a System.Data.DataTable).
15978 2007-03-06 Andreia Gaita <avidigal@novell.com>
15980 * Label.cs: Implement AutoEllipsis (2.0)
15982 2007-03-06 Jackson Harper <jackson@ximian.com>
15984 * TreeView.cs: Implement 2.0 TopNode setter property.
15985 - Use a local var instead of the skipped_nodes field for computing
15986 how many nodes to skip. Otherwise we won't scroll because the
15987 valuechanged handler checks if skipped_nodes is equal to the new
15989 - Implement 2.0 Sort method.
15990 - Add useless 2.0 DoubleBuffer property
15991 - Implement 2.0 LineColors property. Lets you change the color of
15992 the lines in the tree. Terribly useful for creating non cohesive
15994 - Implement 2.0 image key feature.
15996 2007-03-06 Jackson Harper <jackson@ximian.com>
15998 * TreeView.cs: We can't get the bounds of the nodes before raising
15999 the AfterSelect event, because that event could change the node's
16000 bounds (scrolling, font change, etc).
16002 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16004 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16005 * Form.cs: Don't recreate handle when creating FormWindowManager, just
16006 update window styles. In CreateParams us VisibleInternal instead of
16007 VIsible to get the actual visible flag set for this form.
16008 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16009 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16010 handle the case when the form is already maximized, in which case
16011 it should be restored. Fixes #81043.
16013 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16015 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16017 2007-03-05 Jackson Harper <jackson@ximian.com>
16019 * TreeViewHitTestInfo.cs: implement.
16021 2007-03-05 Jackson Harper <jackson@ximian.com>
16023 * InternalWindowManager.cs: class status fix.
16025 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16027 * InternalWindowManager.cs: All windows that have a parent
16028 are confined to their parent when they're being moved.
16031 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
16033 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16034 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16036 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16038 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16039 buttons invisible before deciding which ones should be visible
16040 (fixes minimize/maximize buttons showing up in toolwindows). Remove
16041 an unused variable.
16042 * InternalWindowManager.cs: Remove warning.
16044 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16046 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16047 to throw an InvalidOperationException is virtual mode is being used.
16049 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
16051 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16052 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16053 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16054 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16055 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16056 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16058 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16060 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16061 driver.KeyboardDelay from XplatUI.KeyboardDelay
16062 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16063 (patch by Sergey Volk)
16065 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16067 * ToolWindowManager.cs: Added, contains logic for
16069 * CreateParams.cs: Add a few helper methods and an
16070 internal variable to know which control the CreateParams belongs
16072 * Control.cs: Call Form.ChangingParent when the
16073 parent is about to be changed.
16074 * XplatUIX11.cs: DeriveStyles (): Set
16075 caption_height for all windows that have captions and are children.
16076 Update to use ToolWindowManager instead of InternalWindowManager
16078 * XplatUIWin32.cs: Set fake window styles for all
16079 windows that have window managers.
16080 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16081 now duplicated for mdi windows when they are
16082 maximized, first for the buttons the window itself has, then for
16083 the buttons that appear in the menu bar. Makes things a little
16084 easier). Updated UpdateWindowDecorations, SetWindowState and the
16085 mouse eventhandlers accordingly.
16086 * Form.cs: Add ChangingParent (), contains the
16087 logic of what should happen when the parent changes. In MdiParent
16088 don't set things that ChangingParent () is doing. When handling
16089 WM_CLOSE, we can close the form if there are any other modal forms
16090 and the current form is a descendent of the modal form.
16091 * InternalWindowManager.cs: A lot of refactoring,
16092 the title buttons are now extracted to a separate container class
16093 that takes care of all button code (clicks, tooltips, etc). Moved
16094 Iconic|Maximized|Normal Bounds properties to this class from
16095 MdiWindowManager, so that the window state logic can succeed for
16096 other than mdi wm's. Implemented general window state change logic.
16097 Moved CreateButtons to ThemeWin32Classic, since the theme might
16098 override which buttons are available when as well as the exact
16100 * FormWindowManager.cs: Added, contains logic for
16102 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16103 which buttons go where (and if they are at all visible).
16104 Removed special handling of maximized windows, since they aren't special.
16105 In DrawManagedWindowDecorations don't try to draw the text if it is
16107 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
16108 use whatever the wm gives us.
16110 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
16112 * ButtonBase.cs: Add 2.0 properties.
16113 * Button.cs: Override Draw for 2.0.
16114 * Control.cs: Add Entered and Selected properties.
16115 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16116 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16117 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16119 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16121 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
16123 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
16125 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
16127 * XplatUIWin32.cs: Register a new class with Windows each time we get
16128 a new ClassStyle. [Fixes bugs #79432, #80817]
16129 * Controls.cs: Set the correct ClassStyle in CreateParams.
16130 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16132 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
16134 * ListView.cs: Add fireEvent argument to ReorderColumn since the
16135 ColumnReordered event must not be signaled when modifying DisplayIndex
16136 of a ColumnHeader. Added internal ReorderColumns method which takes
16137 care of drawing, and updating the internal DisplayIndex of the
16138 ColumnHeader. Added AddColumn method which is invoked from
16139 ColumnHeaderCollection when adding or inserting columns, and which
16140 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16141 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16142 Recalculated dispay indices after removing a ColumnHeader.
16143 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16144 match MS. Allows last display index to be returned after ListView
16145 is disposed. Update actual location of ColumnHeader when DisplayIndex
16148 2007-03-01 Everaldo Canuto <everaldo@simios.org>
16150 * LinkLabel.cs: Improve CalcTrimRectangle.
16152 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16154 2007-02-28 Everaldo Canuto <everaldo@simios.org>
16156 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16157 get rectangle as a result value.
16159 2007-02-28 Everaldo Canuto <everaldo@simios.org>
16161 * LinkLabel.cs: Theres some diferences between rectangle return from
16162 MeasureCharacterRanges and the area used for DrawString to fix this
16163 CalcMeasurementFactor method was created, it calcules the diferences
16164 to be use later to adjust rectangle in draw operations. Fixes #80473.
16166 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16167 to adjust draw rectangle.
16169 2007-02-27 Everaldo Canuto <everaldo@simios.org>
16171 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16172 text and some other changes to reduce and optimize source code.
16174 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
16176 * RadioButton.cs: Implement 2.0 event.
16177 * RelatedImageListAttribute.cs: Implement new class.
16179 2007-02-27 Everaldo Canuto <everaldo@simios.org>
16181 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16183 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
16185 * CheckBox.cs: Implement 2.0 functionality.
16187 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16189 * ListView.cs: Refactor Add and AddRange methods of
16190 ListViewItemCollection, to not update the ListView
16191 everytime an item is added in AddRange. Also move the update
16192 code to a new CollectionChanged method, and call it
16193 from other methods that need it as well (this should also fix some
16194 bugs when Sorting is used).
16196 2007-02-27 Jackson Harper <jackson@ximian.com>
16198 * TextControl.cs: Try to never let the caret stay in a non-text
16200 * TextBoxBase.cs: Update the caret.
16202 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
16204 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16205 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16206 delete POINT structure, duplicate of one in XplatUIStructs.
16207 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16209 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
16211 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16212 edit box since otherwise the Label would immediately be set (even if
16213 the user did not modify the label). In OnKeyDown set Handled to true
16214 if Return or Escape was pressed. In ColumnHeaderCollection unlink
16215 columns that are to be removed. In ListViewItemCollection unlink items
16216 that are to be removed.
16218 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
16220 * TextRenderer.cs: If we set a GDI clip region, we need to clear
16221 it when we are done. [Fixes bug #80949]
16223 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16225 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16227 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16229 * ListView.cs: I forgot to commit the changes for ListView
16230 in my previous patch.
16232 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16234 * Clipboard.cs: Partially implement an overload of SetDataObject.
16235 * Form.cs: Implement ShowWithoutActivation.
16236 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16238 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16240 This is a first set of changes to make the Virtual mode works,
16241 by avoiding the retrieval of ListViewItem instances until
16244 * ListView.cs: Store item position in the ListView instead of the
16245 ListViewItem, this way we don't request the Bounds property of
16246 ListViewItem inside the ListView calculations, as well as cache the item
16247 size in item_size field. Store indexes instead of ListViewItem
16248 instances in the matrix used by icon view. Add a ItemMatrixLocation
16249 struct to hold the row and col info of the matrix info.
16251 * ListViewItem.cs: Don't store the location anymore, and only cache
16252 the rectangles for GetBounds. Use the ListView.GetItemLocation
16253 method to retrieve the actual location.
16255 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16257 * TextRenderer.cs: Add clipping support, thanks to George.
16260 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
16262 * ListViewItem.cs: Cancel label edit when item is removed from
16264 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16265 event before the edit textbox is displayed. Added CancelEdit method
16266 which is used end to editing while ignoring the value set by the
16267 user. In EndEdit, set focus to ListView to avoid losing focus to
16268 other controls. In ListViewItemCollection.Clear, cancel editing of
16269 any of the items. In Remove, cancel editing of item being removed.
16270 Avoid udplicate code by modifing RemoveAt to invoke Remove.
16272 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
16274 * FileDialog.cs: Update FSEntry when move is successful. Fixes
16277 2007-02-23 Everaldo Canuto <everaldo@simios.org>
16279 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
16280 compatible with non X11 systems. Fixes #80901.
16282 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
16284 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16285 whether the item should be unselected and reselect. We do no want this
16286 when we're starting to edit the label. Do not fire the
16287 SelectedIndexChanged event from ListView when its already been fired
16288 by modifying ListViewItem.Selected. Fixes bug #80943.
16290 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16292 * TextRenderer.cs: Previos commit logic was backwards.
16294 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
16296 * TextRenderer.cs: Don't add padding on MeasureText if we were
16297 sent the NoPadding flag.
16299 2007-02-23 Everaldo Canuto <everaldo@simios.org>
16301 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16302 after DrawButton. To prevent image overlaps button borders SetClip and
16303 ResetClip added before and after draw image. Fixes #79129.
16305 2007-02-23 Everaldo Canuto <everaldo@simios.org>
16307 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
16308 window size, it fix problem when you run under win32 that theres
16309 Size diferent than ClientSize. Also fix controls size and positions
16310 to mimic Win32. Fixes #80837.
16312 2007-02-22 Everaldo Canuto <everaldo@simios.org>
16314 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
16315 menu area to fix some problems for non X11 systems. Fixes #80613.
16317 2007-02-22 Jackson Harper <jackson@ximian.com>
16319 * TreeNode.cs: When a node is expanded, set its is_expanded flag
16320 even if it doesn't have any children.
16322 2007-02-22 Jackson Harper <jackson@ximian.com>
16324 * TreeView.cs: Calculate the top node 'on the fly', this
16325 eliminates issues where you need to click on the tree before
16326 scrolling it to get the top node computed correctly.
16327 * TreeNodeCollection.cs: We don't need to mess with the top node
16330 2007-02-22 Jackson Harper <jackson@ximian.com>
16332 * DataGridViewRow.cs: Fix typo so height can actually be set.
16333 Patch by Peter Grimm.
16335 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
16337 * FileDialog.cs: Fixed support for renaming files and directories.
16338 * ListView.cs: Do not lose focus when edit is canceled. Process
16339 Escape as regular key (to prevent closing of dialogs).
16341 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
16343 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16344 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16346 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
16348 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16349 did not modify label.
16350 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16351 modified the text. Reset Label when user presses Escape in edit mode.
16352 Move focus to ListView after having cancelled or finished editing the
16355 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
16357 * ComboBox.cs: Removed unnecessary initializations. Marked items field
16358 private. Clear textbox when Text is set to null and SelectedIndex is
16360 * FileDialog.cs: Removed unnecessary initializations. Removed
16361 workarounds for ComboBox bugs that are now fixed. Modified
16362 DefaultExt, InitialDirectory and Title property to change null to
16363 zero-length string in getters. Avoid directly accessing fields.
16365 2007-02-20 Jackson Harper <jackson@ximian.com>
16367 * TextControl.cs: Remove RecalAlignments call, that was some
16368 debugging leftovers.
16369 - Don't use the line indent when we shouldn't.
16370 * RichTextBox.cs: Add support for paragraph left indents.
16372 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16374 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16375 Seems like the class status pages doesn't catch params differences.
16377 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
16379 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16381 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
16383 * ComboBox.cs: Setting Text should have no effect if item text of
16384 selected item exactly matches value. First lookup text using
16385 case-sensitive comparison, and fallback to case-insensitive comparison.
16386 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
16387 allow startIndex to be last index. Changed ArgumentOutOfRangeException
16388 paramname to match MS. Restart from first item if string is not found
16389 after startIndex. Fixed paramname of ArgumentNullException that is
16390 thrown for null value in ObjectCollection.Contains.
16392 2007-02-19 Everaldo Canuto <everaldo@simios.org>
16394 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16396 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16398 * ListControl.cs: In SelectedValue use value.Equals to compare for
16399 equality instead of ==, otherwise it will fail for strings.
16402 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16404 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16405 since the caret won't show up unless ShowSelection is true.
16408 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16410 * Application.cs: When disabling all forms but the main form, do not
16411 disable any descendants of the main form (such as mdi children or
16412 other parented forms). Fixes #80822 on Windows.
16413 * Form.cs: If we have a parent, set the WS_CHILD style.
16414 * Control.cs: Update the window styles if the control whose parent has
16415 changed is a form (the WS_CHILD style has to be switched).
16417 2007-02-19 Everaldo Canuto <everaldo@simios.org>
16419 * XplatUIStructs.cs: MsgUIState structure added.
16421 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16423 * FileDialog.cs: Removed need for separate fileName field. On 2.0
16424 profile, do not check filename(s) for illegal character if filename(s)
16425 were set non-interactively but always check on 1.0 profile. Fixed NRE
16426 in DefaultExt and only strip off first leading dot. Improve exception
16427 message when invalid Filter is set. Do not ignore InitialDirectory if
16428 it does no exist. Store specified Title, and if empty use default
16429 title (depending on type of dialog). Added an internal DialogTitle
16430 property for retrieving dialog title. Fixed logic of displayed dir to
16431 more closely match MS. Avoid setting ComboBox.Text to a zero-length
16432 string as its buggy.
16433 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16434 FileName is a zero-length string (it can never be null). Override
16435 DialogTitle property to set default title of dialog box.
16436 * SaveFileDialog.cs: Override DialogTitle property to set default
16437 title of dialog box.
16439 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
16441 * FileDialog.cs: Modify default text of filename and filetype labels
16442 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16443 after we've updated the SelectedIndex. Fixes part of bug #80887.
16444 * SaveFileDialog.cs: Set text of filetype label.
16446 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16448 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16449 label field. Needed by latest Jackson's fixes for ListView.
16451 2007-02-16 Andreia Gaita <avidigal@novell.com>
16453 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
16454 print preview images.
16456 2007-02-16 Jackson Harper <jackson@ximian.com>
16458 * ListView.cs: Make AfterLabelEdit work correctly.
16459 * FileDialog.cs: After changing the name of the folder, we have to
16460 make sure that it is created, or that we pop up an error because
16463 2007-02-16 Jackson Harper <jackson@ximian.com>
16465 * X11Dnd.cs: Implement aliases on mime handlers, so things like
16466 System.String are mapped to text.
16467 - Handle dataobjects, getting all the possible formats out of them
16468 - We dont need the drag event args before we give feedback. This
16469 allows feedback cursors to be immediate before selections have
16472 2007-02-16 Jackson Harper <jackson@ximian.com>
16474 * TextBoxBase.cs: Modified the method for inserting images to
16475 taking a line and position instead of tag and position.
16476 * RichTextBox.cs: Handle PngBlip data by inserting the png image
16478 * TextControl.cs: Allow images to be inserted as the first tag of
16480 - Fix some off by one issues when we assume the first tag is a
16481 text tag, not an image tag.
16483 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16485 * ListView.cs: Set focus to ListView when ItemControl gets a
16486 WM_RBUTTONDOWN message, to mimic .Net behaviour.
16487 Fixes part of #80467.
16489 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16491 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16492 validate Text input (if null or empty string reset Value to default
16493 value). Fixes #80830.
16495 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16497 * ListView.cs: Set owner as null for columns and items when
16498 Dispose is invoked. Fixes #80607.
16500 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
16502 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16503 showing DropDowns, don't show a Grip when doing Flow layout.
16504 [This fixes the toolbox in PDN 2.72.]
16505 * ToolStripItem.cs: Add Anchor property and some internal properties to
16506 reduces needed changes to FlowLayout.
16507 * ToolStripOverflow.cs: Remove unused variable.
16508 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16509 use it in the layout calculations.
16511 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16513 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16514 reported in #79640.
16516 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16519 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16521 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
16522 MeasureString format, it can make button very large in some cases, it is
16523 strange but is what win32 do.
16525 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16527 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
16530 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16531 rendering, the value is based on MenuAccessKeysUnderlined.
16533 2007-02-13 Everaldo Canuto <everaldo@simios.org>
16535 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16538 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16540 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16541 and use MenuAccessKeysUnderlined instead.
16543 2007-02-13 Andreia Gaita <avidigal@novell.com>
16545 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16546 A selected control would not get a Focus call if:
16547 - the default active control of the container is the same as
16548 the one that was selected
16549 - we are switching from one container to another
16550 Under these conditions, the container being selected already has
16551 an active_control, which is the same as the one being activated,
16552 so set_ActiveControl would always return and not send the Focus
16553 call. Fix to check if the currently active control of the container
16554 is actually focused.
16556 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
16558 * StatusStrip.cs: Implement the spring layout.
16559 * ToolStripControlHost.cs: Make sure the hosted control's visibility
16560 always matches the host.
16561 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16562 and TextAfterImage.
16564 2007-02-13 Andreia Gaita <avidigal@novell.com>
16566 * Control.cs: Code reorganization only.
16567 - Reorganize the WndProc cases so that each case has it's own handling method,
16568 to help with the no-line-numbering stack traces.
16569 - Formatting changes (it's vstudio's fault, really :p)
16571 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16573 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16574 Thread.CurrentUICulture to match DateTimePicker's (and MS)
16577 2007-02-12 Jackson Harper <jackson@ximian.com>
16580 * TextBox.cs: By default we have a non multiline document
16581 - use the multiline property instead of the internal variable
16582 * TextBoxBase.cs: Treat multiline and non multiline the same in
16584 - Use the documents multiline flag instead of tracking it ourself
16585 * TextControl.cs: Attempt at getting multiline to match MS
16586 behavior. Lines now track an offset, which is either their X or Y
16587 offset depending on whether or not we are in multiline mode.
16588 - Update all the methods to understand that lines have an X value.
16589 - Fix crash in Undo::Duplicate when empty lines are deleted.
16591 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16593 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
16594 code moved to properties PreferredHeight and PreferredWidth. It solve the
16595 all problems when preferred sizes must be recalculated. Fixes #80801.
16597 2007-02-12 Everaldo Canuto <everaldo@simios.org>
16599 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16600 font height when compatible_text_rendering is false. Partially fix #80801.
16602 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16604 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16606 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16608 * Form.cs: Improved exception messages in ShowDialog.
16610 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
16612 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16613 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16614 if not set. Fixes bug #80764. Avoid accessing current_settings field
16617 2007-02-08 Everaldo Canuto <everaldo@simios.org>
16619 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16622 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16623 public in 2.0 and for easy maintenance and dont break compatibility it is
16626 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16628 * ToolStripItem.cs: Implement using images from ImageList.
16630 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16632 * DateTimePicker.cs: Change default date-formatting culture from
16633 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16634 seems to be the way MS does it.
16636 2007-02-08 Andreia Gaita <avidigal@novell.com>
16638 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
16639 (the 6 was cut off on the right side)
16641 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16643 * Form.cs: Tell MenuStrips to close when the form is clicked.
16644 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
16645 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16646 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16647 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
16648 support for Overflow, where items that do not fit are automatically
16649 reparented to a drop down menu.
16650 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16651 Also: fixes bug #80747.
16653 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16655 * ComboBox.cs: Remove warning (unused code).
16656 * ScrollableControl.cs: Remove warning for 1.1 profile.
16658 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16660 * Form.cs: Remove a warning.
16662 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
16664 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16665 'g' specifier, not documented anywhere, but seems to always show up
16666 as a single space (might have something to do with the DateTime 'g'
16667 specifier, which is the era format, but since DateTimePicker can't
16668 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16669 won't crash if the format has an unmatched quote. Now shows
16670 single-character formats correctly. Fixes #80744.
16672 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
16674 * StatusStrip.cs: Stretch property needs to call base.Stretch,
16675 not this.Stretch to fix stack overflow. [Fixes bug #80760]
16677 2007-02-07 Chris Toshok <toshok@ximian.com>
16679 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16680 background color. it overwrites the background image we've
16681 already painted. Fixes #80599.
16683 2007-02-07 Chris Toshok <toshok@ximian.com>
16685 * DataGrid.cs: return immediately from Edit() when there are no
16686 columns. Fixes #80662.
16688 2007-02-07 Chris Toshok <toshok@ximian.com>
16690 * MessageBox.cs: fix #80625. don't always show the Help button in
16691 2.0. use the displayHelpButton parameter to determine if we
16692 should show it. Also, make the internal show_help field private.
16694 2007-02-07 Chris Toshok <toshok@ximian.com>
16696 * Control.cs (SetVisibleCore): check in the proposed patch for
16697 80604, and set is_visible before calling CreateControl.
16699 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
16701 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
16702 MonoInternalNote. This is added automagically by VS2005, so let's not crash
16705 2007-02-06 Everaldo Canuto <everaldo@simios.org>
16707 * MenuAPI.cs: hotkey_active internal field added, it is required because
16708 we need to know when hotkeys must be draw, before this change a keystate
16709 Navigating was used but we can have menu in navigating state without
16710 hotkeys. Fixes #80694.
16712 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16714 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16716 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16717 corresponding events and methods to be internal for 1.1 profile and
16718 public for 2.0 profile (required by SizeGrip).
16719 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16720 implicit control list). Don't set the size nor the location of the
16721 SizeGrip anymore as it's not needed.
16722 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16723 draw directly on the captured control (fixes #80656). Removed
16724 ShowGrip (it wasn't used anywhere), redraw (always true), added
16725 GetDefaultSize and GetDefaultRectangle to calculate defaults.
16726 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16727 be called from SizeGrip.
16729 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
16731 * Timer.cs: Throw ArgumentException if Interval <= 0.
16733 2007-02-05 Jackson Harper <jackson@ximian.com>
16735 * TreeView.cs: We need to check scrollbar visibility when window
16736 visibility is updated, because non visible trees don't ever add
16738 * Cursor.cs: We want the override cursor to be reset to NULL when
16739 we set current cursor to the default cursor.
16741 2007-02-05 Jackson Harper <jackson@ximian.com>
16743 * TextControl.cs: Don't have crlfs when we are non multiline.
16744 - Consolidate the line position.
16746 2007-02-05 Jackson Harper <jackson@ximian.com>
16748 * X11Keyboard.cs: BACK+CTRL gets a special char code.
16750 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
16752 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16753 handling LeaveNotify->NotifyUngrab in order to send
16754 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16755 after calling XUngrabPointer, so we call WindowUngrabbed directly
16756 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16757 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16758 MouseCaptureChanged correctly. Also create handles if changing
16759 Capture (matches MS behaviour).
16761 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16763 * SizeGrip.cs: Make the last change 2.0 only.
16765 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16767 * SizeGrip.cs: If resizing and the capture is lost, revert any size
16768 changes to initial size (fixes #80597).
16770 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16772 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16774 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
16776 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16777 background) and only allow dragging if enabled. This way the
16778 sizegrip can be used to fill the open square that otherwise would
16779 have been shown in the bottom right corner of ScrollableControl
16780 when ScrollableControl is not suppose to support sizing.
16781 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16782 sizegrip is shown and enabled, and hook up with necessary events.
16784 2007-02-01 Chris Toshok <toshok@ximian.com>
16786 * DataGridTextBoxColumn.cs: clean up the
16787 GetFormattedString/GetColumnValueAtRow combination of functions.
16788 Also fix UpdateUI, and the initial state of
16789 IsInEditOrNavigateMode.
16791 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16792 aren't supposed to scroll the textbox here, we're supposed to
16793 scroll the datagrid.
16795 2007-02-01 Chris Toshok <toshok@ximian.com>
16797 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16798 setting the position.
16800 2007-02-01 Chris Toshok <toshok@ximian.com>
16802 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16803 here, since the most recent focus fixes keep us from generating
16804 the Leave event when our textbox gets focus.
16805 (Edit): we should be passing null for the column style's
16806 instantText parameter.
16808 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
16810 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
16811 raised. Fixes menu text/icons not showing up in PDN.
16813 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16815 * Control.cs: Remove code in constructor that makes every
16816 control with WS_CHILD set have initial location -1, -1.
16818 2007-01-31 Jackson Harper <jackson@ximian.com>
16820 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16822 * XplatUIX11.cs: Give teh keyboard to teh dnd.
16824 2007-01-31 Jackson Harper <jackson@ximian.com>
16826 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16827 - Remove some debug code.
16829 2007-01-31 Jackson Harper <jackson@ximian.com>
16831 * XplatUIX11.cs: If you set the override cursor during a grab, it
16832 should actually override the grab cursor. This comes into play
16833 when you are setting custom cursors in a DND feedback method.
16835 2007-01-31 Jackson Harper <jackson@ximian.com>
16837 * X11Dnd.cs: Add support for handling the QueryContinue and
16838 GiveFeedback events.
16839 - Cancel drag and drop actions when the escape key is clicked.
16840 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16841 can handle the ESCAPE key.
16842 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
16843 done when dnd events are continued after the button is released.
16844 - Add a new helper method so that dnd can translate key events.
16846 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
16848 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16849 make it more obvious what is happening.
16851 2007-01-30 Jackson Harper <jackson@ximian.com>
16853 * XplatUIX11.cs: Don't break when handling button release in drag
16854 and drop operations. We need that BUTTONUP message to get through
16855 so capture is released.
16856 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
16857 this is handled automatically when the mouse is down.
16859 2007-01-30 Jackson Harper <jackson@ximian.com>
16861 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
16862 is closed, so we need to make sure that we aren't changing the
16863 dialog result when the OK (Open or Save) button has been clicked
16864 and we are closing the window ourselves. Note we don't need to
16865 worry about the cache being written in this case, because it was
16866 already done in the previous FilOk call.
16868 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16870 * DateTimePicker.cs: Remove a warning.
16871 * ComboBox.cs: Remove a couple of warnings.
16873 2007-01-29 Chris Toshok <toshok@ximian.com>
16875 * XplatUIX11.cs: don't crash, and remove the icon if the user has
16876 set one, if SetIcon is passed a null icon.
16878 2007-01-29 Andreia Gaita <avidigal@novell.com>
16880 * TextBox.cs: Redraw when the password characters changes
16881 * TextControl.cs: Check if textbox has a password char and draw
16882 a line of password chars instead of the text in the line. LineTag gets
16883 an extra Draw() method which allows document.Draw to override the text
16884 that will be drawn. Removes 1024 char limitation on length of passworded
16887 2007-01-29 Jackson Harper <jackson@ximian.com>
16889 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
16890 single chars is not.
16892 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
16894 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
16895 one pixel. Fix a StackOverflowException caused by an overload wrongly
16898 2007-01-26 Everaldo Canuto <everaldo@simios.org>
16900 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
16901 also remove ProcessArrowKey and put the code inside ProcessKeys.
16903 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
16905 * PaddingConverter.cs: Added.
16907 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16909 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
16910 ShowPanels is false (fixes #80600). Only draw up to 127 characters
16911 of text (fixes #80601). For panels clip the text to draw to the
16912 panel (fixes #80603).
16914 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
16916 * ComboBox.cs: Fixed implementation of ResetText.
16918 2007-01-25 Jackson Harper <jackson@ximian.com>
16920 * TextControl.cs: For the last char of a line we need to use the
16921 line size, not that chars width, since it won't actually be
16922 computed since the right side of a char is based on the start of
16923 the left side of the next char, and the next char does not exist.
16925 2007-01-25 Chris Toshok <toshok@ximian.com>
16927 * Splitter.cs: fix the new unit tests, and reindent some switch
16930 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16932 * ComboBox.cs: Implemented 2.0 methods and events.
16933 * TextBoxBase.cs: Added OnTextUpdate, so that
16934 ComboBox.ComboTextBox can inform ComboBox of it.
16936 2007-01-25 Jackson Harper <jackson@ximian.com>
16938 * TextControl.cs: Respect ShowSelection when deciding whether or
16939 not to display the caret, this allows comboboxes to have carets
16940 when the combotextbox does not have focus.
16942 2007-01-25 Jackson Harper <jackson@ximian.com>
16944 * TextControl.cs: Add a Suspend/Resume for updating, basically the
16945 same as the Suspend/Resume for recalc, except this will do actual
16947 - New Undo manager, works much like the MS version.
16949 * TextBoxBase.cs: The Cut operation is undoable.
16951 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16953 * TextBoxBase.cs: Don't antialias text. Makes it look way better
16954 on Windows (no difference on Linux).
16956 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16958 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
16959 we don't want to activate any windows. Fixes #79433.
16961 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
16963 - ButtonBase.cs: Fix capitalization of parameter: disposing.
16966 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
16969 - Move to using System.ComponentModel.EventHandlerList
16970 - Replace Refresh with Invalidate
16971 - Clear the mime filecache on closing
16972 - Some other memory reducing work. After beeing closed FD now uses
16973 only about 300 KB for the fdo mime stuff plus the memory of the
16975 * Mime.cs: Changed coding style and removed unnecessary commented
16976 code. Some more memory memory reducing work.
16978 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
16980 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
16981 a few other missing 2.0 properties.
16982 * Theme.cs: Added DrawFlatStyleComboBox.
16983 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
16985 2007-01-24 Chris Toshok <toshok@ximian.com>
16987 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
16988 wake_waiting flag, not just when there's data to be read. if we
16989 don't, then future wakeup's won't reach us and we'll be doomed to
16990 wait for the entire 1 second timeout forever (unless there are X
16993 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
16995 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
16996 until you pass Items.Count, not Items.Count - 1 like 1.1.
16998 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
17000 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17002 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
17004 * ToolStripContainer.cs: The recent Dock fix exposed that I was
17005 adding the panels in the wrong order.
17007 2007-01-24 Jackson Harper <jackson@ximian.com>
17009 * TextBoxBase.cs: When we move the caret we also need to move the
17010 selection, this fixes some random crashing after doing select
17011 text, unselect, delete a char, paste.
17013 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
17015 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17017 2007-01-23 Everaldo Canuto <everaldo@simios.org>
17019 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17020 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
17021 * ToolBar.cs: Force redraw in BackgroundImageChanged.
17023 2007-01-23 Everaldo Canuto <everaldo@simios.org>
17026 - Implement support for vertical toolbars. Fixes #80539;
17027 - Call LayoutToolBar when resize, it fix some other problems in layout.
17028 - Rename requested_height to requested_size, as we can have width on it
17029 when toolbar is vertical.
17030 - Create a private property "Vertical" that uses Dock to verify when
17031 toolbar is vertical or not.
17032 - Set ControlStyles when change Dock property.
17033 - Refactory in LayoutToolBar to have better variables names and to support
17035 - Fixes default value for ButtonSize when button count is equal zero, size
17036 must be (39, 36) test case writed.
17038 2007-01-23 Chris Toshok <toshok@ximian.com>
17040 * Control.cs: fix the checks so that they work correctly for mdi
17043 2007-01-23 Chris Toshok <toshok@ximian.com>
17045 * Control.cs: ControlCollection seems to have super-secret
17046 abstraction breaking knowledge of Mdi containers. allow MdiClient
17047 to add toplevel controls.
17049 2007-01-23 Chris Toshok <toshok@ximian.com>
17051 * Control.cs: throw an ArgumentException if a toplevel control is
17052 added to our control collection from ControlCollection.Add, as
17053 well as from ControlCollection.IList.Add. This fixes the
17054 ControlSetTopLevelTest.TestTopLevelAdd unit test.
17056 Also, in ControlCollection.IList.Add, don't through an
17057 ArgumentNullException, throw an ArgumentException, when value ==
17058 null. This matches MS.
17060 2007-01-23 Chris Toshok <toshok@ximian.com>
17062 * BindingSource.cs: initial, incomplete, implementation of
17065 2007-01-23 Jackson Harper <jackson@ximian.com>
17068 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17069 that I can fix a broken unit test (TextBoxTest::ClearUndo)
17071 2007-01-23 Everaldo Canuto <everaldo@simios.org>
17073 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17075 2007-01-23 Andreia Gaita <avidigal@novell.com>
17077 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17078 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17079 IndexOfKey() for 2.0
17081 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17083 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17084 to prevent it from changing z-order.
17085 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17086 leave UI updates in MdiWindowManager.
17087 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17088 1 sized (NC handling goes weird on Linux otherwise).
17089 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17090 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17091 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17092 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17093 and SetWindowState(s) to allow for changing the size of an activated child
17094 before activating it (reduces a lot of flicker).
17096 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
17098 * Form.cs: Changing FormBorderStyle has different semantics based
17099 on whether the Form is visible or not. If not visible, don't change
17100 the Size. But InvalidateNC needs to be called to force the window
17101 to pick up the changes and redraw itself. [Fixes bug #80574]
17103 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
17106 * ContainerControl.cs: ProcessCmdKey.
17107 * ErrorProvider.cs: new constructor.
17108 * Form.cs: fix AutoValidateEvent compiler warning.
17109 * Label.cs: fix OnAutoSizeChanged compiler warning.
17110 * MenuStrip.cs: fix CanOverflow compiler warning.
17111 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17112 * TextBox.cs: Dispose.
17113 * ToolStrip.cs: CanOverflow, re-enable double buffering.
17114 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17115 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17116 * ToolStripItem.cs: Overflow, RightToLeft properties.
17118 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17120 * Form.cs: Move the layout of the main form to MdiWindowManager.
17121 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17122 do a layout of the main window to update MdiClient's client area to
17123 the right area. Fixes #80533. Remove the calculation of nc size,
17124 it was just wrong and the correct one is the same as for
17125 InternalWindowManager.
17127 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
17129 * Control.cs: Setting Anchor or Dock needs to reset the other
17130 to its default. [Fixes bug #80556]
17132 2007-01-20 Chris Toshok <toshok@ximian.com>
17134 * CheckedListBox.cs: class status changes.
17136 * ScrollableControl.cs: same.
17138 * RichTextBox.cs: same.
17140 * ContainerControl.cs: same.
17142 * ListView.cs: same.
17144 * NotifyIcon.cs: same.
17146 * MenuStrip.cs: same.
17148 * RadioButton.cs: same.
17150 * CheckBox.cs: same.
17152 * PrintPreviewDialog.cs: same.
17156 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
17158 * TreeNode.cs: Apply Alan's patch for Name property.
17160 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17162 * Form.cs: Implemented SizeGripStyle.
17163 * SizeGrip.cs: Check for minimum and maximum size for the
17164 control being resized and only resize if size has actually
17167 2007-01-19 Chris Toshok <toshok@ximian.com>
17169 * DataGridColumnStyle.cs: stop setting _readonly in the
17170 PropertyDescriptor setter. fixes a unit test failure.
17172 also, rename ParentReadOnly to TableStyleReadOnly, and have it
17173 just consult our table style (if we have one). We don't need to
17174 consult the datagrid readonly attribute because that's passed in
17175 as the _ro arg to Edit. this simplifies things a little.
17177 * DataGrid.cs: use CurrentColumn instead of
17178 current_cell.ColumnNumber just to simplify some of the code.
17180 switch the order of some things in the CurrentCell setter to keep
17181 the previous cell from getting a textbox again -
17182 EnsureCellVisibility causes scrolling to happen, which calls Edit.
17183 So we need to set the new cell before calling it.
17185 call Edit in OnEnter, as does Microsoft.
17187 also, make sure the current table style isn't the one we create
17188 initially when checking to see if it's different than the one
17189 we're setting it to in BindColumns (this fixes #80421).
17191 * GridTableStylesCollection.cs: table styles can have "" for a
17192 mapping name. part of the fix for #80421.
17194 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17195 Edit significantly.
17197 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17199 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17200 and less GDI object leaky-er.
17202 2007-01-18 Andreia Gaita <avidigal@novell.com>
17204 * LinkLabel.cs: Add opaque control style
17206 2007-01-18 Jackson Harper <jackson@ximian.com>
17208 * TextControl.cs: Calculate width properly.
17209 - Don't store the tag's X offset, this can be figured out very
17211 - When getting the caret tag make sure to get the last empty tag.
17213 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17215 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17218 * Control.cs: Color.Empty shouldn't count for previous transparent
17221 2007-01-18 Jackson Harper <jackson@ximian.com>
17225 * TextControl.cs: Starting to merge in some pieces of my older
17226 undo work. Basically just some slight cleanup of the undo API.
17228 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
17230 * TrackBar.cs: Fix signature of RightToLeftLayout.
17231 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17232 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17233 * Application.cs: Implemented UseWaitCursor.
17235 2007-01-18 Jackson Harper <jackson@ximian.com>
17237 * TextControl.cs: We can't skip tags if any part of the tag is
17240 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17242 * ContainerControl.cs: Override OnLayout.
17244 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17246 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17248 * ContextMenuStrip.cs: Make sure context menu is shown on top of
17251 2007-01-18 Chris Toshok <toshok@ximian.com>
17253 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17254 (leftover from the container_selected days, I'd wager). fixes bug
17257 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17259 * Control.cs: Apply patch from George to fix the new testcase on
17260 bug #80451. We can't just check for Color.Transparent, we need
17261 to check if the back color's alpha channel is < 255.
17263 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
17265 * Form.cs: Move setting show_icon = true to before the constructor
17266 so that the base constructor has that information when it calculates
17267 the form's size. Was causing forms to be (6, 6) bigger than they
17268 were supposed to be. Thanks for catching this Rolf!
17270 2007-01-18 Jackson Harper <jackson@ximian.com>
17272 * TextControl.cs: When replacing a selection we need to invalidate
17273 from the initial selection start, because selection start is moved
17274 to the end of the replacement.
17276 2007-01-18 Andreia Gaita <avidigal@novell.com>
17278 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17280 2007-01-18 Chris Toshok <toshok@ximian.com>
17282 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17285 2007-01-17 Everaldo Canuto <everaldo@simios.org>
17287 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
17288 layout methods and properties from ToolBarButton must be available
17289 into ToolBarButtonInfo.
17291 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
17293 * Control.cs: If the control has a transparent background, we
17294 need to refresh it when it moves and when it's parent's background
17295 image changes. [Fixes bug #80451]
17297 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
17299 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
17301 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
17303 * XplatUIWin32.cs: Implement proper double buffering for Windows.
17304 [Fixes bug #80447, and probably speeds up things as well]
17306 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17308 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17309 * XplatUIWin32.cs: We need to recalculate NC size after changing
17310 window style to toolwindow (otherwise the client rectangle will be
17311 3 pixels to small for some reason).
17312 * MdiWindowManager.cs: Revert NC size calculations to match how
17313 they are calculated only based on window styles (to match
17314 Win32AdjustWindowRectEx, since otherwise when setting size or
17315 location, Control will call Win32AdjustWindowRectEx to update client
17316 size, which would provoke a paint, then we'd get a NCCALCSIZE and
17317 calculate a different value of client size causing another paint
17319 * InternalWindowManager.cs: When moving or resizing a window only
17320 update size or location if they actually changed.
17321 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17322 (seems to match Windows behaviour better). Cleaned up
17323 ManagedWindowDecorations to draw what's needed and nothing else
17324 (was drawing borders and lines where they shouldn't be)
17325 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17326 (style = 0xFFFF) and takes into account caption height when
17327 calculating window rectangle.
17329 2007-01-16 Everaldo Canuto <everaldo@simios.org>
17331 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
17332 can be added to toolbar multiple times, we need to maintain a list of
17333 button information for each positions.
17335 2007-01-16 Everaldo Canuto <everaldo@simios.org>
17337 * ToolBar.cs: Some small stetic changes.
17339 2007-01-16 Jackson Harper <jackson@ximian.com>
17341 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17342 that allow us to have nested recalc = false blocks.
17343 - Add paste support for images in the RichTextBox
17344 * RichTextBox.cs: flush the text after the color is changed, so
17345 the change takes effect.
17346 - Use SuspendRecalc
17347 - Some extra debugging info
17348 * TextControl.cs: Tags no longer track their length, it is just
17349 computed from the next tags length, this makes things a little
17350 simpler and reduces places that we have to track length changes.
17351 - Refactored the linetag class a little so we could make it
17352 a base class for different kinds of tags
17353 - Created a image tag, a tag that can have a single image inserted
17355 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17356 that we can call suspend multiple times.
17357 - Add some debugging methods
17359 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17361 * MdiClient.cs: Add ActivatePreviousChild for
17362 mdi child window navigation.
17363 * Form.cs: Use MdiClient.ActivateNextChild/
17364 ActivatePreviousChild instead of Form.SelectNextControl
17365 to select the next/previous child since
17366 SelectNextControl doesn't do it in the same order
17367 as mdi children should do it.
17369 2007-01-16 Chris Toshok <toshok@ximian.com>
17371 * Control.cs: remove container_selected field.
17373 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17375 * MdiClient.cs: Update main form's ActiveChild when
17376 updating keyboard focus for the mdi child.
17378 2007-01-16 Jonathan Pobst <jpobst@novell.com>
17380 * Control.cs: PreferredSize fix.
17382 * Form.cs: Add several 2.0 events, properties, and methods.
17384 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
17386 * Form.cs: Provide meaningful message when MdiParent is assigned a
17387 Form that is not an MdiContainer.
17389 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17391 * MdiClient.cs: Update main form's ActiveChild when
17392 activating a mdi child.
17394 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
17396 * MdiWindowManager.cs: Fix NRE when merging menus and main form
17397 doesn't have a menu.
17399 * Form.cs: Request NCRecalc after creating a mdi child window.
17400 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
17401 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17403 * MdiClient.cs: Add new method SendFocusToActiveChild that either
17404 sends keyboard focus to the active child, or to the MdiClient
17405 if there are no child forms.
17407 2007-01-15 Chris Toshok <toshok@ximian.com>
17409 * ListView.cs: drop the *Internal overrides, just do our work in
17410 ItemControl's WndProc instead.
17412 * UpDownBase.cs: a few large changes. Fix up the Selectable state
17413 of the various controls, and forward the events properly (in the
17414 same manner as MS) from the textbox to the UpDown. Also the
17415 ActiveControl of the UpDownBase gets set properly now. Finally,
17416 we don't call UpdateEditText from the ctor. Fixes bug #79957.
17418 * NumericUpDown.cs: set Text in the ctor.
17420 * DomainUpDown.cs: call UpdateEditText in the ctor.
17422 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17423 so even a Selectable = false textbox can be focused if you click
17426 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
17427 just add their handling in their respective WndProc's. Also add
17428 an explicit FocusInternal method that doesn't consult CanFocus
17429 before calling Select(this).
17431 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17432 do our work in WndProc instead.
17434 * TabControl.cs: same.
17436 * ComboBox.cs: same.
17438 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17440 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17443 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17446 * ThemeWin32Classic.cs: Don't draw the item text outside
17447 item bounds in Details view, as well as use trimming.
17450 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17452 * Form.cs: Implement Form.ShowIcon.
17454 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17455 null, which when combined with the DlgModalFrame window style removes
17456 the icon from the title bar.
17458 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17460 * Control.cs: Call OnMouseClick after OnClick. (2.0)
17462 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17464 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17465 menu when mdi child windows theres a menu, uses insert to get icon
17466 at first position. Partially fix #80006.
17468 2007-01-15 Jonathan Pobst <jpobst@novell.com>
17470 * Clipboard.cs: Implement 2.0 methods.
17472 2007-01-15 Everaldo Canuto <everaldo@simios.org>
17474 * Menu.cs: Implement Insert method of MenuItemCollection class
17477 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17479 * ListView.cs: Implement 2.0 FindItemWithText method.
17481 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17483 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17484 to calculate menu bar size. Fixes #80290.
17486 2007-01-11 Everaldo Canuto <everaldo@simios.org>
17488 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17490 2007-01-11 Chris Toshok <toshok@ximian.com>
17492 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17495 2007-01-11 Chris Toshok <toshok@ximian.com>
17497 * LinkLabel.cs: make sure to call base.Select in our Select method
17498 if it turns out we're going to be selected (i.e. if we have a link
17499 that is going to receive focus). That way our container's
17500 ActiveControl is updated properly.
17502 2007-01-11 Chris Toshok <toshok@ximian.com>
17504 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17505 they have 1 or more links. this fixes the crash gert reported.
17507 2007-01-11 Andreia Gaita <avidigal@novell.com>
17509 * ContainerControl.cs: Remove ContainerSelected flag, not needed
17512 * Control.cs (Controls.Add): Check if control to be added to the collection
17513 is a top level control, and throw an ArgumentException if it is.
17514 Remove ContainerSelectedFlag, not needed anymore.
17516 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17517 top most control doesn't activate the form. This fixes a problem in the
17518 MessageBox, where the default button wouldn't get focus because the form
17519 was activated before being Loaded - when the Owner is set, SetTopMost is
17520 called, and it would activate it.
17522 2007-01-11 Jonathan Pobst <jpobst@novell.com>
17524 * Button.cs: When clicked and setting the parent form's DialogResult,
17525 use FindForm instead of Parent, since parent could be a container
17526 control and not the Form. Fixes bug #80495.
17528 2007-01-10 Chris Toshok <toshok@ximian.com>
17530 * Form.cs: move the call to SendControlFocus into the same
17533 2007-01-10 Chris Toshok <toshok@ximian.com>
17535 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17536 It breaks in the face of the new ActiveControl stuff, and should
17539 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17540 activecontrol's focus if it's not already set, after we set
17541 ActiveControl, but before we call OnActivated. Re-fixes #79667
17542 after the previous focus/active control fixes regressed it.
17544 * Control.cs: reindent some code.
17546 2007-01-10 Chris Toshok <toshok@ximian.com>
17548 * Splitter.cs: clearing some outstanding changes from my tree.
17549 Replace all accesses (not writes) to the internal dock_style field
17550 with the Dock property.
17552 2007-01-10 Chris Toshok <toshok@ximian.com>
17554 * Control.cs: make FireEnter, FireLeave, FireValidating, and
17555 FireValidated virtual.
17557 * Form.cs: override and don't chain up calls to FireEnter and
17560 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17562 * ListView.cs: Add more text padding space when using
17563 auto resize for columns (the previous value didn't work fine).
17565 * ThemeWin32Classic.cs: Update text position inside columns,
17566 to match the appeareance of .Net.
17568 * ColumnHeader.cs: When using auto resize, only the Width should
17569 depend on the sub items, not the Height. Also, set width after
17570 auto resizing (the value of Width should never remain as -1 or -2).
17572 2007-01-10 Chris Toshok <toshok@ximian.com>
17574 * Application.cs: fix compilation errors when debug is enabled.
17576 2007-01-10 Chris Toshok <toshok@ximian.com>
17578 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17579 add some nice ascii art pictures and explanation of the process).
17580 (GetMostDeeplyNestedActiveControl): new utility function we need
17581 because our ActiveControl can refer to a child container with its
17584 * Form.cs (OnActivated): remove the call to SelectActiveControl
17585 from here, since you can override this method and not chain up,
17586 and winforms still sets the active control.
17587 (OnCreateControl): also remove the unnecessary SelectActiveControl
17589 (WndProc): it's actually called from the WM_ACTIVATE block, just
17590 before calling OnActivated.
17592 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17593 inside the else. the ActiveControl setter will end up setting
17594 focus on @control. This keeps us from setting it again (and
17595 generating an extra LostFocus/GotFocus pair).
17596 (Select (bool, bool)): reindent.
17598 2007-01-10 Jonathan Pobst <jpobst@novell.com>
17600 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17601 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17602 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17603 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17604 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17605 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17606 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17607 ToolStripTextBox.cs: Another wave of corcompare work.
17609 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17611 * ColumnHeader.cs: Implement 2.0 AutoResize method using
17612 the Width property.
17614 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17615 methods by callling Column.AutoResize method on columns.
17617 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17619 * Control.cs: Provide proper implementations of PreferredSize
17620 and GetPreferredSize (2.0).
17622 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
17624 * Form.cs: Remove one character (!) to make my previous OnClosing
17625 stuff work for modal windows like MessageBox.
17627 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17630 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17631 ListView.Columns to get the last displayed column. Fixes #80452.
17633 2007-01-09 Everaldo Canuto <everaldo@simios.org>
17635 * Label.cs, LinkLabel.cs: Source code identation fixes.
17637 2007-01-08 Everaldo Canuto <everaldo@simios.org>
17639 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17640 we dont need to invalidate only borders because when we invalidate four
17641 border lines the invalidate's generates a complete redraw of button,
17642 because it now invalidate a complete rect some other redraws operations
17643 are fixed. Fixes #80196.
17645 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17646 Remove ToolBarInvalidateEntireButton as it is not used.
17648 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17650 * Form.cs: Make sure that both OnClosing and OnFormClosing are
17651 called for 2.0 profile.
17652 * CloseReason.cs: Make class internal for 1.1.
17654 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
17656 * ToolStripManager.cs: Implement FindToolStrip functionality.
17657 * ToolStrip.cs: Register and unregister with ToolStripManager.
17659 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17661 * Control.cs: This was messy. 2.0 moves much of ControlCollection
17662 to ArrangedElementCollection. Implemented this with as few #if's as
17663 possible (which is still too many).
17665 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
17667 * Control.cs: Implement SizeFromClientSize() [2.0].
17669 2007-01-07 Everaldo Canuto <everaldo@simios.org>
17671 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17672 use Theme.BorderSize to calculate area instead of static value 1,
17673 by the way use new BorderStaticSize instead Border3DSize when
17674 border_static is true. Fixes #79537.
17676 * XplatUIOSX.cs: Fix call to GetClientRectangle.
17678 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17681 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17683 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17685 2007-01-06 Everaldo Canuto <everaldo@simios.org>
17687 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17688 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17691 - border_static field added, it will used to define when a control
17692 theres 3D border but it must be static (thin).
17693 - In GetWindowRectangle use Theme.BorderSize to calculate area
17694 instead of static value 1, by the way use new BorderStaticSize instead
17695 Border3DSize when border_static is true.
17697 * XplatUIX11.cs, XplatUIOSX.cs:
17698 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17700 * Theme.cs: BorderStaticSize field added.
17702 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17704 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17706 2007-01-05 Everaldo Canuto <everaldo@simios.org>
17708 * Control.cs: Under InternalBorderStyle call RecreateHangle to
17709 mimic same behavior than win32 that set border only in CreateParams,
17710 it fix problems under CreateParams overrides. Fix #79442 and partial
17713 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17714 of thi control you must call recreate handle.
17716 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17717 need to do anything as RecreateHangle will take care about borders.
17719 2007-01-05 Mike Kestner <mkestner@novell.com>
17721 * ListView.cs: hack to eliminate Lost/Got focus notifications on
17722 cycles between the ItemControl and parent. Fixes #80388.
17724 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
17726 * Control.cs: Lazy init layout engine. Do not directly use
17727 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17729 2007-01-05 Chris Toshok <toshok@ximian.com>
17731 * DataGrid.cs: don't forceably rebind columns in SetDataSource
17732 unless our list manager has changed (i.e. unless we have reason to
17733 believe our columns have changed). Fixes #80422.
17735 also, disable the call do BindColumns in
17736 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
17737 1.1 the event isn't raised in response to a column addition on a
17740 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17742 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17743 that inheritors can not call it if they choose. Fixes bug #80456.
17745 2007-01-05 Andreia Gaita <avidigal@novell.com>
17747 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
17748 doesn't blow up with a null exception on marshalling.
17750 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
17752 * Control.cs: Implement several 2.0 protected properties and methods.
17753 Ensure that all necessary events are being called when properties
17756 2007-01-05 Mike Kestner <mkestner@novell.com>
17758 * ListView.cs: implement PgUp/PgDn for Details view. Also
17759 fixes First/LastVisibleIndex to use the item_control.ClientRect
17760 instead of the parent control. Fixes #80378.
17762 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
17764 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17765 determine whether to use yard-pound or not (bug #78399).
17767 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17769 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17770 problems. So it is time to bring back the old popupbutton colors.
17772 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17775 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17776 property by using the internal information of the
17777 columns order in ListView.
17779 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
17781 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17782 Add 2.0 Tag properties.
17784 * LinkArea.cs: Add 2.0 ToString method.
17786 2007-01-03 Chris Toshok <toshok@ximian.com>
17788 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17789 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
17790 when we're editing, which fixes #80047.
17792 2007-01-03 Chris Toshok <toshok@ximian.com>
17794 * Form.cs: apply patch contributed by Dominik Seichter. fixes
17797 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
17799 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17800 property and implementation.
17802 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17803 for MdiWindowListItem property.
17805 * ToolStripDropDown.cs: Don't consider hidden menu items while
17806 laying out the menu.
17808 2007-01-03 Andreia Gaita <avidigal@novell.com>
17810 * SendKeys.cs: window handle is not needed in win32, so just
17811 get the active window for X after parsing keys and don't use
17812 it when building the message; it is passed by parameter to the
17813 Xplat method and used there to build the message instead. Also,
17814 wait for events to be processed on SendWait, as opposed to Send,
17815 which doesn't wait :) Playing with threads and Send() completely
17816 hangs on ms.net, only SendWait() works.
17819 X11Display.cs: Check for valid window handle.
17821 2007-01-03 Jackson Harper <jackson@ximian.com>
17823 * TextControl.cs: Need to prevent wrap calculations when replacing
17824 text (this was there before i removed it accidently).
17825 - Don't update the cursor during the positioning, just set it to
17826 selection_start at the end of the operaion.
17828 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17831 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17833 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17835 * MonthCalendar.cs: Added Click and DoubleClick events again,
17836 but this time they only hide Control's Click and DoubleClick.
17838 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
17840 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17841 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17843 2007-01-02 Jackson Harper <jackson@ximian.com>
17845 * TextBoxBase.cs: We move the caret with the split now, so we
17846 don't need to explicitly move the caret after splitting. This
17847 fixes the caret bumping down an extra line on Enter.
17849 2007-01-02 Miguel de Icaza <miguel@novell.com>
17851 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17854 * ScrollableControl.cs: Add Scroll event.
17856 2007-01-02 Mike Kestner <mkestner@novell.com>
17858 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
17859 to fix all hdr height padding codepaths. Fixes #80207.
17861 2007-01-02 Chris Toshok <toshok@ximian.com>
17863 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
17864 setting it to the Control defaults anyway, and it being after the
17865 Dock set was screwing up layout.
17866 (set_Dock): don't short circuit out of setting base.Dock. Also,
17867 no need to call UpdateStatusBar here, as it'll be re-layed out if
17870 2007-01-02 Mike Kestner <mkestner@novell.com>
17872 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
17873 to header height for width == -1. Fixes the rest of #80207.
17875 2007-01-02 Mike Kestner <mkestner@novell.com>
17877 * ListView.cs: rework the mouse event forwarding everaldo added
17878 to translate the coordinates to the parent control not
17879 raise the parent events until after we've done our work. Hover
17880 needs more work, in the case where HoverSelection is on, because
17881 the item control receives more than one MouseHover per Enter
17882 event, so we need to ensure only the "first" hover gets forwarded.
17883 Opening a minor bug for that.
17885 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
17887 * CheckedListBox.cs: Fixed SelectionMode to match MS.
17888 * ListControl.cs: Implemented AllowSelection property. Removed extra
17890 * ListBox.cs: Implemented AllowSelection property.
17892 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17894 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
17895 SelectedItem, it prevent for errors when you must disable item
17896 before perform click. Fixes #80409.
17898 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17900 * MenuAPI.cs: Prevent second level and beyond submenus to close
17901 until first level when move out side of popup.
17903 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17906 - Down submenu positin in three pixels.
17907 - Closes sub menu when mouse leaves from menu. Fixes #80402.
17909 2007-01-02 Everaldo Canuto <everaldo@simios.org>
17911 * ThemeWin32Classic.cs:
17912 - Fix popup menu size adding one pixel on the top.
17913 - Down menu item border from two to one to mimic Win32.
17914 - Some source identation fixes.
17916 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17918 * ThemeWin32Classic.cs: Use float numbers to calculate size and
17919 position of menu arrows, it fix wrong arrow size.
17921 2007-01-01 Everaldo Canuto <everaldo@simios.org>
17923 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
17924 instead of line, it simplify draw operation and fix it using 3D
17925 borders to mimic Win32.
17927 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
17929 * StatusStrip.cs: Add implementation of the sizing grip.
17931 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
17932 StatusStrip rendering.
17934 2006-12-31 Chris Toshok <toshok@ximian.com>
17936 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
17937 override the layout style (anchor/dock) of the control. assign to
17938 Dock instead. Fixes bug #80416.
17940 * ToolStrip.cs: same.
17942 2006-12-31 Andreia Gaita <avidigal@novell.com>
17944 * ContainerControl.cs: Use ContainerSelected flag to check if
17945 a Container is directly selected, or if Select is called on a
17946 non-container. If a container is directly selected, focus events
17947 should not be raised.
17948 Apply #80411 patch to throw exception on set_ActiveControl if
17949 control is the same as the current one.
17951 * Control.cs: Use ContainerSelected flag (see above).
17952 Add invalidation check to raise event but not invalidate if
17954 Apply #80411 patch.
17957 2006-12-31 Everaldo Canuto <everaldo@simios.org>
17959 * MenuAPI.cs: After click, dont close popup menu when menu is
17960 ContextMenu. Fixes #80399.
17962 2006-12-30 Chris Toshok <toshok@ximian.com>
17964 * ContainerControl.cs: make sure we throw the exception if the
17965 container control doesn't contain the control we're setting
17968 2006-12-30 Chris Toshok <toshok@ximian.com>
17970 * Control.cs (SetTopLevel): fix the exception raised by
17971 SetTopLevel for child controls.
17972 (set_Anchor): call UpdateDistances when setting the anchor type.
17973 This fixes bug #80336.
17975 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
17977 * Theme.cs: For now, revert back to 8pt font.
17979 2006-12-29 Everaldo Canuto <everaldo@simios.org>
17981 * MenuAPI.cs: Set popup as active when open a ContextMenu.
17984 2006-12-29 Chris Toshok <toshok@ximian.com>
17986 * Control.cs: reorder the code in OnResize to give the same event
17989 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
17991 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
17992 TileHorizontally and TileVertically.
17994 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
17996 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
17997 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
17998 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
17999 Corrected copyright and email adress.
18001 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
18003 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18004 of Exception in FullPath property if no TreeView is associated with
18007 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
18009 * Theme.cs: Marked default_font as private, and initialize it in ctor
18010 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18012 * ThemeGtk.cs: Removed default_font intialization.
18013 * ThemeWin32Classic.cs: Removed default_font initialization.
18015 2006-12-28 Chris Toshok <toshok@ximian.com>
18017 * Control.cs: fix a couple of place where we were creating handles
18018 more aggressively than we should be. Fixes ControlRefresh unit
18021 2006-12-28 Chris Toshok <toshok@ximian.com>
18023 * Control.cs: contrary to what the comment said, Control.Dock does
18024 not supercede Control.Anchor - the last one you assign to decides
18025 the layout behavior. so we need to keep track of which was the
18026 last set. Also, fix some of the affected property arguments in
18027 PerformLayout calls, and remove an redundant parent.PerformLayout
18030 Add a VisibleInternal property, which returns is_visible. We
18031 can/should get rid of all the usage of this field elsewhere.
18033 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18035 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18036 control style, not DoubleBuffer. Added UseDoubleBuffering property
18037 that indicates whether doublebuffering is enabled and supported.
18038 (comment from and code based on Gert Driesen's patch in #80324).
18041 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18043 * Control.cs: Fixed a NRE.
18045 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18047 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18050 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
18052 * Control.cs: Rewrote double buffering, now a seperate
18053 class handles all the buffering, no Graphics is disposed of
18054 until the painting is finished (earlier implementation
18055 would crash if the control was resized in the OnPaint,
18056 since it would cause the double buffer to be recreated
18057 and the old one disposed), a separate Graphics is
18058 created for every paint (MS behaviour and anyways the state
18059 of the Graphics would have to be saved and restored otherwise)
18061 * XplatUIDriver.cs:
18063 * XplatUI.cs: Added and implemented GetOffscreenGraphics
18064 so that we can get the graphics for the back buffer without
18065 having to create a new one and remove the offscreen_dc parameter
18066 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18068 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18070 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18071 Also make virtual all the key-related methods.
18073 * ListViewItem.cs: Make virtual the key related methods for
18074 ListViewSubItemCollection.
18076 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18080 * ThemeWin32Classic.cs:
18081 * Theme.cs: Initial support for Tile view in ListView,
18082 as well as the implementation of the required bits for it (Item
18085 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18087 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18088 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18089 Provide useful exception messages.
18091 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18093 * TrackBar.cs: Remove a warning.
18094 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18095 when used by DateTimePicker, fixes #80287. This also requires that
18096 MonthCalendar implements it's own drawing for the yearly updown control,
18097 otherwise the Capture tracking would be too complicated. Removed the Click
18098 and DoubleClick events (according to comments they were hiding the base class
18099 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18100 raise these events, not that they cannot be raised. It is possible to raise
18101 them by calling OnClick and OnDoubleClick). Added two internal fields in
18102 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18103 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18104 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18105 event, no longer needed.
18107 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18109 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18110 true if new value differs from current value.
18112 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18114 * Control.cs: ControlCollection.Count must be public. Fixed build of
18117 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18119 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18121 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
18123 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18125 2006-12-26 Everaldo Canuto <everaldo@simios.org>
18127 * Control.cs: Invalidates control including when Width and Height is
18128 equal zero or is not visible, only Paint event must be care about
18129 this. Fixes #79913.
18131 2006-12-26 Chris Toshok <toshok@ximian.com>
18133 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18134 more corcompare work.
18136 * DataGridView.cs: fix compiler warning.
18138 * ColumnHeader.cs: some corcompare work, and also take the
18139 opportunity to make the internal fields private.
18141 * ListView.cs: fix the fallout from the above field change.
18143 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
18145 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18146 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18147 ToolStripTextBox.cs: Fixes to events and corcompare.
18149 2006-12-26 Everaldo Canuto <everaldo@simios.org>
18151 * ListView.cs: Call owner.OnMousexx event to propagate events from
18152 item to ListView. Fixes #80367.
18154 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
18156 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18157 if value is less than one. ItemHeight should not be set to a value
18158 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
18159 Removed extra tabs.
18161 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
18163 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18164 * ToolStripStatusLabel.cs: Add Spring for Moma.
18166 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
18168 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18169 Fixed code formatting. Removed debug code.
18170 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18172 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
18174 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18175 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18176 ArgumentOutOfRangeException if ColumnCount is negative. In
18177 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18178 less than 4 or higher than 32768.
18179 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18180 Fixed FormatProvider to return CurrentCulture unless explicitly set.
18181 Fixed IsFormatProviderDefault to return true if FormatProvider has
18182 not been explicitly set.
18184 2006-12-25 Chris Toshok <toshok@ximian.com>
18186 * Application.cs: add a couple of 2.0 events.
18188 2006-12-25 Chris Toshok <toshok@ximian.com>
18190 * Control.cs: fix compiler warning.
18192 * AxHost.cs: corcompare fixes.
18194 * ApplicationContext.cs: corcompare fixes.
18196 2006-12-25 Chris Toshok <toshok@ximian.com>
18198 * Control.cs: only update dist_right/dist_bottom if the
18199 width/height is > 0. this fixes anchored controls being resized
18200 smaller until they disappear and then resized larger again.
18202 2006-12-25 Chris Toshok <toshok@ximian.com>
18204 * Control.cs: a couple of changes. Remove dist_left and dist_top,
18205 since they're nothing more than X/Left and Y/Top, respectively.
18207 Also, move back to a per-control Bitmap/Graphics for
18208 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18209 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
18212 2006-12-25 Miguel de Icaza <miguel@novell.com>
18214 * MessageBox.cs: Implemented overload that takes a new "bool
18215 displayHelpButton" by adding a new internal field "show_help".
18216 When clicked this will raise the HelpRequested on the owner or the
18219 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18220 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18222 * ListView.cs: Add support ColumnWidthChanged and
18223 ColumnWidthChanging.
18225 Add support for ColumnReordered event.
18226 (ReorderColumn): Add NET_2_0 specific support for cancelling the
18229 Very nice codebase!
18231 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18233 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18235 2006-12-24 Chris Toshok <toshok@ximian.com>
18237 * GridTablesFactory.cs: 2.0 corcompare work.
18239 * ToolStripContainer.cs: add "override" to
18240 ContextMenuStripChanged, and remove the local event object.
18242 * ToolStripDropDown.cs: same with a couple properties.
18244 * ToolStripPanel.cs: same with AutoSizeChanged event.
18246 * TextBoxBase.cs: add "override" to AutoSizeChanged.
18248 * Form.cs: add the remaining 2.0 events, and do some corcompare
18251 * DateTimePicker.cs: add "new" to padding.
18253 * ButtonBase.cs: use Control's use_compatible_text_rendering.
18255 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18257 * DataGridView.cs: PaddingChanged is overridden.
18259 2006-12-24 Chris Toshok <toshok@ximian.com>
18261 * Control.cs: corecompare work here too.
18263 * DataGridViewElement.cs, DataGridView.cs,
18264 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18265 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18266 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18267 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18270 2006-12-24 Miguel de Icaza <miguel@novell.com>
18272 * Control.cs: Switched the error message on the console for a
18273 todo. A review of the code will have to cope with this anyways
18274 (since its a large feature, it is in our radar) and it was
18275 producing too much output when running PDN.
18277 * ToolStripComboBox.cs: Set the text when the SelectedIndex
18278 changes. Applications depend on this (PDN 2.72)
18280 2006-12-23 Chris Toshok <toshok@ximian.com>
18282 * TableLayoutSettings.cs: finish up the corcompare work for this
18285 2006-12-23 Chris Toshok <toshok@ximian.com>
18287 * Control.cs: make SetImplicitBounds internal, do some futzing
18288 with LayoutEngine so that it's available in 1.1, and remove the
18289 entire duplicated code mess from PerformLayout. Use
18290 System.Windows.Forms.Layout.DefaultLayout instead.
18292 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18294 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
18296 * Form.cs: Add MainMenuStrip property.
18298 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
18300 * Control.cs: Add ContextMenuStrip property and implementation.
18301 Fix ContextMenu implementation to show menu centered on control when
18302 activated using the keyboard instead of showing at screen (0,0).
18304 * ToolStripDropDown.cs: Fix needed overload of Show ().
18306 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18308 * Menu.cs: Name property added for 2.0 profile.
18310 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18312 * Menu.cs: Update information about FindMenuItem, method to be
18315 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18317 * MenuAPI.cs: When deselect items deselect also selected subitems.
18319 2006-12-23 Everaldo Canuto <everaldo@simios.org>
18321 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18322 FindSubItemByCoord to found itens that is not active, also an
18323 cheking added to FindSubItemByCoord to search for items only
18324 in visible popup windows. Fixes #80274.
18326 2006-12-22 Everaldo Canuto <everaldo@simios.org>
18328 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18329 internal property, it be care about change ExStyle.
18331 2006-12-22 Andreia Gaita <avidigal@novell.com>
18333 * ContainerControl.cs: set activeControl for parent forms up the
18334 tree when the new activecontrol is a container.
18335 When validating the active control, if it is a container, also
18336 raise up the validation for it's active control. Fixes #80280
18338 * Control.cs: Add internal property flag and check to prevent
18339 Focus events from getting raised when Select() is called for
18340 a ContainerControl. There are still too many focus events being
18341 raised at the moment though.
18342 Cleaned up the code a bit.
18344 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18346 * Control.cs: Added all missing 2.0 events.and
18347 fixed a couple of corcompare issues.
18348 * TrackBar.cs: Implemented missing 2.0 bits.
18349 * MonthCalendar.cs,
18350 * DateTimePicker.cs,
18351 * MdiClient.cs: Fixed some corcompare issues.
18353 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18355 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18356 SplitterPanel.cs: corecompare work.
18358 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18360 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18361 Clean up warnings for BackgroundImageChanged and PaddingChanged
18362 events now that they are implemented in Control.cs.
18364 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
18366 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18368 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18369 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18370 of TableLayoutPanel and supporting cast.
18372 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
18375 - GrabWindow now confines the mouse pointer to the confine window.
18376 - Added Win32ClipCursor and Win32GetClipCursor.
18379 - Added CaptureWithConfine to be able to capture and confine
18382 * InternalWindowManager.cs:
18383 - Call CaptureWithConfine instead of Capture if we're an
18384 MdiChild (fixes #79982).
18386 2006-12-21 Chris Toshok <toshok@ximian.com>
18388 * DataGrid.cs: guard against the initial state of selection, where
18389 selection_start == -1. make sure we only select from index >= 0.
18392 2006-12-21 Chris Toshok <toshok@ximian.com>
18394 * Control.cs: we don't need to be so draconian with
18395 UpdateDistances, and we thusly don't need to call it before
18396 calling PerformLayout in ResumeLayout. Fixes bug #80289.
18398 2006-12-21 Daniel Nauck <dna@mono-project.de>
18401 TextBox.cs: Implemented AutoComplete properties.
18403 2006-12-20 Chris Toshok <toshok@ximian.com>
18405 * DataGridView*.cs: some corecompare work.
18407 2006-12-20 Jackson Harper <jackson@ximian.com>
18409 * XplatUIX11.cs: We need to hide the caret when deleting it,
18410 otherwise you get carets left lying around everywhere.
18411 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
18412 prevents getting some weird half drawn caret tracers when
18414 * TextControl.cs: Attempt to reduce the number of times we need to
18415 recreate the caret.
18417 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
18419 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18421 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18423 * DateTimePicker.cs:
18424 - Implemented missing 2.0 bits.
18425 - Changed some default values to match MS.
18427 2006-12-20 Jackson Harper <jackson@ximian.com>
18429 * TextBoxBase.cs: When changing the font across the document we
18430 can't recalculate after changing each line, since that will cahnge
18432 - PreferredHeight is a little different than i thought.
18433 - When backspacing, move the caret before we do the actual char
18434 delete, because when that delete crosses a wrap boundary the
18435 positional information will change.
18437 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18439 * Control.cs: Added some missing 2.0 bits:
18440 BackgroundImageLayout, BackgroundImageLayoutChanged,
18441 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
18442 add IBindableComponent and IDropTarget implementation.
18444 * MonthCalendar.cs:
18445 - Added all missing 2.0 features:
18446 BackgroundImageLayout, RightToLeftLayout,
18447 OnHandleDestroyed, RightToLeftLayoutChanged,
18448 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18450 - Rewrote all the BoldDate code, it was completely broken.
18451 - Fixed all the tests (the tests can now be re-enabled, the
18452 problems were not with the tests, but with the control, it was
18455 * DateTimePicker.cs: Changed the location where the
18456 MonthCalendar is shown.
18458 2006-12-19 Chris Toshok <toshok@ximian.com>
18460 * DataGridView.cs: add IDropTarget implementation.
18462 * ToolStripPanel.cs: add IDropTarget implementation.
18464 2006-12-19 Jackson Harper <jackson@ximian.com>
18466 * TextControl.cs: soft now means something different than what it
18467 used to mean, we want to move the caret regardless of whether or
18468 not this break was soft (would we really have wanted the caret
18469 to not move with the break in the old context?)
18470 * TreeView.cs: Make sure we factor in the vert scrollbar when
18471 calculating the horizontal scrollbar's maximum.
18473 2006-12-19 Andreia Gaita <avidigal@novell.org>
18475 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18476 check for keywords in alternate casing, close bug #80049.
18478 2006-12-19 Chris Toshok <toshok@ximian.com>
18480 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18481 methods (which all do nothing).
18483 * IDropTarget.cs: add the 4 missing methods.
18485 2006-12-19 Chris Toshok <toshok@ximian.com>
18487 * TableLayoutRowStyleCollection.cs: corcompare work.
18489 * TableLayoutSettings.cs: same.
18491 * TableLayoutStyle.cs: same.
18493 * TableLayoutColumnStyleCollection.cs: same.
18495 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
18497 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18498 TableLayoutPanel I've had in my local tree for way too long.
18500 2006-12-19 Miguel de Icaza <miguel@novell.com>
18502 * TableLayoutSettings.cs: Finish the public API (still needs all
18503 the logic to update on changes).
18505 * TableLayoutPanelCellPosition.cs: new file.
18507 * TableLayoutRowStyleCollection.cs,
18508 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18509 TableLayoutSettings.cs: Track the final 2.0 table api.
18511 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18513 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18514 and Image List 2.0 members for ColummnHeader.
18515 * ListView.cs: Add key-related 2.0 methods for
18516 ColumnHeaderCollection.
18518 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18520 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18521 ArgumentNullException if items argument is null. Ignore null item in
18522 arrays. Removed extra tabs.
18524 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
18526 * MonthCalendar.cs: Fixed InvalidCastException.
18528 2006-12-19 Jackson Harper <jackson@ximian.com>
18530 * TextControl.cs: Don't increment the position here.
18531 - When calculating char positions only add in the line break size
18532 for hard line breaks.
18534 2006-12-19 Andreia Gaita <avidigal@novell.org>
18536 * SendKeys.cs: Changed some things to match ms.net behaviour
18537 when parsing shifted capital letters.
18539 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
18540 Add window handle as parameter to SendInput. X11 needs the
18541 window handle, and the handle being passed to it in the keys
18542 queue is the active control handle (which windows needs), not
18545 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
18546 to support SendKeys on X.
18548 * X11Keyboard: Implement helper method to lookup a linux keycode
18549 given the virtual keycode. Added table of keycode-2-virtualkey
18550 values to support this.
18552 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18554 * ListView.cs: Add support for SelectedIndexCollection
18555 and SelectedItemCollection 2.0 methods. Implement support
18557 * ListViewItem.cs: Add support for ListViewSubItemCollection
18558 2.0 methods. Also, fix an incorrect behavior of AddRange method
18559 (it shouldn't call Clear).
18560 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18562 2006-12-19 Jackson Harper <jackson@ximian.com>
18565 * TextBoxBase.cs: New args for FormatText
18566 * TextControl.cs: Rewrote the main drawing method, this version
18567 feels a little easier to understand and debug to me. Hopefully it
18568 does to others also
18569 - Fix FormatText to OR in the new formating values. Added
18570 FormatSpecified param, basically this works in the same way as
18571 BoundsSpecified in Control.
18572 - Set the caret properties when the caret is positioned.
18573 - When wrapping text make sure that we calculate the width of the
18575 - when calculating alignments we might have wrapped down to the
18576 next line, so don't search for an individual tag, search for the
18578 - We need to invalidate the selection area when we replace the
18581 2006-12-19 Daniel Nauck <dna@mono-project.de>
18583 * Application.cs: add Restart () 2.0 support
18585 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18587 * MenuItem.cs: Invalidate menu item rectangle after change Enable
18588 property. Fixes #80268.
18590 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18592 * MenuAPI.cs: Dont trigger select event when closes top menu
18593 item. Fixes #80270.
18595 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18597 * MenuAPI.cs: When you click on menuitem only trigger onselect
18598 event for top menu itens. Fixes #80271.
18600 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18602 * MdiWindowManager.cs: Make IconicBounds depend on
18603 the bottom of MdiClient, not the top (fixes #80267)
18605 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18607 * MdiClient.cs: Added missing 2.0 attribute
18609 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18611 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18612 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18614 2006-12-18 Everaldo Canuto <everaldo@simios.org>
18616 * MenuAPI.cs: Fix click when menuitem is not popup,
18617 this regression was caused by last commit (#80272).
18619 2006-12-17 Everaldo Canuto <everaldo@simios.org>
18621 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18622 fire click event or close menu. Fixes #80272.
18624 2006-12-17 Daniel Nauck <dna@mono-project.de>
18626 * ListViewHitTestInfo.cs: add
18628 2006-12-17 Daniel Nauck <dna@mono-project.de>
18630 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18631 * FlatButtonAppearance.cs: add
18632 * DockingAttribute.cs: add
18634 2006-12-17 Chris Toshok <toshok@ximian.com>
18636 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18637 and rebind our columns when it does - this way, if you make
18638 changes to the DataTable (or set the Table attribute on a DataView
18639 after setting it as the DataGrid's DataSource, the changes are
18640 made visible.) Fixes bug #80107.
18642 2006-12-17 Daniel Nauck <dna@mono-project.de>
18644 * ListViewGroup.cs: add internal Location property for layouting.
18645 * Theme.cs: add abstract ListViewGroupHeight function.
18646 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18648 2006-12-16 Andreia Gaita <avidigal@novell.com>
18650 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18651 Added reset of selected index to 0 when adding first tab page.
18654 * NumericUpDown.cs: Fix NET_2_0 check
18656 2006-12-16 Daniel Nauck <dna@mono-project.de>
18658 * ListViewGroup.cs: fixed DefaultValueAttribute value
18660 2006-12-16 Daniel Nauck <dna@mono-project.de>
18662 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18664 2006-12-15 Miguel de Icaza <miguel@novell.com>
18666 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18667 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18668 ScrollableControl.cs: Add a handful of methods that are
18671 2006-12-15 Chris Toshok <toshok@ximian.com>
18673 * XplatUIWin32.cs: initial implementation of the Reversible
18674 drawing functions. there are some problems. DrawReversibleFrame
18675 doesn't seem to work at all for Dashed FrameStyle, and in the
18676 Thick case there are drawing errors at the corners (we probably
18677 need to bind Rectangle instead of doing moveto/lineto's.)
18679 2006-12-16 Andreia Gaita <avidigal@novell.com>
18681 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
18682 to send blocks of key messages. Send accumulates keys to send with Flush,
18683 while SendWait sends all keys immediately.
18685 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18686 XplatUIX11.cs, XplatUIX11-new.cs:
18687 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18688 to Win32 SendInput.
18689 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18691 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
18692 testing for ms.net on this class is very tricky, as the tests run too fast
18693 to allow the hook to release, essentially freezing the keyboard and the
18694 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
18697 2006-12-16 Daniel Nauck <dna@mono-project.de>
18699 * Padding.cs: fixed serialization compability to MS ("_var" field names),
18700 added missing attributes.
18702 2006-12-15 Daniel Nauck <dna@mono-project.de>
18704 * ListViewGroup.cs: Added missing attributes.
18705 * ListViewGroupCollection.cs: Added missing attributes.
18707 2006-12-15 Daniel Nauck <dna@mono-project.de>
18709 * ListViewItem.cs: fixed ListViewSubItem text property.
18711 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18713 * Control.cs: Added missing 2.0 attributes
18715 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18717 * MdiClient.cs: Added missing 2.0 attribute.
18718 * MonthCalendar.cs: Added some missing 2.0 attributes
18721 2006-12-15 Daniel Nauck <dna@mono-project.de>
18723 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18725 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
18727 * MainMenu.cs: Add the new 2.0 constructor to help out people
18728 using the MainMenu in VS2005.
18730 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18732 * MdiChildContext.cs: Removed it, no longer used.
18733 * MdiClient.cs: Added missing 2.0 attributes.
18735 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18737 * InternalWindowManager.cs: Fix a NullRef with previous
18738 changes for toolwindows.
18740 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
18743 - Added AfterTopMostControl to allow for certain controls
18744 to always stay on top when normal controls are brought to
18748 - (DrawInversibleRectangle): Get window rectangle from Win32
18749 in stead of from control, since Win32 doesn't calculate
18750 screen coords correctly from control's Location if it
18751 have docked siblings.
18753 * MdiWindowManager.cs:
18754 - Correct the control menu popup location when clicked on
18755 the maximized form icon. (fixes #80223.1)
18756 - Don't show moving rectangle if mouse hasn't moved from
18757 the original clicked point.
18758 - Removed FormGotFocus handler (not used).
18759 - Calculate the control buttons location from the main
18760 window's size and not client size (fixes #79770).
18761 - Form is now closed when the form icon is double-clicked
18763 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18765 * InternalWindowManager.cs:
18766 - Moved some MDI-only methods to MdiWindowManager.
18767 - Removed unused properties and methods.
18768 - Unified method naming for methods handling wm messages.
18769 - Moved all message handling to seperate methods for
18772 * ThemeWin32Classic.cs:
18773 - DrawManagedWindowDecorations now draws the title bar
18774 with a gradient brush.
18775 - Add a CPDrawButtonInternal that allows us to specify
18776 light, normal and dark colors for the buttons (control
18777 buttons for MDI children were drawn with the same light
18778 color as the background, therefore loosing the 3D effect).
18781 - Add a CapturedControl property that is used to
18782 determine the control to resize (defaults to parent).
18783 Needed for MdiClient, since its SizeGrip's parent is
18784 MdiClient, but the control to resize is the main form.
18787 - Set SizeGrip's CapturedControl to the main form in order
18788 to resize the main form and not the MdiClient.
18789 - Override AfterTopMostControl to leave the scrollbars
18792 2006-12-15 Daniel Nauck <dna@mono-project.de>
18794 * ListView.cs: fixed ListViewItemCollection AddRange and
18795 implemented ListViewItemCollection AddRange 2.0 support.
18797 2006-12-15 Daniel Nauck <dna@mono-project.de>
18799 * ListViewGroup.cs: Add.
18800 * ListViewGroupCollection.cs: Add
18801 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18802 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18803 stub for ImageKey 2.0 support.
18805 2006-12-14 Mike Kestner <mkestner@novell.com>
18807 * ListView.cs: add text padding to the autocalculation for columns
18808 of width -2. Fixes #80207.
18810 2006-12-14 Mike Kestner <mkestner@novell.com>
18812 * ListView.cs: add some index guarding for partial row navigation
18813 logic. Fixes #80250.
18815 2006-12-14 Mike Kestner <mkestner@novell.com>
18817 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18818 are added or inserted to the collection. Fixes #81099.
18820 2006-12-13 Everaldo Canuto <everaldo@simios.org>
18822 * MenuAPI.cs: Closes menu when right click out side of popup
18823 it fix problem in ContextMenu and MainMenu. Fixes #80252.
18825 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18827 * ListViewItem.cs: Fix dumb error.
18829 * ListView.cs: Add Find and ContainsKey methods in
18830 ListViewItemCollection, and also return true for IsReadOnly
18831 and IsFixedSize (changes for 2.0).
18833 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
18835 * Control.cs: Allow Region to be set to null.
18837 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18839 * MdiWindowManager.cs: Remove unused (commented out) code.
18840 * Form.cs: When the MdiChild is maximized, the form needs
18841 WM_NCMOUSELEAVE, so request it.
18842 * InternalWindowManager.cs:
18843 - Added tooltips to control buttons.
18844 - Removed duplicated control button handling code.
18845 - Removed unused (commented out) code.
18847 2006-12-12 Everaldo Canuto <everaldo@simios.org>
18849 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
18850 was used because we must set cursor without trigger ChangeCursor event
18851 and without change Cursor control property. Fixes #79963.
18853 2006-12-12 Andreia Gaita <avidigal@novell.com>
18855 * Control.cs: Check if Region setter value is null, and ignore
18857 2006-12-12 Jackson Harper <jackson@ximian.com>
18859 * TextControl.cs: We were almost always drawing one more line then
18860 needed, since the GetLineByPixel will return the last line found
18861 at that pixel. In most cases though, we were invalidating up to
18862 the junction between two lines.
18863 - Improve debug code.
18865 2006-12-12 Chris Toshok <toshok@ximian.com>
18867 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
18868 and FillReversibleRectangle.
18870 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
18871 and FillReversibleRectangle.
18873 * XplatUIWin32.cs: add stubs which do nothing for
18874 DrawReversibleFrame, DrawReversibleLine, and
18875 FillReversibleRectangle.
18877 * XplatUIOSX.cs: add stubs which raise NIE for
18878 DrawReversibleFrame, DrawReversibleLine, and
18879 FillReversibleRectangle.
18881 * XplatUIX11.cs: add working implementation for
18882 DrawReversibleFrame, DrawReversibleLine, and
18883 FillReversibleRectangle.
18885 * ControlPaint.cs: implement DrawReversibleFrame,
18886 DrawReversibleLine, and FillReversibleRectangle, by calling into
18887 the appropriate XplatUI method.
18889 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18891 * Form.cs: Make MdiClient have the focus even if it's
18892 not selectable, since it should receive WM_KEY* and WM_MOUSE
18893 messages. Fixes #79907.
18895 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18897 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
18898 queried after the window is created.
18900 * XplatUIX11.cs: Added SendParentNotify to implement
18901 WM_PARENTNOTIFY logic. Fixes #79965.
18903 * Control.cs: Added MakeParam.
18905 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18907 * MdiClient.cs: Resume Layout before setting window
18908 states (fixes #80201).
18910 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
18912 * MenuAPI.cs: Deselect a menu item after performing
18913 the click (fixes #80197).
18915 2006-12-11 Jackson Harper <jackson@ximian.com>
18917 * TextBoxBase.cs: We need to cap this value, since Maximum -
18918 ViewPortHeight can be less than zero.
18919 - Only do selection with the left mouse button.
18920 * TextBox.cs: Don't tell the world that we have a context menu.
18921 * Control.cs: New method so that we can control whether or not the
18922 context menu is visible outside MWF.
18924 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18926 * ToolBarButton.cs: Fix text positon.
18928 2006-12-11 Miguel de Icaza <miguel@novell.com>
18930 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
18932 * Control.cs (DoubleBuffered): Add implementation.
18934 * Application.cs (OpenForms): Add.
18936 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18938 * Form.cs: Use opacity instead of Opactiy to determine if we need
18939 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
18941 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
18943 * Control.cs: Fix NRE if Control.Site was set to null.
18945 2006-12-11 Chris Toshok <toshok@ximian.com>
18947 * Control.cs: ControlCollection.Remove should return if the arg is
18948 null, and ControlCollection.SetChildIndex should raise a ANE.
18950 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
18952 * Control.cs: Verify value set for Dock property. Code formatting
18955 2006-12-11 Jackson Harper <jackson@ximian.com>
18957 * TextControl.cs: Draw the caret and the selection when a flag is
18959 * TextBoxBase.cs: We want to draw the caret and the selection for
18960 TextBox but not for TextBoxBase.
18961 - If the window is resized and scrolling is no longer needed (the
18962 whole doc is visible) set the scroll position to zero.
18963 - The default SelectWord (the one TextBox uses) should move the
18964 caret to the end of the word.
18965 - SelectAll moves the caret to the end of the selection.
18966 * TextBox.cs: We don't selectall on focus, we just do it when the
18967 control is created.
18969 2006-12-11 Mike Kestner <mkestner@novell.com>
18971 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
18973 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18975 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
18977 * ListViewItem.cs: Add Name 2.0 property.
18979 2006-12-11 Andreia Gaita <avidigal@novell.com>
18981 * TabControl.cs: Set visibility on selected or default tab
18982 when tabcontrol handle is created, so that it's contents
18983 actually show up (duh). Fixes #80193
18984 Don't redraw the control if there is no handle created, as
18985 the selected index might be completely invalid. Added some tests
18988 2006-12-11 Everaldo Canuto <everaldo@simios.org>
18990 * ToolBar.cs: Uses maximun width and height of all buttons as
18991 button rectangle when ButtonSize specified, it looks strange but
18992 is what happens in Win32. Fixes #80189.
18994 2006-12-11 Jackson Harper <jackson@ximian.com>
18996 * TextControl.cs: Need to track undo levels ourself, since
18997 compound actions will mess them up.
18999 2006-12-10 Andreia Gaita <avidigal@novell.com>
19001 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19002 SelectedIndex value is changed (even if it's not valid).
19003 Reset SelectedIndex to 0 when the handle is created and if
19004 the current index is invalid.
19005 Fixes SelectdeIndex unit tests and #80128
19007 2006-12-08 Chris Toshok <toshok@ximian.com>
19009 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19010 calls EndEdit, it needs to be called before we set current_cell to
19011 its new value. Otherwise, we end up committing the value in the
19012 textbox to the new cell as well. Fixes bug #80160.
19014 2006-12-08 Chris Toshok <toshok@ximian.com>
19016 * Form.cs (set_CancelButton): if the button's DialogResult is
19017 None, set it to Cancel. Fixes bug 80180.
19019 2006-12-08 Jackson Harper <jackson@ximian.com>
19021 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19022 to watch ourselves when setting the canvas size and setting the
19025 2006-12-08 Chris Toshok <toshok@ximian.com>
19027 * DataGrid.cs: comment out the two MakeTransparent calls for the
19028 time being so people using trunk (and not 1.2.2) on windows can
19029 actually use the datagrid. This deals with bug #80151.
19031 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
19033 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19034 Graphics.DrawImage (image, int, int, int, int) overload instead
19035 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
19036 the dpi difference and was blurring images it drew.
19039 2006-12-08 Chris Toshok <toshok@ximian.com>
19041 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19042 rowcnt is 0 (such as with an empty datasource), and make sure we
19043 initialize not_usedarea.Y to cells.Y, so we don't draw over the
19044 other areas (caption, parent row, etc, etc). Fixes bug #80095.
19046 2006-12-08 Chris Toshok <toshok@ximian.com>
19048 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19051 2006-12-08 Chris Toshok <toshok@ximian.com>
19053 [ Fixes bug #80167 ]
19055 * ThemeWin32Classic.cs: don't draw the image if the button's flat
19056 style is FlatStyle.System.
19058 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19059 ButtonBase.flat_style private, and switch uses of it to the public
19062 2006-12-08 Chris Toshok <toshok@ximian.com>
19064 [ Fixes bug #80121 ]
19066 * ThemeWin32Classic.cs: center the caption text in the datagrid
19069 * DataGrid.cs: lessen the amount we add to the caption height from
19070 6 to 2. 6 was making it huge.
19072 2006-12-08 Andreia Gaita <avidigal@novell.com>
19074 * UpDownBase: Handle MouseWheel call directly instead of capturing
19075 the inner textbox's OnMouseWheel. Fixes #80166
19077 2006-12-08 Jackson Harper <jackson@ximian.com>
19079 * TextControl.cs: We need to invalidate the textbox when we empty
19080 it (how had this not been discovered before?)
19082 2006-12-08 Jackson Harper <jackson@ximian.com>
19084 * TextBoxBase.cs: Reworked the mouse down code so I could get it
19085 to behave like MS, we now ignore the eventargs.Click and just
19086 track state ourself, which we were already doing anyways.
19087 - Constrain the double click handler to the double click size.
19089 2006-12-08 Chris Toshok <toshok@ximian.com>
19091 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19092 direction if that scrollbar isn't shown. fixes bug #80158.
19094 2006-12-08 Andreia Gaita <avidigal@novell.com>
19096 * NumericUpDown.cs: Update value on getter. Fixes #79950
19098 2006-12-08 Chris Toshok <toshok@ximian.com>
19100 * MenuItem.cs: add back in the event cloning code. I didn't know
19101 how to do it in the face of the EventHandlerList work i'd done
19102 last week. Fixes bug #80183.
19104 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
19106 * Control.cs: Add an invalidate to the BackgroundImage setter.
19109 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
19111 * ToolStrip*: Add some small properties reported by MoMA, fix event
19112 firing and default properties based off of unit tests, and add some
19113 attributes based off of the class status page.
19115 2006-12-07 Jackson Harper <jackson@ximian.com>
19117 * TextBoxBase.cs: Take HideSelection into account when determining
19118 whether or not to show the selection.
19119 * RichTextBox.cs: After inserting the RTF into the document move
19120 the cursor to the beginning of the document.
19122 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
19124 * Control.cs: Remove static ArrayList "controls" which maintained
19125 a reference to every control created.
19126 * Application.cs: Create a static FormCollection to maintain a reference
19127 to every form created. Use it in places that formerly enumerated through
19128 the controls one looking for forms.
19129 * Form.cs: Add and remove self from above FormCollection.
19131 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
19133 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19134 not libgdk (though it makes me wonder why I didn't have any
19137 2006-12-07 Chris Toshok <toshok@ximian.com>
19139 [ you had to know this was coming after that last commit...]
19141 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19142 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19143 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19146 2006-12-07 Chris Toshok <toshok@ximian.com>
19148 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19149 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19150 all the behavior we need for double buffering.
19152 * XplatUIDriver.cs: implement the 3 double buffer methods using a
19153 client side Bitmap, just like the old Control-based double buffer
19154 code did. The methods are virtual, so each XplatUI driver
19155 subclass can replace the implementation to use a faster, platform
19158 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19159 double buffer code, and clean things up a bit in the process.
19161 2006-12-06 Chris Toshok <toshok@ximian.com>
19163 * Control.cs: reindent WndProc.
19165 2006-12-06 Chris Toshok <toshok@ximian.com>
19167 [ I wanna be like BenM when I grow up ]
19169 * Hwnd.cs: create a single static Graphics object on the static
19170 Bitmap we create. use this for our text measurements.
19172 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19173 This was causing us to allocate a backbuffer for every control,
19174 even when it wasn't flagged as double buffered. Instead use the
19175 single graphics instance. This might have implications for
19176 multithreaded applications. If we run into problems we can switch
19177 to creating 1 Graphics per control, on the static Hwnd bitmap.
19179 this change nets us a 7M savings in private dirty mappings when
19180 running FormsTest.exe.
19182 2006-12-06 Chris Toshok <toshok@ximian.com>
19184 * ListView.cs: the BackgroundImage override is just to set
19185 attributes. chain up to base.BackgroundImage.
19187 * RichTextBox.cs: same.
19189 * ToolBar.cs: same, but we need to also redraw the toolbar when it
19190 changes, so instead a handler for BackgroundImageChanged.
19192 * Control.cs: make background_image private.
19194 2006-12-06 Chris Toshok <toshok@ximian.com>
19196 * ScrollBar.cs: change the assignment of cursor to Cursor. not
19197 sure we even need this assignment, but roll with it for now.
19199 * Control.cs: make the cursor field private.
19201 2006-12-06 Chris Toshok <toshok@ximian.com>
19203 * Form.cs: we don't need to explicitly set ImeMode to
19204 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19205 behavior in the face of ImeMode.Inherit.
19207 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19208 change the ctor's assignment to use ImeMode instead of ime_mode.
19210 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19211 ImeModeInherit. Only check for the parent's imemode (and return
19212 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19213 This fixes the button unit test, which sets both ImeMode and
19214 DefaultImeMode to ImeMode.Disable.
19216 also make the ime_mode field private.
19218 2006-12-06 Chris Toshok <toshok@ximian.com>
19220 * Control.cs: make control_style private.
19222 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
19223 setting the styles to true, then setting them to false instead of
19224 reverting to their previous values.
19226 also, call SetStyle on the scrollbars instead of using
19227 control_style directly.
19229 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
19231 * FormCollection.cs: Implement. [2.0]
19233 2006-12-06 Chris Toshok <toshok@ximian.com>
19235 * Control.cs: make tab_stop private.
19237 * Label.cs: set TabStop, not tab_stop. reformat some event
19238 add/remove methods to make them more compact.
19240 2006-12-06 Chris Toshok <toshok@ximian.com>
19242 * RadioButton.cs: fix TabStop handling.
19244 2006-12-06 Chris Toshok <toshok@ximian.com>
19246 * TextBox.cs: remove the explicit assignments to has_focus.
19249 * ButtonBase.cs: remove the assignment to has_focus. Control will
19252 2006-12-06 Chris Toshok <toshok@ximian.com>
19254 * ButtonBase.cs: remove all uses of is_enabled from this code.
19255 it's always true when any of the code containing the checks is
19258 2006-12-06 Chris Toshok <toshok@ximian.com>
19260 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19261 with different semantics (some are present in both 1.1 and 2.0
19262 profiles) so that we match MS's behavior in our unit tests.
19264 2006-12-06 Jackson Harper <jackson@ximian.com>
19266 * TextControl.cs: Make this operation undoable.
19267 * TextBoxBase.cs: Factor the border width into the preferred
19269 - implement Modified as per the spec.
19271 2006-12-06 Chris Toshok <toshok@ximian.com>
19273 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19275 2006-12-06 Chris Toshok <toshok@ximian.com>
19277 * Control.cs: make right_to_left and context_menu fields private.
19279 2006-12-06 Chris Toshok <toshok@ximian.com>
19281 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19282 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19283 Control.child_controls private. switch all uses over to
19286 2006-12-06 Chris Toshok <toshok@ximian.com>
19288 * System.Windows.Forms/GroupBox.cs,
19289 System.Windows.Forms/AccessibleObject.cs,
19290 System.Windows.Forms/ErrorProvider.cs,
19291 System.Windows.Forms/Control.cs,
19292 System.Windows.Forms/UpDownBase.cs,
19293 System.Windows.Forms/ScrollBar.cs,
19294 System.Windows.Forms/DateTimePicker.cs,
19295 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19296 System.Windows.Forms/ToolTip.cs,
19297 System.Windows.Forms/RadioButton.cs,
19298 System.Windows.Forms/LinkLabel.cs,
19299 System.Windows.Forms/Splitter.cs,
19300 System.Windows.Forms/TextBoxBase.cs,
19301 System.Windows.Forms/ToolStripTextBox.cs,
19302 System.Windows.Forms/ContainerControl.cs,
19303 System.Windows.Forms/ThemeWin32Classic.cs,
19304 System.Windows.Forms/SizeGrip.cs,
19305 System.Windows.Forms/ToolStripDropDown.cs,
19306 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19307 private. switch all uses over to Control.Parent.
19309 2006-12-06 Chris Toshok <toshok@ximian.com>
19311 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19312 Control does this before calling emitting these events.
19314 * TabControl.cs: same.
19316 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19317 Control.client_rect.
19319 * ButtonBase.cs: use the ClientSize property instead of the
19322 * ScrollableControl.cs: same.
19324 * Control.cs: another pass at making properties private. also,
19325 move the initialization of tab_stop to the ctor.
19327 2006-12-05 Andreia Gaita <avidigal@novell.com>
19329 * TabControl.cs: Let the selected index be set freely if the
19330 control handle is not yet created.
19332 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
19334 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
19335 internal until I can rewrite DefaultLayout.
19336 * ToolStrip.cs: Fix build error and some general cleaning.
19337 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19338 Fix build errors caused by making some of Control's fields private.
19340 2006-12-05 Jackson Harper <jackson@ximian.com>
19342 * TextControl.cs: Redo Insert a little so that it use IndexOf
19343 instead of Split, this prevents it from messing up on things like
19344 \n\n\n. Also more effecient since the split array doesn't need to
19346 * TextBoxBase.cs: AppendText doesnt handle multiline and non
19347 multiline text differently, this is the first of many fixes that
19348 will make multiline/non-multiline the same thing as far as the
19349 TextBoxBase is concerned.
19350 - Don't split the text and insert lines, this can lose some line
19351 endings (like is the last line a soft or hard break). Instead use
19353 - Fix an off by one when combining all the lines in the Text
19355 - Remove separate multiline handling from the Text getter/setter.
19357 2006-12-05 Chris Toshok <toshok@ximian.com>
19359 * ButtonBase.cs: a few changes:
19361 - don't reinitialize internal Control fields in the ctor when they
19362 have the same values as Control sets them.
19364 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
19365 this before calling those methods.
19367 - we don't need to call Refresh for anything. use Invalidate
19370 - OnEnabledChanged doesn't need to redraw at all - Control.cs
19371 calls Refresh in its OnEnabledChanged.
19373 - several of the events we were registered for in the ctor to
19374 redraw ourselves already include calls to Invalidate in the
19375 property setters that raise the events. remove the extra
19378 - reformat a switch statement that was 83274658 columns wide.
19380 2006-12-05 Mike Kestner <mkestner@novell.com>
19382 * ComboBox.cs: fix a unit test regression from a TextBox
19383 SelectionLength return of -1 when there's no selection.
19385 2006-12-05 Chris Toshok <toshok@ximian.com>
19387 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19388 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19389 cleaning up some of the internal Control fields being used by
19392 2006-12-05 Mike Kestner <mkestner@novell.com>
19394 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
19395 listbox after AddImplicit calls since it defaults to hidden. Add a
19396 hack to preserve requested heights across DropDownStyle changes.
19398 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
19400 * PropertyGrid.cs: Hide FindFirstItem method from public API.
19402 2006-12-05 Chris Toshok <toshok@ximian.com>
19404 * DataGridView.cs: fix compiler warnings.
19406 * PrintControllerWithStatusDialog.cs: same.
19408 * ToolBar.cs: same.
19410 * FolderBrowserDialog.cs: same.
19412 * Splitter.cs: same.
19414 * DataGridViewComboBoxCell.cs: same.
19416 * XplatUIWin32.cs: same.
19418 * PictureBox.cs: same.
19420 * Win32DnD.cs: same.
19422 * PageSetupDialog.cs: same.
19424 * FileDialog.cs: same.
19426 * PrintDialog.cs: same.
19428 * DataGridTextBoxColumn.cs: same.
19430 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19432 2006-12-05 Chris Toshok <toshok@ximian.com>
19434 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19435 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19436 System.ComponentModel.EventHandlerList work.
19438 2006-12-05 Jonathan Chambers <joncham@gmail.com>
19440 * DrawTreeNodeEventArgs.cs: Added.
19442 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19444 * InternalWindowManager.cs: Remove an unused field.
19446 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19448 * InternalWindowManager.cs:
19449 - Save the point where the title bar is clicked.
19451 * MdiWindowManager.cs:
19452 - Only allow moving of the window as long as the
19453 clicked point on the title bar does not get out of
19454 MdiClient's rectangle. Fixes #79982.
19457 - Added Horizontal/VerticalScrollbarVisible.
19458 - Simplified the scrollbar sizing algorithm.
19459 - Cache the difference in scrolled value in
19460 H/VBarValueChanged and move the calculation out
19463 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
19465 * Control.cs: Make the Console.WriteLine in WndProc
19468 2006-12-05 Chris Toshok <toshok@ximian.com>
19470 * ToolStripManager.cs, ToolStripButton.cs,
19471 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19472 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19473 ToolStripSplitButton.cs, ToolStripSeparator.cs,
19474 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19475 ToolStripProgressBar.cs, ToolStripContainer.cs,
19476 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19477 to using System.ComponentModel.EventHandlerList.
19479 2006-12-04 Chris Toshok <toshok@ximian.com>
19481 * LinkLabel.cs: fix up compiler warnings.
19483 * TableLayoutSettings.cs: same.
19485 * TreeView.cs: same.
19487 * ToolBar.cs: same.
19489 * TabControl.cs: same.
19491 * RichTextBox.cs: same.
19493 * ListViewItem.cs: same.
19495 * PropertyGrid.cs: same.
19497 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19501 * TextRenderer.cs: fix up compiler warnings.
19505 * Form.cs: corcompare fixes.
19507 * PictureBox.cs: fix up compiler warnings.
19509 * ImageListStreamer.cs: same.
19511 * TrackBar.cs: corcompare fix.
19513 * Control.cs: fix up compiler warnings.
19515 * SplitterPanel.cs: same.
19517 * NumericTextBox.cs: same.
19519 * ImageList.cs: same.
19521 * StatusStrip.cs: same.
19523 * ProgressBar.cs: corcompare fix.
19525 * ToolStripButton.cs: fix up compiler warnings.
19527 * ToolStripStatusLabel.cs: same.
19529 * ToolStripSplitButton.cs: same.
19531 * ToolStripSeparator.cs: same.
19533 * ToolStripProgressBar.cs: same.
19535 * ToolStripDropDownMenu.cs: same
19537 * ToolStripDropDown.cs: same.
19539 * ToolStripDropDownButton.cs: same.
19541 * ToolStrip.cs: same.
19543 * ToolStripControlHost.cs: same.
19545 * ToolStripContentPanel.cs: same.
19547 * ToolStripDropDown.cs: same.
19549 * ToolStripContainer.cs: same.
19551 * ToolStripPanel.cs: same, and add "new" where we need it to work
19552 with the new ArrangedElementCollection.
19554 * ToolStripItemCollection.cs: add "new" where we need it to work
19555 with the new ArrangedElementCollection.
19557 2006-12-04 Andreia Gaita <avidigal@novell.com>
19559 * TabControl.cs: Fix default tab selection to after TabControl
19560 gets focus and not before. Fixes #80128
19562 2006-12-04 Chris Toshok <toshok@ximian.com>
19564 * DataGridTableStyle.cs: remove the gross calling of
19565 datagrid.Refresh from here. It's a broken idea and it doesn't
19568 * DataGrid.cs: instead, just register/unregister from the
19569 DataGridTableStyle events in CurrentTableStyle. we play it
19570 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19571 even though some would most likely not require it. Fixes bug
19572 #80115 (and one portion of #80117 as a side effect).
19574 2006-12-04 Chris Toshok <toshok@ximian.com>
19576 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19577 so the textbox (if any) goes away. Fixes bug #80117.
19579 2006-12-04 Chris Toshok <toshok@ximian.com>
19581 * DataGridColumnStyle.cs: set the column's readonly property
19582 initially based on the property descriptor's IsReadOnly. Fixes
19585 2006-12-04 Chris Toshok <toshok@ximian.com>
19587 * ComboBox.cs: wrap the dropdown style changing work in
19588 SuspendLayout/ResumeLayout. Fixes bug #79968.
19590 2006-12-04 Jackson Harper <jackson@ximian.com>
19592 * TextBoxBase.cs: Fix off by one, since these are one-based.
19593 * TextBox.cs: Select all the text when we get focus. The TextBox
19594 does this but the RTB does not.
19596 2006-12-04 Chris Toshok <toshok@ximian.com>
19598 * DataGridTextBoxColumn.cs: remove some spew.
19600 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19601 but some part of me is saying "it shouldn't be here.." At any
19602 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
19605 2006-12-04 Chris Toshok <toshok@ximian.com>
19607 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19608 to reassign the propertydescriptor.
19610 2006-12-04 Jackson Harper <jackson@ximian.com>
19613 * TextControl.cs: Remove some unused variables. Maybe this will
19614 patch things up between mike and I.
19615 - don't split lines less then one char wide, if the viewport is
19616 that small text won't be visible anyways.
19618 2006-12-04 Jackson Harper <jackson@ximian.com>
19620 * TextBoxBase.cs: Default selection length is -1, need to do some
19621 more testing on windows to see when this is used for the property.
19622 - Redid the Lines [] property to that we properly remove soft line
19624 - added support for preserving carriage returns
19625 - CanUndo is not a variable like 'is undo enabled' it just returns
19626 true if there is undo operations available.
19627 - AppendText doesn't need to grab the last tag itself anymore,
19628 this happens automatically when we move the cursor.
19629 * TextControl.cs: Add CompoundActions to the undo class. This
19630 allows combining the other operations into one big option. ie a
19631 paste will combine { delete old, insert new, move cursor }
19632 - Add InsertString undo operation
19633 - New method for deleting multiline text
19634 - Add carriage returns to lines. So we can preserve carriage
19635 returns when text is 'roundtripped'
19637 2006-12-04 Chris Toshok <toshok@ximian.com>
19639 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19640 minimum 0. Fixes the scrollbar exception in bug #80136.
19642 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19645 * MdiWindowManager: Removed unused fields and methods.
19647 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19649 * StatusBar.cs: Update all panels when a AutoSize=Contents
19650 panel needs updating.
19652 * StatusBarPanel.cs: Remove twidth and only use initialize.
19655 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
19657 * Form.cs: When a form's MdiParent is set add it directly
19658 on top of the z-order in stead of relying on MdiClient's
19659 ActivateChild to do it. Fixes #80135.
19662 - Remove original_order, mdi_child_list is already doing
19664 - Create mdi_child_list on construction in
19665 stead of first use (avoids a few null checks).
19667 * MenuItem.cs: Use an already existing list of mdi children
19668 to get the correct order of children and remove the other
19671 2006-12-04 Chris Toshok <toshok@ximian.com>
19673 * PropertyGridView.cs: cached_splitter_location is only used in
19674 !DOUBLEBUFFER code.
19676 * PropertyGrid.cs: implement the ComComponentNameChanged event
19677 using Events, hoping that would fix the warning. Looks like a
19678 compiler bug instead (#80144).
19680 * PropertyManager.cs: remove unused method.
19682 2006-11-04 Everaldo Canuto <everaldo@simios.org>
19684 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
19685 include parentesis to fix expression evaluation. Fixes #79634.
19687 2006-11-02 Everaldo Canuto <everaldo@simios.org>
19690 - Changes to fix behavior in Menu control, some reported in #80097
19691 and other detected during behavior refactory like a select event
19693 - Remove unneded "if's" conditions.
19694 - Created an internal to flag when popup is active in control, we need
19695 it because in .NET you can have menu active but without popup active
19696 when you active menu using popup without visible items.
19697 - Mimic win32 behavior for Select and Popup events.
19698 - Dont open popup menu when you dont have visible subitems.
19699 - Do nothing when click on disabled menu item.
19700 - Some small changes to follow the coding style guidelines.
19701 - Unselect menu only when another control gives focus. Fixes #80097.
19702 - Remove unused code.
19704 * MenuItem.cs: internal VisibleItems method to check if menu
19705 theres visible subitems, it will be usefull to fix some
19706 behavior in Menu control.
19708 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19710 * Timer.cs: Tag property for 2.0 profile.
19712 2006-12-01 Chris Toshok <toshok@ximian.com>
19714 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19716 * Win32DnD.cs: comment out some unused fields.
19718 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19719 some unused properties/methods.
19721 * XplatUIX11.cs: fix MousePosition so we override the base class's
19722 property instead of conflicting with it.
19724 * PictureBox.cs: comment out some unused fields
19726 * OSXStructs.cs: make some struct fields public.
19728 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19729 MousePosition so we override the base class's property instead of
19730 conflicting with it.
19732 * X11Dnd.cs: comment out some unused fields
19734 * X11DesktopColors.cs: fix some struct field visibility to quiet
19737 * X11Dnd.cs: remove some debug code.
19739 * ThemeClearlooks.cs: comment out unused field.
19741 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19743 * ThemeGtk.cs: comment out some unused pinvokes.
19745 * Timer.cs: remove some unused fields.
19747 * ThemeClearlooks.cs: comment out unused field.
19749 * UpDownBase.cs: comment out unused field.
19751 * DataObject.cs: comment out unused field.
19753 * DataGridBoolColumn.cs: reomve unused field.
19755 * DataGrid.cs: remove unused field.
19757 * Cursor.cs: remove old ToBitmap code.
19759 * ControlPaint.cs: remove unused method.
19761 * ScrollBar.cs: remove unused fields.
19763 * ComboBox.cs: remove unused field, and chain up to
19764 AccessibleObject ctor.
19766 * ListBox.cs: remove unused field.
19768 * ButtonBase.cs: wrap a couple fields in NET_2_0.
19770 * GridEntry.cs: remove unused fields.
19772 * Binding.cs: remove unused fields.
19774 * AxHost.cs: remove unused method.
19776 * ContainerControl.cs: remove unused field.
19778 * ScrollableControl.cs: remove unused fields.
19780 2006-12-01 Chris Toshok <toshok@ximian.com>
19782 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19783 the Where/WhereString stuff. it's easy enough to CWL
19784 Environment.StackTrace.
19786 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19787 unused private fields.
19789 2006-12-01 Jackson Harper <jackson@ximian.com>
19791 * TextControl.cs: Do not update the view while inserting multiline
19792 text. If we update the view we might wrap lines, before entering
19793 the new lines, which causes the new line insertion calculations to
19794 be totally fubared.
19795 - Remove an old TODO
19796 - Make debug output a little nicer
19798 2006-12-01 Chris Toshok <toshok@ximian.com>
19800 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19802 2006-12-01 Chris Toshok <toshok@ximian.com>
19804 [ fix the majority of the CS0108 warnings we've been suppressing ]
19806 * TreeView.cs: mark BackgroundImageChanged as 'new'.
19808 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
19809 to "LayoutToolBar" to quiet mcs.
19811 * TabControl.cs: mark our ControlCollection class as 'new'.
19813 * TextBoxBase.cs: mark some events as 'new'.
19815 * Splitter.cs: TabStop is 'new'.
19817 * ControlBindingsCollection.cs: mark a few methods as new since
19818 they change the visibility from protected to public.
19820 * RadioButton.cs: DoubleClick -> base class, and remove unused
19823 * MonthCalendar.cs: ImeMode property -> base class, and mark many
19826 * NumericUpDown.cs: TextChanged -> base class.
19828 * CheckedListBox.cs: mark our ObjectCollection class as new to
19831 * FolderBrowserDialog.cs: make HelpRequest event new and have it
19832 muck with the base class.
19834 * StatusBar.cs: fix some mcs warnings about Update being the same
19835 name as a base class method.
19837 * RichTextBox.cs: mark some events as new, and make them do things
19838 to the base class impl.
19840 * UserControl.cs: mark TextChanged as new, and have it manipulate
19843 * UpDownBase.cs: mark some things new.
19845 * CheckBox.cs: mark DoubleClick "new", and add some text about
19846 what we need to look at.
19848 * Panel.cs: make the events "new", and manipulate the base
19849 version. these are just here for attributes.
19851 * AccessibleObject.cs: make owner private.
19853 * Control.cs: deal with AccessibleObject.owner being private.
19854 cache our own copy if we need it.
19856 * Button.cs: add "new" to the DoubleClickEvent.
19858 * ListBox.cs: no need to track our own has_focus here. let
19859 Control.has_focus do it for us. Also some other work to clear up
19860 warnings about not overriding base class methods of the same name.
19862 * ComboBox.cs: clear up some warnings about not override base
19863 class methods of the same name.
19865 2006-12-01 Chris Toshok <toshok@ximian.com>
19867 * Form.cs: flag a few things as "new" to quiet some of the mcs
19872 * PrintPreviewDialog.cs: same.
19874 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
19875 now DGV isn't so horrible on the class status page. also, move
19876 all events to using System.ComponentModel.EventHandlerList. my
19879 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
19881 * MdiWindowManager.cs:
19882 - Set form to active mdi child if shown,
19883 and update the active mdi child to the next
19884 remaining child in the z-order if the form is hidden.
19887 - Track if the form has been visible and if its
19888 visibility is beeing changed, so that the MdiClient
19889 can properly decide the ActiveMdiChild. The MdiClient
19890 cannot track this since the form can change visibility
19891 before MdiClient is created.
19894 - Don't activate anything of the parent form is changing
19896 - Rework ActiveMdiChild to only return visible mdi
19897 children and take into account several other corner
19900 2006-12-01 Chris Toshok <toshok@ximian.com>
19902 * IBindableComponent.cs: new 2.0 interface.
19904 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
19906 * DataGrid.cs: Font for caption area is bold by default.
19908 2006-12-01 Everaldo Canuto <everaldo@simios.org>
19910 * Menu.cs: Tag property for 2.0.
19912 2006-11-01 Everaldo Canuto <everaldo@simios.org>
19914 * ThemeWin32Classic.cs: Adjust menu separator drawing.
19916 2006-12-01 Chris Toshok <toshok@ximian.com>
19918 * TreeView.cs: doh, the Begin* events should be
19919 TreeViewCancelEventHandler.
19921 2006-12-01 Chris Toshok <toshok@ximian.com>
19923 * Form.cs: Form.ControlCollection already stores off the
19924 form_owner field. don't access the base class's internal "owner"
19927 * Control.cs: make all the fields in Control.ControlCollection
19928 private. there's no need for any internal fields here.
19930 2006-12-01 Chris Toshok <toshok@ximian.com>
19932 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
19933 OnHandleCreated. Fixes bug #80109.
19935 2006-12-01 Chris Toshok <toshok@ximian.com>
19937 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
19938 SplitContainer.cs, Control.cs, StatusStrip.cs,
19939 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
19940 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
19941 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
19942 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
19943 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
19944 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
19945 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
19946 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
19947 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
19948 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
19950 do most of the work to convert our code over to use
19951 System.ComponentModel.Component.Events for
19952 adding/removing/dispatching events.
19955 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19957 * DataGridView.cs: Fix an ArgumentNullException reported
19958 twice today in IRC.
19960 2006-11-30 Mike Kestner <mkestner@novell.com>
19962 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
19963 grabbed listbox. Fixes #80036 and #80101.
19965 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19967 * Message.cs: Changed ToString() to match MS.
19969 2006-11-30 Jackson Harper <jackson@ximian.com>
19971 * TextBoxBase.cs: You can still change the selected text on a read
19973 * TextControl.cs: Lower magic number for wrap calculations. This
19974 lets text get closer to the right (far) edge.
19976 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
19978 * Control.cs: Tweak 2.0 layout properties.
19979 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
19980 * TextRenderer.cs: Add a new overload.
19981 * ToolStrip*: Huge amount of changes and new features.
19983 2006-11-30 Mike Kestner <mkestner@novell.com>
19985 * ComboBox.cs: fixes for LargeChange and Maximum to get the
19986 scroll range correct. Fixes #79994.
19988 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
19990 * MdiWindowManager.cs: Update main form's text when
19991 a form is closed. (fixes #80038)
19993 2006-11-30 Everaldo Canuto <everaldo@simios.org>
19996 - Fix an regression in ButtonSize.
19997 - Get ImeMode default value change to "Disable".
19998 - Get ShowTooltips default value change to true, default value is
19999 "false" but after make a test in .NET we get "true" result as default.
20001 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
20003 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20005 2006-11-29 Chris Toshok <toshok@ximian.com>
20007 * XplatUIWin32.cs (GetWindowTransparency): check return value of
20008 GetLayeredWindowAttributes. if it's 0, return 1.0, as
20009 SetWindowTransparency hasn't been called.
20011 2006-11-29 Chris Toshok <toshok@ximian.com>
20013 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20015 (set_AllowTransparency): reorder things a little so that the
20016 WS_EX_LAYERED style is removed properly.
20018 2006-11-29 Chris Toshok <toshok@ximian.com>
20020 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20022 * Form.cs: only call the XplatUI transparency method (get/set) if
20023 SupportsTransparency says it's supported. Otherwise fallback to
20024 doing nothing (in the set case) or returning the instance field we
20025 cache (in the get case).
20027 * XplatUIStructs.cs: add TransparencySupport flag enum.
20029 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20030 change to SupportsTransparency.
20032 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20033 TransparencySupport.None from SupportsTransparency.
20035 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20036 TransparencySupport.Set from SupportsTransparency.
20038 * XplatUIWin32.cs: implement GetWindowTransparency calling
20039 GetLayeredWindowAttributes, and implement SupportsTransparency by
20040 checking whether or not both
20041 GetWindowTransparency/SetWindowTransparency are available
20042 entrypoints. We need to do this since SetWindowTransparency is
20043 available as of win2k, but GetWindowTransparency requires winxp.
20046 * XplatUI.cs: Add GetWindowTransparency, and change
20047 SupportsTransparency to allow for either/both Get/Set.
20049 2006-11-29 Chris Toshok <toshok@ximian.com>
20051 * DataGrid.cs: keep from going into an infinite loop redrawing a
20052 datagrid that has no datasource. Fixes bug #80033.
20054 2006-11-29 Chris Toshok <toshok@ximian.com>
20056 * MenuItem.cs: fix the NRE when we assign text (and therefore call
20057 Invalidate) before the mainmenu has been assigned to a control.
20059 2006-11-29 Chris Toshok <toshok@ximian.com>
20061 * DataGrid.cs: detect when we should be double the double click
20062 row/column autosize stuff, although that codepath has yet to be
20063 written. part of the work for bug #79891.
20065 2006-11-29 Chris Toshok <toshok@ximian.com>
20067 * Binding.cs (SetControl): fix unit test.
20069 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20071 * PageSetupDialog.cs: Validate the margins and set them in
20073 * NumericTextBox.cs: New class to mimic the behavior of the
20074 textboxes used in the printing dialogs.
20076 2006-11-29 Andreia Gaita <avidigal@novell.com>
20078 * Form.cs: Revert previous change (remove call UpdateBounds
20079 from form constructor), because it messes with the handle creation
20080 order, and that one needs lots and lots of love.
20081 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20082 for valid printer and throw InvalidPrinterException if document
20083 is set but printer not valid), adding a MonoTODO. Once
20084 handle creation is done properly, we can put this back in.
20086 2006-11-28 Everaldo Canuto <everaldo@simios.org>
20088 * MenuItem.cs: Create a invalidate method for menu item, to be
20089 calling from set text, it make text changes to imadiate update
20090 on screen. Fixes #80013.
20092 2006-11-28 Everaldo Canuto <everaldo@simios.org>
20094 * ToolBar.cs: Fixes and simplify toolbar button layout, it
20095 fixes bug #80070 and some other problem on toolbar buttons
20098 2006-11-28 Everaldo Canuto <everaldo@simios.org>
20100 * ThemeWin32Classic.cs: Paint toolbar toggle button background
20101 with dotted brush. Fixes #79564
20103 2006-11-28 Andreia Gaita <avidigal@novell.com>
20105 * Form.cs: Removed call to UpdateBounds on Form
20106 constructor, it was causing a call to CreateHandle
20107 before it was supposed to.
20108 * PrintControllerWithStatusDialog: Applied patch
20109 by Chris Toshok to hide controller when there are
20110 no printers available.
20111 PrintDialog.cs: initialize printer settings to
20112 null - correct DefaultValues test #5
20113 * PrintPreviewControl.cs: Move PrintController
20114 initialization to GeneratePreview
20115 * PrintPreviewDialog.cs:
20116 - Remove Preview generation from Document_set(). It is
20118 - Throw InvalidPrinterException on CreateHandle if
20119 a Document is set but there are no printers or
20120 printer is not valid.
20121 * ThemeWin32Classic: don't paint PrintPreviewControl
20122 if there is nothing to paint
20124 2006-11-28 Miguel de Icaza <miguel@novell.com>
20126 * Form.cs: Add another popular method.
20128 * TabPage.cs: ditto.
20130 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20132 * MenuItem.cs: Fixed a warning.
20133 * InternalWindowManager: Fixed a warning.
20135 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20138 - When cloning a menu also clone MdiList and clone the
20139 window menu items properly (as the forms and menuitems
20140 are kept in an internal hashtable, these need updating
20142 - Rewrote the window menu code, menu items are added in the
20143 order the forms were added to their parent, and they are
20144 updated every time the window menu is shown (before the
20145 list was only generated once, in the current order of the
20146 forms, and would never be updated). A checkmark is shown
20147 next to the item corresponding to the active mdi child.
20149 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20151 * XplatUIStructs.cs:
20152 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20155 - Added TME_NONCLIENT to TMEFlags.
20156 - Handles WM_NCMOUSEMOVE in GetMessage to
20157 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20159 * MdiWindowManager:
20160 - Now merges mdi child menu to parent menu when maximized.
20161 - Recalculate NC areas of both mdi child and mdi parent.
20163 on window state and size changes.Fixes #79844 (3).
20164 - Handle WM_NCCALCSIZE to properly calculate borders.
20167 - Add/remove to the mdi containers list of mdi children
20168 in the order they are added.
20169 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
20170 to the maximized mdi child.
20172 * InternalWindowManager.cs:
20173 - Only execute a click on the control buttons on the mouse up,
20174 not on the mouse down. Show the state of the button
20175 (was only showing Normal state, never Pressed state). The
20176 pressed button now follows the mouse (if you click the Close
20177 button and move the mouse over the Maximize button, the
20178 Maximize button will be shown as pressed). Since Win32 does
20179 not generate WM_NCLBUTTONUP if you release the button outside
20180 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20183 * ThemeWin32Classic.cs:
20184 - Draw a missing border around mdi child forms. Fixes #79844 (2).
20187 - Added a list of forms which contains the order the forms are
20188 added to the mdi parent.
20189 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20190 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20191 - If the active form changes set the scrollbars to the top
20192 of the Z order, otherwise the form could hide them.
20193 - Scrollbars are now sized according to ClientSize, not
20194 to Size, and they take into account the other scrollbar
20195 to determine maximum.
20197 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
20200 * XplatUIDriver.cs:
20204 - Added RequestAdditionalWM_NCMessages for windows to
20205 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20206 Currently only implemented in XplatUIWin32.
20208 2006-11-27 Chris Toshok <toshok@ximian.com>
20210 * Hwnd.cs: only add the hwnd to the windows hash in
20211 set_WholeWindow and set_ClientWindow if whole_window/client_window
20212 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
20214 2006-11-27 Mike Kestner <mkestner@novell.com>
20216 * ComboBox.cs: remove redundant OnDropDown call. It is called
20217 from the ComboListBox.ShowWindow code. Fixes #79969.
20219 2006-11-27 Chris Toshok <toshok@ximian.com>
20221 * Hwnd.cs: remove the setters for ExposePending and
20222 NCExposePending - noone uses them.
20224 2006-11-27 Jackson Harper <jackson@ximian.com>
20226 * TextControl.cs: new param for ReplaceSelection which determines
20227 whether we select the new selection, or set the cursor to the end
20228 of the new selection.
20229 * TextBoxBase.cs: Use new param for ReplaceSelection. When
20230 pasting, select the new text.
20231 * RichTextBox.cs: Use new param for ReplaceSelection.
20233 2006-11-27 Jackson Harper <jackson@ximian.com>
20235 * TextBoxBase.cs: Set the selection to the caret after the caret
20236 is moved, otherwise they get out of sync.
20238 2006-11-26 Everaldo Canuto <everaldo@simios.org>
20240 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20243 2006-11-26 Everaldo Canuto <everaldo@simios.org>
20245 * ThemeWin32Classic.cs:
20246 - Fix toolbar drop down arrow position.
20247 - Fix drop down appearance when ToolBar.Appearance is normal,
20250 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
20252 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20253 * Control.cs: Same.
20254 * UpDownBase.cs: Same.
20255 * ButtonBase.cs: Same.
20256 * ScrollBar.cs: Same.
20257 * TrackBar.cs: Same.
20258 * PictureBox.cs: Same.
20259 * UserControl.cs: Same.
20261 * ListControl.cs: Same.
20262 * TextBoxBase.cs: Same.
20263 * ListView.cs: Same.
20264 * RichTextBox.cs: Same.
20265 * TreeView.cs: Same.
20267 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
20270 - Text label for where
20271 - Text label comment was not shown
20273 2006-11-23 Everaldo Canuto <everaldo@simios.org>
20275 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20277 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
20279 * InternalWindowManager.cs:
20280 - Handle WM_PARENTNOTIFY to activate the form
20281 if any child control is clicked.
20282 - The form is only sizable if not minimized.
20284 * MdiWindowManager.cs:
20285 - Save the IconicBounds if the form is moved.
20286 - Rework SetWindowState, now the window bounds
20287 are stored only if the old window state is Normal.
20290 - In SetWindowStates store the old window state if
20291 the window is maximized and restore window state if
20292 the window looses focus.
20293 - Don't handle any scrollbar value changes if
20294 initializing the scroll bars. Fixes #79771.
20295 - Reworked ArrangeIconicWindows. Current algorithm
20296 tests bounds agains all other minimized windows, if
20297 any intersections create new bounds (going left to
20298 right, bottom to top) and then test again. When
20299 successful the bounds are saved and never computed
20300 again. Fixes #79774.
20302 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
20304 * InternalWindowManager.cs: Added HandleTitleBarUp.
20306 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
20308 * NumericUpDown.cs: In .NET 1.1, user entered text is still
20309 hexadecimal in ParseUserEdit.
20312 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
20314 * MdiWindowManager.cs:
20315 - Handle a click on the form's icon to show the
20316 system menu (when maximized). Fixes #79775.
20317 - Change the existing click handler for the form's
20318 icon when not maximized to show on MouseUp.
20321 * Form.cs: In OnResize only layout the mdi child's
20322 parent if it actually has a parent. Might not if
20323 the window is closing.
20326 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
20328 * MdiClient.cs: Ignore active MDI client for text of parent, if
20329 child has no text set.
20331 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
20333 * ToolBar.cs: Fixed ToString to match MS.
20335 2006-11-22 Andreia Gaita <avidigal@novell.com>
20338 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
20339 update inner values on set. Fixes #79966.
20340 - Override OnLostFocus to update value on NET 2. Fixes #79950.
20341 - Fix hexadecimal parsing.
20343 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
20344 parent. Fixes #79957
20346 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
20348 * Control.cs: After calling SetWindowsPos in SetBoundsCore
20349 the actual size has to be queried, since if height /
20350 width is negative Win32 changes it to 0.
20351 Fixes #79999 on Windows.
20353 * XplatUIX11.cs: Set height / width to 0 if negative
20354 in SetWindowPos. Fixes #79999 on Linux.
20356 2006-11-22 Everaldo Canuto <everaldo@simios.org>
20358 * ThemeWin32Classic.cs: Fix text redenring when button is
20361 2006-11-22 Everaldo Canuto <everaldo@simios.org>
20363 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20364 and later navigate by mouse. Fixes #79528.
20366 2006-11-21 Everaldo Canuto <everaldo@simios.org>
20368 * ToolBar.cs: Set default value for TabStop to false in
20369 constructor, it fixes remaining behavior of bug #79863.
20371 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
20373 * MdiWindowManager.cs:
20374 * InternalWindowManager.cs:
20375 - Moved a few methods specific to Mdi from
20376 InternalWindowManager to MdiWindowManager.
20379 2006-11-21 Chris Toshok <toshok@ximian.com>
20381 * XplatUIOSX.cs: stub out InvalidateNC.
20383 * XplatUIWin32.cs: implement InvalidateNC using the call I found
20384 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20386 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20388 * XplatUIDriver.cs: add InvalidateNC abstract method.
20390 * XplatUI.cs: add InvalidateNC.
20392 2006-11-21 Everaldo Canuto <everaldo@simios.org>
20394 * ToolBar.cs: Invalidate complete button area when pressed status
20396 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20397 * ThemeWin32Classic.cs: Increase vertical and horizontal position
20398 by 1 when button is pressed.
20400 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20402 * ToolButton.cs: Invalidate middle of DropDown button when
20403 ToolBar theres DropDownArrows.
20404 * ThemeWin32Classic.cs: Change position of DropDown arrow and
20405 fix DropDown drawing operations.
20407 2006-11-20 Chris Toshok <toshok@ximian.com>
20409 * NativeWindow.cs: fix the formatting of functions ('{' on the
20410 following line), and enable the thread exception dialog.
20412 * Application.cs: remove the duplicate exception catching from
20415 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20417 * Toolbar.cs: Triggers button click event when click on icon
20418 of dropdown ToolBarButton. Fixes #79912.
20420 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20423 * ThemeWin32Classic.cs:
20424 - Added a property WindowBorderFont to enable themeing
20425 of mdi child windows' Text.
20427 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
20429 * InternalWindowManager.cs:
20432 * MdiWindowManager.cs:
20433 - If mdi child is maximized, set mdi parent's
20434 text to "Parent - [Child]". Fixes #79770.
20435 - If there is any maximized mdi child windows, only the active
20436 window (and any new windows) is maximized, the rest are normal.
20437 - On a WindowState change only save mdi child's window bounds
20438 if the old window state was normal. Fixes #79774.
20439 - The scroll bars are now calculated on hopefully all
20440 necessary events. Fixed #79771 / #79844->6 / #79906.
20441 - MdiClient.SizeScrollBars() now takes into account docked
20442 controls in the parent when calculating available space.
20443 - InternalWindowManager now always repaints the entire title
20444 area. Fixes #79844->1/4/5.
20445 - Added RequestNCRecalc on mdi child windowstate changes.
20448 2006-11-20 Mike Kestner <mkestner@novell.com>
20450 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20451 in the MouseUp handler of the listbox and move the return handling
20452 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
20454 2006-11-20 Everaldo Canuto <everaldo@simios.org>
20456 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
20458 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20460 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20461 working in 1.2.x anymore. So, updated.
20463 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
20465 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20466 NumberGroupSeparator of current culture instead of assuming en-US.
20469 2006-11-17 Mike Kestner <mkestner@novell.com>
20471 * Control.cs: Add the concept of implicit bounds setting so that
20472 dock/undock round trips preserve explicitly set size/locations.
20475 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
20477 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20478 can't handle those filters. (Fixes bug #79961)
20480 2006-11-17 Chris Toshok <toshok@ximian.com>
20482 [ fixes the exit/crashes associated with #79835. it's clearly
20483 suboptimal though, we need to figure out a better way to solve
20486 * PrintPreviewControl.cs: deal with the new invalid printer
20489 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20490 and return false (so CommonDialog.ShowDialog doesn't actually show
20493 * PrintDialog.cs: enable/disable the Ok button depending on
20494 whether or not the printer is valid.
20496 * CommonDialog.cs (ShowDialog): only actually show the form if
20497 RunDialog returns true.
20499 2006-11-17 Jackson Harper <jackson@ximian.com>
20501 * TextControl.cs: When soft splitting a line, mark it as a soft
20502 split line. Also carry over the current line break to the next
20505 2006-11-17 Chris Toshok <toshok@ximian.com>
20507 * XplatUIX11.cs: when scrolling a window with an invalid area, we
20508 only want to shift the part of the invalid area that overlaps the
20509 area we're scrolling. we also don't want to clear the invalid
20510 area unless the invalid area was entirely contained within the
20513 2006-11-16 Chris Toshok <toshok@ximian.com>
20515 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20516 also make sure to free the memory returned by XGetWindowProperty
20519 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20521 2006-11-16 Chris Toshok <toshok@ximian.com>
20523 * XplatUI.cs: add a new super secret way to get at the totally
20524 unsupported X11 backend.
20526 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
20528 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20530 2006-11-16 Jackson Harper <jackson@ximian.com>
20532 * TreeView.cs: Allow more explicit setting of top node position
20533 for scrollbars. Slower algo, but more accurate.
20534 - CollapseAll should maintain the current top node.
20535 * TextBoxBase.cs: When positioning the caret, use the line, pos
20536 method, since the x, y method does not grab the correct tag, and
20537 the caret height never gets set correctly. (Maybe I should just do
20538 away with the caret having its own height, and always use the
20539 carets current tag for height).
20541 2006-11-16 Jonathan Pobst <monkey@jpobst.com
20543 [Fixes 79778, 79923]
20545 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20546 Parent to the FosterParent instead.
20548 2006-11-16 Jackson Harper <jackson@ximian.com>
20550 * TreeView.cs: Need to recalc the topnode when we expand or
20551 collapse. The scrolling methods can't handle this on their own,
20552 since they use differences between the last scroll position, and
20553 those difference get completely messed up since we are expanding
20554 nodes. This problem should probably be fixed in the scrolling
20555 methods, so they can figure out exactly where they are, but this
20556 will slow things down a little.
20557 * ThemeWin32Classic.cs: Special case for groupboxes with empty
20558 strings, makes nunit-gui look a lot nicer.
20560 2006-11-16 Chris Toshok <toshok@ximian.com>
20562 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20563 the broken multithreaded event handling we have in here. File
20564 this entry under "Why we should move to the new X11 backend".
20566 Any thread can make it into UpdateMessageQueue, which gets events
20567 from the X socket - some of which could belong to hwnds being
20568 managed by a different thread. We can also have multiple threads
20569 in UpdateMessageQueue at the same time, with each one reading from
20570 the X socket. This leads to many problems, with the following
20573 We can't use hwnd.Queue.Enqueue anywhere in here and must use
20576 The MotionNotify compression we do can't work across threads
20577 (without locking the entire queue, perhaps) since we call
20578 hwnd.Queue.Peek, so we just punt and don't compress motion events
20579 unless the owning thread is the one which got the X event.
20581 ConfigureNotify is another fun one, since it modifies the hwnd's
20582 bounds and then enqueues the event. We add a lock to Hwnd which
20583 is held when setting configure_pending to true (and enqueuing the
20586 There is a race wrt the wake socket. we need to make sure that
20587 only 1 thread is waiting on that socket, or else a thread could
20588 sleep waiting for data that never comes. It's difficult (but not
20589 impossible) to make happen, because it seems to require something
20590 like the following:
20592 1. Thread 1 polls on wake_receive
20594 2. poll returns saying there's data to be read on
20597 3. Thread 2 polls on wake_receive and immediately returns
20598 saying there's data to be read.
20600 4. Thread 2 reads the wakeup byte from wake_receive
20602 5. Thread 1 attempts to read the wakeup byte from
20605 6. Thread 2 exits (due to a form closing, perhaps).
20607 7. Thread 1 blocks forever.
20611 Fixing the Expose handling isn't done yet, and the races inherent
20612 in that piece of code are responsible for the drawing mistakes you
20613 see when generating expose events in a MT app (like NPlot). This
20614 one is the likely to be the hardest to bandaid, and it doesn't
20615 appear to cause anything but drawing problems. The other issues
20616 caused apps to exit or hang.
20618 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20619 called from a different thread than the one that should be calling
20622 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20624 2006-11-15 Chris Toshok <toshok@ximian.com>
20626 * Application.cs: null out the context's MainForm when we exit
20627 RunLoop. Fixes a newly checked in unit test as well as the last
20628 ODE from bug #79933.
20630 2006-11-15 Chris Toshok <toshok@ximian.com>
20632 * Form.cs (set_Owner): allow a null value so we can clear the
20634 (Dispose): set all our owned_form's Owner properties to null, and
20635 clear the owned_forms collection.
20636 (WM_CLOSE): clean up this a little bit.. still not right though.
20638 * ApplicationContext.cs: OnMainFormClosed should only call
20639 ExitThreadCore if the main form isn't recreating. Fixes unit
20642 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20646 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20648 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20652 * Hwnd.cs: Add a flag to show a window, but not activate it, to
20653 keep popup window types from stealing focus from the main form
20656 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20658 * MenuAPI.cs: Set above flag to true.
20660 2006-11-15 Chris Toshok <toshok@ximian.com>
20662 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20663 the button being released is not in wParam.
20665 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
20667 * Form.cs: Add the released button to MouseEventArgs.Button
20668 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
20671 2006-11-15 Chris Toshok <toshok@ximian.com>
20673 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20674 GetText(). untested because it's unused in our implementation.
20675 Control.Text always caches the text, even if
20676 ControlStyles.CacheText is not set.
20680 2006-11-15 Chris Toshok <toshok@ximian.com>
20684 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20685 message. no hiding, no disposing.
20687 in the WM_CLOSE handler, hide the form if it's modal.
20689 2006-11-15 Chris Toshok <toshok@ximian.com>
20691 * XplatUIX11.cs: use AddExpose instead of sending a message.
20692 fixes textbox border drawing.
20694 2006-11-15 Chris Toshok <toshok@ximian.com>
20696 * PropertyGridView.cs: keep from crashing on mouse move/down when
20697 the property grid is empty.
20699 2006-11-14 Jackson Harper <jackson@ximian.com>
20701 * TextControl.cs: Make PageUp and PageDown more like the MS
20703 * TextBoxBase.cs: When we set the text property position the
20704 cursor at the beginning of the document.
20706 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20708 * Form.cs: if a mdi child's WindowState has changed
20709 before it's creation, it would display wrong control
20712 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
20714 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20717 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
20719 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
20720 the window gets to paint its borders even if the window is
20723 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
20724 otherwise the old control buttons would still be painted
20725 if the window gets bigger.
20727 * PaintEventArgs.cs: add an internal method so that the clip
20728 rectangle can be changed.
20730 2006-11-13 Chris Toshok <toshok@ximian.com>
20732 [ fixes bug #79745 ]
20734 * NotifyIcon.cs: lots of cleanup.
20736 * X11Structs.cs: add an enum for XEMBED messages.
20738 * XplatUIX11.cs: reindent one of the giant switch statements, it
20739 was taking up an additional tab stop, and this file is already way
20740 too wide for my laptop's screen.
20742 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
20743 we get it, resize the hwnd to the WMNormalHints max_width/height.
20745 2006-11-13 Jackson Harper <jackson@ximian.com>
20747 * TextBoxBase.cs: Compute the value changes for the mouse wheel
20750 2006-11-13 Chris Toshok <toshok@ximian.com>
20752 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20753 #79898. force a reference to the Region to stick around so the
20754 unmanaged object isn't collected (rendering our handle in the MSG
20757 2006-11-13 Chris Toshok <toshok@ximian.com>
20759 * XplatUIX11.cs: fix #79917 for window managers which support
20761 using XStoreName on the raw utf8, and we need to convert to
20762 COMPOUND_TEXT if it's non-latin1.
20764 2006-11-13 Chris Toshok <toshok@ximian.com>
20766 * Form.cs (set_DialogResult): we need to set closing to false if
20767 we're setting our result to None. fixes bug #79908.
20769 2006-11-13 Jackson Harper <jackson@ximian.com>
20771 * TextControl.cs: When formatting text, compute the adjusted tag
20772 lengths correctly, using FindTag for the end tag instead of trying
20773 to figure it out outselves.
20774 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20775 the item, ItemHeight doesn't work, because trees with large
20776 imagelists use those for their height
20777 * TreeView.cs: ActualItemHeight factors in the image height
20778 - compute left edge of checkboxes correctly
20779 - when expanding/collapsing move the bottom down one pixel, so we
20780 aren't moving part of the node
20782 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
20784 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20785 stack in PaintEventStart so that it won't get disposed by the gc
20786 before reaching PaintEventEnd.
20788 2006-11-13 Jackson Harper <jackson@ximian.com>
20790 * TextBoxBase.cs: Don't select the word if we are on a line with
20792 - We don't need to position the caret on mouse up, since the mouse
20793 move handler should be doing this
20794 - When double clicking a blank line, the caret is advanced to the
20797 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
20799 * TreeNodeCollection.cs: Avoid duplicating indexer code.
20801 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
20803 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20804 Fixes part of bug #79910.
20806 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
20808 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20809 (bug #79903). Some minor string updates to match ms.
20811 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20813 * FileDialog.cs: Don't add an extension if the filename
20814 already ends with that extension.
20816 2006-11-10 Jackson Harper <jackson@ximian.com>
20818 * TreeView.cs: Use the currently highlighted node for the
20819 BeforeSelect event.
20820 * TextBoxBase.cs: There is no need to expand selection on
20822 - CanUndo means 'is there any undo operations', not 'is undo
20823 allowed on this textcontrol. Fixed ClearUndo unit test.
20825 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
20827 * Button.cs: only perform click when button is Selectable (so as
20828 not to activate default buttons when they're disabled)
20830 * Control.cs: Rewrite of the SelectNextControl and related
20831 methods. HandleClick now selects next control if the current one
20834 * Form.cs: OnActivated selects next active control only if Load
20835 has already occurred. If Load hasn't run, there's no point in
20836 selecting here, Load might change the state of controls.
20838 * FocusTest.cs: Tests marked as working again for these fixes
20840 2006-11-10 Chris Toshok <toshok@ximian.com>
20842 * XplatUIX11.cs: a couple of fixes.
20844 - use XInternAtoms with almost all the atoms we need to register,
20845 instead of many, many calls to XInternAtom. should help a bit on
20846 startup time, at the expense of making the code look a little
20849 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20850 isn't reparented (which seems to be a clue that we're running fon
20851 compiz) and they have an Owner form. This fixes the tool windows
20852 in paint.net when running under compiz.
20854 - when setting the opacity of a window, support both the case
20855 where the window has been reparented and also when it hasn't been.
20856 Since compiz/beryl doesn't seem to reparent windows, and these are
20857 the only window managers which support translucency, I'm not sure
20858 why we need the hwnd.reparented case at all.. but leave it in.
20859 now we get translucent windows in paint.net under compiz/beryl.
20861 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20863 * FileDialog.cs: Always return the value for FilterIndex that
20864 was set. Internally convert it to values that make sense.
20866 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20868 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
20870 2006-11-10 Everaldo Canuto <everaldo@simios.org>
20872 * Toolbar.cs: Change default value of DropDownArrows to true, the
20873 signature still using false to make it compatible with MS but the
20874 initial value is true. Fixes #79855.
20876 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
20878 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
20879 only available on Linux.
20881 2006-11-09 Everaldo Canuto <everaldo@simios.org>
20883 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
20884 reduce number of calls to redraw method during toolbar creation.
20886 2006-11-09 Mike Kestner <mkestner@novell.com>
20888 * ListView.cs : raise SelectedIndexChanged when an item is selected
20889 programmatically via the Item.Selected property. Gert's nice
20890 ListViewSelectedIndexChanged test fixture now runs clean.
20892 2006-11-09 Mike Kestner <mkestner@novell.com>
20894 * ListView.cs : raise SelectedIndexChanged when a selected item is
20895 removed from the item collection using Remove or RemoveAt.
20897 2006-11-09 Mike Kestner <mkestner@novell.com>
20899 * ListView.cs : raise SelectedIndexChanged once per selected item
20900 for compat with MS. Fixes #79849+.
20902 2006-11-09 Chris Toshok <toshok@ximian.com>
20904 * TabControl.cs: initialize row_count to 0, and set it to 1 when
20905 we need to (if we have any tab pages). Fixes unit test.
20907 2006-11-09 Chris Toshok <toshok@ximian.com>
20909 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
20910 width is 0, not 3. Fixes a unit test.
20912 2006-11-09 Mike Kestner <mkestner@novell.com>
20914 * ListView.cs : use Implicit scrollbars so that focus isn't
20915 stolen from the listview when they are clicked. Fixes #79850.
20917 2006-11-09 Chris Toshok <toshok@ximian.com>
20919 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
20920 have a root item. Fixes #79879.
20922 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
20926 - An ArgumentException is now thrown if a wrong filter
20927 is applied (matches ms). The previous filter doesn't change
20928 anymore if an exception is thrown.
20929 - Changing the FileName property also affects FileNames
20930 * ColorDialog.cs: The length of the CustomColors array is always
20931 16. It doesn't matter if we use a smaller array or null to update
20932 or change the custom colors property.
20933 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
20934 for RootFolder if we get a undefined value.
20936 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20938 * StatusBarPanel.cs:
20939 - Width is set to MinWidth if Width is smaller than
20940 MinWidth. Fixes #79842.
20941 - MinWidth now always overrides Width (MSDN says MinWidth
20942 is set to Width when AutoSize = None, but they do not
20944 - Style has now the the correct default value.
20946 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
20949 - The control is completely invalidated on
20950 Got/LostFocus to draw the focus rectangle correctly.
20951 - When AutoSize then height is always 45 (width for
20952 vertical controls).
20954 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
20955 on the mouse when moved and it doesn't move when grabbed
20956 until the mouse moves as well. Also fixed some wrong
20957 calculations when clicking on the thumb (control thought
20958 click was outside of thumb and didn't grab it).
20959 Fixes some of the issues in #79718.
20961 2006-11-08 Everaldo Canuto <everaldo@simios.org>
20963 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
20965 2006-11-08 Chris Toshok <toshok@ximian.com>
20967 * PropertyGridView.cs: only call ToggleValue if the item is not
20970 2006-11-08 Jackson Harper <jackson@ximian.com>
20972 * TextBoxBase.cs: The RichTextBox and textbox have very different
20973 word selection methods. Implement the textbox's simple word
20974 selection here, and let the RichTextBox override and provide it's
20976 - Don't do extra selection on mouseup
20977 * RichTextBox.cs: Use the documents word selection algorithm, I
20978 think ideally, this function will be pulled into the
20979 RichTextBox.cs code someday.
20981 2006-11-08 Chris Toshok <toshok@ximian.com>
20983 * RootGridEntry.cs: new class to represent GridItemType.Root.
20985 * CategoryGridEntry.cs: reformat, and add boilerplate.
20987 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
20988 returns the UI parent anyway, and we need special handling to
20989 implement the GetTarget method in the face of it. Also, implement
20992 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
20993 a root grid item, and use that instead of PropertyGrid.grid_items.
20994 Also, make use of TypeConverters (and add limitted support for
20995 ICustomTypeDescriptors) when initially populating the grid.
20996 Arrays now show up more or less properly.
20998 2006-11-08 Chris Toshok <toshok@ximian.com>
21000 * Application.cs: set the modal dialog to non modal after we close
21001 it. Fixes bug #79866.
21003 2006-11-08 Jackson Harper <jackson@ximian.com>
21005 * TextControl.cs: When combining lines carry over the line end
21006 style from the end line.
21007 - Invalidate the selected area when setting it, if it is visible.
21008 * TextBoxBase.cs: Only rich text box can do full line selects.
21009 - Make sure to set the cursor position when there is a click,
21010 otherwise two clicks in separate areas could cause a large chunk
21013 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21015 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
21018 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21020 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21021 time. Remove tooltips when ToolButton click events. Fixes #79856.
21023 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21025 * MenuAPI.cs: Ignore right click for menu actions and fixes
21026 menu border when clicked. Fixes #79846.
21028 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21030 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21031 MouseState after create wParam for message, this fixes mouse button
21032 equal none in mouse up events.
21034 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
21036 * Control.cs : Focus() now calls Select to set the Container's
21037 Active Control and to give it focus. To avoid infinite recursion
21038 (because ActiveControl also calls Focus at one point), a check
21039 is made in Focus with the help of a new internal variable
21042 2006-11-07 Mike Kestner <mkestner@novell.com>
21044 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21045 if there's a selection. Fixes #79849.
21047 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
21049 * PropertyGrid.cs: Avoid fixed height of help description label.
21050 Fixes part of bug #79829.
21052 2006-11-07 Chris Toshok <toshok@ximian.com>
21054 * XplatUIX11.cs: fix #79790 again, by using the
21055 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21057 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21059 * ToolBar.cs: Fix left click checking.
21061 2006-11-07 Chris Toshok <toshok@ximian.com>
21063 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
21065 2006-11-07 Chris Toshok <toshok@ximian.com>
21067 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
21068 PropertyManager unit tests.
21070 * PropertyManager.cs: make property_name internal.
21072 2006-11-07 Chris Toshok <toshok@ximian.com>
21074 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21075 pass a unit test. Also, don't set image_index to anything in
21076 response to setting the ImageList property.
21078 2006-11-07 Everaldo Canuto <everaldo@simios.org>
21080 * ToolBar.cs: Ignore click events when mouse button is not a
21081 left button, only accepts other button for dropdown menus.
21084 2006-11-07 Chris Toshok <toshok@ximian.com>
21086 * DataGrid.cs: make the back and parent row buttons a little less
21089 2006-11-07 Jackson Harper <jackson@ximian.com>
21091 * TextBoxBase.cs: When converting to Text don't put line breaks in
21092 for soft line breaks.
21093 * TextControl.cs: There is an initial "fake" line in the document,
21094 this is now a soft break line, so that an extra line feed doesn't
21095 get added to the end of documents.
21097 2006-11-07 Chris Toshok <toshok@ximian.com>
21101 * CurrencyManager.cs: if the list is readonly, don't bother
21102 checking if IBindingList.AllowNew is true.
21104 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21105 for non-DataRowView datasources.. or rather, make it not crash.
21106 (DataGridPaintRelationRow): make sure we limit the row painting to
21107 the area not covered by the row header, and make our cell width at
21108 least large enough to cover the relation area. This allows grids
21109 that have relations but no rows to render correctly.
21110 (DataGridPaintRowContents): same type of changes here.
21111 (SetDataSource): move back to always calling
21112 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
21113 navigating back through relations.
21114 (HitTest): handle the case where we have no cells but have
21115 relations. Right now we generate a hit in cell 0 of whatever the
21116 row is, not sure if this is strictly correct, but it works for our
21119 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21120 bother doing anything.
21122 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
21124 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21125 early version of StatusStrip. Not responsible for eaten
21126 application or firstborn children.
21128 2006-11-06 Chris Toshok <toshok@ximian.com>
21130 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21131 call GetTabRect with a -1 index. Fixes #79847.
21133 2006-11-06 Jackson Harper <jackson@ximian.com>
21135 * TreeNodeCollection.cs: Update scrollbars after clearing.
21137 2006-11-06 Chris Toshok <toshok@ximian.com>
21139 * NumericUpDown.cs: fix the ToString method for some unit test
21142 2006-11-06 Chris Toshok <toshok@ximian.com>
21145 - set the initial SelectedGridItem if we can.
21147 - Exclude non-mergable properties only if we're merging > 1
21148 object. Merging 1 object isn't really merging, obviously.
21150 - Handle PropertySort.NoSort just like Alphabetical, which is
21151 wrong of course, but at least gets things on the screen.
21153 * PropertyGridView.cs:
21154 - Add method "FindFirstItem" which finds the first property grid
21155 item, so we can select it by default.
21157 - make use of GridEntry.CanResetValue.
21159 - Don't call RedrawBelowItemOnExpansion here anymore, the
21160 individual GridEntry's will do that.
21162 - Remove the ITypeDescriptorContextImpl internal class.
21165 - this class needs to implement ITypeDescriptorContext, as it's
21166 what MS's PropertyDescriptorGridEntry does, which means we can
21167 remove the ITypeDescriptorContextImpl internal class from
21168 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
21170 - keep a reference to our PropertyGridView, and move the call to
21171 RedrawBelowItemOnExpansion here from PGV. This means
21172 programmaticly setting Expanded actually does something visible.
21174 - add a CanResetValue() function which takes into account our
21175 possibly multiple "selected_objects" in the merged case. Shifting
21176 PropertyGridView to use this method fixes another unreported
21177 crasher found running the test for #79829.
21179 - when Top or Bounds is updated, make sure the PropertyGridTextBox
21180 is updated to reflect this.
21182 * CategoryGridEntry.cs: the ctor takes the PGV now.
21184 2006-11-06 Jackson Harper <jackson@ximian.com>
21186 * TextControl.cs: These are 1 based.
21187 * TextBoxBase.cs: When setting the selected text, don't change the
21188 selected text tags, this is done by ReplaceText, just position the
21189 cursor at the end of the new text.
21191 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
21193 * ListView.cs: Allow label edit only when, when LabelEdit is
21196 2006-11-06 Jackson Harper <jackson@ximian.com>
21198 * TextControl.cs: If a suitable wrapping position isn't found,
21199 just wrap right in the middle of a word.
21201 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
21203 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21206 2006-11-06 Jackson Harper <jackson@ximian.com>
21208 * TreeView.cs: Can't use the VisibleCount property when setting
21209 scrollbar heights, because this doesn't take into account whether
21210 or not the horz scrollbar just came visible.
21212 2006-11-05 Everaldo Canuto <everaldo@simios.org>
21214 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21215 activated. Fixes #79369, #79832.
21217 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
21219 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21220 had to remove support for links that point to a directory. FileInfo
21221 returns no usefull information (means, the directory they point to)
21222 for such links. Replaced some empty string ("") with String.Empty.
21224 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
21226 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
21227 NullReferenceException when attempting to remove node that is not in
21228 collection. Throw NullReferenceException when null is passed to
21229 Remove. Allow first element of the collection to be removed. Fixes
21230 bug #79831. In GetEnumerator ().Current return null if positioned
21231 before the first element of the collection. In GetEnumerator ().Reset,
21232 position before first element of the collection.
21234 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
21236 * PropertyGrid.cs: To match MS, remove default title and description
21237 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21240 2006-11-04 Chris Toshok <toshok@ximian.com>
21242 * Theme.cs: add a Clamp method, just for kicks.
21244 * ThemeWin32Classic.cs: clamp all color components to [0..255].
21246 2006-11-04 Chris Toshok <toshok@ximian.com>
21248 * Form.cs: if the form isn't visible, Close() does nothing.
21250 2006-11-03 Chris Toshok <toshok@ximian.com>
21252 * Form.cs (Close): if the form is modal, don't Dispose of it, only
21254 (WndProc): don't Dispose after handling the WM_CLOSE message.
21256 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21257 them as such, instead of using casts from Control to Form. Also,
21258 don't Dispose of the modal dialog when we fall out of the loop -
21259 Close() it instead.
21263 2006-11-03 Chris Toshok <toshok@ximian.com>
21265 * Control.cs (Dispose): only go through the dispose thing if we're
21266 @disposing, and we haven't already been disposed. Fixes bug
21269 * Form.cs: no reason to call "base.Dispose()" here instead of
21272 2006-11-03 Mike Kestner <mkestner@novell.com>
21274 * ComboBox.cs : use ToString instead of casts in AddItem for
21275 sorting functionality. Fixes #79812.
21277 2006-11-03 Chris Toshok <toshok@ximian.com>
21279 * Application.cs: pave the way for actually using the thread
21280 exception dialog. it's ifdefed out at the moment.
21282 2006-11-03 Chris Toshok <toshok@ximian.com>
21284 * ThreadExceptionDialog.cs: until we get a better layout, actually
21285 hide the details textbox and label when we shouldn't see them.
21287 2006-11-03 Jackson Harper <jackson@ximian.com>
21289 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21290 multiline textboxes anymore. This method also determines the
21291 width/height of a textboxes canvas area.
21292 - Sorta a revert of the last patch. For multiline just position
21293 the controls, then bail. This way the scrollbar width won't be
21296 2006-11-03 Everaldo Canuto <everaldo@simios.org>
21298 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21299 it dont need. Fixes #79537.
21301 2006-11-02 Jackson Harper <jackson@ximian.com>
21303 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
21304 send the status after firing the DndOver event.
21306 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
21308 * TrackBar.cs: Now orientation only switches height / width if
21309 the control's handle is created (Win32 does it like this). Also
21310 fixed a typo in ToString() for a test to pass, changed the
21311 exception thrown in set_LargeChange and set_SmallChange to
21312 match Win32 behaviour, and added TrackBar tests to the unit
21315 2006-11-02 Chris Toshok <toshok@ximian.com>
21317 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21318 not _NET_WM_STATE_NO_TASKBAR.
21320 2006-11-02 Jackson Harper <jackson@ximian.com>
21322 * TextControl.cs: Increment count by one, since in the update view
21325 2006-11-02 Jackson Harper <jackson@ximian.com>
21327 * TextBoxBase.cs: Use client rectangle not bounds for checking if
21328 the mouse is in the client rectangle (duh).
21330 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
21332 * TrackBar.cs: Fixed trackbar jumping around when clicking
21333 on it - the trackbar was not detecting correctly at which
21334 side of the thumb the click was done. (fixes #79718)
21336 2006-11-02 Everaldo Canuto <everaldo@simios.org>
21338 * ListBox.cs: scroll visible area when change SelectedIndex to
21339 a non visible area. Fixes #79481.
21341 2006-11-01 Jackson Harper <jackson@ximian.com>
21343 * TextControl.cs: When replacing the selection move the selection
21344 start/end/anchor to the end of the new text.
21346 2006-11-01 Jackson Harper <jackson@ximian.com>
21348 * XplatUIWin32.cs: When setting the parent change the controls
21349 visibility to it's visibility flag, not to it's old parents
21350 visibility (.Visible walks the parent chain).
21352 2006-11-01 Chris Toshok <toshok@ximian.com>
21354 * XplatUIX11.cs: revert the #79790 fix, as the simple.
21355 XSetTransientForHint fix breaks paint .net's tool windows. more
21356 work needed for that one.
21358 2006-11-01 Chris Toshok <toshok@ximian.com>
21360 * ScrollBar.cs: throw ArgumentException instead of Exception in
21361 LargeChange/SmallChange setters. fixes unit tests.
21363 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
21365 * ContainerControl.cs: reverted rev.67183 (which was itself
21366 a reversion of rev.66853... eh).
21368 * Control.cs: Fixes Reflector hang by changing Focus() call
21369 to what it was before rev.66643 (calling Select() here sets
21370 ActiveControl, which in some situations calls back Focus and
21371 eventually does a stack overflow). Temp fix.
21372 Changes to GetNextControl() to not look for children to select when
21373 parent cannot be selectable (so it looks for siblings instead)
21375 2006-10-31 Mike Kestner <mkestner@novell.com>
21377 * CheckedListBox.cs : off by one error in returned index from
21378 ObjectCollection.Add. Fixes #79758.
21380 2006-10-31 Chris Toshok <toshok@ximian.com>
21382 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21383 calls for the textbox/spinner, to keep from recursing to the point
21384 where we crash. Fixes #79760.
21386 2006-10-31 Chris Toshok <toshok@ximian.com>
21388 * ListControl.cs (set_SelectedValue): don't throw exceptions on
21389 null/"" value, just return. matches ms's behavior and fixes some
21392 2006-10-31 Chris Toshok <toshok@ximian.com>
21394 * Control.cs (set_Capture): make a logic a little easier to
21397 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21398 if it's being destroyed. A necessary fix surely, but a bandaid
21399 also, to fix the stuck capture problem in bug #78413.
21401 2006-10-31 Chris Toshok <toshok@ximian.com>
21403 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21404 convention of clearing hwnd.ClientRect when we set the
21405 width/height (so it'll be recalculated by Hwnd).
21407 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
21409 * ContainerControl.cs: reversed Contains check from
21410 ActiveControl due to hanging problems. This fix
21411 partly regresses #79667 (button does not have
21412 initial focus), so this might be a symptom for
21413 a larger parenting problem (set_ActiveControl
21414 is being called but the child control does
21415 not have the parent set yet?)
21417 2006-10-31 Mike Kestner <mkestner@novell.com>
21419 * MenuAPI.cs : fix keynav when menu is click activated.
21421 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
21423 * ToolStrip*: Version 0.2.
21425 * MenuStrip.cs: Version 0.1.
21427 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21429 2006-10-30 Chris Toshok <toshok@ximian.com>
21431 [ fixes the oversized notify icon issue in bug #79745 ]
21433 * NotifyIcon.cs: scale the icon down to the size we're given by
21434 the XplatUI layer (this would be faster if we did it once instead
21435 of whenever we paint..) Also, remove the WM_NCPAINT handling,
21436 since it's never invoked.
21438 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21439 pixels high by default, so let's hardcode our systray icon to that
21440 size. The SYSTEM_TRAY protocol should really have a way for
21441 client apps to query for the correct icon size.. but oh well. A
21442 couple of patches to deal with the screwy client_window ==
21443 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21444 instance, and also make sure we don't XSelectInput twice).
21446 2006-10-30 Chris Toshok <toshok@ximian.com>
21448 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21449 recreating forms. Control recreation is the bane of my existence.
21450 Fix it in a way that keeps everyone happy.
21452 2006-10-30 Chris Toshok <toshok@ximian.com>
21454 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21455 just non-CHILD ones. otherwise sometimes scrollbars end up with
21456 client_windows not being resized to the proper size (ReportBuilder
21457 shows this extremely well).
21459 2006-10-30 Chris Toshok <toshok@ximian.com>
21461 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21462 for non-WS_EX_APPWINDOW windows. This is what keeps them from
21463 showing up in the gnome taskbar. Fixes bug #79790.
21465 2006-10-30 Chris Toshok <toshok@ximian.com>
21467 * ApplicationContext.cs: guard against a NRE.
21469 * Application.cs: null out the old MainForm for the context, so we
21470 don't try to use it again once it's disposed. Fixes bug #79783.
21472 2006-10-30 Chris Toshok <toshok@ximian.com>
21474 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21475 BindingContext, set the data source directly, otherwise do the
21476 lazy approach - the actual ListManager will be created when we get
21477 a BindingContext. Fixes bug #79700.
21479 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21481 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21482 XplatUIX11.cs: Remove old 2 parameter SetVisible.
21484 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21486 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
21488 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21489 of SetVisible that allows a window to be shown, but not activated.
21490 This is needed on Windows for MenuStrip, and can probably be used
21491 with MainMenu and ComboBox to fix the focus stealing issues on
21494 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21496 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
21498 * PictureBox.cs: Fix the output of the ToString method.
21500 2006-10-29 Chris Toshok <toshok@ximian.com>
21502 * Control.cs (get_TopLevelControl): fix bug #79781.
21504 2006-10-29 Chris Toshok <toshok@ximian.com>
21506 * ListControl.cs (set_DataSource): throw Exception here, not
21507 ArgumentException, to match MS behavior.
21509 2006-10-29 Chris Toshok <toshok@ximian.com>
21511 * Form.cs: remove the try-catch's around calls to GetWindowState.
21512 We can just check the return value.
21514 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21517 * XplatUI.cs: Add note about additional return value for
21520 2006-10-29 Chris Toshok <toshok@ximian.com>
21522 * Control.cs (CreateHandle): when we create our handle, we also
21523 create the handles of our child controls. Fixes one of the
21524 Control unit tests (CH11).
21526 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21528 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21530 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
21532 * ThemeClearlooks.cs: A little speedup.
21534 2006-10-27 Chris Toshok <toshok@ximian.com>
21536 * Control.cs: implement Control.FromChildHandle in a way that
21537 matches the docs (and fixes the failed test.)
21539 2006-10-27 Chris Toshok <toshok@ximian.com>
21541 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21544 * DataGrid.cs: implement ResetForeColor such that the tests
21547 2006-10-27 Chris Toshok <toshok@ximian.com>
21549 * ToolBarButton.cs: setting text/tooltiptext to null results in it
21550 being set to "". Fixes bug #79759.
21552 2006-10-27 Jackson Harper <jackson@ximian.com>
21554 * TextControl.cs: We need to clear the entire selection area when
21555 setting the start, otherwise multiline selections are still
21558 2006-10-26 Chris Toshok <toshok@ximian.com>
21560 * PropertyGridView.cs:
21562 - ifdef all the code specific to the double
21563 buffer case, and provide some alternatives in the non-doublebuffer
21564 code, which makes heavy use of XplatUI.ScrollWindow to move things
21565 around without having to invalidate (and cause flicker). There
21566 are still some drawing problems in the non-doublebuffered case, so
21567 DOUBLEBUFFER is defined by default.
21569 - Fix the way dropdowns are handled. now we explicitly watch for
21570 the events which might cause the dropdown to close, and break out
21571 of the nested event loop there. This gets rid of all Capture
21572 code, at the expense of the Msg special casing. Seems to work,
21573 though, and fixes bug #79743.
21575 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
21576 * Control.cs: SetIsRecreating now recreates implicitly added
21577 child controls as well. Finally fixes #79629. The flag passed to
21578 SetIsRecreating has also been removed since it wasn't used.
21580 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21582 * PageSetupDialog.cs: Clean some code, fix some bits,
21583 add some checks, and add a printer sub-dialog.
21585 2006-10-26 Chris Toshok <toshok@ximian.com>
21587 * PropertyGrid.cs: make set_SelectedObject call
21588 set_SelectedObjects, and move the duplicate logic to the
21589 SelectedObjects setter. Also, raise SelectedObjectsChanged.
21591 * PropertyGridView.cs: hide the textbox when we get a
21592 SelectedObjectsChanged event.
21596 2006-10-26 Chris Toshok <toshok@ximian.com>
21598 * PropertyGridView.cs: deal with the type converter not supporting
21599 GetStandardValues() or GetStandardValues() returning null, which
21600 is does in the default case. Fixes #79742.
21602 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21604 * CheckedListBox.cs: nunit no longer crashes when selecting
21605 Project/Edit menu option
21607 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
21609 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21610 is no menu selected. fixes #79739
21612 2006-10-25 Chris Toshok <toshok@ximian.com>
21614 * PropertyGridView.cs: factor out the splitter invalidation code
21615 into the SplitterPercent setter, and for kicks implement the
21616 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21617 amount in either direction.
21619 2006-10-25 Chris Toshok <toshok@ximian.com>
21621 * PropertyGridView.cs: do some cleanup of the brush used to draw
21622 text - read only fields should be grayed out. not sure how to do
21623 this with the textbox, though. but the textbox's should also be
21624 readonly now at least. Also, hide/show the textbox when resizing
21627 * CursorConverter.cs: use System.Reflection when getting the
21628 properties of Cursors, as TypeDescriptor.GetProperties isn't
21629 returning static properties.
21631 2006-10-25 Chris Toshok <toshok@ximian.com>
21633 * PropertyGridView.cs: factor out the up/down handling, and reuse
21634 it for page up/down. also add End/Home support.
21636 2006-10-25 Chris Toshok <toshok@ximian.com>
21638 * PropertyGridView.cs:
21640 - ensure the selected grid item is visible in the scrolled area,
21643 - fix Keys.Down handling when you're on the last item in the
21646 2006-10-25 Mike Kestner <mkestner@novell.com>
21648 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
21649 clicks too. Fixes #79725.
21651 2006-10-24 Chris Toshok <toshok@ximian.com>
21653 * PropertyGrid.cs: use property.Converter instead of
21654 TypeDescriptor.GetConverter(property.PropertyType), so we catch
21655 TypeConverters declared on the property as well as on the
21656 PropertyType. Fixes bug #79678.
21658 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
21660 * MimeIcon.cs, Mime.cs:
21661 Fallback to the default platform handler if no shared mime info
21662 stuff exists (fixes #79693).
21664 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21665 * ContainerControl.cs: Incorrect contains check in ActiveControl
21666 from previous fix (duh).
21668 2006-10-20 Chris Toshok <toshok@ximian.com>
21670 * PropertyGridView.cs: the dropdown should be MIN(number of items
21671 in list, 15). Fixes #79551.
21673 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21674 Fixes #79384, #79394, #79652, #79667
21677 - Modal windows are now destroyed in the proper order for windows
21679 * ContainerControl.cs:
21681 - ActiveControl setter has more conditions on when to return:
21682 - if we're reselecting the active control, but it actually
21683 didn't have focus (window hidden or some such), it runs
21684 - if the active control being selected doesn't actually
21685 exist in the container, it returns
21689 - The ShowDialog now gets the current form as the owner when
21690 invoking without parameters, and correctly activates the owner
21695 - MessageBox now catches the Escape key to exit
21697 2006-10-20 Chris Toshok <toshok@ximian.com>
21699 * PropertyGridView.cs: fix a number of issues (bug #78565, and
21700 most of bug #79676):
21702 - you can navigate around the property grid with the arrow keys.
21704 - the dropdown is sized properly when the pg has a vertical
21707 - fix the indentation for subentries, and properly select the
21710 - fix the gray bar's drawing (only draw it to the last element,
21711 not for the height of the control. Also make sure we draw that
21712 last horizontal grid line.
21714 - use the same mechanism the datagrid uses wrt the editing textbox
21715 when scrolling/resizing/etc. Namely, we hide it first, do the
21716 operation, then show it again (if it's still visible).
21718 - aggressively remove a lot of unnecessary refreshes (and also
21719 calls to Invalidate(). call more limited variants, and only redraw
21724 - when we're populating the merged collection, fill in the UI
21725 parent with either the passed in item, or the category item we
21728 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21730 * GridItem.cs: drop some fully qualified names.
21732 * GridEntry.cs: add a "UIParent", which is basically the parent
21735 * GridItemCollection.cs: add an IndexOf method.
21737 2006-10-20 Mike Kestner <mkestner@novell.com>
21739 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
21740 a working win32 NC invalidation mechanism, we can't invalidate
21741 menus. [Fixes #79705]
21743 2006-10-20 Mike Kestner <mkestner@novell.com>
21745 * ListBox.cs : don't update the VScrollbar if the list is empty,
21746 just hide it. [Fixes #79692]
21748 2006-10-20 Jackson Harper <jackson@ximian.com>
21750 * RichTextBox.cs: Handle some special chars better, and don't skip
21751 the entire group when we encounter a special char that we don't
21754 2006-10-18 Chris Toshok <toshok@ximian.com>
21756 * PropertyGridView.cs: address a number of issues from bug #79676,
21757 mostly of the cosmetic variety.
21759 - The highlight rectangle for indented items not extends all the
21762 - Indented items aren't indented so much.
21764 - the dropdown is properly sized width-wise if the pg has a
21765 vertical scrollbar.
21767 2006-10-18 Chris Toshok <toshok@ximian.com>
21769 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21770 systray stuff is rather convoluted to begin with.
21772 systray icons are a single window for some reason (that I haven't
21773 figured out yet), and for them, client_window == whole_window.
21774 Given the way the tests are structured elsewhere to determine
21775 which paints are pending (client vs. nc), that situation will
21776 always yield PAINT, not NCPAINT. So, if we have a pending
21777 nc_expose and no pending expose, remove the hwnd from the paint
21778 queue, and also set nc_expose_pending to false, to keep us from
21779 blocking further expose's adding the hwnd to the paint queue.
21781 phew. like i said, a rather convoluted change. Fixes the
21782 notifyicon repaint issues in bug #79645.
21784 2006-10-18 Chris Toshok <toshok@ximian.com>
21786 * Form.cs: when getting the backcolor of the form, don't get
21787 base.BackColor, as this allows parents to influence the background
21788 color. This breaks mdi forms. Instead, if the background_color
21789 is empty, return the default.
21791 2006-10-18 Chris Toshok <toshok@ximian.com>
21793 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21794 to being private instead of internal static.
21796 * Control.cs: remove all the stupid ParentWaitingOnRecreation
21797 crap, it wasn't working for more deeply nested controls anyway,
21798 and we already have the is_recreating flag - use that instead.
21799 Before calling DestroyHandle in RecreateHandle, recurse through
21800 the control tree setting it to true. this returns the recreate
21801 code to much of its original simplicity, while now guaranteeing we
21802 actually recreate everything we're supposed to. This change gets
21803 fyireporting actually showing mdi children.
21805 2006-10-17 Chris Toshok <toshok@ximian.com>
21807 * Form.cs: remove some debug spew, and collapse some duplicate
21808 code at the end of SetClientSizeCore.
21811 - add some more debug spew here too wrt Destroy handling.
21812 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21813 in Control's handling of WM_DESTROY.
21814 - Remove the handling of zombie window DestroyNotifies from the
21815 event loop - we don't need it. Now the only DestroyNotifies we
21816 actually handle are ones generated by X.
21817 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21818 match gtk's (functioning) handling of this. This keep metacity
21819 from leaving droppings in the form of wm borders with no window
21820 contents all over the place.
21823 - add a bunch of debug spew wrt control recreation.
21824 - fix a bug where we weren't tracking Visible properly on
21826 - fixed the WM_PAINT double buffer handling to support re-entrant
21827 calls (yes, i know it's gross, but it's happening to us).
21829 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
21830 * ThemeWin32Classic.cs: changed drawing of selected days
21831 to make them look better.
21833 2006-10-16 Chris Toshok <toshok@ximian.com>
21835 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21836 drawing_stack. Nuke the ClientDC/NonClientDC properties.
21838 * XplatUIX11.cs: move away from using hwnd.client_dc and
21839 hwnd.non_client_dc and on to a stack of dc's (and in window's
21840 case, PAINTSTRUCT's), so we can deal with nested Paint calls
21841 without puking or not disposing of Graphics objects.
21843 * XplatUIOSX.cs: same.
21845 * XplatUIWin32.cs: same.
21847 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
21849 * FileDialog.cs: Don't call on_directory_changed inside
21850 OnSelectedIndexChanged (it changes the SelectedIndex too).
21851 Instead move it to OnSelectionChangeCommitted.
21853 2006-10-13 Chris Toshok <toshok@ximian.com>
21855 * XplatUIX11.cs: more Destroy work. the current code does the
21856 following things, in order:
21858 1. Enumerates all handles of all controls at or below the one
21859 being destroyed, in pre-order. As it is doing this, it marks the
21860 handles as zombie and clears all references to them.
21862 2. calls XDestroyWindow on the window passed in.
21864 3. SendMessage's WM_DESTROY to all he handles in the accumulated
21867 2006-10-13 Chris Toshok <toshok@ximian.com>
21869 * XplatUIX11.cs: set hwnd.zombie to true before calling
21870 SendMessage (WM_DESTROY). this keeps us from marking the new
21871 window a zombie, and also keeps us from calling sendmessage at
21874 2006-10-13 Jackson Harper <jackson@ximian.com>
21876 * TextControl.cs: Do not show the caret and selection at the same
21877 time. Reduces ugliness by 35%.
21879 2006-10-13 Chris Toshok <toshok@ximian.com>
21881 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
21882 zombie after we do the recursive call, so we actually do call
21883 SendMessage on the children controls.
21884 (GetMessage): if we find a pending paint event for a zombie hwnd,
21885 remove the hwnd from the paint queue, or else it will always be
21886 there (and we'll effectively loop infinitely)
21888 2006-10-13 Mike Kestner <mkestner@novell.com>
21890 * MenuItem.cs : add Selected format under keynav too.
21893 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
21895 * PropertyGrid.cs: Fixed some NRE's and small difference between our
21896 implementation and that of MS.
21898 2006-10-13 Chris Toshok <toshok@ximian.com>
21900 * Control.cs (OnInvalidated) only futz with the invalid_region if
21901 the control is double buffered. this fixes the apparent hang in
21902 the ListView unit tests. Someone needs to make the
21903 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
21905 2006-10-13 Chris Toshok <toshok@ximian.com>
21907 * PropertyGridView.cs:
21909 - do a little refactoring so that only one place calls
21910 dropdown_form.Hide, and that is CloseDropDown. make everywhere
21911 else call that. Also make it Refresh, since there are redraw bugs
21912 otherwise (we should take a look at that...)
21914 - do a little more refactoring work to share the body of code
21915 involved with the drop down. it was duplicated in the code
21916 dealing with the listbox handling and in the code dealing with the
21919 - add a Capture to the dropdown form's control once it's
21920 displayed, and add a MouseDown handler that checks to make sure
21921 the position is inside the control. If it's not, close the
21922 dropdown. This fixes #78190.
21924 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
21925 if the value is different than the initial value.
21927 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
21929 * Control.cs: see #78650
21930 - Fixed GetNextControl for several cases:
21931 - Changed FindFlatForward to return
21932 correct sibling control when more than one
21933 control has same TabIndex as the currently
21935 - Changed FindFlatBackward to loop children
21936 from last to first and apply same logic as in
21938 - Changed FindControlForward to search for
21939 children when control is not a container
21940 but has children, or search for siblings if
21941 control is a container...
21942 - Changed FindControlBackward to continue
21943 searching for child controls when hitting
21946 - Fixed Focus method to update ActiveControl
21947 (FocusTest.FocusSetsActive failure)
21950 - Focus rectangle now refreshes when gaining
21952 - Removed grab for Tab key on IsInputKey that
21953 was keeping tab navigation from working (#78650)
21955 2006-10-13 Chris Toshok <toshok@ximian.com>
21957 * PropertyGridView.cs:
21958 - Rewrite SetPropertyValue to loop over SelectedGridItem's
21961 - Deal with GridItem.Value == null a few places.
21964 - replace the PopulateGridItemCollection with a pair of methods
21965 which compute the intersection of all the properties in the
21966 SelectedObjects array. Fixes #79615.
21968 - Throw ArgumentException from set_SelectedObjects if there's a
21971 - Add GetTarget method which can be used to traverse up the
21972 GridItem.Parent chain. It depends on the assumption that
21973 selected_objects for different GridEntries are always in the same
21974 order (a safe assumption). Use this method and loop over all the
21975 selected objects in the entry when calling RemoveValueChanged and
21978 * GridEntry.cs: Make this handle multiple selected objects.
21979 .Value returns null if not all the selected objects share the same
21982 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
21983 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
21984 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
21985 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
21986 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
21987 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
21988 add additional functionality.
21990 2006-10-12 Mike Kestner <mkestner@novell.com>
21992 * ErrorProvider.cs : new ToolTipWindow ctor sig.
21993 * HelpProvider.cs : new ToolTipWindow ctor sig.
21994 * ToolTip.cs : remove ToolTip param from Window sig since it is
21996 * ToolBar.cs : add tooltip support. Fixes #79565.
21998 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22000 * ComboBox.cs: move the events in set_SelectedIndex to
22001 after the call to HighlightIndex in order to avoid
22002 possible recursion and subsequent problems with the call
22003 to HighlightIndex and include a range check in
22004 set_HighlightIndex. Fixes #79588
22006 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22008 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
22009 to ui thread's settings instead of sunday.
22010 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22012 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
22014 * DateTimePicker.cs
22016 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22017 and implement missing functionality (selecting different parts
22018 of the date and edit them individually with the keyboard).
22020 2006-10-11 Chris Toshok <toshok@ximian.com>
22022 * Control.cs (OnInvalidated): fix NRE relating to last change.
22024 2006-10-11 Chris Toshok <toshok@ximian.com>
22026 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22027 atoms in _NET_WM_STATE here if the window is maximized. We need
22028 to do this because we're *replacing* the existing _NET_WM_STATE
22029 property, so those atoms will be lost otherwise, and any further
22030 call to GetWindowState will return Normal for a window which is
22031 actually maximized. Fixes #79338.
22033 2006-10-11 Jackson Harper <jackson@ximian.com>
22035 * TextControl.cs: Special case for setting selection end to
22036 selection start, we basically kill the anchor.
22037 - some todo comments.
22039 2006-10-11 Chris Toshok <toshok@ximian.com>
22041 * Control.cs: switch to using an "invalid_region" to track which
22042 parts of the image buffer need updating. This is more code than
22043 the simple fix from r66532. That version just attempted to always
22044 fill the entire buffer on redraw, which turns out to be
22045 inefficient when invalidating small rectangles. This version
22046 simply adds the invalid rectangle to the invalid region. When we
22047 get any WM_PAINT message we see if it can be filled using the
22048 image buffer, and if it can't (if the paint event's clip rectangle
22049 is visible in the invalid region) we first fill the image buffer.
22050 So, the image buffer is still a cache, we just fill it lazily.
22052 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22053 need it any longer.
22055 2006-10-11 Chris Toshok <toshok@ximian.com>
22057 * XplatUIX11.cs (SetWindowPos): we need to update both position as
22058 well as size after calling XMoveResizeWindow. This keeps us from
22059 ignoring future SetWindowPos calls. Fixes the disappearing
22060 DateTimePicker in the ToolBarDockExample from bug #72499.
22062 2006-10-11 Chris Toshok <toshok@ximian.com>
22064 * TextBoxBase.cs: reorder things a bit when it comes to
22065 resizing-causing-recalculation. we were recalculating the
22066 document when our position was changed, which shouldn't happen.
22067 We only care about size changes. Clear up some more redundant
22068 recalculation calls while I'm at it. This makes the toolbar dock
22069 example snappy when you're just dragging toolbars around (since it
22070 causes a relayout whenever you move one.)
22072 2006-10-11 Chris Toshok <toshok@ximian.com>
22074 * ToolBarButton.cs (get_Rectangle): this only returns
22075 Rectangle.Empty if Visible == false, or Parent == null.
22076 Parent.Visible doesn't matter.
22078 2006-10-10 Chris Toshok <toshok@ximian.com>
22080 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22081 by .net 1.1, so switch to an internal method instead.
22083 2006-10-10 Chris Toshok <toshok@ximian.com>
22085 * Control.cs (WM_PAINT): when a control is double buffered we draw
22086 initially to the ImageBuffer and then copy from there. But when a
22087 parent control which has child controls is double buffered, the
22088 initial drawing doesn't encompass the entire ClientRectangle of
22089 the parent control, so we end up with uninitialized bits (this is
22090 easily seen by dragging the top toolbar in
22091 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
22092 manually set the ClipRectangle of the paint_event (only the one we
22093 use to populate the ImageBuffer) to ClientRectangle. Fixes more
22094 of the nastiness in bug #72499.
22096 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22097 which we use in Control.cs's WM_PAINT handling.
22099 2006-10-10 Jackson Harper <jackson@ximian.com>
22101 * TextBoxBase.cs: Finish off the autoscrolling stuff.
22103 2006-10-10 Chris Toshok <toshok@ximian.com>
22105 * Cursor.cs: Apply a slightly different patch to the one suggested
22108 2006-10-10 Jackson Harper <jackson@ximian.com>
22110 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22111 not the parent form.
22112 * TextControl.cs: use difference in old line count vs new count to
22113 calculate how many lines were added, this takes into account soft
22114 line breaks properly.
22116 2006-10-10 Chris Toshok <toshok@ximian.com>
22118 * LinkLabel.cs: don't call MeasureCharacterRanges against a
22119 rectangle located at 0,0 and the size of the text. Use
22120 ClientRectangle instead. This fixes rendering of non-left aligned
22123 2006-10-10 Jackson Harper <jackson@ximian.com>
22125 * TextBoxBase.cs: When we set the selection start position the
22127 * TextControl.cs: Need to update the caret when we decrement it to
22129 - Make sure that the selection_visible flag gets reset to false if
22130 the selection isn't visible. Before this you could get it set to
22131 visible by changing the selection start, then changing the end to
22134 2006-10-09 Jackson Harper <jackson@ximian.com>
22136 * TreeView.cs: Don't update scrollbars when we aren't visible.
22137 * TreeNodeCollection.cs: Only need to update scrollbars if being
22138 added to an expanded visible node or the root node.
22140 2006-10-09 Chris Toshok <toshok@ximian.com>
22142 * XplatUIX11.cs (SendMessage): fix NRE.
22144 2006-10-09 Jackson Harper <jackson@ximian.com>
22146 * TextBoxBase.cs: Implement horizontal autoscrolling.
22147 * TextControl.cs: Add a movement types that allows moving forward
22148 and backwards without wrapping.
22150 2006-10-09 Mike Kestner <mkestner@novell.com>
22152 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22153 with focus "expansion" of labels. Fixes #79532 and then some.
22154 * ThemeWin32Classic.cs : add LineLimit to ListView label format
22157 2006-10-09 Jackson Harper <jackson@ximian.com>
22159 * TextBoxBase.cs: Set the default max values to MaxValue since
22160 we use the scrollbar for autoscrolling and the default value is
22161 100. If we don't do this the caret won't keep up with typing
22162 after about 18 characters.
22163 * TextControl.cs: Make sure the selection is offset by the
22164 viewport x. This fixes selection when using auto scrolling.
22166 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
22168 * Form.cs: The active control should be selected after the
22169 OnLoad so that any child control initialization that affects
22170 the selection is done. Fixes #79406
22172 2006-10-06 Chris Toshok <toshok@ximian.com>
22174 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22175 to have no evil effects.
22177 - Stop selecting StructureNotifyMask on non-toplevel windows.
22179 The only way children should be resized is by using the SWF api,
22180 and we already send WM_WINDOWPOSCHANGED messages in those cases.
22181 Toplevel windows can be interacted with via the window manager,
22182 and so we keep the input mask there.
22184 The other event StructureNotifyMask gives us (that we care
22185 about) is DestroyNotify. The code is already structured such
22186 that it assumes we won't be getting a DestroyNotify event for
22187 the window we pass to XDestroyWindow (which is what
22188 StructureNotifyMask is supposed to guarantee.) So, that code
22189 shouldn't be affected by this either.
22191 - Stop selecting VisibilityChangeMask altogether.
22193 We weren't doing anything with the resulting events anyway.
22195 This vastly reduces the number of X requests and events we see
22196 when resizing/laying out a large ui.
22198 2006-10-06 Chris Toshok <toshok@ximian.com>
22200 * ScrollableControl.cs (DisplayRectangle): we need to take into
22201 account the DockPadding regardless of whether or not auto_scroll
22202 == true. rework this slightly to this effect, and fix bug #79606,
22203 and part of #72499 (you can now see the drag handles and drag
22206 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
22208 * ListViewItem.cs: Collections of selected and checked items are now
22209 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22210 we mark the collection "dirty".
22211 * ListView.cs: Marked collections readonly. Modified UpdateSelection
22212 to only clear SelectedItems when a new item is selected and MultiSelect
22213 is enabled. CheckedItems and SelectedItems now subscribe to Changed
22214 event of ListViewItemCollection, and mark its list dirty whenever
22215 that event is fire. This allows us to return selected/checked items
22216 in the same order as they are in the Items collection. This matches
22219 2006-10-06 Chris Toshok <toshok@ximian.com>
22221 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22222 right mouse clicks. Fixes bug #79593.
22224 2006-10-06 Chris Toshok <toshok@ximian.com>
22226 * Splitter.cs: doh, fix splitters that don't want to cancel the
22227 movement when you drag them. Also, impose the limits on the
22228 values we send to the SplitterMovingEvent. Fixes #79598.
22230 2006-10-06 Jackson Harper <jackson@ximian.com>
22232 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22233 since we use this for auto scrolling also.
22235 2006-10-05 Chris Toshok <toshok@ximian.com>
22237 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
22238 beginning to think that most datagrid column types don't need this
22239 method. Fixes bug #79392.
22241 2006-10-05 Chris Toshok <toshok@ximian.com>
22243 * DataGrid.cs: move back to a more lazy scheme for creating the
22244 CurrencyManager, so we aren't updating it every time you set
22245 either DataSource or DataMember. Also, don't call
22246 RecreateDataGridRows if the currency manager hasn't changed.
22248 2006-10-05 Chris Toshok <toshok@ximian.com>
22250 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22251 emitted, SelectedIndex should already be updated. Fixes bug
22254 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
22256 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22257 ToolStripTextBox.cs: Initial commit.
22258 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22260 2006-10-05 Jackson Harper <jackson@ximian.com>
22262 * TabControl.cs: We need to invalidate the tab control area when
22263 new ones are added (duh).
22265 2006-10-03 Chris Toshok <toshok@ximian.com>
22267 * Form.cs (ProcessDialogKey): if the focused control is in this
22268 form and is a button, call its PerformClick method here. Fixes
22271 2006-10-04 Jackson Harper <jackson@ximian.com>
22273 * TabPage.cs: Ignore setting of Visible, and add an internal
22274 method for setting the controls visibility. TabPage's Visible
22275 property is a little strange on MS, this seems to make us
22276 compatible, and fixes cases where people set all the tab pages to
22278 * TabControl.cs: Use the new internal setting on tab pages
22281 2006-10-03 Mike Kestner <mkestner@novell.com>
22283 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22285 2006-10-03 Mike Kestner <mkestner@novell.com>
22287 * ListView.cs : use is_visible instead of Visible to check if
22288 scrollbars should be placed/sized. Also some max_wrap_width
22289 love for LargeIcon view. [Fixes #79533]
22291 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
22294 Make set_TextAlign() do actually update the align. Fixed #78403.
22296 2006-10-03 Chris Toshok <toshok@ximian.com>
22298 * DataGrid.cs: fix a crash when switching datasources if the
22299 vertical scrollbar is at someplace other than Value = 0. Also,
22300 reduce the number of recalculation passes we do in SetDataSource
22303 2006-10-03 Jackson Harper <jackson@ximian.com>
22305 * TextBoxBase.cs: Move the if value the same bail check up, we
22306 don't want to empty the document if it is already empty, this
22307 seems to severly mess up the caret. TODO: I should probably fix
22308 the empty statement to update teh caret somehow.
22310 2006-10-03 Chris Toshok <toshok@ximian.com>
22312 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22313 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22314 reflection, an internal row type, properties on said type, etc.)
22315 will work with our datagrid. Fixes #79531.
22317 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
22319 * FileDialog.cs: Don't crash if a path is not accessible
22320 (System.UnauthorizedAccessException). Fixes #79569.
22321 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22322 a ':' too. Return unknown icon for those paths/files.
22324 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
22326 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
22327 GetContainerControl returns null.
22329 2006-10-02 Chris Toshok <toshok@ximian.com>
22331 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22332 call to XGetWindowAttributes instead of "handle". fixes an X
22333 error using notifyicon after the NotifyIconWindow to Form base
22336 2006-10-02 Chris Toshok <toshok@ximian.com>
22338 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22339 server grab and looping we need to do to get down to the most
22340 deeply nested child window.
22341 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22342 QueryPointer again after the WarpPointer so we can generate a
22343 proper (fake) MotionNotify event to be enqueued in the destination
22345 (GetCursorPos): call QueryPointer.
22349 2006-10-02 Jackson Harper <jackson@ximian.com>
22351 * NotifyIcon.cs: Derive the notify icon from a form, so things
22352 like FindForm work on it.
22353 - Swallow the WM_CONTEXTMENU message, since that is generated on
22354 mouse down, and context menu is a mouse up kinda guy. I believe
22355 the correct fix here is probably to make the notify icon entirely
22356 NC area, but this seems to work fine for anyone not manipulating
22359 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
22361 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22362 ToolStripItemCollection.cs, ToolStripLabel.cs,
22363 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22364 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22365 Initial implementation.
22366 * TextRenderer.cs: Provide padding to MeasureText.
22368 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
22370 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22371 of ButtonBaseAccessibleObject. Fix bug #79552.
22373 2006-10-02 Jackson Harper <jackson@ximian.com>
22375 * MdiWindowManager.cs: When maximizing use the containers client
22376 rect, not it's bounds, so nc area is accounted correctly.
22377 - Use the parent form's size for the menu position, since the
22378 client isn't always the full form size.
22380 2006-10-01 Chris Toshok <toshok@ximian.com>
22382 * ScrollableControl.cs: make sure neither right_edge or
22383 bottom_edge are < 0, since they're used as LargeChange for the
22384 horiz/vert scrollbars respectively. Fixes #79539.
22386 2006-10-01 Chris Toshok <toshok@ximian.com>
22388 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22389 the xplatuix11 code can cause us to destroy/recreate our handle.
22393 - this code can be invoked many times for the same Hwnd. Make
22394 sure we only destroy the client window once (the first time this
22395 method is called). This fixes bug #79544.
22396 - Remove the call to the improperly bound XSync. why we had two
22397 bindings to this, I will never know, but this call resulted in
22398 events being discarded from the queue(!).
22399 - correct a misunderstanding of _XEMBED_INFO - the second atom is
22400 not our current state but the state we wish to be in. So, 0 if
22401 we don't want to be mapped. Change it to 1.
22402 (SystrayRemove): The XEMBED spec makes mention of the fact that
22403 gtk doesn't support the reparent of client windows away from the
22404 embedder. Looking at gtksocket-x11.c seems to agree with this.
22405 The only avenue we have for removing systray icons is to destroy
22406 them. We don't want the handle to go away for good, though, so
22407 call InternalRecreateHandle on the NotifyIconWindow. Fixes
22410 2006-10-01 Chris Toshok <toshok@ximian.com>
22412 * Form.cs (WndProc): inline the native_enabled variable usage into
22413 the cases in which it's used. Fixes #79536.
22415 2006-09-29 Mike Kestner <mkestner@novell.com>
22417 * ListView.cs : toggle the selection state for ctrl clicks in
22418 multiselect mode. [Fixes #79417]
22420 2006-09-29 Mike Kestner <mkestner@novell.com>
22422 * ListView.cs : kill CanMultiSelect and refactor the selection
22423 code to support multiselection in the absence of mod keys. Steal
22424 arrow/home/end keys by overriding InternalPreProcessMessage to
22425 restore regressed keynav behavior.
22428 2006-09-29 Jackson Harper <jackson@ximian.com>
22430 * MdiClient.cs: Repaint the titlebars when the active window is
22433 2006-09-29 Chris Toshok <toshok@ximian.com>
22435 * Application.cs: when entering a runloop with a modal, make sure
22436 the hwnd is enabled. Fixes #79480.
22438 2006-09-29 Chris Toshok <toshok@ximian.com>
22440 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22441 when ListManager.CanAddRows == false, bump us back one.
22443 * DataGridColumnStyle.cs (ParentReadOnly): remove the
22444 listmanager.CanAddRows check. This makes ArrayLists uneditable
22445 using a datagrid, which is not right.
22446 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22447 is an IEditable, but call property_descriptor.SetValue regardless.
22450 2006-09-29 Chris Toshok <toshok@ximian.com>
22452 * DataGridBoolColumn.cs: we need to test equality in the face of
22453 possible null values (as is the case with the default NullValue).
22454 This patch keeps us from crashing in that case.
22456 2006-09-29 Jackson Harper <jackson@ximian.com>
22458 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22459 here, since it will get called for every node collection in the
22460 tree. This is now done in the treeview once the sorting is
22462 * TreeView.cs: Recalculate the visible order, and update the
22463 scrollbars after sorting, set the top nope to the root so that the
22464 recalc actually works.
22466 2006-09-29 Chris Toshok <toshok@ximian.com>
22468 * LinkLabel.cs: more handling of the default link collection in
22469 the face of LinkArea manipulation. The default link collection
22470 contains 1 element (start=0,length=-1). If the user sets LinkArea
22471 to anything and the links collection is the default, clear it.
22472 Then only add the link if its nonempty. Fixes #79518.
22474 2006-09-29 Chris Toshok <toshok@ximian.com>
22476 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22477 piece correctly when we hit a '\n'. Fixes #79517.
22479 2006-09-29 Chris Toshok <toshok@ximian.com>
22481 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22482 change the binding of gdk_init_check to take two IntPtr's, and
22483 pass IntPtr.Zero for both of them. Fixes #79520.
22485 2006-09-29 Mike Kestner <mkestner@novell.com>
22487 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22490 2006-09-28 Jackson Harper <jackson@ximian.com>
22492 * XplatUIX11.cs: When translating NC messages make sure we go from
22493 whole window to screen, not client window to screen.
22494 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22495 method doesn't exist
22496 - Skip over controls that aren't forms when arranging.
22498 2006-09-28 Jackson Harper <jackson@ximian.com>
22500 * XplatUIWin32.cs: Clip the rect to the parent window.
22501 * XplatUIStructs.cs: Add clipping modes struct.
22502 * InternalWindowManager.cs: New private method that factors title
22503 bar heights in when calculating the pos of an NC mouse message.
22504 - Use SendMessage to force a paint when the form's size is changed
22505 instead of painting the decorations immediately.
22506 - Don't let the NC button click messages get to DefWndProc,
22507 because they will attempt to handle windowing themself, and this
22508 messes up z-order (it will put them in front of the scrollbars).
22509 * XplatUIX11.cs: Make sure that we don't reset window managers if
22510 we already have one (ie the window is an MDI window).
22512 2006-09-28 Chris Toshok <toshok@ximian.com>
22514 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
22515 menu code really needs going over.
22517 2006-09-27 Chris Toshok <toshok@ximian.com>
22519 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
22520 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22521 window is maximizable. So, we need to make sure that even if we
22522 clear the border/wm frame of those functions, they're still
22523 available (basically, we remove the decoration without removing
22524 the function). Half the fix for #79338.
22526 2006-09-27 Chris Toshok <toshok@ximian.com>
22528 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22531 2006-09-27 Chris Toshok <toshok@ximian.com>
22533 * Splitter.cs: reorder things a bit so that we don't actually
22534 draw/move the splitter until after calling OnSplitterMoving. This
22535 lets users cancel/disallow the movement by explicitly setting
22536 event.SplitX/SplitY. Fixes #79372.
22538 2006-09-27 Jackson Harper <jackson@ximian.com>
22540 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22541 because it is most likely on a window being destroyed, and that
22542 will give us an X11 error.
22544 2006-09-27 Chris Toshok <toshok@ximian.com>
22546 * PropertyGridView.cs: half of the fix for #78190. Clicking on
22547 the dropdown button now toggles between showing and hiding the
22548 dropdown. Also, get rid of dropdown_form_showing and just use
22549 dropdown_form.Visible. We still don't do a grab, but I'll leave
22550 that part to someone who has handled Capture-fu before.
22552 2006-09-27 Chris Toshok <toshok@ximian.com>
22554 * DataGrid.cs: return false if alt isn't pressed when '0' is
22555 pressed. this keeps the '0' key from being swallowed, and fixes
22558 2006-09-27 Chris Toshok <toshok@ximian.com>
22560 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22561 Calling Refresh (in response to a scrollbar event) screws up the
22562 scrollbar painting. Fixes bug #78923.
22564 2006-09-27 Chris Toshok <toshok@ximian.com>
22566 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22567 then insert into hashtable" blocks threadsafe.
22569 2006-09-27 Chris Toshok <toshok@ximian.com>
22571 * MessageBox.cs (CreateParams): the styles should be |'ed with our
22572 baseclass's, since otherwise the
22573 ControlBox/MinimizeBox/MaximizeBox assignments above have no
22574 effect. This gets the close button back in messageboxes.
22576 2006-09-27 Chris Toshok <toshok@ximian.com>
22578 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22579 flag, not just != 0. this makes flags that are actually multiple
22580 bits (like WS_CAPTION) work. fixes bug #79508.
22582 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
22584 * PageSetupDialog.cs: add support for getting and settings the
22585 paper size, source and orientation.
22587 2006-09-26 Chris Toshok <toshok@ximian.com>
22589 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22590 and caption == "", we need to remove the resize handles as well as
22593 * Control.cs (set_Text): turns out that setting Text on a form
22594 should change the WM styles on the window, since if ControlBox ==
22595 false, the only way to get a window border is to have a non-""
22596 Text property. check winforms/forms/text.cs for an example. so,
22597 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22598 update both window styles and title. This fixes a lot of dialogs
22599 (including the preferences dialog in MonoCalendar.)
22601 2006-09-26 Chris Toshok <toshok@ximian.com>
22603 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22604 control isn't a Form), call Win32ShowWindow to hide the window,
22605 but don't update the control Visible property. When we reparent
22606 back to a parent control, call SetVisible in order for the
22607 window's visibility to be reinstated.
22609 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22612 * Control.cs (ControlCollection.Remove): remove that value.Hide()
22613 call for good, since it breaks MonoCalendar (and other things I'm
22614 sure.) Also, set all_controls to null *after* the owner calls,
22615 which end up regenerating it.
22616 (ChangeParent): allow new_parent to be == null, passing
22617 IntPtr.Zero down to XplatUI.
22619 this fixes #79294 the right way.
22621 2006-09-26 Mike Kestner <mkestner@novell.com>
22623 * GridEntry.cs : internal SetParent method.
22624 * PropertyGrid.cs : attach to property changed on the proper
22625 target if we have a hierarchical grid with subobjects. Setup
22626 GridItem.Parent for hierarchical items.
22627 * PropertyGridView.cs : Set value on the correct target for
22628 hierarchical grids. [Fixes #78903]
22630 2006-09-26 Chris Toshok <toshok@ximian.com>
22632 * Control.cs (ChildNeedsRecreating): this should return true if
22633 either we're being recreated and the child is in our list, or our
22634 parent is waiting for our recreation.
22636 2006-09-26 Chris Toshok <toshok@ximian.com>
22638 * Control.cs (ControlCollection.Remove): reinstate the
22639 value.Hide() call as suggested in bug #79294.
22641 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
22643 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22644 coordinates (versus a relative move).
22646 2006-09-26 Chris Toshok <toshok@ximian.com>
22648 * Control.cs: rework child recreation a little bit. It turns out
22649 that we race between the DestroyNotify the WM_DESTROY message. If
22650 the parent gets its DestroyNotify before the child gets the
22651 WM_DESTROY message, the child ends up not recreating (since the
22652 parent finishes its recreation on DestroyNotify, and the child
22653 checks ParentIsRecreating.)
22655 So, instead we store off a list of all the child controls which
22656 need to be recreated when the parent control starts to recreate
22657 itself. Then, when child controls get their WM_DESTROY message we
22658 check to see if they're in the parent's pending recreation list,
22659 and if so, we recreate. This removes all dependency on ordering
22660 from the code and fixes the initial MonoCalendar upgrade dialog.
22662 2006-09-26 Jackson Harper <jackson@ximian.com>
22664 * TextControl.cs: Use the Line to get the length of the line,
22665 since soft line breaks can change the end line.
22667 2006-09-26 Chris Toshok <toshok@ximian.com>
22669 * Control.cs (ControlCollection.AddImplicit): don't add the
22670 control again if it's already in one of our lists. This keeps us
22671 from adding controls over and over again for comboboxes when their
22672 handle gets recreated (as the combobox adds implicit controls in
22673 OnHandleCreated). Fixes the X11 errors in bug #79480.
22675 2006-09-26 Jackson Harper <jackson@ximian.com>
22677 * TextControl.cs: When deleting characters make sure that any
22678 orphaned zero lengthed tags get deleted.
22679 - Fix ToString for zero lengthed tags.
22681 2006-09-25 Jackson Harper <jackson@ximian.com>
22683 * TextControl.cs: When getting a tag at the location there can be
22684 multiple tags at the same spot, these are 0-lengthed tags that
22685 appear when extra formatting has been stuck in a location. We
22686 need to pull out the last of these 0 lengthed tags.
22688 2006-09-25 Jackson Harper <jackson@ximian.com>
22690 * TextControl.cs: Fix print out in debug method.
22691 * TextBoxBase.cs: When text is set bail if we are setting to the
22694 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
22696 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22697 It is now possible to change the selected index in a FontXXXListBox
22698 with the up and down arrow keys from the FontXXXTextBoxes.
22699 Also, send the FontXXXTextBox mouse wheel event to the corresponding
22700 FontXXXListBoxes to match ms.
22702 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
22704 * SystemInformation.cs: Return a clone of the theme's MenuFont because
22705 anyone can dispose it, anytime. All other properties returns enums,
22706 structs or basic types so they don't need such tricks.
22708 2006-09-22 Jackson Harper <jackson@ximian.com>
22715 * XplatUIDriver.cs: Update interface to add a primary selection
22716 flag, so the driver can use the primary selection buffer if
22718 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22720 * RichTextBox.cs: We need to supply the data object to paste now
22721 (so we can choose to supply CLIPBOARD or PRIMARY).
22722 * TextBoxBase.cs: Supply data object to paste (see above).
22723 - Middle click uses the primary selection data object.
22725 2006-09-21 Chris Toshok <toshok@ximian.com>
22727 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22728 of SetWMStyles. It's still a rat's nest and is largely
22729 order-dependent which I dislike immensely. This also fixes the X
22730 button disappearing from toplevel forms.
22732 2006-09-21 Mike Kestner <mkestner@novell.com>
22734 * ListBox.cs: move Jordi's click/dblclick raising code to the
22737 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
22739 * ListBox.cs: Fixes 79450
22741 2006-09-21 Mike Kestner <mkestner@novell.com>
22743 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22744 to deal with people updating the TreeNodeCollection after the tree
22745 is disposed. "Fixes" 79330.
22747 2006-09-20 Jackson Harper <jackson@ximian.com>
22749 * TextControl.cs: Push the cursor record onto the undo stack
22750 before the delete action. This fixes 78651.
22752 2006-09-20 Jonathan Chambers <joncham@gmail.com>
22754 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22755 CreateParams. Fixes 79329.
22757 2006-09-19 Chris Toshok <toshok@ximian.com>
22759 * XplatUIX11.cs: a couple of blanket code massage passes to clean
22760 things up a bit. First, get rid of the NetAtoms array (and the NA
22761 enum), and just embed the atoms as static fields. Also, add a
22762 couple of functions (StyleSet and ExStyleSet) to clean up all the
22763 bitmask testing of styles.
22765 * X11Structs.cs: remove the NA enum, not needed anymore.
22767 2006-09-19 Chris Toshok <toshok@ximian.com>
22769 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22770 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
22771 added cleanup to get MessageBox titles appearing again, which were
22772 broken by my earlier fix for caption-less/ControlBox-less windows.
22774 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
22776 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22777 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22778 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22779 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22780 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22781 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22782 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22783 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22784 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22785 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22786 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22788 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22789 ToolStripButton.cs: Stubs needed for above.
22790 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22792 2006-09-15 Chris Toshok <toshok@ximian.com>
22795 - make the MessageQueues hashtable Synchronized.
22797 - SendMessage: if the Hwnd is owned by a different thread, use the
22798 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22799 thread. Fixes bug #79201.
22801 2006-09-15 Chris Toshok <toshok@ximian.com>
22803 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
22804 ControlBox == false, we disallow maximize/minimize/close. If the
22805 form Caption is "" we also disallow move (and get rid of the Title
22806 decoration). Unfortunately, regardless of how things are set,
22807 we're stuck with the Title and WM menu.
22809 2006-09-15 Chris Toshok <toshok@ximian.com>
22811 * Application.cs: add locking around the static message_filters
22812 ArrayList, part of #79196.
22814 2006-09-15 Chris Toshok <toshok@ximian.com>
22816 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22817 Form.ControlBox == false, the window has no titlebar nor resize
22818 handles. fixes bug #79368.
22820 2006-09-15 Chris Toshok <toshok@ximian.com>
22822 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22823 >= 0. Fixes bug #79370.
22825 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
22826 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22828 Add properties: LayoutEngine, Margin, DefaultMargin.
22829 Add method: GetPreferredSize.
22830 Move layout logic from PerformLayout to layout engines.
22832 2006-09-13 Chris Toshok <toshok@ximian.com>
22834 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
22835 fix for #79326 broke #78718, so this change addresses that.
22837 - in SendWMDestroyMessages remove the call to
22838 CleanupCachedWindows, since we might be recreating the control and
22839 need to maintain the references to right Hwnd handles. Also, set
22840 the zombie flag to true for each of the children in the hierarchy
22841 instead of calling hwnd.Dispose. This will cause GetMessage to
22842 ignore all events for the window except for DestroyNotify.
22844 - In GetMessage, ignore messages except for DestroyNotify for
22847 * Control.cs: revert the is_recreating fix from the last
22848 ChangeLog. It's definitely "right", but it breaks switching from
22849 an MDI form to a non-MDI form. Will need to revisit that.
22851 * Hwnd.cs: add a zombie flag, which means "the
22852 client_window/whole_window handles are invalid, but we're waiting
22853 for the DestroyNotify event to come in for them". Set the flag to
22854 false explicitly if setting WholeWindow/ClientWindow, and also
22857 2006-09-13 Chris Toshok <toshok@ximian.com>
22859 * XplatUIX11.cs: rework window destruction slightly.
22861 - when destroying the windows associated with a control, we don't
22862 need 2 separate XDestroyWindow calls. Just the one for the
22863 whole_window (or for client_window if whole_window is somehow
22864 IntPtr.Zero -- can this happen?) is enough.
22866 - reworked SendWMDestroyMessages slightly, so we always dispose
22867 the child control hwnd's after sending the messages.
22869 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
22870 the two places it was used (one was even using hwnd.Handle and the
22871 other hwnd.client_window. ugh), adding another call in
22872 SendWMDestroyMessages. We need this new call because now the
22873 DestroyNotify events in the queue will be ignored for the child
22874 controls (as their hwnd's were disposed, and the window id's
22875 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
22877 - this fixes bug #79326.
22879 2006-09-13 Chris Toshok <toshok@ximian.com>
22881 * Control.cs: don't always set is_recreating to false at the end
22882 of RecreateHandle, since sometimes we're not done (and won't be
22883 until WndProc handles the WM_DESTROY message). Also, set
22884 is_recreating to false in the WM_DESTROY handling code. Part of
22885 the fix for bug #79326.
22887 2006-09-13 Miguel de Icaza <miguel@novell.com>
22889 * X11DesktopColors.cs: Start the droppage of debugging messages.
22891 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
22893 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
22895 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
22897 2006-09-12 Chris Toshok <toshok@ximian.com>
22899 * DataGrid.cs (get_ListManager): if the list_manager is null, try
22900 to create it using SetDataSource. Fixes bug #79151.
22902 2006-09-11 Chris Toshok <toshok@ximian.com>
22904 * XEventQueue.cs: add a DispatchIdle property.
22906 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
22907 either the queue is null, or the queue has DispatchIdle set to
22909 (DoEvents): set queue.DispatchIdle to false around the
22910 peek/translate/dispatch message loop in this method. This keeps
22911 Application.Doevents from emitting idle events. Part of the fix
22914 2006-09-11 Chris Toshok <toshok@ximian.com>
22916 * DataGrid.cs (set_DataSource): make this work for both the
22917 winforms/datagrid test and ReportBuilder. It seems as though when
22918 we've created a ListManager (or maybe it's if we have a
22919 BindingContext?), when we set the DataSource it clears the
22920 DataMember to "". otherwise we reuse the datamember. Fixes bug
22923 2006-09-11 Chris Toshok <toshok@ximian.com>
22925 * XplatUIX11.cs: deal with queue being null, which happens in all
22926 the Clipboard functions. Fixes one of the two problems mentioned
22929 2006-09-11 Chris Toshok <toshok@ximian.com>
22931 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
22932 button on various spots (including outside the menu) works closer
22933 to MS, and doesn't crash. Fixes #79343.
22935 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
22937 * ListView.cs: Do not initialize item_sorter in init. To match MS,
22938 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
22939 and the internal comparer is set. When a new ListViewItemSorter is set,
22940 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
22941 was specified. No further processing is necessary if SortOrder is set
22942 to it's current value. If Sorting is modified to None, and View is
22943 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
22944 (either custom or our internal ItemComparer) to null, on 1.0 profile
22945 only set item_sorter to null if its our internal IComparer. If Sorting
22946 is modified to Ascending or Descending, then use our internal IComparer
22947 if none is set, and if the current IComparer is our internal one then:
22948 on 2.0 profile always replace it with one for new Sorting, and on 1.0
22949 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
22950 Enum.IsDefined to verify whether a valid View value is specified in
22951 its setter. Automatically sort listview items when listview is
22952 created. In Sort, do nothing if ListView is not yet created, or if
22953 no item_sorter is set (no Sorting was set, Sorting was explicitly set
22954 to None or ListViewItemSorter was set to null). Added Sort overload
22955 taking a bool to indicate whether the ListView should be redrawn when
22956 items are sorted (we use this in ListViewItemCollection to avoid double
22957 redraws). Modified our internal IComparer to take the sort order into
22958 account. In Add and AddRange methods of ListViewItemCollection, also
22959 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
22960 view), but use overload with noredraw option to avoid double redraw.
22961 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
22962 true when View is Tile, and do the same when attempting to set View to
22963 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
22964 for selected/checked indices, as it involves overhead when sorting is
22965 done while these collections are not used all that often. Instead
22966 we'll build the indices on demand. Modified IList implementation of
22967 CheckedIndexCollection to use public methods if object is int.
22968 Modified CheckedListViewItemCollection to hide checked items if
22969 ListView.CheckBoxes is false. Removed LAMESPEC remark in
22970 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
22971 IList implementation in SelectedIndexCollection to use public methods
22972 if object is int. Modified SelectedListViewItemCollection to hide
22973 selected items if listview is not yet created.
22974 * ListViewItem.cs: CheckedIndices list no longer needs to be
22975 maintained separately (see ListView changes). Also clone font, fixes
22978 2006-09-11 Mike Kestner <mkestner@novell.com>
22980 * ComboBox.cs: if we are updating the contents of the currently
22981 selected index, refresh the control or the textbox selection.
22984 2006-09-11 Mike Kestner <mkestner@novell.com>
22986 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
22987 the 'specified' logic has been moved there. This seems like a bug
22988 in Control.cs, since our current SetBoundsCore completely ignores
22989 the specified parameter. Peter's commit seems to indicate that is
22990 the way the MS control implementation works. [Fixes #79325]
22992 2006-09-10 Jonathan Chambers <joncham@gmail.com>
22994 * XplatUI.cs: Set default_class_name to be composed
22995 of current domain id. This allows MWF to be loaded in multiple
22998 2006-09-09 Miguel de Icaza <miguel@novell.com>
23000 * X11Keyboard.cs: If we are unable to obtain the input method, do
23001 not call CreateXic to create the input context. Should fix
23004 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
23006 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23007 Simplified gnome support by adding more pinvokes to get the
23008 icon for a file or mime type.
23010 2006-09-08 Jackson Harper <jackson@ximian.com>
23012 * MenuAPI.cs: Deslect popup context menu items before closing the
23013 window, so that you don't see the previously selected item
23014 selected when you reopen the menu.
23015 * TextControl.cs: Update the cursor position even if we don't have
23016 focus. This fixes typing in things like the ComboBox. I'm not
23017 totally sure we should always set the visibility if we don't have
23018 focus, but couldn't find any corner cases where the cursor showed
23019 up when it shouldn't.
23021 2006-09-08 Chris Toshok <toshok@ximian.com>
23023 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23024 our arrays are length 256. & 0xff before indexing. Fixes the
23025 crash in bug #78077.
23027 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23029 * ThemeWin32Classic.cs:
23030 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23031 is true. Handle that check box too.
23033 2006-09-07 Chris Toshok <toshok@ximian.com>
23035 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
23038 2006-09-07 Chris Toshok <toshok@ximian.com>
23040 * Control.cs: in set_BackColor only do the work if
23041 background_color != value.
23043 * XplatUIX11.cs: move the clearing of invalid areas (both client
23044 and nc) to the same block of code where we set (nc_)expose_pending
23045 to false. That is, move it from PaintEventEnd to PaintEventStart,
23046 so things that cause invalidates from within OnPaint will trigger
23047 another call to OnPaint. Fixes bug #79262.
23049 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
23051 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23052 * FileDialog.cs: Fix typo
23054 2006-09-07 Jackson Harper <jackson@ximian.com>
23056 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
23057 for tab pages if they have any.
23059 2006-09-06 Mike Kestner <mkestner@novell.com>
23061 * Splitter.cs: use the "current" rect when finishing drag handle
23062 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
23064 2006-09-06 Mike Kestner <mkestner@novell.com>
23066 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23067 support offset splitters. [Fixes #79298]
23069 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
23071 * Mime.cs: Fixed a bug that could override the global mime type
23074 2006-09-05 Jackson Harper <jackson@ximian.com>
23076 * TabControl.cs: Better calculation method for setting the slider
23077 pos. Prevents crashes on really wide tabs.
23078 - Draw Image on tab pages if an image list is used.
23080 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23082 * MonthCalendar.cs: When Font changes, the Size should be
23083 updated to fit the new font's space requirements.
23085 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
23087 * ListBox.cs: If the items are cleared with Items.Clear set
23090 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23092 * MonthCalendar.cs: Handle arrow keys as input keys. Also
23093 fire DateChanged event instead of DateSelected event when
23094 the date was changed by keyboard interaction.
23096 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23098 * DateTimePicker.cs: Handle DateChanged for the associated
23099 month_calendar control, and set month_calendar.Font from
23100 OnFontChanged method, as well as resize the height of the
23101 control when needed. Make PreferredHeight proportional.
23103 2006-09-01 Chris Toshok <toshok@ximian.com>
23105 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23108 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23110 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
23112 * FileDialog.cs: Set ClientSize instead of window size, to allow space
23113 for decorations (Fixes #79219)
23115 2006-09-01 Mike Kestner <mkestner@novell.com>
23117 * ComboBox.cs: first stab at sorting plus some selection handling
23118 fixes to bring us more in line with MS behavior. Also switches back
23119 to index based selection. Alternative patches for index-based
23120 selection were provided by Jackson Harper, Carlos Alberto Cortez,
23121 and latency@gmx.de on bug 78848. I assume they were similar to this
23122 code I've had simmering in my tree forever.
23125 2006-09-01 Chris Toshok <toshok@ximian.com>
23127 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23128 when setting list position guard against ending up with a -1 index
23129 (the other part of the fix for #78812). Should probably make sure
23130 we don't need the analogous fix in the ItemDeleted case.
23133 - in SetDataSource, work around the fact that the way
23134 OnBindingContextChanged is invoked will cause us to re-enter this
23135 method. I'll remove the hack once I investigate
23136 OnBindingContextChanged.
23138 - fix the logic in set_DataSource and set_DataMember (basically
23139 what to do if the other of the two is null.)
23141 - in OnListManagerItemChanged, we need to take into account the
23142 edit row when deciding whether or not to call RecreateDataGridRows
23143 (part of the fix for #78812).
23145 2006-09-01 Jackson Harper <jackson@ximian.com>
23147 * Splitter.cs: Don't do anything if there is no control to affect
23148 (prevents us from crashing in weird tet cases).
23149 * TreeView.cs: Bounding box for the mouse movement reverting
23150 focus/selection back to previously selected node. This matches
23151 MS, and makes the tree a lot more useable.
23152 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23153 use clipping so they are not drawn. This fixes when the control
23154 is set to have a transparent background, or if it was over an
23157 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
23159 * MimeIcon.cs: Improved handling for reading default icons when
23160 using gnome (2.16 made it necessary). Check and read svg icons
23161 first, then 48x48 and then 32x32 icons.
23163 2006-08-31 Chris Toshok <toshok@ximian.com>
23165 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23168 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23169 ProcessKeyPreview. Fixes part of #77806.
23171 * DataGrid.cs: big patch.
23173 - revert the queueing up of DataSource/DataMember if inside
23174 BeginInit/EndInit calls. That's not the way the datagrid achieves
23175 its delayed databinding. Instead, call SetDataSource in
23176 OnBindingContextChanged. This mimic's MS's behavior, and fixes
23179 - Also, it wasn't mentioned in #78811, but the test case exhibits
23180 behavior that was lacking in our datagrid implementation - Columns
23181 that have mapping names that don't exist in the datasource's
23182 properties aren't shown. Yuck. To fix this I added the bound
23183 field to the column style, and basically any calculation to figure
23184 out anything about columns uses a loop to find the bound columns.
23185 still need to investigate if I can cache an array of the bound
23186 columns or if the indices must be the same.
23188 - When setting CurrentCell, we no longer abort if the cell being
23189 edited was in the add row. This fixes the other part of #77806.
23191 - The new code also fixes #78807.
23193 * ThemeWin32Classic.cs: perpetrate the same disgusting
23194 column.bound field hack, and only render bound fields.
23196 2006-08-31 Chris Toshok <toshok@ximian.com>
23198 * DataGridColumnStyle.cs: add bound field. this field is true if
23199 the datasource has a property corresponding to the mapping name.
23201 * DataGridTableStyle.cs: set the bound field on the column styles
23202 depending on whether or not we have a column for that property.
23204 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
23206 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
23207 splitter control (fixes #79228)
23209 2006-08-31 Chris Toshok <toshok@ximian.com>
23211 * DataGridColumnStyle.cs: we need to delay the assignment of
23212 property descriptor until the last possible moment due to the lazy
23213 databinding stuff in the datagrid. Also, fix the exceptions
23214 thrown by CheckValidDataSource to match MS.
23216 2006-08-31 Jackson Harper <jackson@ximian.com>
23218 * Form.cs: When activated select the active control, if there is
23219 no active control, we select the first control.
23220 * XplatUIX11.cs: If there is no focus control when we get a
23221 FocusIn event, find the toplevel form and activate it. This
23222 occurs when you popup a window, it becomes the focus window, then
23223 you close that window, giving focus back to the main window.
23225 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23227 * MonthCalendar.cs:
23228 * ThemeWin32Classic.cs: Cache Font in bold style, as well
23229 as StringFormat with Center alignments in MonthCalendar,
23230 instead of creating new ones when drawing the control.
23231 Also, draw the month name in bold style.
23233 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
23236 - PerformLayout(): It would seem MS performs the fill even if the
23237 control is not visible (part of #79218 fix)
23238 - ResetBackColor(): Use the setter to reset the color, to allow
23239 overriders to catch the change.
23241 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23242 - CreateHandle(): dito (part of $79218 fix)
23243 - Don't set an icon if we have a dialog
23244 * ScrollableControl.cs:
23245 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23246 - ScrollIntoView(): No need to scroll if control is already visible
23247 (resolves fixme and fixes #79218)
23249 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23251 * MonthCalendar.cs: Change proportions in SingleMonthSize
23252 to match the aspect of the original control.
23254 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
23256 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23257 get updated when they get maximized.
23259 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
23261 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23263 2006-08-29 Chris Toshok <toshok@ximian.com>
23265 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23267 2006-08-29 Jackson Harper <jackson@ximian.com>
23269 * TreeView.cs: Need to track selected node and highlighted node,
23270 they aren't always the same thing, when the mouse is down on a
23271 node it is hilighted, but not selected yet.
23272 - Do the HideSelection stuff right
23273 - Need to focus on rbutton mouse down. And redraw selection when
23274 right click is mouse upped.
23276 2006-08-29 Mike Kestner <mkestner@novell.com>
23278 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23279 when SubItems.Count < Columns.Count. [Fixes #79167]
23281 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
23283 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23285 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
23287 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23288 from X. Only send based on ConfigureNotify if we don't have the
23289 correct location in hwnd (if the window manager moved us)
23291 2006-08-28 Mike Kestner <mkestner@novell.com>
23293 * ListView.cs: remove a TODO.
23294 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23295 [Fixes ListView part of #79166]
23297 2006-08-28 Mike Kestner <mkestner@novell.com>
23299 * ListView.cs: move wheel handler to parent since it is focused
23300 instead of the item_control now. [Fixes #79177]
23302 2006-08-28 Mike Kestner <mkestner@novell.com>
23304 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23305 when the control is focused. [Fixes #79171]
23307 2006-08-28 Mike Kestner <mkestner@novell.com>
23309 * ListView.cs: size the item and header controls for empty and
23310 unscrollable views.
23311 * ThemeWin32Classic.cs: draw disabled backgrounds.
23314 2006-08-28 Chris Toshok <toshok@ximian.com>
23316 * Form.cs: remove unused "active_form" static field.
23318 * Hwnd.cs: lock around accesses to static windows collection.
23320 * Application.cs: lock threads in Exit ().
23322 2006-08-28 Chris Toshok <toshok@ximian.com>
23324 * NativeWindow.cs: lock around accesses to window_collection.
23326 2006-08-28 Chris Toshok <toshok@ximian.com>
23328 * Control.cs: err, fix this the right way, by locking on controls
23329 when using it. not by making it synchronized.
23331 2006-08-28 Chris Toshok <toshok@ximian.com>
23333 * Control.cs: make the static "controls" field synchronized, as it
23334 gets updated from multiple threads.
23336 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23338 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23339 Prevent other threads from exiting when calling thread sets quit state.
23340 * XEventQueue.cs: Added PostQuitState property
23342 2006-08-27 Chris Toshok <toshok@ximian.com>
23344 * AsyncMethodData.cs: add a slot for the window handle.
23346 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23347 window (the destination control's window, not the foster window).
23349 * Control.cs (BeginInvokeInternal): store the window's handle in
23350 the AsyncMethodData.
23353 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23356 - PostQuitMessage: Removed resetting S.D display handle, we might have
23357 another loop started after calling PostQuitMessage (Fixes #79119)
23358 - Created destructor to reset S.D handle
23360 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
23362 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23364 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23366 * TextControl.cs (Insert): Update the caret position even if we don't
23367 have a handle yet, just don't call the driver in that case.
23368 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23369 to the end of the new selection text (Fixes #79184)
23371 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23373 * Form.cs (Activate): Only activate if the handle is created)
23375 - Mark window as invisible when it's disposed
23376 - Check if window handle is created when setting window visible,
23377 instead of relying just on the is_created variable
23378 - Check if object is disposed when creating the control (Fixes #79155)
23380 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23382 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23383 when allowing layout again. Otherwise we re-generate the anchoring
23384 distance to the border again and actually alter what the user wanted
23385 This is ugly, it'd be better if we used DisplayRectangle instead of
23386 ClientRectangle for Control.UpdateDistances, but that causes us to
23387 have other problems (initial anchoring positons would be wrong)
23390 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23393 - The size and location setters shouldn't go directly to
23394 SetBoundsCore, but to SetBounds, which triggers layout on the
23395 parent, then calls SetBoundsCore. (Related to fix for #78835)
23396 - SetBounds: Moved actual location update code into this function
23397 from SetBoundsCore, to match MS. Added call to PerformLayout if
23398 we have a parent (to trigger resizing of anchored parents if the
23399 child size has changed (see testcase for #78835)
23400 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
23402 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23404 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23406 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23407 System.Drawing when a toplevel window gets closed; there might
23408 be other toplevel windows belonging to the same app (Fixes #78052)
23410 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
23412 * FileDialog.cs: After reading FileDialog settings from mwf_config
23413 use Desktop prefix only if a real folder doesn't exist anymore.
23414 * FontDialog.cs: Added char sets.
23415 It is now possible to select the font, size or style with the
23418 2006-08-25 Kornél Pál <kornelpal@gmail.com>
23420 * PrintPreviewDialog.cs: Use assembly name constants.
23422 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23424 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23425 scrollbar from whacking it's buttons)
23427 2006-08-24 Chris Toshok <toshok@ximian.com>
23429 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
23430 in this patch (aggregating setting Left/Top/Width/Height to
23431 setting Bounds on the scrollbars), but the crux of the fix is in
23432 Recalculate, where we scroll by the remaining scroll_position if
23433 we're hiding a scrollbar. The 2*$5 reward in the comment is
23436 2006-08-24 Jackson Harper <jackson@ximian.com>
23439 * MdiWindowManager.cs: If the form is made a non-mdi window we
23440 need to remove the form closed event so that closing forms works
23443 2006-08-24 Jackson Harper <jackson@ximian.com>
23445 * Control.cs: Make IsRecreating internal so that the driver can
23447 - Temporarily remove the Hide when controls are removed, its
23448 making a whole bunch of things not work because visibility isn't
23449 getting reset elsewhere correctly
23450 * Form.cs: Need to do a full handle recreation when the mdi parent
23452 * XplatUIX11.cs: If we are recreating handles don't dispose the
23453 HWNDs. What was happening is the handles were being recreated in
23454 SendWMDestroyMessages, but then flow continued on in that method
23455 and destroyed the new handles.
23457 2006-08-23 Jackson Harper <jackson@ximian.com>
23459 * Form.cs: MdiClient is always at the back of the bus
23460 * Control.cs: When the order of items in the collection is changed
23461 we need to reset the all_controls array
23462 - do the same sorta setup thats done when adding a control when a
23463 control is set on the collection.
23465 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23467 * TextBoxBase.cs (get_Text): Return an empty array if our document
23468 is empty (fixes #79052)
23470 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23472 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23473 on WM_SYSCHAR messages (fixes #79053)
23475 2006-08-23 Chris Toshok <toshok@ximian.com>
23477 * DataGrid.cs: fix flickering when scrolling vertically.
23479 2006-08-23 Chris Toshok <toshok@ximian.com>
23481 * DataGrid.cs (EndEdit): only invalidate the row header when we
23484 2006-08-23 Chris Toshok <toshok@ximian.com>
23486 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23487 methods. fixes the flicker when scrolling around.
23489 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23491 * FileDialog.cs: Making sure the control is created before we get a
23492 chance to use it with BeginInvoke (Fixes #79096)
23494 2006-08-23 Chris Toshok <toshok@ximian.com>
23496 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23497 width to use when painting the rows.
23499 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
23502 - Throw ArgumentException if a negative value is passed to SelectionLength
23503 - Update the selection end if start is moved. end needs to be always
23504 after start. (Fixes #79095)
23505 - Track selection length; MS keeps the selection length even if start
23506 is changed; reset on all other operations affection selection
23508 2006-08-22 Jackson Harper <jackson@ximian.com>
23510 * TreeView.cs: Make sure both scrollbars get displayed and sized
23511 correctly when the other bar is visible.
23512 - Use the original clip rectangle for checking if the area between
23513 the two scrollbars is visible, not the viewport adjusted clipping
23516 2006-08-22 Jackson Harper <jackson@ximian.com>
23518 * Binding.cs: We don't use IsBinding because it requires the
23519 control to be created, which really shouldn't be necessary just to
23520 set a property on the control.
23522 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23524 * ComboBox.cs: Some CB.ObjectCollection methods must throw
23525 ArgumentNullReferenceException when the argument is null.
23527 2006-08-21 Jackson Harper <jackson@ximian.com>
23529 * Timer.cs: Track the thread that the timer is started in (NOT
23530 CREATED), this way messages for it will only be triggered on its
23532 * XEventQueue.cs: Track the timers here, this makes timers per
23534 * XplatUIX11.cs: The timers are moved to the XEventQueue.
23536 2006-08-19 Chris Toshok <toshok@ximian.com>
23538 * XplatUIX11.cs: after further communication with pdb, we get the
23539 best of both worlds. SetZOrder working for un-Mapped windows, and
23540 no X errors for un-mapped windows.
23542 2006-08-19 Chris Toshok <toshok@ximian.com>
23544 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23545 as it was causing pdn toolbars to not have the correct stacking.
23547 2006-08-18 Mike Kestner <mkestner@novell.com>
23549 * ListView.cs : guard against negative ClientArea.Width in scrollbar
23550 calculation. Not sure why control should ever be setting a negative
23551 width though. Fixes #78931.
23553 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23555 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23556 null items in ObjectCollection class.
23557 * ListBox.cs.: Likewise.
23559 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
23561 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23562 as the base method in ThemeWin32Classic should work fine.
23565 2006-08-18 Jackson Harper <jackson@ximian.com>
23567 * Binding.cs: When validating if the value entered doesn't convert
23568 properly reset to the old value.
23569 * RadioButton.cs: Don't fire click when we get focus.
23571 2006-08-18 Jackson Harper <jackson@ximian.com>
23573 * FileDialog.cs: Paint the selection on the directory combobox the
23576 2006-08-17 Jackson Harper <jackson@ximian.com>
23578 * ErrorProvider.cs: Don't allow the error control to be selected.
23579 * Control.cs: Don't send the SetFocus messages, the control
23580 activation will do this, and if we do it blindly here validation
23583 2006-08-17 Jackson Harper <jackson@ximian.com>
23586 * ContainerControl.cs: Make validation events fire in the correct
23587 order. TODO: For some reason the first validation event is not
23590 2006-08-17 Mike Kestner <mkestner@novell.com>
23592 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23594 2006-08-17 Mike Kestner <mkestner@novell.com>
23596 * ComboBox.cs : implement scroll wheel support for popped-down
23597 state. Fixes #78945.
23599 2006-08-17 Jackson Harper <jackson@ximian.com>
23601 * TreeView.cs: Specify treeview actions (old patch that didn't get
23602 committed for some reason).
23603 - Don't let the mouse wheel scroll us too far. Just want to make
23604 the bottom node visible, not scroll it all the ways to the top.
23606 2006-08-17 Jackson Harper <jackson@ximian.com>
23608 * XplatUIX11.cs: Mouse wheel events go to the focused window.
23610 2006-08-17 Mike Kestner <mkestner@novell.com>
23612 * ComboBox.cs : don't do mouseover selection in simple mode.
23614 2006-08-16 Jackson Harper <jackson@ximian.com>
23616 * Form.cs: Fire the closing events for all the mdi child windows
23617 when a window is closed. If the cancel args are set to true, the
23618 main window still gets the event fired, but it doesn't not close.
23619 * MdiWindowManager.cs: Do this closing cleanup in a Closed
23620 handler, instead of when the button is clicked, so cancelling the
23621 close works correctly.
23622 * ComboBox.cs: Send the mouse down to the scrollbar.
23624 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23626 * ListBox.cs: When passing 'null' to SelectedItem,
23627 set SelectedIndex to -1, to unselect items. This is the
23628 observed behaviour in .Net.
23630 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
23632 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23633 MS flags saying there won't be any. (fixes #78800)
23634 * Control.cs (HandleClick): Made virtual
23636 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
23638 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23639 cultures. Fixed bug #78399.
23641 2006-08-16 Jackson Harper <jackson@ximian.com>
23643 * Form.cs: Use the MdiClients MdiChildren property to access
23644 MdiChildren instead of creating the array from the child controls.
23645 * MdiClient.cs: Maintain a separate array of the mdi children, so
23646 that insertion order is maintained when the Z-order is changed.
23648 2006-08-16 Mike Kestner <mkestner@novell.com>
23650 * ListView.cs : add an ItemComparer and default to it for sorting.
23651 Fixes #79076, but sorting needs a complete overhaul to be compat with
23654 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23656 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23658 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23660 * Hwnd.cs (Mapped): Properly traverse the tree
23662 2006-08-15 Chris Toshok <toshok@ximian.com>
23664 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
23665 pass manager.Current.GetType() to ParseData. It has to be the
23666 property type. So, hold off doing the ParseData until we're in
23667 SetPropertyValue where we know the type. This fixes the crash in
23668 #78821 but the textbox is still empty.
23670 2006-08-15 Chris Toshok <toshok@ximian.com>
23673 - when we're scrolling, only call Edit() again if the
23674 current cell is still unobscured. Fixes bug #78927.
23675 - when handling mousedown on a cell, ensure the cell is visible
23676 before calling Edit.
23677 - remove the properties from DataGridRow, and remove the
23678 DataGridParentRow class altogether.
23681 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23683 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23684 fire OnTextChanged by ourselves. There's no point calling base,
23685 we don't set the base value anywhere else. Fixes #78773.
23687 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23689 * ListBox.cs: Call CollectionChanged when modifying
23690 an item from Items indexer, to update the actual items
23693 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23695 * PrintDialog.cs: Small fixes for focus and a pair of checks,
23696 to match .Net behaviour.
23698 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23700 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23702 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23704 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23706 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
23708 * MessageBox.cs: Prevent potential NRE exception.
23709 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23711 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23713 * MessageBox.cs: Calculate the owner of a messagebox, also make
23714 it topmost. Fixes #78753
23716 2006-08-14 Chris Toshok <toshok@ximian.com>
23718 * XplatUIX11.cs: A couple of fixes so that metacity will let us
23719 programmatically move windows. first, set the PPosition hint as
23720 well as the USPosition hint. Second include some code from pdb
23721 that sets the window type to NORMAL when we set the transient for
23722 hint. This is because, in the absence of a window type, metacity
23723 thinks any window with TransientFor set is a dialog, and refuses
23724 to let us move it programmatically. fascists.
23726 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
23728 * XplatUIX11.cs: When setting normal hints, take into consideration
23729 an different hints previously set so we don't delete them (fixes #78866)
23731 2006-08-12 Chris Toshok <toshok@ximian.com>
23733 * ToolBarButton.cs: make Layout return a boolean, if something to
23734 do with the button's layout changed.
23737 - add another parameter to Redraw, @force, which all existing
23739 - make the Layout function return a boolean which is true if the
23740 layout has actually changed. Redraw now uses this (and @force)
23741 to determine when to invalidate. At present the only place
23742 where @force can be false is the call from OnResize, when
23743 background_image == null. So, resizing a toolbar when the
23744 layout doesn't change results in no drawing.
23746 2006-08-12 Chris Toshok <toshok@ximian.com>
23748 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
23749 the VScrollBar and HScrollbar reversed. oops.
23751 * DataGrid.cs: fix the logic that assigns sizes to the implicit
23752 scrollbars. we were assigning them twice (once in
23753 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23754 therefore causing two scrollbar resizes (and redraws?) to happen
23757 2006-08-12 Chris Toshok <toshok@ximian.com>
23759 * ToolBarButton.cs: redraw the entire button if the theme tells us
23762 * Theme.cs: add ToolBarInvalidateEntireButton.
23764 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23765 buttons, just the border.
23767 * ThemeNice.cs: redraw the entire toolbar button since we need to
23768 draw the highlight image.
23770 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23771 we need to redraw the entire button (not just the border).
23773 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23775 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23776 for vertical bars. Fixes the mismatches shown by #78513
23778 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
23780 * FileDialog.cs: If a saved/remembered path doesn't exist
23781 anymore, fall back to "Desktop".
23783 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
23785 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23786 parent. It's apparently legal to not have one
23788 - SetZOrder: Don't try to set Z-Order on an unmapped window
23789 - CreateWindow: 0,0 are legal coordinates for a window. don't move
23790 it unless the coordinates are negative
23792 2006-08-10 Mike Kestner <mkestner@novell.com>
23794 * ListControl.cs: allow null for DataSource. Clear DisplayMember
23795 when setting to null per msdn docs. Fixes #78854.
23797 2006-08-10 Chris Toshok <toshok@ximian.com>
23799 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23800 flickering by setting a clip rectangle on the Graphics when we
23801 need to redraw just a particular menuitem. Also, rename "OnClick"
23802 to "OnMouseDown" to reflect what it actually is.
23804 * Form.cs: track the OnMouseDown change.
23806 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
23808 * CommonDialog.cs: Properly inherit the CreateParams from the form
23809 and only change what we need. Fixes #78865
23811 2006-08-10 Chris Toshok <toshok@ximian.com>
23813 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23814 flickering in flat mode (and most of the flickering in general) by
23815 only invalidating the button border (and not the entire rectangle)
23816 when the state changes. A couple of cases still flicker:
23817 ToggleButtons, and the dropdown arrow case when the user mouse
23820 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
23822 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23823 for german keyboards. Numlock state shouldn't affect the behaviour
23824 of the Del key. Fixes bug #78291.
23826 2006-08-10 Chris Toshok <toshok@ximian.com>
23828 * ListControl.cs: remove the items.Clear line from BindDataItems,
23829 as this is the first thing done by both subclasses in their
23830 SetItemsCore overrides. Also, add a ItemChanged handler, and when
23831 passed -1, refresh the list. This gets databinding working when
23832 the datasource is set on the list before the datasource is
23833 populated (as in wf-apps/ReportBuilder.)
23835 * ComboBox.cs: remove the argument to BindDataItems. This call
23836 should really go away, and be initiated by the ListControl code.
23838 * ListBox.cs: same.
23840 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23842 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23843 if no data is in the document when the control is displayed
23845 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23847 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23850 - PositionCaret: Allow positioning of caret but don't call methods
23851 requiring a handle if the window isn't created yet
23852 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23853 - owner_HandleCreated: Don't position the caret, just update it's
23854 location. User might have already set a different position
23856 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
23858 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
23859 windows. Screws up the returned coordinates for child windows.
23860 Fixes #78825. I'm hoping this doesn't break something, since the
23861 code was explicitly put in 8 months ago, but no bug was attached.
23862 Menus still seem to work properly.
23864 2006-08-08 Chris Toshok <toshok@ximian.com>
23866 * DataGrid.cs: make BeginInit/EndInit actually do what they're
23867 supposed to do - delay data binding until the EndInit call. Also,
23868 make the table style collection's CollectionChangeAction.Refresh
23871 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
23872 (with action = Refresh) when a consituent table's MappingName is
23875 2006-08-08 Chris Toshok <toshok@ximian.com>
23877 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
23878 Invalidate, since changing the text can change the size of the all
23881 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23883 * Form.cs (AddOwnedForm): Still need to add the form to our listif
23884 we don't have it yet
23886 2006-08-08 Chris Toshok <toshok@ximian.com>
23888 * PrintControllerWithStatusDialog.cs: don't .Close() the status
23889 dialog, as this causes X errors later on, since we actually
23890 destroy the window. Instead, .Hide() it.
23892 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
23894 * ComboBox.cs: Added focus reflection for popup window
23896 - Removed transient setting for non-app windows for now, not sure it
23898 - Fixed logic checking if we have captions when deciding
23899 override_redirect, WS_CAPTION is two bits and a 0 check was not
23901 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
23904 - AddOwnedForm: Don't just add the form to the list, call the property
23905 to ensure the driver is informed about the ownership as well
23906 - CreateHandle: Set the TopMost status in the driver if we have an owner
23907 * XplatUI.cs: Fixed debug statement
23909 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
23910 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23911 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
23912 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
23913 TrackBarRenderer.cs: Make constructor private.
23914 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
23915 * ProfessionalColorTable.cs: Make properties virtual.
23917 2006-08-06 Duncan Mak <duncan@novell.com>
23919 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
23922 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23923 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
23924 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
23925 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
23926 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
23927 Initial import of new 2.0 classes.
23929 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23930 * Application.cs: Add 2.0 VisualStyles properties.
23932 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
23933 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23934 XplatUIX11.cs: Create property to allow access to existing private
23935 variable "themes_enabled"
23937 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23939 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
23940 file size, as otherwise our class libraries fail using windows. Fixes
23943 2006-08-04 Jackson Harper <jackson@ximian.com>
23946 * XplatUIX11.cs: Move the toolwindow window manager creation into
23947 the X11 driver, this way on win32 we can let windows create/handle
23950 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23952 * PrintDialog.cs: Remove some redundant checks, add some others,
23953 clean some code, and move the focus to the text boxes when the
23954 values are incorrect.
23956 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
23958 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
23960 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23962 * NumericUpDown.cs: Setting the Minimum and Maximum is now
23963 handled correctly. Fixes bug #79001.
23965 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23967 * PrintDialog.cs: The "Copies" numeric up down must have
23968 set the Minimum property to 1; only if the value is bigger
23969 than 1, activate "Collate" check box. This is the behaviour of .Net.
23970 Also modify the Document elements only if it is not null.
23972 2006-08-03 Jackson Harper <jackson@ximian.com>
23974 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
23975 length. (We have a larger array then actual node count).
23977 2006-08-03 Jackson Harper <jackson@ximian.com>
23979 * ComboBox.cs: Don't show selection by default.
23980 - The SelectAll isn't needed here, since the focus code should do
23982 - DDL style lists to manual selection drawing, so when they
23983 get/lose focus they have to invalidate.
23985 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
23987 * TextBoxBase.cs: Don't always show all selections by default.
23989 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
23990 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
23991 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
23992 Fixed various typos.
23994 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
23996 * Control.cs: Removing the controls in a ControlCollection with
23997 Clear now hides the controls as expected. Fixes bug #78804.
23999 2006-08-03 Jackson Harper <jackson@ximian.com>
24001 * Control.cs: Revert previous focus patch, it breaks reflector.
24003 2006-08-03 Jackson Harper <jackson@ximian.com>
24005 * ComboBox.cs: Cleanup selection and focus with the combobox.
24006 This also eliminates some duplicated keyboard code, since now
24007 everything is handled by the main class.
24008 - Make list selection work on mouse up instead of down, to match
24011 2006-08-02 Jackson Harper <jackson@ximian.com>
24013 * Control.cs: Setting focus needs to go through the whole
24014 selection mechanism.
24016 2006-08-02 Chris Toshok <toshok@ximian.com>
24018 * PrintPreviewDialog.cs: change MinimumSize to use
24019 base.MinimumSize so it works.
24021 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
24024 - UpdateCaret: Added sanity check in case caret isn't defined yet
24025 - Line.Delete: Now updating selection and caret markers if we're
24026 transfering a node (Properly fixes #78323)
24027 - SetSelectionEnd: Added sanity check
24028 * TextBoxBase.cs: Removed broken attempt to fix #78323
24030 2006-08-01 Chris Toshok <toshok@ximian.com>
24032 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24033 Close() call is handled in Form, not here.
24035 2006-08-01 Chris Toshok <toshok@ximian.com>
24037 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24040 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24041 for sizes < 100% zoom. The code now aggressively attempts to keep
24042 from calling document.Print (), and tries not to use the scaling
24043 g.DrawImage whenever possible (it still does if you scale to >
24044 100%, since usually that involves huge images).
24046 * PrintPreviewControl.cs: hook up the close button.
24048 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
24049 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24050 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24051 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24052 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24053 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24054 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24055 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24056 Removed [Serializable] for 2.0 Event Handlers.
24058 2006-07-31 Jackson Harper <jackson@ximian.com>
24060 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24061 * TextControl.cs: Uncomment out the body of this method.
24063 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
24065 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24068 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24070 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24071 that embed TextBox and need selections visible even if textbox is not
24072 focused to enforce that behaviour.
24073 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24076 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24079 - Added new SetSelectionStart/SetSelectionEnd overloads
24080 - Fixed viewport width assignment to be accurate
24081 - Adjusted alignment line shift calculations to allow cursor on right
24082 aligned lines to be always visible at the right border (like MS)
24084 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24085 - TextBoxBase_SizeChanged: recalculating canvas on size changes
24086 - CalculateScrollBars: Use ViewPort size instead of window size, to
24087 properly consider space occupied by the border and scrollbars
24089 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
24090 calculations; no longer leaves artifacts
24091 - CaretMoved: Adjusted window scrolling to match MS and fixed several
24092 calculation bugs (Still missing right/center align calculations)
24094 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24096 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24097 use of both scroll rect and clip rect, as they do the same.
24099 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
24101 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
24102 in the event handler (fixes #78912)
24104 2006-07-31 Chris Toshok <toshok@ximian.com>
24106 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24107 grid.ListManager.Count, since grid.ListManager might be null.
24108 This of course begs the question "why are we drawing rows for a
24109 grid with no list manager (and therefor no rows)?" Fixes the
24110 crash in bug #78929.
24112 2006-07-31 Chris Toshok <toshok@ximian.com>
24114 * RelatedPropertyManager.cs: Don't always chain up to the parent
24115 ctor. instead, call SetDataSource if the parent's position is !=
24116 -1. Fixes the crash in #78822.
24118 2006-07-31 Chris Toshok <toshok@ximian.com>
24120 * DataGrid.cs (get_ListManager): use field instead of property
24121 accessors for datasource and datamember.
24122 (RowsCount): make internal again.
24123 (OnMouseDown): end edits before resizing columns/rows.
24124 (OnMouseUp): restart edits after resizing columns/rows.
24126 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
24128 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24129 This fixes the situation where the last set cursor is displayed
24130 whenever the mouse is over scrollbars.
24132 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24134 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24135 Document properties, as well as initial values.
24137 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
24139 * XplatUIWin32.cs (SetBorderStyle): Setting both border
24140 and ClientEdge results in a 3-pixel border, which is
24143 2006-07-28 Jackson Harper <jackson@ximian.com>
24145 * TreeNodeCollection.cs: Fix the clear method.
24146 - Fix the Shrink also
24148 2006-07-27 Jackson Harper <jackson@ximian.com>
24150 * TreeView.cs: Make sure the visible order is computed when we
24151 attempt to size the scrollbars (for trees that mess with the
24152 scrolling when they shouldn't.
24153 - Make sure to give the scrollbars valid values.
24155 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
24157 * XplatUIX11.cs: Move motion compression code to where it
24158 has less performance impact
24160 2006-07-26 Jackson Harper <jackson@ximian.com>
24162 * UpDownBase.cs: When the control is selected make the child
24163 controls non selectable, so that a click on them won't do a
24164 focus/unfocus cycle.
24165 - Don't give focus to the text box when the spinner is selected.
24166 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24168 2006-07-26 Chris Toshok <toshok@ximian.com>
24170 * ThemeWin32Classic.cs: add print preview rendering. I'm not
24171 satisfied with this solution. If the bitmaps are small, we should
24172 just cache them in the PrintPreviewDialog and draw them here.
24173 Also, the layout is broken for the 2-up and 3-up cases.
24175 * Theme.cs: add PrintPReviewControlPaint.
24177 * PrintPreviewDialog.cs: first pass implementation.
24179 * PrintPreviewControl.cs: first pass implementation. No
24182 * PrintDialog.cs: only validate fields if that particular portion
24183 of the UI is enabled. Also, set the document's controller to a
24184 PrintControllerWithStatusDialog wrapping the document's print
24187 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24188 bring up a SaveFileDialog (i hope we don't want to match the
24189 behavior of the crappy windows file entry) and set the
24190 PrinterSettings.PrintFileName accordingly.
24192 2006-07-26 Jackson Harper <jackson@ximian.com>
24194 * ContainerControl.cs: Add a field that disables auto selecting
24195 the next control in a container when the container is activated.
24196 * UpDownBase.cs: Don't select the text box when the up down is
24199 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
24201 * XEventQueue.cs: Added methods for peeking (used for compression
24202 of successive events)
24203 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24204 mouse move events (fixes #78732)
24206 2006-07-25 Jackson Harper <jackson@ximian.com>
24208 * UpDownBase.cs: Use an internal class for the textbox so that we
24209 can control focus. the updown control should always have focus,
24210 if either the text area or the buttons are clicked.
24211 - Send the key messages to the textbox, since it never actually
24213 - Activate and decativate the textbox caret.
24215 2006-07-24 Jackson Harper <jackson@ximian.com>
24217 * Control.cs: Use the directed select when selecting a control,
24218 this way the container controls override will get called and the
24219 whole ActiveControl chain will get triggered. TODO: probably need
24220 to make sure this gets done everywhere instead of the old
24222 * ContainerControl.cs: Implement the directed Select method to
24223 find and activate the correct child control.
24225 2006-07-22 Mike Kestner <mkestner@novell.com>
24227 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24228 menu handling code so that clicks without a grab work too.
24231 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
24233 * FileDialog.cs: Enable the BackButton when dirstack has one element.
24234 Added some small optimizations.
24236 2006-07-21 Matt Hargett <matt@use.net>
24238 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24240 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
24242 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
24243 tests pass and match MS in some strange border cases.
24245 2006-07-21 Chris Toshok <toshok@ximian.com>
24247 * ThemeWin32Classic.cs: handle drawing of the relation links and
24248 parent row buttons.
24250 * Theme.cs: change args to DataGridPaintParentRow.
24252 * DataGrid.cs: Don't use controls for the relation links and
24253 parent buttons, so we have to handle all their interactions in
24254 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
24255 when we're navigating through child tables, so we can reinstate
24256 selection, expanded state, current cell, etc.
24258 2006-07-20 Chris Toshok <toshok@ximian.com>
24260 * ToolBar.cs: When we redraw a button, for whatever reason,
24261 there's no reason to redraw the entire toolbar. Also, don't call
24262 Control.Refresh from within Redraw, as it's much heavier than
24263 Invalidate (which is really what we want).
24265 2006-07-20 Chris Toshok <toshok@ximian.com>
24267 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24268 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24269 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24270 traces from within a debug IBindingList datasource
24271 (in mono/winforms/datagrid) for *days*, I've finally gotten things
24272 to work in a similar fashion.
24274 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24276 * ListBox.cs: Don't call Sort () when setting
24277 the Sorted property to false (avoid an unnecessary sort).
24279 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24281 * ListControl.cs: DataSource should throw an ArgumentException
24282 instead of a normal exception when the argument is not of the
24285 2006-07-20 Mike Kestner <mkestner@novell.com>
24287 * Control.cs: add InternalPreProcessMessage to allow us to steal
24288 key events before MWF gets its paws on them. Adapted from a
24290 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
24291 up/down/left/right navigation. Override the new internal control
24292 method to steal the events since they never make it to WndProc.
24293 * ToolBarButton.cs: don't worry about pushed when setting hilight
24294 since the drawing code prefers pushed to hilight. Invalidate on
24295 Hilight changes. Fixes #78547 and #78525.
24297 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
24299 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24300 the canvas size. Fixes #78868
24302 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
24304 * Splitter.cs: Track requested split position until first layout
24305 is performed. Fixes #78871
24307 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
24309 * Application.cs: Removed code that forces 1.x for the version
24310 number if the version started with 0. Not sure why that code was
24311 there and I couldn't find any bugs that indicated we needed it.
24314 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
24316 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24317 ResetDefaults(), just write some output to the console until it's
24318 implemented. Fixes bug #78907 for now. Eliminated two warnings.
24320 2006-07-19 Jonathan Chambers <joncham@gmail.com>
24322 * PropertyGridView.cs: set StartPosition of drop down forms
24323 so they appear in correct initial spot. Fixes #78190.
24325 2006-07-19 Mike Kestner <mkestner@novell.com>
24327 * ThemeWin32Classic.cs: use parent background color when drawing
24328 flat toolbars. Restructure the conditionals to make sure non-flat
24329 non-Divider toolbars are filled too. Fixes #78837.
24331 2006-07-19 Mike Kestner <mkestner@novell.com>
24333 * ListBox.cs: Sort on collection changes even if the handle
24334 isn't created yet. Fixes #78813.
24336 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24338 * ListControl.cs: DisplayMember should never be null,
24339 and now we assign String.Empty when null is passed to it (this
24342 2006-07-17 Mike Kestner <mkestner@novell.com>
24344 * ListViewItem.cs: restructure Font and subitem Font handling
24345 to hold a specific font and refer back to owner on null.
24348 2006-07-17 Mike Kestner <mkestner@novell.com>
24350 * ToolBar.cs: bandaid for side-effect of previous patch which was
24351 discarding explicit heights for non-AutoSize toolbars. Need to
24352 extend my format tester to deal with AutoSize=false. Fixes #78864.
24354 2006-07-15 Jackson Harper <jackson@ximian.com>
24356 * LabelEditTextBox.cs:
24357 * TreeView.cs: Use a new LabelEdit class for node editing, this
24358 class automatically 'closes' itself when it gets the enter key or
24360 - Use the client rectangle when setting the trees scrollbars, so
24361 border style is taken into account.
24363 2006-07-14 Jackson Harper <jackson@ximian.com>
24366 * TreeView.cs: Make the editing work similar to MSs, firing the
24367 events correctly and ending edits correctly.
24369 2006-07-14 Mike Kestner <mkestner@novell.com>
24371 * ToolBarButton.cs:
24372 * ToolBar.cs: layout restructuring and redraw enhancements to support
24373 formatting changes gracefully, like setting TextAlign, ImageList,
24374 ButtonSize, and Appearance. Handles explicit button sizing quirks
24375 of the MS controls. Things like flat toolbars ignoring button size
24376 but becoming constant sized at the largest button's size. Normal
24377 toolbars with an image set cannot be shrunk smaller than the image,
24378 but text can be clipped/ignored.
24379 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24380 is zero. Seems like DrawString should be smart enough to not put
24381 anything on screen though. Also trim labels and ellipsize at the char
24382 boundary, not word.
24383 Fixes #78711 and #78483.
24385 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24387 * FolderBrowserDialog.cs: Disable "New Folder" button and
24388 "New Folder" contextmenu menuitem if a folder like "My Computer"
24391 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24393 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24394 * FolderBrowserDialog.cs:
24395 - Use MWFConfig to store and read size and position settings
24396 - Added code to create a new folder (button or context menu).
24397 Use TreeView labeledit to change the name of the new folder.
24399 2006-07-14 Jackson Harper <jackson@ximian.com>
24401 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
24402 when the tree is scrolled we end editing.
24404 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
24406 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24409 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24411 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24412 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24413 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24414 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24415 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24416 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24417 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24418 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24419 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24420 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24421 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24422 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24423 ListViewItemSelectionChangedEventHandler.cs,
24424 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24425 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24426 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24427 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24428 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24429 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24430 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24431 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
24432 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
24433 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24434 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24435 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24436 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24437 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24438 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24439 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24440 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24441 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24442 WebBrowserNavigatingEventHandler.cs,
24443 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24445 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
24447 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24448 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24449 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24450 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24451 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24452 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24453 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24454 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24455 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24456 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24457 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24458 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24459 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24460 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24461 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24462 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24463 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24464 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24465 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24466 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24467 ListViewItemStates.cs, MaskFormat.cs: Added
24469 2006-07-13 Jonathan Chambers <joncham@gmail.com>
24471 * PropertyGridView.cs: Fix keyboard navigation of drop down.
24472 Patch from eno for bug 78558.
24474 2006-07-13 Jackson Harper <jackson@ximian.com>
24476 * TreeView.cs: When an edit is finished make sure that the
24477 selected node is visible.
24478 - When setting the top/bottom use the scrollbars is_visible, so
24479 everything will be set correctly even if the tree isn't visible
24482 2006-07-13 Jackson Harper <jackson@ximian.com>
24484 * ComboBox.cs: Revert the item->index part of my previous patch.
24485 * TreeView.cs: Use LostFocus instead of Leave for detecting when
24486 the edit box has lost focus (duh).
24487 - Just make the edit box not visible when we get return, that will
24488 take the focus, which will call EndEdit
24489 * TreeNode.cs When we start editing, notify the treeview.
24491 2006-07-12 Jackson Harper <jackson@ximian.com>
24493 * ComboBox.cs: Clear out old items before setting the item list.
24494 This prevents databound controls from having their items added
24496 - Switch the combobox to use indices whereever possible instead of
24497 using Item's. This allows usto navigate through lists that have
24498 more then one item with the same string value (ie a, b, b, a).
24499 - Scroll the listboxes scrollbar when a non visible item is
24501 - Allow keypress to cycle through all the possible values. For
24502 example if you have b1, b2, b3 and hold down the B key all the
24503 values will be cycled through.
24505 2006-07-12 Jackson Harper <jackson@ximian.com>
24508 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24509 this using the internal methods.
24510 * Control.cs: Add OnGotFocusInternal. A new method that allows
24511 controls to "override" OnGotFocus and change focus behavior if
24513 - Same thing for LostFocus
24514 * ComboBox.cs: Pass off focus to the text control properly.
24516 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
24518 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24519 * FolderBrowserDialog.cs: Almost a complete rewrite.
24520 - Better support for Environment.Specialfolders
24521 - Added support for MWFVFS
24522 - Made setting SelectedPath work
24524 2006-07-12 Jackson Harper <jackson@ximian.com>
24526 * Control.cs: Optimze getting all the controls.
24528 2006-07-11 Jackson Harper <jackson@ximian.com>
24530 * ContainerControl.cs: Override SETFOCUS in the container control,
24531 so that it is not selected on mouse click.
24533 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24535 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
24536 Hopefully we will have a better way once all of focus is complete.
24538 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
24540 * ThemeWin32Classic.cs: Commented out some debug code and fixed
24541 a compile error with csc.
24543 2006-07-11 Jackson Harper <jackson@ximian.com>
24545 * Control.cs: When hiding a control only select the next control
24546 if the current control was focused.
24547 - Don't handle enter/leave when setting/killing focus, this is
24548 done by the container control.
24549 - Remove is_selected, it's not needed anymore.
24550 - Add utility methods for selecting a child control, and for
24551 firing the Enter/Leave events.
24552 * ContainerControl.cs: When a control is activated fire the
24553 enter/leave events.
24554 - Don't wrap when processing the tab key, so that focus can be
24555 moved outside of the container.
24556 - Use the correct active control
24558 2006-07-11 Jackson Harper <jackson@ximian.com>
24560 * ComboBox.cs: Remove some debug code that was blinding me.
24561 * UpDownBase.cs: These controls actually aren't implicit, they are
24562 visible to the user.
24564 2006-07-10 Chris Toshok <toshok@ximian.com>
24566 * DataGrid.cs: move back to the is_adding boolean field. god i
24567 hate this is_editing/is_adding/is_changing stuff.
24569 2006-07-10 Chris Toshok <toshok@ximian.com>
24571 * DataGridTableStyle.cs: just check if the property type is bool.
24572 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24573 Don't use CanRenderType.
24575 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24576 if our text == NullText. Remove CanRenderType.
24578 * DataGridBoolColumn.cs: nuke CanRenderType.
24580 * DataGrid.cs: reenable some code to end the current edit inside
24581 of set_CurrentCell. This fixes the other 1.1.16 regression.
24582 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24583 Also, remove the visible_row_count arg from CalcRowHeaders, since
24584 we don't need to worry about the actual height of the area.
24586 2006-07-10 Chris Toshok <toshok@ximian.com>
24588 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24591 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24592 the real sense of the IsInEditOrNavigateMode property (true =
24593 navigate, false = edit). Also, update OnKeyPress to reflect this.
24595 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24596 column style exists, we still need to set its property descriptor
24597 to match up with our list manager.
24599 2006-07-10 Chris Toshok <toshok@ximian.com>
24601 * ThemeWin32Classic.cs: implement the new row/header painting
24602 approach. The parent row painting will likely go away and
24603 replaced with label controls, but the rest seems to work ok (and
24606 * Theme.cs: change the way we draw datagrid rows. we don't draw
24607 the row headers as a block now. Instead we draw them in the
24608 normal draw-row loop. Add some calls for drawing parent rows and
24611 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24612 a default table style. Set the defaults from ThemeEngine.Current,
24613 not SystemColors. Fix lots of misc issues with property setters.
24615 * DataGrid.cs: move loads of style information out of this class
24616 as it's being duplicated with DataGridTableStyle. keep track of a
24617 special DataGridTableStyle for the properties we used to mirror
24618 here. Switch all the style properties to access this table style
24619 instead of instance fields of this class. Also add a internal
24620 class to represent parent rows (more needs to be stored here, like
24621 the selection state from the parent table, as well as the
24622 expansion state.) Also, for datasources with relations, do the
24623 right thing for collapse/expand, and add support for the
24624 navigation/parent row buttons.
24626 Lastly, fix the crash in the 1.1.16 build.
24628 * GridTableStylesCollection.cs: make the explicit interface
24629 implementations call the class's methods as opposed to duplicating
24632 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24633 0 so the text doesn't jump around when we move the cursor.
24635 2006-07-10 Jackson Harper <jackson@ximian.com>
24638 * ListBox.cs: Match MS's ToString (this makes debugging focus
24639 stuff infinitely easier).
24641 2006-07-10 Jackson Harper <jackson@ximian.com>
24643 * Control.cs (SelectNextControl): When checking the control's
24644 parent use this instead of ctrl.parent so that null can be passed
24645 to SelectNextControl. (I have unit tests for this).
24646 - Remove unused var.
24648 2006-07-10 Chris Toshok <toshok@ximian.com>
24650 * CurrencyManager.cs: correct one regression, the removal of the
24651 finalType field. Also, add a MonoTODO on CanAddRows, implement
24652 Refresh() correctly, and fix some event emission in
24653 ListChangedHandler.
24655 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24657 * FileDialog.cs: Don't use brackets for new folders if they exist
24658 under *nix. Instead use -(number of existing folders +1).
24660 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
24663 - Fixed really nasty bug #78771
24664 - Don't block the whole GUI when reading directories with a lot of
24665 entries. Use an other thread instead and call BeginInvoke to
24666 update the ListView in MWFFileView
24668 2006-07-07 Chris Toshok <toshok@ximian.com>
24670 * Control.cs (Dispose): release any Capture when disposing.
24672 2006-07-07 Chris Toshok <toshok@ximian.com>
24674 * LinkLabel.cs (Select): if we chain up to the parent, set
24675 focused_index to -1 so we'll search for the first available link
24676 the next time the user tabs into us. Also, if the direction is
24677 backward and focused_index == -1, start the search from the last
24680 2006-07-07 Chris Toshok <toshok@ximian.com>
24682 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24683 is beyond the end of the text, don't do anything.
24684 (CreateLinkPieces): set our ControlStyles.Selectable based on
24685 whether or not we have any links.
24686 (Link.Invalidate): use a loop instead of foreach.
24687 (Link.set_Start): null out owner.sorted_links so it'll be
24688 recreated by CreateLinkPieces.
24690 2006-07-06 Chris Toshok <toshok@ximian.com>
24692 * LinkLabel.cs: revert the SetStyle change.
24694 2006-07-06 Chris Toshok <toshok@ximian.com>
24696 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24697 (OnEnableChanged): s/Refresh/Invalidate
24698 (OnGotFocus): if we have a focused index already, refocus it (so
24699 if we mouse out/in to the window it'll focus the right link).
24700 (OnKeyDown): move the tab handling out of here.
24701 (OnLostFocus): don't set focused_index to -1, so we can refocus it
24702 when we lose focus.
24703 (OnMouseDown): don't Capture here - Control handles it. Also,
24704 focus the active link.
24705 (OnMouseUp): don't deal with Capture.
24706 (OnPaintBackgroundInternal): remove.
24707 (OnTextAlignChanged): CreateLinkPieces before calling the
24708 superclass's method.
24709 (OnTextChanged): call CreateLinkPieces before calling superclass's
24711 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24713 (Select): implement this, moving the selection between different
24714 links, and call parent.SelectNextControl if we don't have another
24715 link to focus in the given direction.
24716 (CreateLinkPieces): call Invalidate instead of Refresh.
24718 2006-07-06 Chris Toshok <toshok@ximian.com>
24720 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24721 new LinkLabel internals.
24723 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
24724 over pieces looking for active/focused/etc links. also, deal with
24725 runs of text (and links) with embedded \n's in them, and use
24726 MeasureCharacterRanges instead of MeasureString to figure out the
24727 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
24730 2006-07-04 Jackson Harper <jackson@ximian.com>
24732 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24733 XKB or key auto repeat, do it manually. Without key auto repeat,
24734 when a key is held down we get key press, key release, key press,
24735 key release, ... with auto repeat we get key press, key press, key
24736 press ..., and then a release when the key is actually released.
24738 2006-07-03 Jackson Harper <jackson@ximian.com>
24741 * ThemeWin32Classic.cs: Tabs do not obey normal background color
24742 rules, they are always control color regardless of the background
24745 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
24747 * FileDialog.cs: Added internal class MWFConfig.
24748 Removed Registry support and replaced it with support for the new
24749 MWFConfig class. See MWFConfig comments for more information.
24751 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
24753 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24754 rectangle. Added some patches from eno from bug #78490 and fixed
24755 the arrow position for small up and down CPDrawScrollButtons.
24757 2006-06-30 Jackson Harper <jackson@ximian.com>
24759 * InternalWindowManager.cs: Remove some debug code.
24760 * Form.cs: When an MdiParent is set to null, the window is
24761 "detatched" and becomes a normal window.
24762 * MdiClient.cs: Don't bring the new child form to the front until
24763 it is activated (setting it as active does this), this makes the
24764 previously active forms titlebar get redrawn as inactive.
24766 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
24768 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24769 with later controls
24771 2006-06-29 Mike Kestner <mkestner@novell.com>
24773 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24774 arrow in keynav state. Fixes #78682.
24776 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24778 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
24779 order (fixes #78393)
24781 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
24783 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
24784 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24785 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24786 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24787 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24788 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
24789 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24790 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24791 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24792 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24793 enumerations (FlagsAttribute, SerializableAttribute, added/removed
24796 2006-06-28 Mike Kestner <mkestner@novell.com>
24798 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24800 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
24803 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24804 item lines from other area (It also makes BackColor consistent and
24805 compatible with .NET). Fixed bug #78564.
24807 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
24809 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24810 Patch from Eno for #78555.
24812 2006-06-27 Chris Toshok <toshok@ximian.com>
24814 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24816 * DataGridColumnStyle.cs: same.
24818 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24820 * DataGridDrawingLogic.cs: nuke.
24822 2006-06-27 Chris Toshok <toshok@ximian.com>
24824 * DataGridTableStyle.cs: clean up the constructors, and build the
24825 list of child relations for this table. I have no idea if this is
24826 where we should be doing it (it probably isn't), but since we're
24827 already iterating over the properties..
24829 * DataGrid.cs: add row resizing. for now we add a DataGridRow
24830 struct and array for keeping track of row information, similar to
24831 what's shown in a hack on
24832 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24834 * Theme.cs: be consistent about the naming of DataGrid methods,
24835 prefering ColumnWidths and RowHeights over columnsWidths and
24838 * ThemeWin32Classic.cs: same, and also add support for variable
24839 sized rows (and the +/- expansion icons for related rows).
24841 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24843 * TextBoxBase.cs: Applied Eno's patch from #78660
24845 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24847 * Form.cs (ScaleCore): We don't want to scale our form if it's
24848 state is minimized or maximized, but we still need to scale our
24849 child windows. Also, added try/finally block to ensure layout
24850 gets reset (Fixes #78697)
24852 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24854 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24856 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
24858 * Form.cs: Fixed c+p error and added check to resize form if minimum
24859 size is bigger than current size (Fixes #78709)
24861 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
24863 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
24865 2006-06-26 Mike Kestner <mkestner@novell.com>
24867 * ComboBox.cs: only do Keypress handling in the combo when there
24868 are items in the collection. Fixes #78710.
24870 2006-06-26 Chris Toshok <toshok@ximian.com>
24872 * Binding.cs: make this work bi-directionally. also, clear up
24873 other mixups between Push/Pull Data (e.g. we're supposed to pull
24874 data when validating).
24876 * BindingManagerBase.cs: trim some fully qualified collection
24879 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
24881 2006-06-23 Chris Toshok <toshok@ximian.com>
24883 * PropertyManager.cs: It appears (according to the unit tests)
24884 that PropertyManager doesn't use
24885 PropertyDescriptor.AddValueChanged to track propery value changes
24886 in its datasource, but uses the same scheme as Binding, where it
24887 looks for a <Property>Changed event and binds to it.
24889 Also, according to the docs, IsSuspended always returns false for
24890 a property manager with a non-null datasource.
24892 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24894 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
24895 need to update the actual DialogResult. (Fixes #78613)
24897 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
24899 * Form.cs (ShowDialog): Release any captures before running the
24900 new message pump (fixes #78680)
24902 2006-06-22 Mike Kestner <mkestner@novell.com>
24904 * ListView.cs: Layout column widths properly in details mode even
24905 if HeaderStyle.None is set. Fixes #78691.
24907 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24909 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
24911 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
24913 * Control.cs (ContainsFocus): Using new driver method to get focused
24914 window, instead of trying to use internal tracking var, which can
24915 recursion issues (Fixes #78685)
24916 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24917 XplatUIWin32.cs: Added GetFocus method to return focused window
24919 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24921 * ColorDialog.cs: when the mouse button is pressed inside the color
24922 matrix, don't let the cursor move out of it until the button is
24923 released, which is the behavior on windows. Changed 'colours' by
24924 'colors' to use the same word consistently.
24926 2006-06-21 Chris Toshok <toshok@ximian.com>
24928 * DataGrid.cs: add in some basic navigation stuff (navigating to a
24929 child relation and back, using a stack). Also, remove
24930 GetDataSource and the code that calls it - it's not needed. Also,
24931 track CurrencyManager.ListName's removal.
24933 2006-06-21 Chris Toshok <toshok@ximian.com>
24935 * CurrencyManager.cs: push some of the original type checking from
24936 BindingContext.CreateBindingManager to here, and remove some of
24937 the finalType stuff. Need more tests to make sure I've got the
24938 ListName part right, and we might need more in SetDataSource.
24940 * PropertyManager.cs: add a ctor that takes just the datasource,
24941 and no property name. Make SetDataSource work with a null
24942 property_name, and make Current return the data_source if the
24943 property descriptor is null. this makes 'string foo = "hi";
24944 BindingContext[foo].Current' return "hi" as it should.
24946 * RelatedCurrencyManager.cs: make this code more generic - there's
24947 no reason the parent manager has to be CurrencyManager, and
24948 there's no reason to pass the DataRelation. It suffices to use a
24949 BindingManagerBase and PropetyDescriptor.
24951 * RelatedPropertyManager.cs: make a similar change here.
24953 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
24954 flower I knew it could be.
24956 2006-06-20 Chris Toshok <toshok@ximian.com>
24958 * PropertyManager.cs: the PropertyChangedHandler is invoked when
24959 data in the source has changed and we need to update the control,
24960 so s/PullData/PushData.
24962 * CurrencyManager.cs: Refresh is meant to update the control from
24963 data in the datasource. So, s/PullData/PushData.
24965 * BindingContext.cs: add more ugliness (we weren't handling the
24966 case where data_source = DataTable and data_member = column_name).
24968 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
24969 from the perspective of the datasource. PullData pulls from the
24970 control, PushData pushes to the control.
24972 2006-06-20 Chris Toshok <toshok@ximian.com>
24974 * BindingContext.cs: rewrite the CreateBindingManager code to
24975 handle navigation paths more or less properly. This could
24976 definitely stand some more work, in particular to push the
24977 recursion up to the toplevel. But that relies on fixes in other
24978 places (System.Data comes to mind).
24980 Also, move to a flat hashtable (and encode the twolevel nature of
24981 the dictionary into the hash key). This lets us implement the
24982 IEnumerable.GetEnumerator method.
24984 * RelatedCurrencyManager.cs: new class. Update our view based on
24985 our relation and our parent CurrencyManager's position.
24987 * CurrencyManager.cs: split out some logic from the ctor into
24988 SetView, so it can be called from the new RelatedCurrencyManager
24991 * RelatedPropertyManager.cs: new class. Update our datasource
24992 based on the position of our parent CurrencyManager.
24994 * PropertyManager.cs: split out some logic from the ctor into
24995 SetDataSource, so it can be called from the new RelatedDataSource
24996 subclass. Also, make the Current getter return the value
24997 of the PropertyDescriptor, not the data_source.
24999 * Binding.cs: no need to duplicate the string splitting code here.
25001 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
25004 - set_Enabled: OnEnabledChanged is not called if the inherited state
25005 of the control is not altered, even though we might be changing the
25006 internal state of the control (#78458)
25007 - set_Enabled: (Re)Moved the enabling/disabling of the window to
25008 OnEnabledChanged, to allow easy altering of any child window state
25009 - OnEnabledChanged: Added code to enable/disable driver window state
25010 - OnParentEnabledChanged: Instead of firing the event, call
25011 OnEnabledChanged, which will fire the event and also a) set driver
25012 window state and pass the enabled state to any grandchildren (#78458)
25014 2006-06-19 Jackson Harper <jackson@ximian.com>
25016 * InternalWindowManager.cs: We don't set the cursor explicitly
25017 thats done via the response to NCHITTESTs.
25018 - Don't need to adjust for titlebar heights anymore, the
25019 coordinates are coming in the correct coordinates now (see peters
25023 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
25025 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25026 being translated relative to whole window, instead of client window.
25027 That caused broken offsets on mouseclick (and caused gas for our
25028 InternalWindowManager)
25030 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
25033 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25034 - Undo(): Added replay of cursor move on DeleteChars action; added
25035 calling Undo() again if a recorded cursor move is invalid (to
25036 ensure that some action is performed on Undo)
25037 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25039 2006-06-16 Jackson Harper <jackson@ximian.com>
25041 * MdiClient.cs: Instead of just sizing maximized windows when
25042 there is a resize we also have to adjust the Y of minimized
25043 windows, so they stay pinned to the bottom of the mdi container.
25044 - Eliminate separate tracking of the active control, we can just
25045 get this from the controls collection.
25046 - Paint the decorations for the newly activated titlebar so we get
25048 * InternalWindowManager.cs:
25049 * ThemeWin32Classic.cs: Minimized windows get all three buttons
25050 even if they are a tool window.
25052 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
25054 * TextControl.cs (Undo): Handle non-existent cursor locations in the
25055 undo buffer, these can happen when text was deleted and the cursor
25056 was recorded first. Since we will also have a recorded cursor
25057 after the delete this is not an issue. (Fixes #78651)
25059 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
25061 * AccessibleObject.cs: Remove dependence on Control.is_selected;
25062 instead properly track control states internally (allows us to
25063 remove is_selected from Control)
25065 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25067 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25068 whose width is not a multiple of 8.
25070 2006-06-13 Jackson Harper <jackson@ximian.com>
25072 * MdiClient.cs: Only maximize the next child if the current one
25075 2006-06-13 Chris Toshok <toshok@ximian.com>
25077 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25078 modified. Also, guard against grid or grid_drawing being null in
25081 * DataGrid.cs: Reformat tons of getters/setters. In the
25082 DataMember setter, just call SetNewDataSource instead of
25083 duplicating some of its functionality. In SetNewDataSource, don't
25084 check ListManager for null, since the property getter creates the
25087 * DataGridTableStyle.cs: don't set TableStyle or call
25088 SetDataGridInternal on the column here, it's done in
25089 GridColumnStylesCollection.Add.
25091 * GridColumnStylesCollection.cs: fix all the explicit interface
25092 implementations to just call our methods. Nuke AddInternal() and
25093 move the body of it to Add(). Also, add a call to
25094 column.SetDataGridInternal to Add().
25096 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25097 base()+duplicate code. Also, use the Format property instead of
25098 format to generate an Invalidate ala MS. Lastly, create the
25099 textbox here, unconditionally.
25100 (set_Format): call Invalidate.
25101 (get_TextBox): no need to call EnsureTextBox.
25102 (Commit): remove the message box.
25103 (Edit) remove the call to EnsureTextBox.
25104 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25105 (EnterNullValue): no need to check textbox for null.
25106 (HideEditBox): no need to check textbox for null.
25107 (SetDataGridInColumn): add the textbox to the grid's controls.
25108 (EnsureTextBox): nuke.
25110 2006-06-13 Jackson Harper <jackson@ximian.com>
25112 * MdiWindowManager.cs: Hook up to the maximized menus paint event
25113 and redraw the buttons when needed. Unhook when the window is
25115 * MainMenu.cs: Add an internal Paint event, the mdi window manager
25116 needs this so that it can redraw its buttons when the menu is
25118 * InternalWindowManager.cs:
25119 * Form.cs: The method order has changed for DrawMaximizedButtons,
25120 so that it can be a PaintEventHandler.
25122 2006-06-13 Jackson Harper <jackson@ximian.com>
25124 * MdiClient.cs: When we close a maximized mdi window, the next mdi
25125 window is activated and maximized, even if it wasn't before.
25126 - When a new window is activated repaint the decorations of the
25127 old one, so that it no longer has the Active "look" (the blue
25129 * InternalWindowManager.cs: Open up CreateButtons to base classes
25130 so they can recreate the buttons on state changes.
25131 - If a window is maximized give it all three buttons
25132 * MdiWindowManager.cs: Create the titlebar buttons when the state
25133 is changed, this is needed because a toolwindow will not have all
25134 three buttons until it is maximized.
25136 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
25138 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25141 2006-06-12 Jackson Harper <jackson@ximian.com>
25143 * KeysConverter.cs: Make sure we handle the Ctrl special case
25144 if its the only key.
25146 2006-06-12 Jackson Harper <jackson@ximian.com>
25148 * Theme.cs: Add a method to get the size of a managed window
25150 * InternalWindowManager.cs: Remove the ButtonSize property, this
25151 should be retrieved from the theme.
25152 * MdiWindowManager.cs: Get the button size from the theme
25153 * ThemeWin32Classic.cs: Make the method to get the managed window
25154 titlebar button size public.
25155 - Handle the different button sizes of maximized toolwindows
25156 (should match any maximized window).
25157 - Get the titlebar height from the theme, not the WM (which gets
25158 it from the theme).
25160 2006-06-12 Jackson Harper <jackson@ximian.com>
25162 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25163 event down to the mdi window manager.
25164 - Expose some extra stuff to base classes
25165 - Make sure to end the Capture on an NC Mouse up, so that we can
25166 get double clicks properly, and the sizing doens't stick.
25167 - When doing PointToClient contain it in the workable desktop
25168 area, this prevents windows from changing size when the cursor is
25169 pulled outside of the working area while sizing.
25170 * MdiWindowManager.cs: When we get a double click maximize the
25172 - Reset the cursor after handling mode changes.
25174 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
25176 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
25177 current desktop, instead of just assuming a 0, 0 origin. This
25178 is needed for our internal window manager, to know the top
25179 margin of the desktop
25181 2006-06-12 Chris Toshok <toshok@ximian.com>
25183 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25184 we need this to get rid of the selected background in the bool
25186 (CancelEditing): move the ConcedeFocus call to above the Abort
25187 call. Also, set is_changing to false and invalidate the row
25188 header if we were changing before.
25189 (ProcessKeyPreviewInternal): remove, since noone outside this
25190 class calls it anymore. Roll the code into ProcessKeyPreview.
25191 (EndEdit): remove the internal version.
25192 (InvalidateCurrentRowHeader): make private.
25194 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
25195 Keys.Escape handling (and with it the last call to
25196 DataGrid.EndEdit from outside the class.)
25199 2006-06-12 Chris Toshok <toshok@ximian.com>
25201 * DataGridTextBox.cs (.ctor): isedit defaults to false.
25202 (OnKeyPress): set isedit to true.
25203 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
25204 already handled by the grid.
25206 * DataGrid.cs (set_CurrentCell): more work here. it's still not
25208 (set_DataSource): SetDataSource always returns true, so stop
25209 putting it in an if statement.
25210 (EndEdit): get rid of some {}'s
25211 (ProcessGridKey): return true in case Keys.Escape.
25212 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25213 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25214 PositionChanged, stopped connecting to CurrentChanged.
25215 (GetDataSource): simplify this a bunch.
25216 (SetDataSource): change return type from bool to void.
25217 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25218 to this, and make sure we don't set ListManager.Position inside
25220 (OnListManagerItemChanged): if we're passed an actual index,
25223 * CurrencyManager.cs (set_Position): don't call PullData here.
25225 2006-06-09 Jackson Harper <jackson@ximian.com>
25227 * TreeNode.cs: Recalculate the visible order before doing the
25228 Expand/Collapse Below calls, because those calls generate an
25230 - Reduce calls to the TreeView property, which is mildly expensive
25231 by using a local var.
25232 * Form.cs: Layout the MDI child windows when creating the parent
25234 - Don't use the internal constructor anymore
25235 * MdiClient.cs: use the parent form width/height (if available)
25236 when laying out the child windows, we do this because the
25237 mdiclient isn't docked yet when the initial layout is done.
25238 - Don't need an internal constructor anymore.
25240 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25242 * FileDialog.cs: handle access errors when trying to create a folder
25243 or changing to a directory. No need to initialize out parameters.
25245 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25247 * FileDialog.cs: Append a number when creating a new folder if the
25248 folder already exists (use parenthesis instead of square brackets)
25250 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25253 - Disabled registry support for windows and added better registry
25254 error checking for other systems (need to investigate why it
25255 works perfectly on my system)
25256 - If a folder already exist show an error MessageBox instead of
25257 trying to create an indexed name.
25258 - Fixed a non intentional typo.
25260 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25262 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25264 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25266 * FileDialog.cs: When creating a new folder don't crash if the
25267 folder already exists.
25269 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25271 * FileDialog.cs: Allmost a complete rewrite.
25272 - added a "virtual" file system that handles the differences
25273 between unix and windows file systems (especially the directory
25274 structure). Moved most of the directory and file handling code
25276 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25277 UnixFileSystem and FSEntry.
25278 - Recently used folder/directory, size, location and used file names
25279 (file name ComboBox) are now stored in the registry and get read
25280 before the dialog shows up (fixes part 6 of bug #78446).
25281 - Creation of new folders/directories is now possible (context menu
25282 or ToolBar). Added TextEntryDialog for this that fills in the gap
25283 until ListView.LabelEdit works.
25284 - Fixed cursor handling (bug #78527) and focus handling for
25286 - Various "Search in" ComboBox enhancements. The content of the
25287 dropdown listbox now almost matches ms.
25288 - Changed the behaviour when the user switches to SpecialFolder
25289 Recent to show the ListView in View.Details.
25290 - Beside using the ToolBar to change the View property of the
25291 file ListView it is now possible to use the context menu too.
25293 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
25295 * ComboBox.cs: Don't create a new ObjectCollection when an item
25296 gets inserted. Just insert the item in the existing object_items
25299 2006-06-08 Jackson Harper <jackson@ximian.com>
25301 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25302 that the treeview and root node checks are done also, this fixes a
25303 regression i caused in the unit tests.
25305 2006-06-07 Wade Berrier <wberrier@novell.com>
25307 * RichTextBox.cs: More ISO8859-1 -> unicode
25309 2006-06-07 Mike Kestner <mkestner@novell.com>
25311 * ComboBox.cs : use items to hold highlight/selection so that
25312 collection insertions don't require synchronization.
25314 2006-06-07 Jackson Harper <jackson@ximian.com>
25316 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25317 routine. We now always keep the sized edge at the cursor instead
25318 of computing movement and adjusting rects. There is one buglet
25319 with this method though when the cursor is moved over area that
25320 the window can not expand too (such as the toolbars on the desktop).
25322 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25324 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25325 here. Fixes crash on startup in AlbumSurfer.
25327 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
25329 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25332 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25334 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25335 statement to avoid calling XNextEvent which will block if another thread
25336 took the event that we were expecting. Fixes bug #78605.
25338 2006-06-07 Mike Kestner <mkestner@novell.com>
25340 * ListView.cs : isolated checkbox clicking from the selection logic.
25341 Toggle check state on item doubleclicks. Really fixes #78454 part2.
25343 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25345 * Form.cs: Check that the value passed to Form.DialogResult
25346 is a valid enum value.
25348 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25350 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25351 Computer'. Clicking it in the network view goes to 'My Computer'.
25352 Added CIFS filesystem type. Display the mount point of filesystems.
25353 Avoid duplicate mount points (happens for me with CIFS);
25355 2006-06-06 Jackson Harper <jackson@ximian.com>
25357 * InternalWindowManager.cs: Draw the maximized windows buttons
25360 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25362 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25363 all other dialogs. Fixes bug #78585.
25365 2006-06-06 Mike Kestner <mkestner@novell.com>
25367 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25368 Only invalidate checkbox on checkstate changes to avoid flicker.
25369 * ListBox.cs : avoid unselect/select when clicking selected item.
25370 avoid reselection flicker for already multiselected items.
25373 2006-06-06 Jackson Harper <jackson@ximian.com>
25375 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25376 the parent form so that the menu is removed if needed.
25378 2006-06-06 Mike Kestner <mkestner@novell.com>
25380 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
25381 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
25383 2006-06-06 Mike Kestner <mkestner@novell.com>
25385 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
25388 2006-06-06 Jackson Harper <jackson@ximian.com>
25390 * Control.cs: Use the property (instead of the field) to get the
25391 default cursor so it is instantiated correctly.
25392 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25393 resizes so we need to manually repaint the window decorations here.
25394 - Set the titlebar button locations as soon as they are created,
25395 otherwise they are not set correctly on win32.
25397 2006-06-06 Chris Toshok <toshok@ximian.com>
25399 * CurrencyManager.cs (set_Position): call PullData before
25401 (AddNew): after calling IBindingList.AddNew, update our
25402 listposition, and call OnCurrentChanged/OnPositionChanged (without
25404 (OnCurrentChanged): remove the call to PullData from here.
25405 (OnItemChanged): remove the call to PushData from here.
25406 (OnPositionChanged): change the test from == null to != null to
25407 match the other methods.
25408 (ListChangedHandler): the grossest part of the patch. Implement
25409 this such that it passes the unit tests in CurrencyManagerTest and
25410 the output more or less matches that of MS's implementation.
25412 2006-06-06 Mike Kestner <mkestner@novell.com>
25414 * ListView.cs : only update check state on single click.
25415 * ThemeWin32Classic.cs : fix focus drawing for details view without
25416 fullrowselect. Fixes #78454.
25417 * XplatUIX11.cs : fix for double click emission.
25419 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
25421 * PropertyGridView.cs : Applied Atsushi's patch to fix
25422 font dialog bug (#78197).
25424 2006-06-05 Jackson Harper <jackson@ximian.com>
25426 * TreeNode.cs: Compute the next node for expanding/collapsing
25427 correctly. We now factor in nodes without a NextNode
25428 correctly. (Fixes somes cases in nunit-gui).
25429 * InternalWindowManager.cs: Set the bounds when updating the
25430 virtual position of a tool window.
25432 2006-06-05 Chris Toshok <toshok@ximian.com>
25434 * DataGrid.cs: rename cached_currencymgr to list_manager.
25435 (set_CurrentCell): move SetCurrentCell code here, and clean it up
25437 (CurrentRow, CurrentColumn): single accessors so we can make the
25438 cursor movement code a lot easier to understand.
25439 (CurrentRowIndex): implement this in terms of CurrentRow.
25440 (BeginEdit): clean this up a bit.
25441 (CancelEditing): sort out the is_editing/is_changing/is_adding
25443 (EndEdit): minor changes.
25444 (OnKeyDown): add a comment about a (most likely) unnecessary
25446 (OnMouseDown): cancel editing when we click on a row header. And
25447 use the CurrentRow setter, not CurrentCell.
25448 (ProcessDialogKey): directly call ProcessGridKey.
25449 (UpdateSelectionAfterCursorMove): factor out this common block of
25450 code (it's used everywhere that we move the cursor by updating row
25452 (ProcessGridKey): pretty substantial overhaul. Use the
25453 CurrentRow/CurrentColumn properties to make the code a lot more
25454 readable. Only use the CurrentCell property when we have to
25455 modify both row and column at once. Tab behavior is still broken,
25456 and Delete is untested.
25457 (Select): if we have no selected rows, set selection_start to
25459 (EditCurrentCell): rename EditCell this. It was only ever invoked
25460 with CurrentCell as the arg, so drop the arg and rename it.
25462 * DataGridColumnStyle.cs: clean up the constructors a little, and
25463 drop CommonConstructor().
25465 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25466 actually get notified when the user hits it.
25467 (ProcessKeyMessage): *substantially* simplify this method.
25468 There's no reason (that I can see) for the textbox to be making
25469 calls into the datagrid at all. Remove all of them but the ones
25470 for Enter handling. those will take some more work.
25472 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25473 calling HideEditBox.
25474 (HideEditBox): if we have an active textbox, render it invisible
25475 without causing a re-layout of the datagrid.
25477 2006-06-05 Mike Kestner <mkestner@novell.com>
25479 * ListView.cs : fix NRE crasher when focuseditem is cleared by
25480 collection changes by resetting it to Items[0]. Fixes #78587.
25482 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25484 * MessageBox.cs: if the height of the text is larger than the icon_size,
25485 use that. Fixes bug #78575.
25487 2006-06-05 Jackson Harper <jackson@ximian.com>
25489 * TreeView.cs: Fix line drawing when scrolling. To do this each
25490 node is basically responsible for drawing its entire horizontal
25491 area. When drawing a node it draws its parent node lines if
25493 - Adjust the clip area to the viewport rectangle
25494 - Fix Left/Right key handling to match MS. (It expand/collapses
25495 and moves to parents/first child but does not move selection to
25497 - Fix SetTop to work with new bound calculation code
25498 - When scrollbars are no longer needed we need to reset scrolling
25499 vars and recalculate the visible order so the redraw is correct
25500 * TreeNode.cs: We can't expand/collapse nodes with no children.
25502 2006-06-03 John Luke <john.luke@gmail.com>
25504 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25505 so the colors work without dev packages
25507 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
25510 - Select: Implemented to just use activate. Seems to match MS
25511 behaviour closest. Documented to only do actual control walking
25512 based on it's parameters if in a container control so I moved
25514 - Removed selection check logic from our internal Select() method
25515 * ContainerControl.cs:
25516 - Select: Moved selection logic from Control here, since MS documents
25517 that containers obey the bool arguments. No longer calling base
25519 2006-06-02 Jackson Harper <jackson@ximian.com>
25521 * TreeView.cs: If the selected node isn't changed when we get
25522 focus update the previously selected node so that we see the
25525 2006-06-02 Mike Kestner <mkestner@novell.com>
25527 * ComboBox.cs: restructure grab and general mouse event handling.
25528 Make the composite control raise mouse events like it was a single
25529 control for leaves/enters/motion/up/down events. fix dropdown list
25530 coordinate mangling and refactor it into the scrollbar subclass to
25531 reduce code duplication. Fixes #78282 #78361 and #78457.
25533 2006-06-02 Mike Kestner <mkestner@novell.com>
25535 * ScrollBar.cs: remove Capture setting/clearing, as it happens
25536 automatically in the Control.WndProc.
25538 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25540 * FileDialog.cs: fix crash when running SharpChess, which sets the
25541 FilterIndex to 2 with only one Filter.
25543 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25545 * ToolBar.cs: add SizeSpecified property.
25546 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25547 try to figure out our real size, otherwise fallback to what the
25550 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25552 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25553 * Control.cs (WndProc): MS always calls the DefWndProc to pass
25556 2006-06-01 Mike Kestner <mkestner@novell.com>
25558 * ListView.cs: revamp the focus management in ListView. It still
25559 causes churn of LostFocus/GotFocus emissions on clicks, but it's
25560 better than not handling focus at all. Will revisit when pdb feels
25561 the general focus handling is solid. Fixes #78526.
25563 2006-06-01 Jackson Harper <jackson@ximian.com>
25565 * TreeView.cs: Set the default border style in the constructor.
25566 - Move painting to use OnPaintInternal instead of capturing
25567 WM_PAINT, this is the correct way of doing things
25568 - UpdateBelow shouldn't invalidate the scrollbar area
25569 - Cap the top on update below in case the node was above the top
25570 of the viewport rectangle.
25571 - ExpandBelow and Collapse below need to obey Begin/End Update.
25572 * TreeNode.cs: Make is_expanded internal so the treenode
25573 collection can change it without firing the whole event chain.
25574 * TreeNodeCollection.cs: When clearing all the child nodes make
25575 sure to recalc the visible order.
25576 - Improve algo for remove the top node
25578 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25580 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25581 SendMessage directly calling window procedures, which in turn might
25584 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
25586 * Control.cs: Don't handle WM_SETFOCUS if the same window already
25587 has focus (works around X11 sending a FocusIn after our SetFocus)
25588 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25590 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
25592 * Mime.cs: Fix for the NET_2_0 build.
25593 NameValueCollection needs StringComparer now.
25595 2006-05-31 Chris Toshok <toshok@ximian.com>
25597 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25598 return (via an out parameter) the starting X of the column.
25599 (UpdateVisibleColumn): track change to FromPixelToColumn.
25600 (HitTest): add a ColumnResize case here.
25601 (DrawResizeLine): new function, probably poorly named.
25603 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
25604 only need to keep one reference.
25605 (set_ListManager): same.
25606 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25607 Also, add support for HitTestType.ColumnResize.
25608 (OnMouseMove): add column resize behavior here, and change the
25609 cursor to the correct one as we move around the datagrid.
25610 (OnMouseUp): terminate the column resize if we're resizing.
25611 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25612 for the current cell.
25613 (ConnectListManagerEvents): use cached_currencymgr.
25614 (DisconnectListManagerEvents): fill this in, using
25615 cached_currencymgr.
25616 (SetCurrentCell): remove cached_currencymgr_events handling.
25617 (SetDataMember): only call DisconnectListManagerEvents if
25618 cached_currencymgr is != null.
25619 (SetDataSource): same.
25620 (OnListManagerCurrentChanged): cached_currencymgr_events ->
25621 cached_currencymgr.
25623 2006-05-31 Jackson Harper <jackson@ximian.com>
25625 * BindingManagerBase.cs: Remove somedebug code that creeped into
25627 * TreeNode.cs: We get the indent level dynamically right now, so
25628 don't track it as a member.
25629 * TreeNodeCollection.cs: Make sure all nodes added to the list
25630 have parents, treeviews/topnodes setup properly.
25631 - Don't attempt to track indent level.
25633 2006-05-30 Jackson Harper <jackson@ximian.com>
25635 * BindingContext.cs: Create the currency manager tables here.
25636 This allows us to more easily create null tables (when bad data
25637 members are used), and more easily create related currency
25639 * CurrencyManager.cs: All the table creation stuff is done by the
25640 binding context now.
25641 - Current should throw an exception if listposition is -1.
25642 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25645 2006-05-30 Mike Kestner <mkestner@novell.com>
25647 * ListView.cs: allow reexpansion of zero-width column headers.
25650 2006-05-28 Chris Toshok <toshok@ximian.com>
25652 * CurrencyManager.cs (get_Current): after the late binding
25653 listposition = -1 fix, we need to guard against it here and return
25654 null, otherwise we raise an exception (which is swallowed
25655 elsewhere, and breaks datagrid databinding.)
25657 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25659 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25660 than WM_SYSKEY, don't throw if get something unexpected (#78507)
25662 2006-05-26 Jackson Harper <jackson@ximian.com>
25665 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25666 values, it's faster and it's all we care about (we don't care if
25667 the names aren't equal).
25668 * KeyboardLayouts.cs: Eliminate some dead code.
25670 * X11Keyboard.cs: Lazy init keyboard detection.
25671 - Cleanup access modifiers a little.
25673 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25675 * XplatUIX11.cs: Once again, attempting to get layout just right.
25677 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
25679 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25680 the sizes of each link section, that will result in sizes that
25681 match DrawString's layout (Fixes #78391)
25683 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
25685 * FileDialog.cs: If AddExtension property is true autocomplete the
25686 extensions in SaveFileDialog correctly. Fixes bug #78453.
25687 Set MyNetwork and MyComputer to "C:\" for windows. This should
25688 fix part 8 of bug #78446 for now.
25690 2006-05-26 Chris Toshok <toshok@ximian.com>
25692 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
25693 invalidate the current row header if we need to, but presumably
25694 we'll invalidate the row corrsponding to the bounds or
25696 (GridHScrolled): switch back to this method, as it's part of the
25697 public api. *sigh*.
25698 (GridVScrolled): same.
25699 (OnMouseWheel): hack up something that more or less works. Call
25700 GridHScrolled/GridVScrolled directly, instead of duplicating much
25701 of their code here.
25702 (EnsureCellVisibility): reinstate a bunch of this code, since we
25703 can't just set the scrollbar Value and expect to do all the work
25704 in the ValueChanged handler. Also, Call Update() after scrolling
25705 in one direction so the other XplatX11.ScrollWindow call has the
25706 proper stuff in the proper places.
25707 (EditCell): set is_editing to true before calling .Edit.
25709 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25710 don't bother comparing first.
25711 (OnKeyPress): call grid.ColumnStartedEditing before calling
25712 base.OnKeyPress. this will set is_changing and invalidate the row
25713 header if necessary.
25714 (ProcessKeyMessage): for WM_CHAR messages, call
25715 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
25718 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25719 it's done in the DataGrid.
25720 (NextState): call grid.ColumnStartedEditing, which takes care of
25721 invalidating the row header (and setting is_changing).
25723 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25724 here. it's done in the DataGrid.
25726 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25728 * Control.cs: allow changing the cursor when the mouse position is
25729 out of bounds but Capture is set.
25730 * LinkLabel.cs: handle the case when the mouse button is pressed on the
25731 linklabel but released somewhere else.
25733 2006-05-25 Jackson Harper <jackson@ximian.com>
25735 * TreeView.cs: When we get focus if there is no selected node make
25737 - Remove some uneeded setup code from Draw.
25738 * TreeNodeCollection.cs: If the tree doesn't have a top node when
25739 a new node is inserted make the new node the top.
25741 * Timer.cs: Use Utc time so that no local time zone stuff needs to
25742 be used (should be faster).
25744 2006-05-25 Chris Toshok <toshok@ximian.com>
25746 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25747 problem with the last commit.
25749 2006-05-25 Chris Toshok <toshok@ximian.com>
25751 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25752 need the invalidate call here, while scrolling right-to-left via
25753 the left arrow key (i.e. moving the editing cell while scrolling).
25755 * DataGrid.cs (.ctor): remove the initialization of
25756 ctrl_pressed/shift_pressed. We no longer track them using key
25757 up/down handlers, but by using Control.ModifierKeys. Also, switch
25758 to using ValueChanged handlers on the scrollbars instead of
25759 Scrolled event handlers. This simplifies a bunch of the scrolling
25761 (GridHValueChanged): rename from GridHScrolled, and change it to
25762 work with the new event args.
25763 (GridVValueChanged): same.
25764 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25765 (OnMouseWheel): actually scroll the datagrid. Don't change the
25767 (ProcessGridKey): correct all the keyboard navigation stuff I
25768 could find. Ctrl up/down/left/right/home/end work now.
25769 (EnsureCellVisibility): correct method name spelling. Also,
25770 simplify this a touch by not explicitly calling the
25771 ScrollToRow/ScrollToColumnInPixels methods. We just set the
25773 (OnKeyUpDG): no need for this method now.
25775 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25777 * LinkLabel.cs: display the OverrideCursor when hovering the label.
25780 2006-05-25 Chris Toshok <toshok@ximian.com>
25782 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25785 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25787 * Application.cs: Moved setting of is_modal and closing to before
25788 we create the control, to allow the event handlers called as a
25789 result of creation affect closing. Also removed Gonzalo's previous
25790 change to setting DialogResult, the behaviour has been moved to
25793 - ShowDialog(): Removed explicit creation of the form, let RunLoop
25795 - ShowDialog(): If no dialog result is set, we need to return Cancel
25796 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25797 the close is cancelled
25799 2006-05-25 Jackson Harper <jackson@ximian.com>
25801 * StatusBar.cs: We only need to update the sizes of the other
25802 panels when we have auto size contents. Also we are only updating
25803 the contents of the panel, not the borders, so compensate for the
25804 border width (TODO: get this width from the theme somehow).
25805 * TreeView.cs: Scrollable is true by default
25806 - Use invalidate instead of refresh where needed
25807 - Factor the scrollable value into scrollbar updating
25808 - Update the scrollbars if the Scrollable property is altered
25809 - Update the selected node if its ImageIndex is changed
25810 - Handle null nodes in UpdateNode (mainly so we don't have to
25811 check if selected is null when updating it
25812 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25813 are factored into the visible count
25814 - Use VisibleCount for clarity in the code
25815 - When the font is changed we need to recurse through all the
25816 nodes and invalidate their sizes
25818 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25820 * Application.cs: set the DialogResult to fixed when the main form is
25821 hidden or destroyed while being modal.
25823 2006-05-25 Miguel de Icaza <miguel@novell.com>
25825 * Theme.cs: Use Tangoified messagebox icons.
25827 (GetSizedResourceImage): Also cope with width = 0 and do not
25828 trigger a warning in that case (0 means "give me your icon from
25829 the resouce, no special size needed).
25831 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
25833 * Application.cs: Leave runloop if the the main modal form is
25834 hidden (fixes #78484)
25836 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
25838 * BindingContext.cs : reject null datasource in Contains() and
25840 * CurrencyManager.cs : check data_member validity when data_source
25841 is dataset. When it is late binding, the initial position is -1.
25843 2006-05-24 Jackson Harper <jackson@ximian.com>
25845 * TreeNodeCollection.cs: Dont't recalculate the visible order on
25846 inserted nodes that aren't visible. This changes the
25847 max_visible_order which confuses scrollbar settings.
25848 - Use the enumerator to get the prev node instead of duplicating
25850 * TreeView.cs: Use new method for setting scrollbar values
25851 - Don't set the bounds every time the scrollbar is updated
25852 - When updating below the root node use an invalidate instead of a
25853 refresh to prevent the child controls (scrollbars) from being
25854 refreshed. (UpdateBelow still needs to be reworked anyways).
25855 - Reenable SetBottom now that visible orders are set correctly,
25856 added some debug code incase we ever get bad values there again.
25857 - Set the scrollbar max to 2 less then the max value, this
25858 compensates for the max value being one above the node count, and
25859 for scrollbars adding one extra "notch".
25860 - When drawing image nodes if there is an imagelist we draw the
25861 first image in the list if the supplied image index is out of the
25862 image list's bounds.
25864 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25866 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
25867 we receive a size change from the WM (Fixes #78503)
25869 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25871 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
25872 rectangle (Fixes #78501)
25874 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
25877 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
25879 - Fixed MouseMove to no longer switch pressed state unless the left
25880 mouse button is pressed. Atsushi provided the original patch (#78485)
25882 2006-05-24 Jackson Harper <jackson@ximian.com>
25884 * ScrollBar.cs: New internal methods that allow us to change a
25885 couple values on the scrollbar (the most common case is maximum
25886 and large change) without getting multiple invalidates.
25888 2006-05-24 Chris Toshok <toshok@ximian.com>
25890 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
25891 (Edit): save off the original state in oldState, and set
25892 grid.is_editing to true.
25893 (OnKeyDown): abort editing if escape is pressed. also, call
25894 NextState if space is pressed.
25895 (OnMouseDown): call NextState.
25896 (NextState): factor out shared code from OnKeyDown and OnMouseDown
25897 here. Also, only invalidate the row header once (on the initial
25898 is_changing switch) to save on redraws.
25900 2006-05-24 Chris Toshok <toshok@ximian.com>
25902 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
25903 if the value in the cell is different than it was before. This
25904 keeps us from triggering a layout when we move around a datarid
25905 with a highlighted cell.
25906 (Edit): suspend layout when creating/positining the text box, and
25907 resume passing false so we don't ever actually re-layout.
25908 (ReleaseHostedControl): same.
25909 (EnsureTextBox): reformat slightly, and set WordWrap to false.
25911 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
25912 control-key sequences should go to the datagrid - remove that
25913 lock. Also, modify the conditions under which we move between
25914 cells when moving the cursor within a cell, and remove the "this"
25915 and "base" from field accesses. We weren't even consistent, given
25916 they all were in the base class.
25918 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
25920 * Binding.cs : (.ctor)
25921 An obvious NRE fix for BindingTest.CtorNullTest().
25923 2006-05-23 Chris Toshok <toshok@ximian.com>
25925 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
25926 them between lines. This fixes some quirks editing cells in the
25929 2006-05-23 Jackson Harper <jackson@ximian.com>
25931 * TreeView.cs: Use begin/end update when doing expand/collapse all
25932 so that we don't get flicker on the scrollbar.
25934 2006-05-23 Jackson Harper <jackson@ximian.com>
25936 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
25937 treenode calculations to be independant of the painting code. To
25938 do this nodes track a visible order which is calculated by the
25940 - Call new methods for expanding/collapsing nodes. These methods
25941 use scrollwindow so we don't have to update everything below the
25943 * TreeView.cs: Refactored drawing and scrolling code. We don't
25944 need to update nodes when drawing anymore or calculate scrollbar
25946 - Added new methods for expanding/collapsing nodes. These methods
25947 use ScrollWindow so as to not have to redraw all the nodes below.
25948 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
25949 we add/remove nodes or sort.
25950 - Handle removing the selected and the top node properly.
25952 2006-05-23 Chris Toshok <toshok@ximian.com>
25954 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
25955 maybe this should actually happen in the datagrid code?
25956 (EndEdit): no need to invalidate anything, given that
25957 ReleaseHostedControl causes the datagrid to relayout, which
25958 invalidates everything anyway.
25960 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
25961 in SetCurrentCell).
25962 (set_SelectionBackColor): call InvalidateSelection instead of
25964 (set_SelectionForeColor): same.
25965 (BeginEdit): Flesh this out a bit.
25966 (CancelEditing): only do any of this if we're editing/adding.
25968 (OnMouseDown): there's no need to cancel editing here, it's done
25970 (SetCurrentCell): only invalidate the current row header if it's a
25971 different row than the new one.
25972 (ShiftSelection): fix this to work like MS does.
25973 (ResetSelection): factor out the invalidation of selected_rows to
25974 InvalidateSelection.
25975 (SetDataSource): cancel any editing that's going on.
25977 * DataGridColumnStyle.cs
25978 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
25979 call the non-interface version.
25981 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
25982 header rectangle with the clip rectangle so we don't redraw the
25983 entire header for just a small area. Gets rid of the last flicker
25984 when horizontally scrolling.
25985 (DataGridPaintRow): same.
25987 2006-05-23 Mike Kestner <mkestner@novell.com>
25989 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
25990 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
25991 poorly placed checkbox on the MS control. Fixes Alex's unfiled
25992 Critical bug report.
25994 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
25996 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
25997 and this fixes #78493
25999 2006-05-23 Miguel de Icaza <miguel@novell.com>
26001 * Theme.cs (GetSizedResourceImage): Scale images if the proper
26004 * FileDialog.cs: Do not change the background for the side bar as
26005 it wont work nicely with the theme, and also reduces the artifacts
26006 in rendering the icons (which I want to fix too).
26008 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26009 resources, not resgen resources.
26011 (PlatformDefaultHandler): Pull images using the new API.
26013 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
26015 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26016 a reference to the hwnd and will not remove it unless there are
26017 no pending exposures (fixes #78341)
26018 * XplatUI.cs: Improved debug
26020 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
26022 * MenuAPI.cs : don't handle OnClick event when it was not the left
26023 button. Fixed bug #78487.
26025 2006-05-23 Mike Kestner <mkestner@novell.com>
26027 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26028 prefer submenus to the top menu for item lookup, to avoid popping down
26031 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
26033 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26034 Graphics.FillRectangle as the visual results are really bad (even
26035 on win). We now draw perfect arrows (and perfect shadows when the
26036 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26037 Pen.DashPattern to draw the dots of each line.
26039 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
26041 * FileDialog.cs: Update the filename combobox when navigating through
26042 the ListView with the cursor keys. Fixes part 7 of bug #78446.
26044 2006-05-22 Mike Kestner <mkestner@novell.com>
26046 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26049 2006-05-22 Mike Kestner <mkestner@novell.com>
26051 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26052 requests. Fix a misspelled parameter and a copy paste exception error
26055 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
26057 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26058 to get the same width/height (5/13) on X11 as the default font has on
26059 win32. This means that our DefaultFont emSize is smaller than the
26060 the MS SWF equivalent (even thought the width/height stays the same)
26062 2006-05-20 Jackson Harper <jackson@ximian.com>
26065 * MdiWindowManager.cs:
26066 * InternalWindowManager.cs: Make sure to use the border width from
26069 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
26071 * PrintDialog.cs: Implements printer details
26073 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
26075 * FileDialog.cs: Added focus handling for PopupButtonPanel.
26076 Fixes part 1 and 2 of bug #78446
26078 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
26080 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26081 instead of sticking to the first ever calculated value
26083 2006-05-19 Mike Kestner <mkestner@novell.com>
26085 * ComboBox.cs: fix mouse motion selection to use MousePosition and
26086 PointToClient, since Capture is set. Fixes #78344.
26088 2006-05-19 Mike Kestner <mkestner@novell.com>
26090 * ListView.cs: match MS behavior in Details view where items are not
26091 drawn if Columns.Count == 0.
26092 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26093 Use a separate pen to draw the check, since changing the width affects
26094 the box as well. Fixes #78454.
26096 2006-05-18 Miguel de Icaza <miguel@novell.com>
26098 * ListView.cs: ArgumentOutOfRangeException, single versions of the
26099 exception should throw the name of the invalid argument.
26101 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26102 there are no files listed.
26104 2006-05-18 Jackson Harper <jackson@ximian.com>
26106 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26109 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26111 * Control.cs: Brought back our old UpdateZOrder method as a private
26112 function and switched our calls from UpdateZOrder to the new one.
26113 This fixes the Paint.Net canvas disappearing bug.
26115 2006-05-18 Jackson Harper <jackson@ximian.com>
26118 * ThemeWin32Classic.cs:
26119 * InternalWindowManager.cs: Move the drawing into the theme,
26120 expose everything the theme should need from the window manager.
26122 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26124 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
26125 from the call to NativeWindow to avoid walking up the parent chain
26126 further than needed (speeds up setting cursors and avoids setting
26127 the wrong cursor if a parent has another cursor defined)
26128 * Cursor.cs: When loading an icon as cursor, MS uses the center of
26129 the icon as hotspot, not what's contained as hotspot in the icon
26130 file. This fixes the perceived drawing offset seen with Paint.Net
26132 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26135 - Store the calculated rectangle in Hwnd object and use it when
26136 setting the client size
26137 - Force Toolwindows to always be type Dock, to ensure they're on top
26139 2006-05-18 Mike Kestner <mkestner@novell.com>
26141 * ComboBox.cs: first pass at ComboBox rework. Layout is more
26142 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
26143 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
26144 Substantial refactoring to remove confusing nested classes. Coding
26145 standard and Get+Set->property refactorings. Shift to index based
26146 highlighting in ComboListBox instead of constantly using IndexOf and
26147 Items[]. Add invalidations on resize for DropDownList to fix ugliness
26148 in FileDialog growth. Draw borders manually since Simple mode needs
26149 to look like two independent controls. Make listbox border
26150 conditional to DropDownStyle. Improved OwnerDraw support.
26152 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
26154 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
26155 Don't set the disposed graphics to null, so we can throw the "right"
26156 exception if the graphics is reused later (added a flag to avoid
26157 double disposing). Some behaviours are different under 2.0 and are
26158 filled under bug #78448.
26160 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
26162 * Control.cs: When double-buffering is enabled, we need to reset
26163 our graphics context between paint calls. Otherwise, any
26164 transformations and other alterations on the context will
26165 become cumulative (#77734)
26167 2006-05-18 Mike Kestner <mkestner@novell.com>
26169 * ListView.cs: do focused item selection like MS on clicks.
26170 Rework focus handling for ItemControl so LostFocus invalidates as
26172 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26173 the ListView ItemControl has focus.
26175 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
26177 * XplatUIX11.cs: If client_window ends up being width or height zero
26178 due to border settings, move it off window inside whole_window (#78433)
26180 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
26182 * Mime.cs: Shrink the mime file cache correctly.
26184 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
26186 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26188 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26190 * XplatUIX11.cs (AddExpose): More sanity checks
26192 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26195 - AddExpose: Don't add expose ranges outside the size of our
26197 - Cast opacity values to Int32 to avoid crashes with certain
26199 - Added disabled code paths that protect against illegal cross-
26200 thread painting (Developers.exe)
26202 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26204 * ProgressBar.cs: Invalidate the control when it's resized
26205 since block size is based on control size. (#78388)
26207 2006-05-16 Miguel de Icaza <miguel@novell.com>
26209 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26210 of setting the incoming argument to the "reset" value, we set the
26211 this.datamember to string.empty (before we were invalidating the
26216 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26218 * Form.cs: Only apply transparency settings after the form
26219 is created. (Fixes #77800)
26221 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26223 * ApplicationContext.cs: Grab the HandleDestroyed event so
26224 we know when to fire OnMainFormClosed
26226 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26228 * Application.cs: Introduced sub-class to allow tracking of
26229 threads and centralized triggering of the event mess for
26230 ThreadExit, AppExit, etc.. (#76156)
26232 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
26235 - Do not return a null icon index value for a mime subclass.
26236 Instead try the main mime type class too.
26237 - Seems that some newer distributions don't have a link to some
26238 gnome default icons anymore. So check the default gnome dir too.
26241 2006-05-16 Jackson Harper <jackson@ximian.com>
26243 * MdiClient.cs: Don't paint the parent background image if we have
26244 our own background image.
26246 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
26249 - PerformLayout: Do not shrink space filled by DockStyle.Fill
26250 controls, all filled controls are supposed to overlap (#78080)
26251 - UpdateZOrder is supposed to update the control's z-order in the
26252 parent's z-order chain. Fixed to behave like that
26253 - BringToFront: Removed obsolete code
26254 - SendToBack: Simplyfied
26255 - SetChildIndex: Trigger layout calculations when Z-order changes
26256 since layout is done by z-order
26258 2006-05-16 Chris Toshok <toshok@ximian.com>
26260 [ fixes bug #78410 ]
26261 * DataGrid.cs (set_AlternatingBackColor): use
26262 grid_drawing.InvalidateCells instead of Refresh().
26263 (set_BackColor): call grid_drawing.InvalidateCells.
26264 (set_BackgroundColor): use Invalidate instead of Refresh.
26266 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26267 invalidate the cell area.
26269 2006-05-15 Chris Toshok <toshok@ximian.com>
26271 [ fixes bug #78011 ]
26272 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26273 on to DataGridPaintRow.
26274 (DataGridPaintRow): take a clip argument, and only draw the cells
26275 which intersect it. same with the not_usedarea.
26277 * Theme.cs (DataGridPaintRow) add @clip parameter.
26279 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26280 XplatUI.ScrollWindow.
26281 (ScrollToRow): same.
26283 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26284 with last column which was causing a gray swath to appear with the
26285 XplatUI.ScrollWindow code.
26287 2006-05-15 Chris Toshok <toshok@ximian.com>
26289 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26290 use XplatUI.ScrollWindow.
26291 (VerticalScrollEvent): use XplatUI.ScrollWindow.
26293 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
26295 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26297 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
26299 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26300 file since there are no equivalent X11 cursors
26302 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
26304 * MonthCalendar.cs : DateTimePicker should reflect selected date
26305 on mouse*up*, not mouse*down*. Fixed originally reported part of
26308 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
26310 * TabControl.cs : When argument index is equal or more than tab
26311 count, just ignore. Fixed bug #78395.
26313 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
26315 * Control.cs: Dispose all child controls when control is diposed (#78394)
26317 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
26319 * ColorDialog.cs: Finally it is possible to select the color with
26322 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
26324 * PrintDialog.cs: Fix typo
26326 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
26328 * PrintDialog.cs: PrintDialog is not resizable
26329 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26330 color. Made some ToolBar drawing methods protected virtual.
26332 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
26334 * PrintDialog.cs: Implementation of the PrintDialog
26336 2006-05-12 Chris Toshok <toshok@ximian.com>
26338 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26339 thumb, instead use MoveThumb. This has the side effect of making
26340 most of the other thumb moving machinery use MoveThumb as well.
26341 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26342 need to actually invalidate the rectangle where the new thumb will
26344 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26345 We force an Update() after, so it's not as fast as it could be,
26346 but at least there's zero flicker and no droppings.
26347 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26348 (UpdateThumbPos): add another argument (dirty), which says whether
26349 or not to calculate/add dirty regions which we later invalidate.
26350 For cases where we know we're going to use MoveThumb, we pass
26351 false for this. Otherwise, pass true.
26353 2006-05-12 Jackson Harper <jackson@ximian.com>
26355 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26358 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
26360 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26361 and GetClipRegion methods and UserClipWontExposeParent property.
26362 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26363 overriding UserClipWontExposeParent property, setting to false, since
26364 Win32 handles the required expose messages to draw our clipped parent
26366 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26367 PaintEventStart to set the user clip region if set.
26369 - Now internally tracking the Region for the control since we need to
26370 store it if the handle is not yet created and only set it when it
26371 becomes created. Before setting the region forced handle creation
26372 - Added code to draw the parents underneath a user-clipped region
26373 * Hwnd.cs: Added UserClip property
26375 2006-05-12 Chris Toshok <toshok@ximian.com>
26377 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26378 (set_Maximum): same.
26379 (set_Minimum): same.
26380 (set_SmallChange): same.
26381 (OnMouseUpSB): remove the call to refresh when releasing the
26382 thumb. We shouldn't need it.
26384 2006-05-12 Miguel de Icaza <miguel@novell.com>
26386 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26387 AutoSize set to None, we do not need to relayout everything, we
26388 just need to invalidate the current region.
26390 (Draw): Do not draw the entire ClientArea, just redraw the
26391 clip area being passed.
26393 * MdiClient.cs: Make MdiClient constructor with the Form argument
26396 2006-05-12 Jackson Harper <jackson@ximian.com>
26398 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26399 parents background image, but strangely not their own.
26400 - (DrawStatusBarPanel): Take into account horizontal alignment
26401 when drawing the strings and icons.
26403 2006-05-12 Mike Kestner <mkestner@novell.com>
26405 * ListBox.cs: avoid invalidations for focus when the collection is
26408 2006-05-12 Chris Toshok <toshok@ximian.com>
26410 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26411 invalidate the entire thumb area. Call InvalidateDirty which
26412 limits the redraw to the thumb itself and surrounding pixels.
26414 * XplatUIX11.cs (ScrollWindow): optimize copying.
26416 2006-05-12 Chris Toshok <toshok@ximian.com>
26418 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26419 Figure out the positioning/layout in a single pass instead of
26420 multiple recursive invocations. Speeds up the initial display of
26421 the data grid. Also, make many things private that were
26422 originally public but unused outside this class.
26424 2006-05-11 Jackson Harper <jackson@ximian.com>
26426 * MdiClient.cs: Improved layout code.
26428 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
26430 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26431 not SelectedObject.
26433 2006-05-11 Chris Toshok <toshok@ximian.com>
26435 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26436 union of that will always be {0,0,width,height}.
26438 2006-05-11 Jackson Harper <jackson@ximian.com>
26440 * Form.cs: Match MS's DefaultSize for forms (they must have
26441 changed the size in sp2).
26443 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26445 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26447 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
26449 * TextControl.cs : Fixed bug #78109. This incorrect position
26450 comparison caused crash on automatic line split.
26451 * TextBoxBase.cs : reduce duplicate code.
26453 2006-05-10 Jackson Harper <jackson@ximian.com>
26455 * MdiClient.cs: Active form is only sent to the back when using
26456 the Next form functionality, when a form is clicked the current
26457 active shouldn't be sent to the back.
26458 - Layout the mdi windows when the container is first made visible.
26459 * Form.cs: Give the MdiClient a ref to the containing form when we
26462 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26464 * LinkLabel.cs : link_font could be uninitialized, so populate one
26465 before actual use. Fixed bug #78340.
26467 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
26469 * XplatUIX11.cs : clipboard format native value is IntPtr.
26472 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26475 - Instead of showing context menus directly we send WM_CONTEXTMENU,
26476 which is passed up the parent chain by DefWndProc
26477 - We now handle WM_CONTEXTMENU to display any menu, or pass it
26478 to DefWndProc (#77956)
26479 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26481 2006-05-10 Jackson Harper <jackson@ximian.com>
26483 * MdiClient.cs: We need to remove the controls from the mdi
26484 collection, when we close the window.
26485 * MdiWindowManager.cs: Special handling of closing mdi windows.
26486 * InternalWindowManager.cs: Make the close method virtual so the
26487 mdi window manager can handle it specially.
26489 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
26492 - Recalculate grid when the data source has changed
26493 - Matches styles provided by user from all data sources types
26494 * DataGridTableStyle.cs: For columns that provided by the user set the
26495 with the preferred value is there was unassigned.
26496 * CurrencyManager.cs: throw OnItemChanged event
26498 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26500 * PictureBox.cs: Don't animate until handle is created. Start animation
26501 when handle is created.
26503 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26505 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26507 * XEventQueue.cs: We don't need to provide the extra info
26509 2006-05-10 Jackson Harper <jackson@ximian.com>
26511 * MdiClient.cs: If the mdi clients parent form has a background
26512 image set, we draw that background image for the mdi area's
26515 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
26517 * TextBoxBase.cs: Set IBeam cursor (#78347)
26519 2006-05-10 Mike Kestner <mkestner@novell.com>
26521 * ToolBar.cs: fix some text padding issues with ButtonSize
26522 calculation. Update the default size to match MS documentation.
26523 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26524 button size. Fixes #78296.
26526 2006-05-10 Mike Kestner <mkestner@novell.com>
26528 * ListBox.cs: use is_visible for scrollbar positioning in case the
26529 control isn't on screen yet. Fix off by one with Right vs Width
26530 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26532 2006-05-10 Jackson Harper <jackson@ximian.com>
26534 * X11Dnd.cs: Drop to a control with another control on top of it.
26535 * ToolBar.cs: Work on a copy of the buttons list, so that it can
26536 be modified in click handlers. TODO: Look for similar problems in
26539 2006-05-09 Jackson Harper <jackson@ximian.com>
26541 * Form.cs: Window managers need the old window state when setting
26543 * InternalWindowManager.cs: Allow the base mdi window manager to
26544 handle more of the MDI only stuff (like maximize buttons).
26545 * MdiWindowManager.cs: Fix some snafus in changing the window
26546 state. Add all the menu functionality, for both popup and
26548 * MdiClient.cs: When a new form is selected the currently
26549 activated form is sent to the back, this matches MS.
26550 - Implement a new method to activate the next mdi child window.
26552 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26555 - Added new InternalCapture method to allow controls to prevent
26556 the capture behaviour on the click handlers
26557 - Switched to use InternalCapture
26559 - Using InternalCapture to prevent mouse captures from being released
26560 on mouse button release (Fixes #78100)
26561 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26562 returns Form borders if a caption is present. (Fixes #78310)
26564 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
26566 * TreeNode.cs: Changed serialization .ctor to not require every field
26567 to be present. (#78265)
26568 * OwnerDrawPropertyBag.cs: Added serialization .ctor
26570 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
26572 * MimeIcon.cs: for is faster than foreach for strings.
26574 2006-05-05 Mike Kestner <mkestner@novell.com>
26576 * CheckedListBox.cs: update check handling code to not use selected.
26577 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26578 behavior for visual feedback, motion response, shift/ctrl handling,
26579 and properly deal with all 4 selection modes. Updates to bounds
26580 handling logic. Add scroll wheel support. [Fixes #77842]
26582 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26585 - Moved adding of Implicit controls into .ctor. That way, subsequent
26586 creation of the controls will not cause them to think they are
26587 toplevel windows (fixes #78200 header problem)
26588 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26589 - Switched visibility setting of header control to use internal field
26590 to avoid triggering handle creation
26591 - Now checking if handle is created before causing a refresh when items
26592 are added (This makes us now match handle creation time with MS)
26593 * Splitter.cs: Removed loading of private splitter cursor, switched to
26594 Cursors version now that that is loading the right ones
26595 * Cursors.cs: Load proper splitter cursors from resources
26596 * Cursor.cs: Added second method of loading resource cursors for the
26597 VS.Net users amongst us
26599 2006-05-05 Mike Kestner <mkestner@novell.com>
26601 * ListView.cs: give header_control a minimum size based on the
26604 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
26606 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26607 window seems to do that with metacity, so set that type. (#78120)
26609 2006-05-05 Mike Kestner <mkestner@novell.com>
26611 * ListViewItem.cs: fix Details mode checkbox layout bug.
26612 * ThemeWin32Classic.cs: draw a ListView column header for unused space
26613 at the end of the header, if it exists. [Fixes for #78200]
26615 2006-05-04 Jackson Harper <jackson@ximian.com>
26617 * MdiClient.cs: Add a helper property to get the container form.
26618 * MdiWindowManager.cs: We have to make sure to use the menu origin
26619 when drawing the icons and buttons, this fixes maximized window
26620 icons/buttons on win32.
26621 * InternalWindowManager.cs: Reset the restore captions when a
26622 window goes from Maximized to Minimized and vice versa. Move the
26623 DrawMaximizedButtons into the MdiWindowManager source, tool
26624 windows can't be maximized. NOTE: This could use a little
26625 refactoring if time ever permits.
26627 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26629 * TextBox.cs: Add MWFCategoryAttributes
26630 * TextBoxBase.cs: Add MWFCategoryAttributes
26631 * Form.cs: Add MWFCategoryAttributes
26633 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
26635 * Control.cs: Add MWFCategoryAttributes
26636 * ScrollableControl.cs: Add MWFCategoryAttributes
26638 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
26640 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26641 Divider is true. Fix a little glitch in PropertyToolBar
26644 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
26647 - Dispose: Call base.Dispose, this causes the disposed event
26648 to be fired (and probably other, more important stuff)
26649 - SetVisibleCore: Set is_visible to true after creating the
26650 window so that the window still gets created invisible (if
26651 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26652 to generate a WM_ACTIVE message
26653 * Form.cs: Call Dispose when we want to destroy the window, instead of
26654 just destroying the handle (Dispose will do that for us)
26656 - RootWindow also needs a queue, so we can properly process the
26657 property change events from RootWindow (like Activate)
26658 - Generatic synthetic WM_ACTIVE message when the active window is
26661 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26663 * LinkLabel.cs: Trigger a recalc of our label dimensions when
26666 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26668 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26669 for determining width and height (image might not be assigned if
26670 we're drawing an imagelist)
26672 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
26674 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26675 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26677 * Theme.cs: No longer returns hardcoded menu height, instead calls
26679 * Form.cs (OnLoad): Scaling happens before triggering Load events
26682 2006-05-01 Mike Kestner <mkestner@novell.com>
26684 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
26686 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26688 * TextBoxBase.cs: Removed Fixme
26689 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26691 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
26694 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26695 the rectangle relative to the parent, considering borders. We
26696 don't really want that.
26697 - ScrollWindow: Fixed warning to be more understandable
26698 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26699 scrollbars and scroll only the visible area
26700 * RichTextBox.cs: Removed debug output
26702 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26704 * NumericUpDown.cs (Text): Just use base
26705 * UpDownBase.cs: Ensure txtView is created before using it
26707 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26709 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26710 casting to IntPtr to avoid 64bit overflow errors
26712 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26715 - AllowDrop: Don't force handle creation.
26716 - CreateHandle: Added call to tell driver if we're allowed to drop
26718 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26720 * FileDialog.cs: Remember the last directory not only for the
26721 current instance but also for new FileDialog instances.
26723 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26725 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26726 broke sending async messages
26728 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
26731 - ScrollWindow: Fixed method. We finally generate expose events again
26732 for scrolled areas. This was causing 'garbage' when scrolling
26733 textbox and other controls that used ScrollWindow
26734 - Switched from using the regular queue for paint events to the MS
26735 model of 'generating' paint events when the queue is empty.
26736 We use the new XQueueEvent.Paint subclass to store which windows
26738 - AddExpose now takes the x/y/width/height of the exposed area
26739 and inserts the window into the paint queue if not already there
26740 - InvalidateWholeWindow: Switched to use new AddExpose method
26741 - UpdateMessageQueue: Added which queue to monitor for paint events
26742 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26743 the unlikely case nothing above handles it. We reset the expose
26744 pending states to get them off the queue.
26745 - GetMessage: Now pulls a paint event if no other events are in the
26747 - Invalidate: Switched to new AddExpose method
26748 - PeekMessage: Updated to understand pending paint events
26749 - UpdateWindow: Fixed logic bug. We were only updating if the window
26750 didn't need updating. Also switched to sending WM_PAINT directly,
26752 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26753 and random access Remove(). The random access is needed to handle
26754 UpdateWindow() where a WM_PAINT is sent directly without accessing
26756 * ScrollBar.cs: Added Update() calls to cause immediate updates to
26757 allow for better feedback when scrolling. Scrollbars are small and
26758 the immediate update should make it 'feel' more responsive without
26759 slowing things down. ScrollBar still needs it's invaliate logic
26760 updated to not always invalidate the whole bar on certain changes.
26762 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26765 (BackColor): if the control does not support a transparent background,
26766 return the default backcolor when the parent backcolor is transparent.
26768 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
26770 * Application.cs: Updated to new StartLoop/GetMessage API
26771 * RichTextBox.cs: Provide some output on RTF parsing errors
26772 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26773 new queue_id argument to GetMessage and PeekMessage to allow faster
26774 handling of per-thread queues in drivers.
26775 * Hwnd.cs: Added Queue tracking and property
26776 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26777 * XEventQueue.cs: Added thread trackingA
26778 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26780 - Implemented new per-thread queue
26781 - GetMessage: Fixed return/break behaviour on several cases. We were
26782 returning stale messages in some cases, instead of just processing
26785 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26787 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26789 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
26791 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26792 fixed off-by-one comparisons between Width/Height and Right/Bottom.
26794 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
26796 * PropertyGridView.cs: Fix drop down width.
26798 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26800 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26801 a mess in DrawToolBar, so I removed one of them.
26803 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
26805 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26806 needed (clip). Otherwise we get artifacts.
26808 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26810 * FixedSizeTextBox.cs: Added constructor to allow specifying which
26812 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26813 and switched FixedSizeTextBox to only be fixed vertical (#78116)
26814 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26815 if it matches the scale base font (avoids unneeded scaling)
26817 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26819 * X11DesktopColors.cs: One gtk_init_check should be enough
26821 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26823 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26826 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
26829 - Generate OnTextChanged for Backspace even if we're only deleting
26830 the current selection
26831 - When setting the Text property, only select all text if the
26832 control does not have focus when it is being set. Otherwise
26833 just place the cursor at the beginning of the control
26835 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
26837 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26838 Added a little helper to draw PropertyGrid ToolBar with a different
26839 border and a different BackColor.
26840 * PropertyGrid.cs: Some background parts didn't get painted with the
26841 correct background color. Added a class that helps us to draw the
26842 correct border for PropertyGridView and a class that helps us to
26843 draw ToolBars with a different backcolor
26844 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26846 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26848 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26849 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26851 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26853 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26854 into the palette entries. Also, since we're working on a copy
26855 we needed to copy the palette back onto the bitmap.
26856 * Cursor.cs: Same fix as XplatUIWin32.cs.
26858 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26860 * ImageListStreamer.cs: Need to read the var (or we're off)
26862 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
26864 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
26865 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
26866 TextBoxBase.cs: Unused var fixes
26867 * AxHost.cs: Small 2.0 fix
26868 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
26869 as it seems that is what at least Metacity expects. This will make
26870 icons show up on 64bit platforms. We still have some 64bit size
26871 issues, though, since the startup app window size still won't match.
26873 2006-04-25 Mike Kestner <mkestner@novell.com>
26875 * *.cs: cleanup newly reported exception var unused warnings.
26877 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26879 * ThemeWin32Classic.cs: Button image alignment now matches exactly
26882 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26884 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
26885 image. The image position is always the same, no matter if the
26886 button is pressed or not.
26888 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
26890 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
26891 selection and set the correct filename for SaveFileDialog.
26892 Patch by Emery Conrad.
26894 2006-04-24 Mike Kestner <mkestner@novell.com>
26896 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
26897 check for item.X outside the ClientRect instead of item.Y. Fixes
26900 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26902 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
26903 trust that value blindly and do some sanity check. Fixes bug #77814.
26905 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26907 * ImageListStreamer.cs: save the mask as a 1bpp image.
26909 2006-04-21 Mike Kestner <mkestner@novell.com>
26911 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
26912 pass Checked and Indeterminate to the Theme Engine. Improve
26913 encapsulation with ListBox.
26914 * ListBox.cs: Keep a StringFormat instead of calculating it every item
26915 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
26916 nested types. Move all CheckState functionality to CheckedListBox.
26917 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
26918 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
26919 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
26920 single base list. Fix scrollbar sizing and placement to mirror MS.
26921 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
26923 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
26924 for CheckedListBox by using new DrawItemState info. Center the
26925 checkboxes on the items. Use new StringFormat property.
26927 2006-04-18 Jackson Harper <jackson@ximian.com>
26929 * Form.cs: MdiChildren don't do default locations the same way as
26930 regular forms. This prevents a crash when trying to position the
26933 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
26935 * PropertyGridTextBox.cs: Formatting, copyright
26936 * PropertiesTab.cs: Formatting
26937 * PropertyGrid.cs: Formatting
26938 * PropertyGridView.cs: Formatting, fix drop down, enabled double
26939 click toggling of values
26941 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
26943 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
26944 * Control.cs (.ctor): verify_thread_handle is static, don't reset
26945 every time a control is created
26946 * Application.cs: Removed obsolete EnableRTLMirroring method
26948 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
26950 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
26951 SelectedIndex to -1. Fixes bug #78121.
26953 2006-04-17 Jackson Harper <jackson@ximian.com>
26955 * Binding.cs: Handle null values for Current and BindingContext.
26956 This occurs when binding is a little delayed.
26957 * CurrencyManager.cs: return null for Current when there are no
26959 - Hookup to the listchanged event on the DataView and update
26960 bindings when the list is changed. This fixes late binding of
26963 2006-04-17 Jackson Harper <jackson@ximian.com>
26966 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
26969 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
26971 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
26973 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
26974 with the correct ButtonState
26976 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
26978 * XplatUIX11.cs: Improved distinguishing between window types to
26979 tell the WM a type closer to what the app wants (Fixes #78107)
26981 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26983 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
26986 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
26988 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
26989 drawing code to reflect the size grip changes
26991 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26993 * ImageListStreamer.cs: fix handling of the mask that follows the main
26994 bitmap when deserializing and serialize it properly. The generated mask
26995 should better be a 1bpp image, but I'll do that later.
26997 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
26999 * FileDialog.cs: Show something in the DirComboBox on *nix if the
27000 path doesn't fit into some of our Current.Places
27002 2006-04-13 Jackson Harper <jackson@ximian.com>
27004 * ComboBox.cs: Use borders instead of drawing our own decorations,
27005 try to obey correct rules for heights.
27008 * ThemeClearLooks.cs:
27009 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27010 this is now handled by borders.
27011 - Remove unused DrawListBoxDecorationSize method.
27013 2006-04-13 Mike Kestner <mkestner@novell.com>
27015 * MenuAPI.cs: null guarding for the disbled click check fixes crash
27018 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
27020 * ThemeWin32Classic.cs:
27021 - Fixed CPDrawStringDisabled
27022 - Corrected drawing of disabled menu items
27023 - Fixed drawing of disabled radio buttons (bug #78095)
27024 - Draw check in a disabled CheckBox with color ControlDark
27026 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27028 * Form.cs: Use the provided width when calculating the menu size;
27029 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27030 and ClientSize.Width won't be updated yet
27031 * Application.cs: Use Visible instead of Show() to make form visible,
27032 this way we create the handle later and menusize is considered
27034 2006-04-12 Mike Kestner <mkestner@novell.com>
27036 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27039 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27041 * TextBox.cs: Implemented context menu
27043 2006-04-12 Mike Kestner <mkestner@novell.com>
27045 * ListView.cs: implement box selection. fixes #77838.
27046 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27048 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27050 * XplatUIX11.cs: Added setting of window type when transient window
27051 is created (metacity would move it otherwise)
27052 * X11Structs.cs: Added WINDOW_TYPE atoms
27053 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27054 background (the control is Opaque but still wants transparent
27057 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27059 * Control.cs: Added OnPaintBackgroundInternal to allow controls
27060 that set Opaque but don't mean it (like all ButtonBase-derived
27061 controls) to still draw their background
27062 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27065 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27067 * Control.cs (PaintControlBackground): Set the graphics object
27068 on our PaintEvent to null to prevent it from being disposed
27069 when the PaintEvent gets disposed
27071 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
27073 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27074 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27076 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
27079 - Added transparency check to BackColor property. Transparent
27080 backgrounds are only allowed if the control styles permit it
27081 - Added recursive painting of parent control background and
27082 foreground if a control with a transparent backcolor is drawn
27083 (Thanks to Tim Ringenback for providing his 'hack' as a base
27084 for this patch) Fixes #77985 and #78026.
27085 - Added Opaque style check before calling OnPaintBackground, no
27086 need to draw the background if the control is opaque
27087 - Removed ControlAccessibleObject owner variable (inherited from
27088 base, no need to define again)
27089 - Added some documentation links explaining the drawing events
27092 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27094 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27095 that the affected control is the located at the left border of our
27096 parent (Fixes #77936)
27098 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27100 * TextBoxBase.cs: When rendering disabled or readonly controls,
27101 draw the background with 'Control' instead of 'Window' color as
27102 long as the user hasn't specifically set a color
27104 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27106 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27107 since that won't be updated if the user types text (only if it's
27108 programatically set)
27110 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27112 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27113 layout changes do to app-triggered resizes will have the proper
27114 display rectangle for layout
27116 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
27118 * ThemeWin32Classic.cs:
27119 - Make use of the SystemBrushes and SystemPens wherever possible
27120 - Corrected some highlight colors
27121 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27123 * Theme.cs: Added Empty field to CPColor struct
27125 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
27127 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27128 is displayed when calculating the display rectangle. Thanks to Mike
27129 for teaching me the err of my ways.
27131 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
27133 * ScrollableControl.cs:
27134 - Rewrote DisplayRectangle code, now returning the proper x/y coords
27135 (instead of 0,0) and we now return the real width/height instead of
27136 just the clientrectangle, adjusted for padding. The rectangle is
27137 now cached and created by the new CalculateDisplayRectangle method.
27138 - Created new CalculateDisplayRectange method, which basically does
27139 what get_DisplayRectangle() did originally, but now using the
27140 right edge instead of DisplayRectangle to determine the size of
27142 - get_Canvas(): Fixed it to properly calculate canvas for
27143 right/bottom controls which seem to be placed to the right/bottom
27144 of any controls that have a fixed location
27145 - Removed TODO that's taken care of
27146 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27147 and SetDisplayRectLocation according to new MSDN2 docs
27148 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27149 event when that is called, this is added for compatibility
27150 - ScrollControlIntoView(): Implemented.
27151 - Switched scrollbars to be implicit, they shouldn't be selectable
27152 * ContainerControl: Now that ScrollControlIntoView is implemented, we
27153 call it when the active control is set/changed
27154 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27155 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27156 implicit_control variable (used for native Win32 message generation)
27157 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
27158 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27159 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27160 * XplatUIStructs.cs: Added ScrollBarCommands enum
27162 2006-04-10 Jackson Harper <jackson@ximian.com>
27165 * CheckedListBox.cs:
27172 * PrintPreviewControl.cs:
27178 * UpDownBase.cs: Fixup base event overrides.
27180 2006-04-06 Mike Kestner <mkestner@novell.com>
27182 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27183 all user-initiated value changes to min <= value <= max-thumbsz+1.
27184 (set_Value): check for vert/horiz when calculating new thumb position.
27185 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27187 (OnMouseMoveSB): refactor the thumb dragging code and refine
27188 invalidation logic to reduce flicker.
27189 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27190 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27191 (UpdateThumbPosition): small code readability cleanup
27193 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
27195 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27198 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
27200 * ThemeNice.cs: Use a better graphics effect when a button is pressed
27202 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
27204 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27205 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27206 This dramatically reduces the number of Pen.Dispose calls.
27207 Where possible call ResPool methods only once instead of calling it
27208 over and over again (for example for the same color).
27210 2006-04-06 Mike Kestner <mkestner@novell.com>
27212 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27213 Also remove an unused private field on the collection. Fixes #77972.
27215 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
27217 * ThemeNice.cs: Added ToolBar drawing code
27219 2006-04-06 Mike Kestner <mkestner@novell.com>
27221 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27222 I'm assuming that means we need to look up the toplevel for the
27223 provided control. Fixes the crash trace in #77911 but exposes another
27224 crash in some strange reflection usage in NDocGui.
27226 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
27228 * ThemeNice.cs: Gave it a little silver touch and added Images
27230 * FontDialog.cs: FontDialog is not resizable
27231 * FileDialg.cs: Added SizeGripStyle.Show
27233 2006-04-05 Jackson Harper <jackson@ximian.com>
27235 * KeyboardLayouts.cs: Remove warning.
27237 2006-04-05 Jackson Harper <jackson@ximian.com>
27239 * Control.cs: Enable OnPaintInternal so we can use it for drawing
27240 all of our controls instead of Paint +=.
27255 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27256 use OnPaintInternal. Remove Width/Height and Visible checks in
27257 paint handler, this is done at a higher level now.
27258 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27259 * PaintEventArgs.cs: Add a handled flag so controls that don't
27260 want anymore painting after OnPaintInternal can make sure OnPaint
27263 2006-04-05 Mike Kestner <mkestner@novell.com>
27265 * Form.cs: fix the menu WndProc hacks to respect the native enabled
27266 state of the form, so that we don't process events when Modal dialogs
27267 are up. Fixes #77922.
27269 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
27271 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27274 2006-04-05 Mike Kestner <mkestner@novell.com>
27276 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27278 2006-04-05 Mike Kestner <mkestner@novell.com>
27280 * ListView.cs (HeaderMouseMove): null guarding for the over column
27281 when setting up the drag_to_index. Fixes #78015.
27283 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
27285 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27286 in the taskbar. Transient windows seem to accomplish that.
27288 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
27291 - Re-enabled CreateParams.X/Y code for FormStartPosition
27292 - Added code for manual placement when creating the Control
27293 - Incomplete patch to treat MDI forms differently when
27294 setting the ClientSizeCore. (Still need to figure out handling
27297 - When we're explicitly setting the X/Y position of a non-Child
27298 window, let the WM know. Metacity really wants this.
27300 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
27302 * ThemeNice.cs: Added CPDrawButton
27304 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
27306 * ThemeNice.cs: Changed the color for focused buttons and activated
27307 the arrows for small scroll buttons.
27309 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
27311 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27312 anymore. Changed some method modifiers to protected (virtual)
27313 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27315 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27316 Updated drawing of menus, buttons and progressbars; added
27319 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27321 * ImageListStreamer.cs: implemented serialization/deserialization
27324 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
27326 * ThemeWin32Classic.cs:
27327 - Removed all the DrawFrameControl stuff; CPDrawButton,
27328 CPDrawCheckBox and CPDrawRadioButton are now handled directly
27330 - Updated and corrected the drawing code of CPDrawButton,
27331 CPDrawCheckBox and CPDrawRadioButton to better match ms
27332 - Updated theme checkbox and radiobutton code to use the CP*
27335 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27337 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27340 2006-03-31 Jackson Harper <jackson@ximian.com>
27342 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27344 * UpDownBase.cs: Don't CreateGraphics manually, use a
27345 Refresh. Ideally we would invalidate the correct areas here.
27347 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27350 - We now track the mapping state of windows. If a window (or
27351 one of it's parents) is not mapped we no longer permit
27352 WM_PAINT messages to be generated since we'd otherwise get
27353 lots of BadMatch X errors. Jackson did all the work figuring
27355 - Destroying the caret if the window it's contained in is
27356 destroyed. Can't use regular DestroyCaret method since it
27357 might fall into a drawing function (trying to remove the
27358 caret) and with that generate new BadMatch errors. Again,
27359 Jackson tracked this down.
27360 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27361 make sure we send the messages to all windows. (The old code
27362 would send the WM_DESTROY to the window, and then all child
27363 windows would be 'gone' because the WM_DESTROY handle lookup
27364 would no longer find the destroyed window)
27365 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27366 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27368 2006-03-31 Jackson Harper <jackson@ximian.com>
27370 * ScrollableControl.cs: Dont recalc if we are not visible.
27372 2006-03-31 Mike Kestner <mkestner@novell.com>
27374 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27375 the visibility branch.
27377 2006-03-31 Jackson Harper <jackson@ximian.com>
27379 * ScrollBar.cs: Cap values when incrementing/decrementing.
27381 2006-03-31 Mike Kestner <mkestner@novell.com>
27383 * MenuAPI.cs: setup menu.tracker for popup/context menus.
27384 * ToolTip.cs: guard against timer expirations with no active control.
27385 Not sure why it happened.
27387 2006-03-31 Mike Kestner <mkestner@novell.com>
27389 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27391 * ToolTip.cs: Position the tooltip based on where the cursor is at
27392 popup time, not at MouseEnter time. Add a Down state so that we don't
27393 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27394 positioning offset. Lookup DisplaySize at positioning time, since it
27395 can theoretically change during invocation.
27396 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27397 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27399 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27401 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27402 Fixes behaviour when the Text property of the box is String.Empty
27404 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
27406 * XplatUIX11.cs: Only send mouseleave for our client windows, not
27407 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27410 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27412 * FileDialog.cs: Visual enhancement for the popup buttons in
27415 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
27417 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27420 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
27422 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27423 highlighted menu items to match ms
27425 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
27427 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27429 2006-03-30 Mike Kestner <mkestner@novell.com>
27431 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27432 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27433 go active to account for HotLight to Selected transition.
27434 * MenuItem.cs: add internal Selected prop. Fill out the Status
27435 property by calculating it from item info. Add HotLight,
27436 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27438 2006-03-30 Mike Kestner <mkestner@novell.com>
27440 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27442 2006-03-29 Jackson Harper <jackson@ximian.com>
27444 * Form.cs: Implement TODO.
27446 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27448 * PrintPreviewDialog.cs: Implemented missing methods and events; still
27449 missing proper dialog setup in the constructor
27451 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
27453 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27455 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27456 - Fixed ResetBindings and removed TODO
27457 - Added check for cross-thread calls to get_Handle()
27458 - Added Marshaller attribute for set_Font to satisfy class status
27459 * FontDialog.cs: Removed TODOs that seemed implemented
27460 * UpDownBase.cs: Removed unneeded TODO and Fixme
27461 * MessageBox.cs: Implemented support for Default button and removed TODO
27462 * FileDialog.cs: Removed obsolete TODO
27463 * DomainUpDown.cs: Removed obsolete TODO
27464 * ButtonBase.cs: Removed obsolete TODO
27465 * XplatUIWin32.cs: Removed obsolete TODO
27467 - Removed obsolete TODO
27468 - Calling CheckAcceptButton when the acceptbutton is changed to allow
27469 internal status updates
27470 - Making sure the active control is selected when the control is created
27471 * CurrencyManager.cs: Removed obsolete TODO
27473 2006-03-29 Mike Kestner <mkestner@novell.com>
27475 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27476 of PrintPreviewDialog and RichTextBox.
27478 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27480 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27481 DarkDark, Light and LightLight colors for a specific color
27482 * ThemeWin32Classic.cs:
27483 - Use Button drawing code to draw RadioButtons and CheckBoxes with
27484 Appearance = Button
27485 - Make use of the new ResPool helper CPColor
27486 - Draw ProgressBar and StatusBar with correct 3D borders
27488 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
27490 * ColorDialog.cs: Return selected color. Fixes bug #77940.
27492 2006-03-28 Mike Kestner <mkestner@novell.com>
27494 * ListView.cs: fix Icon layout to plan for scrollbar widths when
27495 calculating col/row counts.
27497 2006-03-28 Mike Kestner <mkestner@novell.com>
27503 switch to explicit interface method implementation for some methods
27504 corcompare identifies as inconsistent with MS.
27506 2006-03-28 Mike Kestner <mkestner@novell.com>
27510 add a few missing methods from the class status output.
27512 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
27514 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27517 2006-03-28 Mike Kestner <mkestner@novell.com>
27519 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27521 2006-03-27 Mike Kestner <mkestner@novell.com>
27523 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27524 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27526 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
27528 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27530 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27532 * ThemeWin32Classic.cs:
27533 - GroupBox: Inserted a little gap between the text and the lines
27535 - Made the code in CPDrawBorder3D more readable
27536 - Corrected the drawing location of the up and down arrows in
27539 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27541 * ControlPaint.cs: Corrected line widths in DrawBorder for
27542 ButtonBorderStyle Inset and Outset
27544 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27546 * ThemeWin32Classic.cs:
27547 - Rewrote the totally broken CPDrawBorder3D method. That was
27548 one of the main problems for the terrific ThemeWin32Classic
27550 - Updated and corrected Button drawing
27551 - Correct the dimensions of the SizeGrip to match ms ones
27552 - Removed a small drawing glitch in DrawComboBoxEditDecorations
27553 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27554 Border3DStyle.Sunken to match ms.
27556 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
27558 * ThemeWin32Classic.cs: First small part of the "de-uglify
27559 ThemeWin32Classic" effort, SizeGrip
27561 2006-03-24 Jackson Harper <jackson@ximian.com>
27563 * XplatUIX11.cs: Give a max idle time of one second, this matches
27564 MS and forces an Idle event every second when there are no other
27565 events in the queue.
27567 2006-03-24 Mike Kestner <mkestner@novell.com>
27569 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27570 * ListView.Item.cs: fix layout issues with null image lists and images
27571 smaller than checkbox size.
27572 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27573 mode like MS does. It's weird, but consistent. ;-)
27576 2006-03-24 Mike Kestner <mkestner@novell.com>
27578 * ListView.cs: Scroll wheel support for the item control. Fixes
27581 2006-03-23 Jackson Harper <jackson@ximian.com>
27583 * ScrollableControl.cs: Special case negative sized areas, not
27585 * MonthCalendar.cs: Save the rect of the clicked date so we can
27586 use it for invalidation.
27587 - Try to cut down on the number of invalidates
27588 - Invalidate the rect the mouse is over and was over when moving
27589 the mouse, so we get the focus box following the cursor.
27591 2006-03-23 Mike Kestner <mkestner@novell.com>
27593 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27594 focus rectangle drawing. Fixes #77835.
27596 2006-03-23 Mike Kestner <mkestner@novell.com>
27598 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27599 the if and else if and reverting back to the original == check on the
27602 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27604 * FontDialog.cs: Update the example panel if the selected index of
27605 the fontListBox changes.
27607 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
27609 * FileDialog.cs: Make FileDialog remember which directory it was in
27610 last in the same execution.
27612 2006-03-22 Mike Kestner <mkestner@novell.com>
27614 * FileDialog.cs: make the DropDownMenu on the toolbar display
27615 RadioChecks since they are mutually exclusive and that's what MS does.
27617 2006-03-22 Mike Kestner <mkestner@novell.com>
27619 * Theme.cs: add Color param to CPDrawMenuGlyph.
27620 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27621 checks and radio marks and arrows are visible on highlighted items.
27622 * ControlPaint.cs: update to use new Theme signature.
27624 2006-03-22 Mike Kestner <mkestner@novell.com>
27626 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27627 is active. Fixes #77870.
27629 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27631 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27632 to be focused/selected after startup
27634 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
27637 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27638 CustomColors and ShowHelp properties
27639 - Some internal rewrites to get better results when using the
27642 2006-03-22 Mike Kestner <mkestner@novell.com>
27644 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27645 HoverSelection. Fixes #77836.
27647 2006-03-22 Mike Kestner <mkestner@novell.com>
27649 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
27650 ToggleButtons. (De)Sensitize the Back button around a stack count of
27651 1, not 0. Update ButtonSize based on a pixel count of the win32
27652 control. Adjust the toolbar size/location for new button size.
27654 2006-03-22 Jackson Harper <jackson@ximian.com>
27656 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27658 * ScrollBar.cs: When doing increments and decrements we need to
27659 set the Value property so that ValueChanged gets raised. A
27660 possible optimization here would be to make an internal SetValue
27661 that doesn't invalidate immediately.
27662 * ToolTip.cs: Tooltips get added to their container (when
27663 supplied) so they get disposed when the container is disposed.
27664 - Don't create tooltips for String.Empty. This prevents all these
27665 little 2-3 pixel windows from showing up when running nunit-gui
27666 and driving me mad.
27667 * Form.cs: Don't set topmost when setting the owner if the handles
27668 haven't been created yet. The topmost set will happen when the
27669 handles are created.
27671 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
27674 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27675 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
27676 visible (to allow them to recalculate their sizes)
27678 2006-03-21 Mike Kestner <mkestner@novell.com>
27680 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27681 methods. Removed a ton of redundant code. Still not really happy with
27682 the border rendering, but I think that's mainly because of the
27683 ControlDarkDark being black instead of a dark grey. Depending on how
27684 close we want to be, we might want to revisit those color choices.
27685 Among the new features added during the refactor were DropDownArrow
27686 pressed rendering, Disabled image rendering. Proper flat appearance
27687 boundary rendering. Removed the Divider and Wrapping dividers since I
27688 can't figure out any combination of themes and conditions to make the
27689 MS control draw a horizontal line on a toolbar despite what the
27690 Divider property docs indicate.
27691 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27692 conditions and incorrect layout. Updated to coding standard.
27693 * ToolBarButton.cs: refactored layout and positioning code from
27694 ToolBar to here. Invalidate wherever possible instead of forcing
27695 redraws of the whole toolbar.
27696 (Known remaining issues: explicit ButtonSize smaller than provided
27699 2006-03-21 Mike Kestner <mkestner@novell.com>
27701 * ContextMenu.cs (Show): use the position parameter instead of just
27702 showing at the MousePosition.
27704 2006-03-21 Jackson Harper <jackson@ximian.com>
27706 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27707 control handle this.
27708 * TreeNodeCollection.cs: If we are clearing the root node we need
27709 to reset top_node so calcs can still happen.
27710 * ThemeWin32Classic.cs: This is a Flags so we need to check
27713 2006-03-21 Jackson Harper <jackson@ximian.com>
27715 * DataGrid.cs: Create columns when the binding context has been
27717 * X11Structs.cs: Keysyms are uints.
27718 - Add size to fix build.
27720 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
27722 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27724 - Added ResetMouseHover method to allow controls to retrigger
27725 hovering if they need it more than once
27726 - Implemented MouseHoverTime and MouseHoverSize properties
27727 * Timer.cs: Start() must reset the interval
27728 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27731 2006-03-21 Jackson Harper <jackson@ximian.com>
27733 * X11Keyboard.cs: improved layout detection. Move the nonchar
27734 tables into this file.
27735 * KeyboardLayouts.cs: Move the tables into resource files.
27737 2006-03-21 Mike Kestner <mkestner@novell.com>
27739 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27741 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
27743 * Mime.cs: Various speed optimizations. Looking up mime types
27744 is now 2 times faster than before
27746 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27748 * CreateParams.cs: Added internal menu field
27750 - Switched call order for UpdateBounds; now we always call
27751 the one that also takes ClientSize, and we're calculating the
27752 client size via driver method in the others. The previous
27753 method of tracking client size by difference wasn't working
27754 for forms where even the starting client size wouldn't match
27755 the overall form size (due to borders) (Part of fix for #77729)
27756 - CreateParams(): Do not use parent.Handle unless the handle is
27757 already created. Causes havoc with Nexxia and throws off our
27758 creation of controls
27760 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27761 - Switched handling of ConfigureNotify over to new PerformNCCalc
27762 method (consolidates code)
27763 - Changed RequestNCRecalc to use new PerformNCCalc method
27764 - Added calls to RequestNCRecalc when menus and borders are changed
27765 to allow app to set NC size. (Part of fix for #77729) This matches
27766 when MS send a WM_NCRECALC on Win32 windows.
27767 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27768 (Part of fix for #77729). This matches what MS does, they also
27769 send that message when the form is made visible.
27770 - XException.GetMessage: Improved usability of X errors by including
27771 a translation of the window into Hwnd and Control class
27772 - Improved debug info for window creation, reparenting and destruction
27773 - Created helper method WindowIsMapped() [Currently not used]
27774 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27776 - CreateParams: Now setting our menu on the new internal menu field
27777 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27778 avoid calculating the same property twice
27780 - Improved usability of ToString() for debugging purposes
27781 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27782 determine the height of the menu, instead of just the font. This
27783 required to also create a graphics context and to keep a bmp
27784 around (for performance reasons)
27786 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
27788 * MenuAPI.cs: Added OnMouseUp method
27790 - Now remembering the requested client size, avoids size errors
27791 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27792 instead of base if the menu is active. This is required due to
27793 control now capturing and releasing on down/up and it would
27794 prematurely release our menu capture
27796 2006-03-17 Jackson Harper <jackson@ximian.com>
27798 * KeyboardLayouts.cs: Add the czech layouts.
27800 2006-03-16 Jackson Harper <jackson@ximian.com>
27802 * Control.cs: Use the viewport space when sizing not the controls
27803 client size, so things like ScrollableControl that effect the
27804 viewport size (when scrollbars are added) are computed correctly.
27805 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27807 - Handle creating BindingManagers for null data sources.
27808 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27809 source, otherwise when rows are added they are added to the 'fake'
27810 datasource and we will crash when trying to set the position in
27812 - Use Implicit scrollbars on the datagrid so they arent
27815 2006-03-16 Jackson Harper <jackson@ximian.com>
27818 * InternalWindowManager.cs:
27819 * MdiWindowManager.cs:
27820 * X11Keyboard.cs: I really want Mike to love me again (fix
27821 compiler warnings).
27823 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27826 - OnMouseDown: Switch to editing mode when clicking on the cell
27827 even if we're clicking on the cell that's currently
27829 - ProcessGridKey: Left/Right now wrap like MS.Net does
27830 - ProcessGridKey: Tab now knows to add a new row when tab is
27831 pressed in the cell of the last column of the
27833 - ProcessGridKey: Enter now adds another row if pressed in the last
27834 row and selectes the new row, same column cell
27835 - ProcessGridKey: Home/End navigate columns, not rows, like
27836 originally implemented
27837 - Broke ProcessKeyPreview code out into an extra Internal method
27838 so it can be called from the edit code
27839 * DataGridTextBox.cs (ProcessKeyMessage):
27840 - Switched to accept Tab keypresses
27841 - Added F2 handling to allow jumping to the end of the edited cell
27842 - Added logic to allow moving caret left/right inside edited cell
27843 and making the edited cell jump when the caret hits cell borders
27844 - Tab and Enter are now passed to the datagrid after being handled
27846 - Removed capture code now that Control handles it
27847 - set_SelectionStart now ensures caret is visible
27849 2006-03-16 Jackson Harper <jackson@ximian.com>
27851 * TrackBar.cs: Debackwards the increment/decrement for handling
27852 mouse clicks on the bar with vertical trackbars.
27853 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27854 bottom to match MS.
27856 2006-03-16 Mike Kestner <mkestner@novell.com>
27858 * ListView.cs: make shift/ctrl keyboard and mouse selection
27859 consistent with the MS control. Fix a bug in
27860 SelectedListViewItemCollection.Clear that was pissing me off for the
27861 better part of a day because the collection was being altered
27862 underneath us as we walked the list.
27864 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
27866 * Control.cs: Not sure how we could miss this so long, but it seems
27867 that MS.Net has Capture set all the way from before calling
27868 OnMouseDown through sending the mouse events until after
27869 OnMouseUp. This will fix DataGrid's selection being set to end
27870 at the location of the MouseUp.
27872 2006-03-15 Jackson Harper <jackson@ximian.com>
27874 * BindingContext.cs: Check the binding after its added so that it
27875 can initialize the binding managers and hookup to events.
27876 * Binding.cs: Data members seem to sometimes include rows/cols in
27877 the format Row.Column we now take this into account.
27878 - Hookup to the position changed event so we can update the
27879 control when the position has changed in the data set.
27880 * CurrencyManager.cs: Take into account the row/col naming
27881 convention when creating dataset tables.
27882 * BindingContext.cs: Using a newer better way of storing
27883 datasource/datamember pairs. Hopefully this better matches MS for
27884 looking up binding managers.
27887 2006-03-15 Jackson Harper <jackson@ximian.com>
27889 * BindingContext.cs: The currency manager needs the data member
27890 name, if the member is a data set we use the name to find the
27892 * CurrencyManager.cs: When creating the list prefer an IList over
27894 - Attempt to create a DataTable from a DataSet (TODO: might need
27895 some better error checking here, although MS doesn't seem to have much)
27896 - If we have a DataTable create a view and use it as our list.
27898 2006-03-15 Mike Kestner <mkestner@novell.com>
27900 * ListView.cs: keep a matrix of the icon mode layout to facilitate
27901 keyboard navigation. Support Up/Down/Left/Right selection correctly
27902 for all 4 View modes.
27903 * ListViewItem.cs: add internal row/col fields for icon layouts.
27905 2006-03-15 Jackson Harper <jackson@ximian.com>
27907 * TabControl.cs: Redraw the tabs when we resize so their newly
27908 calculated sizes are drawn on screen.
27909 * X11Keyboard.cs: Begginnings of XIM support. We also now support
27910 composite characters.
27911 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
27912 - filter events so that composite characters can be created
27914 * X11Structs.cs: Add XIMProperties enum.
27916 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27918 * Control.cs (BringToFront, SendToBack): Don't use window or handle
27919 unless it's created
27921 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27923 * Control.cs (PerformLayout): We don't need to consider visiblity
27924 for anchoring, only for docking. This fixes 'whacky' alignment
27925 in listbox and other controls that use implicit scrollbars after
27926 the previous PerformLayout patch
27927 * ListBox.cs: Switched to use implicit scrollbars
27929 2006-03-14 Mike Kestner <mkestner@novell.com>
27933 - chain up the "new event" overrides to base and use
27934 OnEvent to raise them. Part of fix for bug #76509.
27936 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
27938 * FileDialog.cs: Do not select an item in the parent directory
27941 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27943 * Control.cs (PerformLayout): It would seem that we considered
27944 invisible windows for our layout. Not quite the right thing
27945 to do. Now we don't any longer, thereby fixing bug #76889.
27947 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
27949 * Control.cs (CanFocus): I goofed. A control can have focus
27950 even though it's not selectable. Made it match MS docs.
27952 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27954 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
27955 center by default (fixes #76895)
27956 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
27957 all uses of Border3DSides.All with the explicit ORd together
27958 Left|Right|Top|Bottom because I assume that nobody was aware
27959 that All also implies a center fill. Most places I checked had
27960 a fill right above.
27961 * ProgressBarStyle.cs: Added
27963 2006-03-13 Mike Kestner <mkestner@novell.com>
27965 * ListView.cs: fix breakage in drag shadow header positioning
27966 from Peter's csc compilation fix.
27968 2006-03-13 Mike Kestner <mkestner@novell.com>
27970 * ListView.cs: fix NRE produced by backspacing twice in a focused
27973 2006-03-13 Mike Kestner <mkestner@novell.com>
27975 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
27977 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27979 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
27981 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
27982 the allowed size before making programmatic size changes
27984 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27986 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
27987 set, metacity is broken and will still use the emty sizes in
27988 the struct. (Fix for #77089)
27990 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
27992 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
27993 WindowExStyles and marked both enums as Flags
27994 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
27995 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
27996 to match WindowStyles split
27998 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
27999 - Updated to match WindowStyles split
28001 - Fixed FosterParent creation, was using ExStyle on the Style field
28002 (This should help with Popup focus issues)
28003 - Updated to match WindowStyles split
28005 2006-03-13 Jackson Harper <jackson@ximian.com>
28007 * MdiWindowManager.cs: Use the system menu height. Fixes some
28008 strange sizing issues.
28010 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
28012 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28014 - Scroll to caret after inserting text (#77672)
28015 - Make scroll range one pixel higher, fixes off-by-one error (and
28016 makes underlines visible on the last line)
28018 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
28020 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28021 the keyboard state from being stuck with keys in 'pressed' state when
28022 focus is switched away via keyboard
28023 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28024 reset the keyboard if no X11 KeyUp events are expected to come
28025 * X11Structs.cs: Switched type of Visible to bool to match driver
28027 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
28030 - Switched caret to be just 1 pixel wide, matches MS and looks less
28032 - Moved caret display 1 pixel down from the top of the control
28034 - InsertCharAtCharet: Update the selection start if moving the caret
28035 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28036 - No longer always creating the caret when the caret methods are
28037 called. Only the actual ShowCaret/HideCaret will do that now
28038 - Only setting caret visible if the owner control has focus
28039 - UpdateView: Added invalidation-shortcut logic for center and right
28040 aligned text. Previously we'd update all according to the left
28041 logic which caused drawing errors. Also fixed height of invalidated
28042 areas, now properly invalidating the whole area (was off-by-one)
28043 - owner_HandleCreated: Always generate the document when the
28044 handle is created; this ensures that
28046 - Fixed situation where caret would disappear under the right
28047 window border, also improved scrolling behaviour on left-
28049 - Fixed right-aligned textboxes to have a border to the
28050 right instead of the caret being under the right border
28052 - Switched from 'nested' to simple visible/not visible tracking
28053 for caret (part of fix for #77671)
28054 - No longer passing through translated FocusIn/FocusOut messages
28055 since we were notifying too often and the wrong windows. Instead
28056 we just notify our focussed window of receiving or loosing focus
28057 * XplatUIWin32.cs: Switched from 'nested' show/hide
28058 counting for caret to simple visible yes/no behaviour (part of
28061 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
28063 * Mime.cs: Remove debug code...
28065 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
28067 * MimeGenerated.cs: Removed
28068 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28069 and subclasses) from /usr/(local/)share/mime and
28070 $HOME/.local/share/mime.
28072 2006-03-10 Jackson Harper <jackson@ximian.com>
28074 * MdiWindowManager.cs: Recalc the NC area when a window is
28075 maximized/restored so that the menu area is drawn on forms that
28078 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28080 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28081 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28082 us to force a WM_NCCALCRESIZE message being sent. This is needed
28083 for MDI maximizing.
28085 2006-03-10 Jackson Harper <jackson@ximian.com>
28087 * Form.cs: We need to use the ActiveMenu when calculating menu
28089 - Fix nullref when the window manager hasn't been created yet.
28090 * Control.cs: Fix nullref when we try to bring a control to the
28091 front that has no parent.
28092 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28094 - Add a dummy item to the maximized menu so it always has the
28095 correct height. Otherwise when there are no menus we don't get our
28099 2006-03-10 Jackson Harper <jackson@ximian.com>
28101 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28103 * Form.cs: Make the window_state internal so the window managers
28105 - When an MDI child is maximized let its window manager create the
28106 main menu (so it can add its icon).
28107 - Notify the window managers of state changes
28108 - Let the window manager paint its buttons and handle button
28109 clicks on the menu when it is maximized.
28110 * InternalWindowManager.cs: Move the prev_bounds into the mdi
28111 window manager, since tool windows don't use it, only mdi windows.
28112 - Tell the main form that we don't want it to handle NCPAINT
28113 itself to avoid extra painting.
28114 - Handle clicks on a maximized windows menu.
28115 - Handle window state changes
28116 - Handle minimize/maximize clicks correctly by setting the window state.
28117 * MdiWindowManager.cs: Add an icon menu that (the menu you get
28118 when clicking on the forms icon).
28119 - New method to create a forms maximized menu. This is its normal
28121 - Handle window state changes.
28122 - Handle sizing of maximized windows. Maximized windows are just
28123 drawn bigger then the parent visible area. All controls are still
28124 there, they are just outside the visible area (this matches windows).
28125 * MdiClient.cs: No scrollbars when a child window is maximized.
28126 - Let the children windows figure out how big they should be when
28127 sizing maximized windows.
28128 - Implement a version of ArrangeIconicWindows somewhat similar to
28129 Windows version. There are some little differences, but I don't
28130 think any app will rely on the layout of minimized mdi windows.
28132 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28134 * Padding.cs: Several fixes to allow compiling with csc 2.0
28136 2006-03-09 Jackson Harper <jackson@ximian.com>
28139 * MenuItem.cs: Cheap hack so we can add items to the list without
28140 the events being raised. This allows adding mdi items during
28141 drawing. TODO: Should probably find a better time to add the items.
28143 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28145 * ThemeWin32Classic.cs:
28146 - CheckBox_DrawText: Added logic to not wrap if not enough space
28147 is available (Fix for bug #77727)
28148 - RadioButton_DrawText: Added logic not to wrap if not enough
28149 space is available (Fix for bug #77727). Also removed some
28150 duplicate code, DrawString always drawing the regular text
28151 before hitting the if statement.
28153 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28155 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28157 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
28159 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28160 * ContainerControl.cs: Partial implementation of some 2.0 scaling
28161 methods. Moved the new 2.0 properties into alphabetical order with
28162 other properties and added MonoTODO tags
28164 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28166 * AutoScaleMode.cs: Added. Fix build.
28168 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28170 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28171 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28172 and was requiring premature handle creation for calls from above
28173 * Form.cs, Control.cs: Removed handle arguments from calls to
28174 CalculateClientRect()
28176 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28178 * ListView.cs (HeaderMouseMove): Fix csc compilation.
28179 drag_column.column_rect is MarshalByRef and can't be used that way
28181 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28183 * AxHost.cs: Added deserialization constructor for
28184 AxHost+State (fixes 77743)
28186 2006-03-09 Mike Kestner <mkestner@novell.com>
28189 - Added column drag reordering for details view.
28190 - fixed behavior when mouse is dragged off column and
28191 AllowColumnReorder is false.
28192 * ColumnHeader.cs: clone the format too in Clone.
28193 * Theme.cs: add DrawListViewHeaderDragDetails method.
28194 * ThemeWin32Classic.cs:
28195 - impl new method for drawing drag column shadows and targets.
28196 - support column offset for details mode in DrawListViewItem.
28198 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28200 * TextControl.cs: Reset the char_count when the document is cleared
28201 (Fixes bug reported on mono-winforms mailing list)
28203 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28205 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28206 of calling base we simply process the key ourselves, since both
28207 DefWindowProc and the handled method would set m.Result.
28210 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
28212 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28213 method also moves the window; instead implemented a copy of
28214 Control.ScaleCore (Part of fix for #77456)
28216 - Created new CreateGraphicsInternal method to allow providing
28217 a graphics context when no handle is created without triggering
28218 handle creation. (Part of fix for #77456)
28219 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28221 - Switched Constructor to require TextBoxBase instead of Control (to
28222 allow uncast access to CreateGraphicsInternal)
28223 - Safeguarded use of owner.Handle property. No longer accessing it
28224 unless the handle is already created.
28225 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28226 - Now triggering a recalc when owning control becomes visible
28227 * TextBox.cs, RichTextBox.cs: Switched to use new internal
28228 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28229 premature handle creation (Part of fix for #77456)
28231 - We now only destroy our double-buffering buffers when the
28232 control is resized or disposed, but not when visibility
28233 changes. (The code even re-created them twice every time)
28234 - Now requiring a redraw of the buffer on visibility changes
28235 (fixes bug 77654 part 2)
28236 - Not passing OnParentVisibleChanged up unless the control
28238 - CanFocus: Fixed to match MS documentation
28239 - Focus: Fixed to return actual focus state and to check if
28240 setting focus is legal before setting it
28242 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
28244 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28245 when to draw focus rectangle by looking at parent focus and
28246 selected state instead. This fixes TabPages on Linux sometimes
28247 having none or multiple focus rectangles.
28248 * XplatUIX11.cs (SetFocus):
28249 - Don't set the focus if the same window already has focus
28250 - Use SendMessage instead of PostMessage (like it's Win32
28251 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28252 to match MS behaviour
28253 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28254 are not selectable.
28256 2006-03-07 Jackson Harper <jackson@ximian.com>
28258 * PictureBox.cs: Revert line I accidently committed last week.
28260 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
28263 - Added new IsRecreating and ParentIsRecreating properties to
28264 allow testing if RecreateHandle has been called on ourselves
28265 or one of our parents
28266 - WndProc(WM_DESTROY): If our control handle is being recreated
28267 we immediately need to create the handle when receiving the
28268 destroy, that way our child windows find a valid parent handle
28269 when they themselves are being recreated upon WM_DESTROY receipt
28270 (fix for bug #77654 part 1)
28272 - DestroyWindow: WM_DESTROY must be sent to our own window before
28273 notifying any child windows. MS documents that child windows
28274 are still valid when WM_DESTROY is received. (Control now relies on
28276 - Added some fine-grain debug options
28278 2006-03-06 Jackson Harper <jackson@ximian.com>
28280 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28281 box and base calculations off this.
28282 * MdiChildContext.cs:
28283 * MdiWindowManager.cs: Don't need to ensure scrollbars here
28286 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
28288 * Splitter.cs: In situations where the affected control is added
28289 to the parent's control list after the splitter, we would not
28290 populate affected. Now we try populating it on mousedown, if
28291 it's not already set, and force it to be re-set whenever our
28294 2006-03-03 Matt Hargett <matt@use.net>
28296 * Control.cs: implement Control.Padding
28297 * Padding.cs: -Padding.All returns -1 when constructing with the
28298 implicit default ctor
28299 -Padding.ToString() matches MS.NET
28300 * ContainerControl.cs: implement
28301 ContainerControl.AutoScaleDimensions
28302 * ListControl.cs: implement ListControl.FormattingEnabled
28303 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28305 * TabPage.cs: Implement UseVisualStyleBackColor.
28306 * PictureBox.cs: Implement PictureBox.InitialImage.
28308 2006-03-03 Mike Kestner <mkestner@novell.com>
28310 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28311 event declarations to proxy to base event.
28312 * ListViewItem.cs: update to use ItemControl.
28313 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28314 * ThemeWin32Classic.cs: update to new ListView theme API and fix
28315 column header label rendering for 0 width columns.
28317 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
28319 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28320 that causes the control to be created. Fixes #77476.
28322 2006-03-02 Jackson Harper <jackson@ximian.com>
28324 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28327 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
28329 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28330 passed in for the EventArgs (fixes #77690)
28332 2006-03-01 Jackson Harper <jackson@ximian.com>
28334 * ScrollBar.cs: Refresh afterbeing resized.
28336 2006-02-28 Mike Kestner <mkestner@novell.com>
28338 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28339 Clean up a tracker compile warning.
28340 * MenuItem.cs: add internal PerformPopup method.
28343 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28345 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28346 implicit expose) when the text is set to null
28348 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28350 * RichTextBox.cs (FlushText): When newline is true, we always
28351 need to split the line, even if no text is on it and we may
28352 never eat newlines. (Fixes #77669)
28354 2006-02-28 Mike Kestner <mkestner@novell.com>
28356 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
28357 and set Selected instead.
28358 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
28361 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
28363 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28365 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
28368 - Got rid of the panel. All controls are now directly added to
28370 - It is now possible to set a font with the Font property
28371 - MinSize and MaxSize property do now what they should
28372 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28373 - Searching and selecting a font with the font textbox works now,
28374 the same applies to the style and size textbox
28375 - Draw the correct 3D border in the example panel
28376 - Fixed a little mem leak (unused fonts didn't get disposed)
28377 - Many other internal updates/rewrites...
28380 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28383 - InsertRTFFromStream: Added 'number of characters inserted' argument
28384 - set_SelectedRTF: Now using the number of characters to calculate
28385 the new location for the selection and cursor (x/y cannot be used
28386 due to potentially already wrapped text)
28388 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28390 * TextControl.cs: Added property and implemented means to allow
28391 disabling recalculation of a document (can be used to speed up
28392 multiple inserts and is needed to make RTF inserts predictable, see
28394 * RichTextBox.cs: Using the new NoRecalc property of Document to
28395 keep x/y insert locations predictable. Also makes it faster inserting
28396 large chunks of RTF
28398 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
28400 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28401 it's easier for a child control to handle the other messages without
28402 having to duplicate the special functionality
28404 - WndProc: Removed calling base handler for WM_KEYDOWN and added
28405 code to handle processing the key ourselves, in order to get
28406 access to the result of KeyEventArgs.Handled. We now only call
28407 ProcessKey if they key hasn't been handled already. Fixes #77526.
28408 - set_Text: If null or empty string is given, just clear the
28409 document. Fixes part of #77526
28411 2006-02-27 Jackson Harper <jackson@ximian.com>
28413 * SizeGrip.cs: Paint the background color before painting the grip
28414 so things look right.
28415 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28417 2006-02-27 Mike Kestner <mkestner@novell.com>
28420 - Restructure layout and invalidation model to remove a ton of
28421 flicker from the control and speed up performance in general.
28422 - Add manual column resize, flickers like crazy, but I already have
28423 some ideas on how I'll fix that. (#76822)
28424 - Merge the three Icon-based views into a single layout method.
28425 - Move item selection interaction logic from the item since
28426 interaction with the collections is more appropriate to the view.
28427 - Deselection on non-item clicks.
28429 - Encapsulate most of the layout. Add some internal props to trigger
28430 layout. Move to a model where Items invalidate themselves instead
28431 of just invalidating the whole control every time something changes.
28432 - Invalidate on Text/Caption changes.
28433 - switch to an offset based layout model to avoid having to absolute
28434 position every element on item moves.
28435 - correct checkbox layout to conform to MS layout.
28436 * ThemeWin32Classic.cs:
28437 - refactor some column header drawing code.
28438 - fix string justification for column headers (#76821)
28439 - make SmallIcon labels top justified for compat with MS impl.
28440 * ThemeClearlooks.cs:
28441 - adjust to new ListViewItem internal checkbox bounds api.
28443 2006-02-27 Jackson Harper <jackson@ximian.com>
28445 * Control.cs: Change where implicit controls fall in the zorder.
28446 They are now on top of all children.
28447 - Synced AddImplicit code with Add
28448 - Removed unused enumerator.
28449 * SizeGrip.cs: Remove the TODO as its been TODONE.
28451 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28453 * TextControl.cs(Insert): Combine the last lines unless the insertion
28454 string ends with \n\n, otherwise we leave one line too many (Fixes
28455 something I noticed with the testapp for #77526; the bug itself was
28456 already fixed in the previous checkin)
28458 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
28461 - SelectionColor and SelectionFont methods no longer set absolute
28462 styles. Instead, the keep font or color respectively (This
28463 resolves a long-standing FIXME in the code)
28464 - When flushing RTF text, the insert code now considers text trailing
28465 behind the insertion point (Fixes the bug where when replacing
28466 the selected text via SelectedRTF the remainder of the line behind
28467 the selection would stay on the first insertion line)
28469 - AppendText now updates the selection points after inserting text
28470 - AppendText now ensures that the last tag (sometimes 0-length) of
28471 the document is used for the style information (Fixes part of
28474 - Created new FontDefiniton class to allow describing partial style
28476 - StreamLine() now takes a lines argument, to allow it to decide
28477 whether an encountered zero-length tag is the last in the document
28478 (which must be kept to not loose the font/color contained in it,
28480 - Created Combine() and Split() methods for Marker structs, to
28481 support marker updates due to reformatted documents (soft line
28483 - Implemented Document.CaretTag setter
28484 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28485 of the last line (Not the cause, but also exposed by bug #77220)
28486 - Added LineTag argument to InsertString method, to allow callers
28487 to force a certain tag to be used (required to force use of the
28488 trailing zero-length tag of a document)
28489 - Now updating markers in Combine(), to avoid stale tag markers
28490 - Added some method descriptions to aid maintenance
28491 - Implemented new FormatText concept, allowing additive/subtractive
28492 formatting by only specifying the components that are to be
28493 changed. This was needed for resolving the RTB.SelectedColor/
28494 RTB.SelectedFont fixmes
28495 - Added Break() support method to allow breaking up linetags (used
28496 for partial formatting)
28497 - Added GenerateTextFormat() method. It is used for partial
28498 formatting and allows to generate a full font/color from given
28499 attributes and an existing tag.
28501 2006-02-26 Jackson Harper <jackson@ximian.com>
28503 * XplatUIX11.cs: Use the correct caption height.
28504 - Translate hittest coordinates to screen coords to match MS.
28505 * XplatUIWin32.cs: When we create MDI windows we need to reset
28506 some of the style flags, so we get a nice blank window, and can
28507 draw all the decorations ourselves.
28508 - Set a clipping rectangle on the non client paint event, the
28509 window manager drawing code needs one.
28510 * Form.cs: The window manager needs to know when the window state
28512 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28513 don't need to factor in border and title sizes in these
28514 methods. TODO: Remove the args and fix the call points.
28515 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28517 - Let the driver set the cursors.
28518 - Improve active window handling
28519 - Correct sizes for title bars and buttons.
28520 - Match MS drawing better
28521 * MdiWindowManager.cs: We don't need to handle border style
28522 updates specially anymore.
28523 - Check for scrollbars when windows are done moving
28524 - Handle Active properly.
28525 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28526 correctly. I am spewing the exception though, so we don't hide the
28529 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
28531 * DataGridViewRowPostPaintEventArgs.cs,
28532 DataGridViewCellPaintingEventArgs.cs,
28533 DataGridViewRowCollection.cs,
28534 DataGridViewRowPrePaintEventArgs.cs,
28535 DataGridViewCell.cs: Clear a few warnings and implement a few
28536 exceptions that should be thrown.
28538 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28540 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28541 'inheriting' our parent's (non-default) cursor. (Part of
28542 the fix for #77479)
28544 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28546 * XplatUIX11.cs: Fixed cast to make csc happy
28548 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
28550 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28551 it's for the client area (part of fix for #77479 and needed
28552 for MDI window cursor handling)
28554 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28555 the appropriate default cursors and also passing the message
28556 up the parent chain
28557 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28558 for non-client areas
28560 2006-02-15 Jackson Harper <jackson@ximian.com>
28562 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28563 is a real MDI window
28565 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
28567 * X11DesktopColors.cs: Instead of checking the desktop session
28568 string for "KDE" check if it starts with "KDE"
28570 2006-02-10 Jackson Harper <jackson@ximian.com>
28572 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28575 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28577 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28580 - Got rid of the panel. All controls are now directly added to
28582 - Changed to mono coding style
28584 2006-02-10 Jackson Harper <jackson@ximian.com>
28586 * InternalWindowManager.cs: We don't need the set visibility to
28587 false hack anymore now that peter has written beautiful shutdown
28590 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
28592 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28593 where already explicitly destroyed
28595 2006-02-10 Jackson Harper <jackson@ximian.com>
28597 * MdiClient.cs: Handle the case where windows are too high or to
28598 the left and we need scrollbars.
28600 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
28602 * MimeIcon.cs: Added some icons
28605 - Got rid of the panel. All controls are now directly added to
28607 - Changed to mono coding style
28608 - On Linux "My Computer" and "My Network" will now show some
28609 more usefull information. A new class, MasterMount, gathers
28610 this information from /proc/mount. Updated MWFFileView to make
28611 use of this information
28612 - Fixed a bug that caused FileDialog to crash when
28613 ".recently_used" file had a zero size
28614 - FilterIndex does now what it should
28616 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28619 2006-02-09 Jackson Harper <jackson@ximian.com>
28621 * ComboBox.cs: Don't touch if null.
28623 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
28625 * Cursor.cs: 64bit safeness fix
28626 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28628 2006-02-09 Jackson Harper <jackson@ximian.com>
28630 * Form.cs: If a form is made into an MDI form update the styles so
28631 all the props can get set correctly.
28632 - Kill the mdi_container when we dont need it anymore.
28633 * InternalWindowManager.cs: Add missing NOT
28635 2006-02-08 Jackson Harper <jackson@ximian.com>
28637 * InternalWindowManager.cs: Respek clipping when drawing MDi
28640 2006-02-08 Jackson Harper <jackson@ximian.com>
28642 * Hwnd.cs: Add bits to track non client expose events.
28643 * XplatUIX11.cs: Track non client expose events on the hwnd. This
28644 gives us a proper invalid rect and will allow for some nice
28645 optimizations with NC client drawing
28646 - MDI windows are children windows, so move their style handling
28647 into the child window block.
28648 * InternalWindowManager.cs: Remove a state reset that was
28649 getting invoked at the wrong time. Fixes managed windows getting
28650 into a 'stuck' captured state.
28652 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28654 * TextControl.cs (Document.ctor): Now initializing
28655 selection_anchor. Fixes #77493
28657 2006-02-07 Jackson Harper <jackson@ximian.com>
28659 * TrackBar.cs: The increment/decrements were backwards.
28661 2006-02-07 Mike Kestner <mkestner@novell.com>
28663 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28664 to the instance itself.
28666 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
28668 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28669 on ulongs and pointers, the size differs between 32bit and 64bit
28672 2006-02-07 Mike Kestner <mkestner@novell.com>
28674 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28675 for 64 bit platforms to work around a metacity bug.
28677 2006-02-07 Jackson Harper <jackson@ximian.com>
28679 * TrackBar.cs: Process the input keys we need, and hookup to
28680 KeyDown instead of using WndProc, so we get key messages.
28682 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28684 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28686 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28687 we need to translate the XdndVersion atoms array before sending it
28689 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
28692 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28693 number of bits for the property, not the number of bytes. The
28694 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28695 but would not crash since it specified 8 bits instead of 4 bits)
28696 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28697 defined as XID -> long in the C headers)
28698 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
28699 references since those are now IntPtr to begin with
28700 - Switched all Atom.XXX 'int' casts to IntPtr casts
28701 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28702 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28703 - Added XChangeActivePointerGrab DllImport (for X11DnD)
28705 - Changed 'int' type for Atoms in XEvent structures to IntPtr
28706 - Changed atom in HoverStruct to be IntPtr
28708 - Removed local DllImports, switched code to use those from XplatUIX11
28709 - Removed/fixed casts related to the switch of Atom to be a IntPtr
28711 2006-02-06 Mike Kestner <mkestner@novell.com>
28713 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
28714 method signatures in the import region. There may still be some
28715 lingering struct marshaling issues, as I didn't drill down into those.
28718 2006-02-06 Jackson Harper <jackson@ximian.com>
28720 * ComboBox.cs: Dont manually set the top_item, this is computed
28721 when the scrollbar position is set.
28723 2006-02-06 Mike Kestner <mkestner@novell.com>
28725 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28726 startup crashes on amd64. There's other fixes needed. All pinvoke
28727 usage of Atom needs to be mapped to IntPtr for example. And there are
28728 likely other int/long issues to be addressed.
28730 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
28732 * FileDialog.cs: One more...
28734 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28736 * FileDialog.cs: Next try
28738 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28740 * FileDialog.cs: First part of fix for #77464
28742 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
28744 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28745 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28746 AcceptButton border drawing.
28748 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28750 * Form.cs: Moved positioning of form after auto scaling is applied,
28751 otherwise it would possibly use wrong form size.
28753 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
28755 * Control.cs (RecreateHandle): No need to re-create any child
28756 controls, the child windows will get destroyed automatically by
28757 the windowing system or driver, and re-created when the handle
28758 is being accessed the first time. Fixes #77456
28759 * Form.cs: No longer setting the form to closing if the handle is
28760 being recreated. This seems like the right thing to do, don't
28761 have a bug or testcase for this, though.
28763 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28765 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28766 controls to avoid unwanted side effects
28768 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28771 - ScaleCore needs to scale the bounds, not the ClientSize of the
28772 control. Fixes #77416.
28773 - DefaultSize is 0,0 for control
28775 - DefaultSize is 100, 20
28776 - SetBoundsCore: Now enforcing the height, no matter if the provided
28777 height is more or less than the preferred one, as long as AutoSize
28779 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28781 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
28784 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28785 call unless both performLayout is true *and* we have a pending
28787 - ResumeLayout: MS does not completely nest Suspend and Resume,
28788 they bottom out at 0, fixed our code to match that.
28789 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28790 SetBoundsCore, we were updating even when we shouldn't. This fixes
28791 swf-anchors mis-anchoring when resizing the app fast and lots.
28792 - UpdateDistances: Now only setting the left and top distance if
28793 we have a parent and are not suspended, this is based on
28794 a suggestion by Don Edvaldson in bug #77355.
28795 - OnVisibleChanged: Fixed logic when to create the control. We may
28796 not create the control if we have no parent or if it's not visible;
28797 switched to using Visible property instead of is_visible field
28798 since the property also considers parent states. This fixes a bug
28799 when starting Paint.Net
28801 2006-02-02 Jackson Harper <jackson@ximian.com>
28803 * Form.cs: If the forms handle hasn't been created yet don't call
28804 into xplatui to make it top most, just set the topmost flag on the
28805 form in CreateParams
28806 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28808 2006-02-01 Jackson Harper <jackson@ximian.com>
28810 * ScrollableControl.cs: Refactored the Recalculate method a
28811 little, this wasn't handling all the variants of bottom and right
28812 bars needed to be added and added/removed based on their
28813 counterparts being added/removed (which changes the drawable
28814 size). Also we special case client widths and heights of 0 and
28815 don't add the scrollbar for those.
28817 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
28820 - Added method to get AbsoluteGeometry(); currently unused, but might
28821 be used in the future, if we try again to figure out toplevel
28822 coordinates with some more crappy window managers
28823 - Added FrameExtents() method to retrieve the WM set decoration size
28824 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
28825 to deal with at least KDE, FVWM and metacity (Fixes #77092)
28827 - Added whacky_wm tracking var for metacity
28828 - Added logic to have default menu height if the actual menu height
28829 has not yet been calculated (part of fix for #77426)
28830 * Form.cs: Keep track whether client size has been set and re-set
28831 it if a menu is added/removed afterwards (Fixes #77426)
28833 2006-01-31 Jackson Harper <jackson@ximian.com>
28835 * Control.cs: When a new Site is set on the component attempt to
28836 pull the AmbientProperties from it.
28838 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
28840 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28841 in the background of the owning form. Fixes #77332
28843 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28845 * MimeIcon.cs: Fix for #77409
28847 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
28849 * XplatUIX11GTK.cs: Initial import
28851 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
28853 * FixedSizeTextBox: fixes class signature
28855 2006-01-30 Jackson Harper <jackson@ximian.com>
28857 * FixedSizeTextBox.cs: New internal class that represents a
28858 textBox that will not be scaled.
28861 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
28864 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28866 * XplatUIX11.cs: Retrieve default screen number instead of
28867 assuming 0. Attempted fix for #77318
28869 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
28872 - GetWindowPos: When a window is parented by FosterParent, use
28873 the desktop instead of FosterParent as the base to get coordinates
28874 - CreateWindow: Don't make FosterParent the parent window for Popups
28875 if we don't want a taskbar entry, Popups automatically don't get one
28876 * Hwnd.cs: Need to call remove to actually remove the key from the
28879 2006-01-30 Mike Kestner <mkestner@novell.com>
28881 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
28883 2006-01-30 Jackson Harper <jackson@ximian.com>
28886 * TreeNode.cs: Raise events no matter how the treenode is
28887 checked. Patch by Don Edvalson.
28889 2006-01-30 Jackson Harper <jackson@ximian.com>
28891 * TreeNode.cs: Signature fix.
28893 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
28895 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
28897 2006-01-20 Mike Kestner <mkestner@novell.com>
28899 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
28900 event forwarding when menus are active.
28901 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
28902 Most of the patch is pdb's with a little rework.
28904 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28906 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
28907 Removed GetMenuDC and ReleaseMenuDC methods; replaced
28908 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
28909 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
28910 * InternalWindowManager.cs: Added use of PaintEventStart/End to
28911 handling of WM_NCPAINT message, now passing the PaintEventArgs to
28912 the PaintWindowDecorations method
28913 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
28914 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
28915 * MenuAPI.cs: Made tracker window invisible
28917 - Removed GetMenuDC and ReleaseMenuDC methods
28918 - Implemented the client=false path for PaintEventStart and
28921 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28923 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
28924 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
28927 - MaximizeBox, MinimizeBox: Recreate the handle when setting
28929 - CreateParams: Reworked the styles to match MS look'n'feel,
28930 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
28931 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
28933 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28935 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
28936 window is not mapped, since otherwise every form that's being
28937 created is considered minimized, which is wrong.
28938 * Form.cs: Catching the exception and returning our internal value
28941 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
28943 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
28944 SetWindowMinMax() to have means to tell the driver about the minimum,
28945 maximum and maximized state window sizes. (Part of the fix for #76485)
28947 - Implemented tracking of minimum and maximum window size, now calling
28948 new SetWindowMinMax() driver method to tell the driver (Part of the
28950 - Finished handling of WM_GETMINMAXINFO method, now setting all values
28951 (Completes fix for #76485)
28952 - Calling new SetWindowMinMax driver method when the handle for a
28953 form is created, to make sure the driver knows about it even if
28954 the values have been set before the window was created
28955 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
28956 to avoid messing up our anchoring calculations (partial fix
28958 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
28960 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
28961 - Improved GetWindowState() to detect 'Minimized' state on Metacity
28962 (and presumably other freedesktop.org compliant WMs). Left the
28963 assumption unmapped=minimized, needed for SetVisible to work.
28964 - Now setting the window state when creating windows
28965 - Fixed SetVisible to consider/set the window state when mapping
28966 a Form. We cannot set the state before it's mapped, and we cannot
28967 use Form.WindowState once it's mapped (since it would ask the
28968 driver and get 'normal'. Therefore, we grab the state before
28969 mapping, map, and then set state.
28970 - Implmemented SetWindowMinMax method; Metacity does not seem to
28971 honor the ZoomHints, though.
28973 - Removed MINMAXINFO (moved to XplatUIStructs)
28974 - Added SetWindowMinMax stub (on Win32 the only way to set that
28975 information is in response to the WM_GETMINMAXINFO message, which
28976 is handled in Form.cs)
28977 - Added logic to SetVisible to set the proper window state when a
28978 form is made visible (fixes #75720)
28980 2006-01-26 Jackson Harper <jackson@ximian.com>
28982 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
28983 same way we handle them with Invoke.
28985 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
28988 - Added tracking of window state so CreateParams can return
28989 the appropriate style
28990 - Moved setting of WS_CAPTION style in CreateParams to allow
28991 styles without caption
28992 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
28993 control if the TextBox property is accessed. Fixes #77345
28995 - get_Created: now uses is_disposed and is_created to determine
28996 return value (suggested by Jackson)
28997 - CreateHandle: No longer exits if the handle is being recreated
28998 - RecreateHandle: If the handle is not yet created call the
28999 appropriate method to create either control or handle. If the
29000 control is already created CreateHandle will simply exit instead
29001 of just creating the handle
29002 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29003 now SendMessage WM_DESTROY directly to the control when DestroyWindow
29006 - When DestroyWindow is called, instead of waiting for the
29007 DestroyNotification from X11, we directly post it to the WndProc
29008 and immediately dispose the hwnd object.
29009 Same applies to DestroyChildWindows, and this obsoletes the
29010 expose_pending tracking. Contrary to Win32 behaviour we destroy our
29011 child windows before our own, to avoid X11 errors.
29012 - Removed the direct sending of WM_PAINT on UpdateWindow
29014 - Reworked DoEvents and GetMessage to allow access to internal queue
29015 even when trying non-blocking access to the queue. Fixes #77335.
29016 Based on a patch suggestion by Don Edvalson. The new private
29017 GetMessage can now also be used as a backend for a PeekMessage
29019 * XplatUI.cs: Improved debug output for CreateWindow
29021 2006-01-25 Jackson Harper <jackson@ximian.com>
29023 * Help.cs: Allow param to be null. Patch by Don Edvalson.
29025 2006-01-24 Jackson Harper <jackson@ximian.com>
29027 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29028 when we have a MaxDropItems lower then the selected index.
29030 2006-01-24 Jackson Harper <jackson@ximian.com>
29032 * Control.cs: Don't allow selection of non visible controls, allow
29033 selection of controls without parents.
29035 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
29037 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29038 * DataGridDrawingLogic.cs: Add editing row only when is necessary
29040 2006-01-23 Jackson Harper <jackson@ximian.com>
29042 * UpDownBase.cs: Make the textbox handle all the selection and
29043 tabbing. This fixes tabing to updown controls.
29045 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
29047 * TextBoxBase.cs: fixes exception thown the object was null
29049 2006-01-23 Jackson Harper <jackson@ximian.com>
29051 * ButtonBase.cs: Just use the base CreateParams. They set
29052 visibility and enabled correctly.
29055 * MonthCalendar.cs: Lets let the base set as much of the
29056 createparams as possible so we don't have duplicate code all over
29059 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
29061 * ThemeGtk.cs: Added TrackBar and some experimental code to
29062 get double buffering back
29064 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
29066 * DataGrid.cs: Allows row number set internally higher than the last
29067 when creating a new row. Restores the editing functionality.
29069 2006-01-20 Mike Kestner <mkestner@novell.com>
29071 * MimeIcon.cs: delay Image creation until the icons are accessed
29072 instead of creating 190 scaled images on GnomeHandler startup.
29074 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
29076 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29077 first call base before processing the event. Fixes #77279
29079 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
29081 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29082 that the stride for the GDI bitmap would match the stride of
29085 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
29087 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29089 2006-01-19 Jackson Harper <jackson@ximian.com>
29091 * ComboBox.cs: Hookup the text controls keydown event so we get
29092 those when the text control has the focus.
29094 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29096 * Label.cs: Now using the base events instead of defining new ones;
29097 this allows us to just call the base properties without having to
29098 duplicate all base property logic
29100 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29102 * Label.cs: A label by default is not a tabstop (Fixes one of our
29103 failing nunit tests)
29105 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29107 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29108 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29110 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
29112 * Cursor.cs: Reimplemented creating cursor bitmaps without using
29113 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29116 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
29117 constructor creates images that can't be saved. Part of the fix
29119 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29120 - SetWindowState: Switched ShowWindow flags (part of an upcoming
29121 bug fix for handling window state in forms properly)
29123 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29125 * ThemeGtk.cs: Simplify ScrollBar drawing
29127 2006-01-18 Jackson Harper <jackson@ximian.com>
29129 * Splitter.cs: Set the default dock style for the splitter control
29130 in the constructor.
29132 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29134 * ThemeGtk.cs: Corrected StateType and ShadowType for
29137 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29139 * Control.cs: Make use of Theme.DoubleBufferingSupported
29141 - Added drawing for flat style buttons
29142 - Added ScrollBar drawing
29144 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
29146 * ThemeClearlooks.cs: Removed some unneeded code.
29147 * ThemeGtk.cs: First part of ThemeGtk enhancements.
29149 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
29151 * LinkLabel.cs: We need to update the hover drawing when
29152 leaving the control as well.
29154 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
29156 * DataGrid.cs: Clicking on non empty areas in the columns
29157 area was giving an exception
29159 2006-01-17 Jackson Harper <jackson@ximian.com>
29161 * ThemeWin32Classic.cs:
29162 * ListView.cs: Do not draw/clip the headers when the header style
29165 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
29167 * DataGrid.cs: Fixes 77260
29169 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
29171 * DataGrid.cs: Clicking on a column on a empty grid was giving
29174 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
29176 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29177 or any keypress will crash the grid.
29179 2006-01-17 Mike Kestner <mkestner@novell.com>
29181 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29182 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
29183 invisible/previously-visible items.
29186 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
29188 * ThemeClearlooks.cs:
29189 - Added CL_Draw_Button method; now other theme controls that are
29190 not derived from button or do not have a button can draw buttons
29192 - Updated ComboBox drawing
29193 - Beautified RadioButton drawing
29194 - Corrected drawing of bottom and left tabs
29195 - Beautified DateTimePicker and MonthCalendar
29196 - Added CPDrawButton and CPDrawRadioButton
29198 2006-01-16 Jackson Harper <jackson@ximian.com>
29200 * ComboBox.cs: Set the initial value of the scrollbar to the
29201 current index. Reduce the numbers of refreshs and IndexOfs called.
29203 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
29205 * FileDialog.cs: When the file listview is focused hitting the
29206 backspace key moves the fileview to the parent directory
29208 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29211 - Added RecreateHandle call when changing taskbar visibility to
29212 trigger reparenting in Win32 driver (Fixes #75719)
29213 - If a window has minimize or maximize buttons, it cannot have
29216 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29217 the toplevel form with FosterParent (A toolwindow not on the
29218 taskbar) (Fixes #75719)
29219 - Made FosterParent a toolwindow
29221 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
29223 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29225 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
29227 * ToolTip.cs: If SetToolTip is called from a control and the mouse
29228 is currently over that control, make sure that tooltip_window.Text
29231 2006-01-13 Mike Kestner <mkestner@novell.com>
29233 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29235 2006-01-13 Jackson Harper <jackson@ximian.com>
29237 * TreeView.cs: On MS GetNodeAt never actually factors in the X
29238 value passed. Also redraw the selected node when we recieve
29239 focus, so tabbing between trees works correctly.
29241 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
29243 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29244 ~/.gconf/%gconf-tree.xml, so use
29245 .gconf/desktop/gnome/interface/%gconf.xml
29247 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29249 * TextControl.cs: Draw text in gray if control is disabled
29251 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29253 * TreeView.cs: Draw the focus rectangle outside the highlight, to
29254 make sure it's always visible. Fixes #76680.
29256 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
29258 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29260 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
29262 * PageSetupDialog.cs: Added.
29263 * PrintDialog.cs: Attributes.
29264 * PrintPreviewControl.cs: Updates.
29265 * PrintPreviewDialog.cs: Updates.
29267 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29269 * Control.cs: Undid my selection check fix, since it's not needed
29271 - Now considering the presence of hscroll/vscroll when sizing
29272 vscroll/hscroll respectively. Fixed bug #77077
29273 - Added Left/Up/Down/Right to IsInputKey list to prevent
29274 ContainerControl from stealing them. This fixes what I broke
29275 with my last checkin.
29277 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29279 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29280 I finally understand how the property can be set without a setter :-)
29282 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29285 - Switched RunLoop to use static Message.Create to create a
29287 - Added PreProcessMessage call in runloop for keyboard events; this
29288 is part of the fix for #77219, I overlooked this originally in the
29289 MSDN doc for PreProcessMessage
29291 - Removed call to PreProcessMessage from handling of keyboard
29292 messages; it's supposed to be done in the message pump
29293 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29294 per MSDN documentation.
29295 - IsInputChar: All chars are input chars by default; removed the
29296 parent calling chain, MS does not document that
29297 - PreProcessMessage: If IsInputChar is true, we want to return false
29298 to allow dispatching of the message
29299 - When selecting the next control, now also check that we're not
29300 selecting ourselves again and therefore return a false positive.
29302 - Tried to match return values for IsInputKey and ProcessDialogKey
29303 to what MS returns; moved processing of our special keys outside
29304 ProcessDialogKey since MS does not seem to return true on those.
29305 - Moved code that previously was in ProcessDialogKey into new private
29306 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29307 - Reworked handling of WM_CHAR to not have to duplicate code from
29308 Control.cs anymore, instead we simply call down to base.
29310 2006-01-12 Jackson Harper <jackson@ximian.com>
29312 * ComboBox.cs: We always need to refresh the text area when
29313 EndUpdate is called. Fixes the combobox in the file dialog.
29314 * Control.cs: Don't create the creator_thread until the controls
29315 handle is created. Also in InvokeRequired we check if the
29316 creator_thread is null. This gives the effect of InvokeRequired
29317 returning true if the controls handle is not created yet, and
29320 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29323 - Added StartLoop() driver method. This is used to allow drivers to
29324 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29325 loop for a particular thread
29326 - Added EndLoop() driver method. This is called once the message
29327 pump for the thread is shut down
29328 - Added SupportsTransparency method to allow the driver to indicate
29329 opacity support for windows
29331 - Removed TODO attribute, completed AllowTransparency property
29332 - Added documented logic to Opacity
29333 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29334 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29335 versions of CompatibleTextRendering
29336 * X11Structs.cs: Added opacity atom to our atom enumeration
29337 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29338 of a form might be set before it's reparented by the WM, and we need
29339 the opacity value without calling up to Form)
29340 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
29341 SupportsTransparency() driver methods
29342 * Application.cs: Now calling StartLoop and EndLoop driver methods
29344 - Added opacity atom registration
29345 - Added StartLoop()/EndLoop() methods. They're empty right now but
29346 will need to get implemented when we switch to a per-thread queue
29347 - Implemented SupportsTransparency() method
29348 - Implemented SetWindowTransparency() method
29349 - Added support for setting the opacity value when a window is
29350 reparented (since the opacity needs to be set on the WM frame)
29351 * XplatUIOSX.cs, XplatUIWin32.cs:
29352 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29354 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
29356 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29358 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
29360 * FileDialog.cs: Added ToolTip for MWFFileView
29361 * MimeIcon.cs: Rewrote GnomeHandler.
29362 - Get currently used gnome icon theme from
29363 ($HOME)/.gconf/%gconf-tree.xml
29364 - Make use of inherited icon themes
29365 - Support SVG icon themes like Tango via librsvg
29367 2006-01-12 Miguel de Icaza <miguel@novell.com>
29369 Revert's Jackson's revert which broke 2.0 builds. Fix both
29372 * Application.cs: Move the use_compatible_text_rendering outside
29373 the NET_2_0 define. If we ever need to use the
29374 use_compatible_text_rendering on the individual controls they will
29375 access the variable from the common shared code paths.
29377 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
29380 - Added more granular debug options
29381 - Added method to print both window text and id
29382 - Switched debug output to use new Window() debug method
29383 - Added IsEnabled() driver method
29384 - Added EnableWindow() driver method
29386 - Removed end_modal; no longer needed, new loop handles termination
29387 via 'closing' variable
29388 - If form is modal, setting DialogResult will now initiate loop
29389 termination via 'closing' variable
29390 - Added support for is_enabled/WS_DISABLED to CreateParams
29391 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29393 - Removed code that's now in RunLoop from ShowDialog()
29394 - Added various documented sanity checks to ShowDialog()
29395 - Added handling of WM_DESTROY message; we set 'closing' on getting
29396 the message to indicate the message pump to terminate
29397 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29398 send by the Application.ExitThread method. (We send the message
29399 to destroy the window after all other events have been
29400 processed through the queue, instead of destroying the handle
29402 - Moved code from Close() method to WM_CLOSE handler; added logic
29403 to only send close-related events if the form is not displayed
29405 * Splitter.cs (..ctor): Fixed typo in resource name
29407 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29409 - set_Cursor: Now only setting calling into XplatUI if the handle for
29410 the control is already created; this avoids implict handle creation
29411 or crashes if it's not created
29412 - set_Enabled: Now setting the enabled state via the new driver method
29413 instead of just tracking it
29414 - CreateParams: Added logic to set WS_DISABLED based on enabled state
29415 - CreateControl: Reordered event firing and method calls to more
29416 closely fire events in the order MS does. Now setting the
29417 enabled state in the driver when creating the control.
29418 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29420 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29421 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
29422 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29424 - Added tracking of window enabled state (get_Enabled/set_Enabled)
29425 - Added EnabledHwnd property to easily allow a driver to find the
29426 handle of the first enabled window in the parent chain (this is
29427 used by drivers to pass up input events of disabled windows)
29428 * XplatUIDriver.cs: Added IsEnabled() method
29430 - Removed crude and obsolete exiting tracking variable
29431 - Removed internal ModalRun(); replaced by RunLoop()
29432 - Implemented private CloseForms() method to allow closing all
29433 windows owned by a particular (or all) threads
29434 - Exit() now properly closes all windows without forcing the message
29436 - Removed obsolete InternalExit() method
29437 - Changed Run() methods to use new RunLoop() message pump
29438 - Implemented new RunLoop() method for both modal and non-modal forms
29440 - get_CreateParams: Added setting of WS_DISABLED
29441 - Simplified ShowDialog(); now all the work is done in RunLoop(),
29442 invoked via Form.ShowDialog()
29443 * NativeWindow.cs: We don't remove the window from the collection when
29444 the handle is destroyed; there might still be messages for it in the
29445 queue (mainly the resulting WM_DESTROY); instead it will be removed
29446 when Control calls InvalidateHandle in the WM_DESTROY handler
29448 - CreateWindow: Added logic to handle the WS_DISABLED window style
29449 - EnableWindow: Implemented based on Hwnd.Enabled
29450 - GetMessage: Reset PostQuitState so the method can be called again
29451 - Implemented support for disabled windows (passing messages to the
29452 first enabled parent) in handling all input messages
29453 - Added optimizations for handling Expose events
29454 - Implemeted new driver method IsEnabled()
29455 - Now always resetting paint pending tracking vars when we start paint
29456 - Re-implemented UpdateWindow via just sending a WM_PAINT message
29457 * XplatUIOSX.cs: Added IsEnabled method stub
29458 * XplatUIWin32.cs: Implemented new IsEnabled() method
29460 2006-01-11 Jackson Harper <jackson@ximian.com>
29462 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29463 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29464 variables a little.
29465 * ColorDialog.cs: Clear out the old form before adding the new
29468 2006-01-11 Jackson Harper <jackson@ximian.com>
29470 * X11Dnd.cs: Make sure to add all the text formats when adding
29471 strings to the data object.
29472 * TreeNodeCollection.cs: When adding to a sorted tree we need to
29473 do some redrawing too. Also change the UpdateNode to an
29474 UpdateBelow so the newly added node gets painted.
29476 2006-01-11 Miguel de Icaza <miguel@novell.com>
29478 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29479 LinkLabel.cs, PropertyGrid.cs: Implement the
29480 UseCompatibleTextRendering property for 2.x
29482 * Application.cs (SetCompatibleTextRenderingDefault): Add.
29484 2006-01-11 Jackson Harper <jackson@ximian.com>
29486 * TreeView.cs: Use the property for setting the selected node so
29487 the correct events get raised.
29488 * TreeNode.cs: Update the tree when the fore/back colours of a
29491 2006-01-10 Jackson Harper <jackson@ximian.com>
29493 * TreeView.cs: Allow setting SelectedNode to null.
29495 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29497 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29499 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29501 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29503 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29505 * PrintDialog.cs: Added attributes and set default property values.
29507 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29509 * PrintControllerWithStatusDialog.cs:
29510 Added PrintControllerWithStatusDialog.
29512 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29514 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29515 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29517 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
29519 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29521 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29523 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29524 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29526 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29528 * MimeIcon.cs: Added internal class SVGUtil.
29530 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
29532 * FileDialog.cs: Don't crash if there are two files with the
29533 same name but different locations.
29535 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
29537 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29538 dates across multiple month grids. Used to not highlight entire
29539 month, but does now.
29541 2006-01-06 Jackson Harper <jackson@ximian.com>
29543 * MonthCalendar.cs: Removed DoEvents call to prevent a running
29544 message loop. Change timer intervals to numbers that seem more
29547 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
29549 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29550 object for location info since screen object is now implemented.
29552 2006-01-05 Jackson Harper <jackson@ximian.com>
29554 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29555 * AsyncMethodResult.cs: We no longer use a WeakReference for the
29556 AsyncMethodResult, this is because we ALWAYS want the
29557 ManualResetEvent to get set.
29558 * Control.cs: When disposing use an async invoke to call shutdown
29559 code, so that thigns don't block on the finalizer thread. Also
29560 check if we even have a message loop before trying to send
29561 messages, if we don't then don't bother sending messages.
29562 - No more weak references for async methods
29563 * XplatUIDriver.cs: No more weak references for async methods.
29565 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29567 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29568 returns two FontFamily with the same name
29570 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29572 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
29573 drawing disabled text. Instead using the ColorGrayText color
29575 2006-01-04 Jackson Harper <jackson@ximian.com>
29577 * TreeNode.cs: redraw the node when its image index is changed.
29579 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
29581 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29582 time I checked there are no others like it.
29584 2006-01-04 Jackson Harper <jackson@ximian.com>
29586 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29587 this gives the behavoir I was looking for.
29588 * Control.cs: Special case Invoking EventHandlers, this matches MS
29589 and fixes part of bug #76326.
29591 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29593 * ThemeClearlooks.cs, FileDialog.cs:
29594 - Reflect the latest Theme class changes
29595 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
29598 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
29600 * Theme.cs: Cache UI resource images and resize them if needed
29602 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29604 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29605 is called. This fixes the crash in Nexxia when setting the font
29606 attributes in the chat. [However, RTF needs a look-over to make sure
29607 that all SelectionXXX methods handle the special case that selection
29608 is empty and therefore the change must be applied to all text starting
29609 at the cursor/selection start]
29611 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29613 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29614 XplatUIOSX.cs: Added SendMessage and PostMessage methods
29615 * X11Keyboard.cs: Switched to new way of calling PostMessage
29617 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
29619 * Theme.cs: Added theme interface for images to allow the theme to
29620 control what images are used for things like FileDialog, MessageBox
29622 * MessageBox.cs: Now uses the new Theme icon/image interfaces
29624 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
29627 - Removed some dead code
29628 - Opening a recently used file does work now
29629 - Small UI enhancements
29632 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29634 * FileDialog.cs: Forgot too add __MonoCS__
29636 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
29638 * FileDialog.cs: We are able to read recently used files now let's
29639 go on and write them.
29641 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
29643 * FileDialog.cs: Breathe some life into "last open"/"recently used"
29645 * MimeIcon.cs: Do a check for the top level media type also
29647 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29649 * ThemeClearlooks.cs:
29650 - Added CPDrawStringDisabled
29651 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29652 some chars if the text doesn't fit into text_rect
29653 - DrawListViewItem: If View = View.LargeIcon center the image;
29654 rewrote the drawing of ListViewItem.Text if View =
29657 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
29659 * MimeIcon.cs: Use default KDE icon theme if there is no
29660 "48x48" directory for the current icon theme, fixes #77114
29661 * Mime.cs: Disable not working and actually not used code.
29662 * ThemeWin32Classic.cs:
29663 - Replace "new SolidBrush" in GetControlBackBrush and
29664 GetControlForeBrush with ResPool.GetSolidBrush
29665 - Changed DrawListViewItem from private to protected virtual
29667 - Added form.MaximizeBox = true
29668 - Don't throw an exception if there is a broken symbolic link
29670 2005-12-23 Jackson Harper <jackson@ximian.com>
29672 * TabControl.cs: Give the panels focus, keyboard navigation is
29673 fixed so this works correctly now.
29674 - We need these key events also.
29675 * ToolBar.cs: Remove some of the poor mans double buffering.
29677 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
29679 * ComboBox.cs: The internal TextBox now returns the focus.
29681 2005-12-23 Jackson Harper <jackson@ximian.com>
29683 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
29685 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29687 * Control.cs: Removed debug code
29688 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29691 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29693 * Control.cs: When creating the control, update the Z-order after
29694 all it's children are created, too. (Fixes nexxia not showing
29697 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
29699 * Control.cs: Do not update the anchoring distances if layout is
29700 suspended, instead do it once layout is resumed
29702 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29705 - After many hours of debugging, for both Jackson and
29706 myself, it turns out that it helps to set the parent of a control
29707 if you want to actually see it onscreen. In the spirit of that
29708 discovery, we're now setting the parent of the control and
29709 it's children when the control's handle is created. This fix
29710 will make Lutz Roeder's Reflector run happily.
29711 - now just creating the handle instead of the whole control when
29712 getting a graphics context for the control.
29714 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29716 * ScrollableControl.cs: When calculating the canvas, don't consider
29717 the scrollbar widths. Instead, predict if horizontal scrollbar
29718 will affect canvas when deciding on vertical display and vice versa.
29720 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
29722 * RichTextBox.cs: Set default RTF font for documents that don't
29723 have a font table (Fixes #77076)
29725 2005-12-22 Jackson Harper <jackson@ximian.com>
29727 * TextBoxBase.cs: It's difficult to do, but you can have an empty
29728 clipboard. This prevents a NullRef in that case.
29729 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29730 clipboard. PRIMARY is for the currently selected text only. (We
29731 should implement PRIMARY at some point.
29733 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29735 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29736 a Unicode function with a structure that was defined in Ansi way.
29739 2005-12-21 Jackson Harper <jackson@ximian.com>
29741 * StatusBar.cs: Statusbar handles its fore/back colours on it's
29742 on. Because thats how it rolls. (and this avoids it using ambient
29744 * ThemeWin32Classic.cs: Use the proper back color for filling.
29745 * Menu.cs: Use the system menu bar color for drawing menu
29746 bars. Using the window back color will bring ambient colours into
29749 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
29751 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29752 Bitmaps were created and not disposed.
29754 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29756 * Control.cs (CreateControl): Don't do anything if the control is
29757 already created, otherwise we'd fire the OnCreated event more than
29760 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29762 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29763 will always match. Instead return -1. Fixes #76464.
29765 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29767 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29768 neither the beginning nor the end of the line (Fixes bug #76479)
29770 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
29773 - ControlNativeWindow.ControlFromHandle(): Now handling situation
29774 where handle is invalid
29775 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29776 instead of slower linear search
29777 * NativeWindow.cs: Don't remove the window from the hashtable until
29778 after the driver has destroyed it (since the driver might use
29779 Control.FromHandle to lookup the control object
29780 * Hwnd.cs: Added DestroyPending property to track if a window is
29781 already destroyed as far as the driver is concerned and only hasn't
29782 yet notified the control
29784 - Activate(): Check if the window is still valid before using the
29786 - Implemented DestroyChildWindow() method to mark child windows as
29787 destroyed when a window is destroyed. This prevents situations
29788 where we might call an X method based on queued events for a
29789 window that already has been destroyed but we haven't yet pulled
29790 the destroy method from the queue.
29791 - Added a call to the new DestroyChildWindow() method to the drivers
29792 DestroyWindow code. Also now marking the destroyed window itself
29795 2005-12-20 Jackson Harper <jackson@ximian.com>
29798 * StatusBarPanel.cs: Don't calculate panel sizes on draw
29799 anymore. Just do them when needed, also track the rects of panels
29800 so that we can optimize refreshing more in the future.
29802 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
29804 * ColorDialog.cs: Fixed focus drawing in small color controls
29806 2005-12-19 Jackson Harper <jackson@ximian.com>
29808 * InternalWindowManager.cs:
29809 * MdiWindowManager.cs: Cleanup some coordinate system changes so
29810 moving windows works properly.
29812 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
29815 - Removed call to InitLayout() from SetBoundsCore(); doc says
29816 it's only called when a control is added to a container
29817 - Split InitLayout logic, moved to separate UpdateDistances() method
29818 since we need to perform those calculations more often than just
29819 when adding the control to a container. (Needed to fix #77022)
29820 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29821 - Reduced the OnBindingContextChanged events count, don't send them
29822 unless the control is created, we still aren't totally matching
29823 MS, but I can't quite figure out some of their rules
29825 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29827 * ThemeClearlooks.cs: Corrected distance between ProgressBar
29830 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29832 * ThemeClearlooks.cs:
29833 - Updated ProgressBar drawing
29834 - Corrected drawing of ScrollBars and scroll buttons
29835 - Some temporary fixes for minor pixel artefacts
29837 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
29840 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29841 cause events to be sent in the same order as MS does.
29842 - Added ChangeParent() method to trigger various OnXXXChanged events
29843 that need to be fired when a parent changes (This is a reworking
29844 of the patch from r54254, with the X11 errors fixed)
29845 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29846 since on MS we get OnLayoutChanged events when calling Clear()
29847 - Changed Enabled property to consider parent state as well, if a
29848 parent is not enabled, the control will not be either
29849 - Changed Parent property to simply call Controls.Add() since that
29850 now does all the work required, this way we avoid code duplication
29851 - Threw in a few OnBindingsContextChanged calls to try and match
29852 when MS sends them. We seem to send a few too many, though.
29853 - Added call to CreateControl when adding the control to a parent.
29854 We were never calling CreateControl. Still needs some work, in
29855 some places we treat HandleCreated and ControlCreated as equal,
29857 - Removed obsolete commented out code from UpdateZOrder()
29859 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
29861 * ThemeClearlooks.cs: Updated TrackBar drawing.
29863 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29865 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
29867 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
29869 * FileDialog.cs: Add the Help button and the open readonly
29870 checkbox only if needed
29872 2005-12-16 Jackson Harper <jackson@ximian.com>
29874 * Control.cs: Make sure we have an active menu before trying to
29875 process commands on it. Prevents menu-less forms from crashing
29876 when Alt is pressed.
29877 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
29879 * RichTextBox.cs: Expand statement to help out gmcs and fix the
29882 2005-12-16 Jackson Harper <jackson@ximian.com>
29884 * InternalWindowManager.cs: Don't translate tool windows screen
29885 coordinates. This fixes windows 'bouncing' around when being moved.
29887 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29890 - MaxLength now treats 2^31-1 equal to unlimited length (this is
29891 not quite MS compatible, MS uses that number only for single line
29892 and 2^32-1 for multi-line, but I figure it won't hurt keeping
29894 - Now enforcing the MaxLength limit when entering characters
29895 - Added argument to internal Paste() method to track if it's called
29896 from programatically or via keyboard, since keyboard driven pastes
29897 need to enforce max-length
29898 - Added logic to Paste to only paste as many chars as MaxLength
29900 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
29902 - Added Length property to return number of characters in document
29903 - Added private CharCount property which only tracks actual chars
29904 in the document (no linefeeds) and fires event when CharCount
29906 - Added tracking of character count to all methods that alter it
29907 - Added LengthChanged event to allow applications to subscribe
29908 to any changes to the document
29910 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
29913 - Removed local password_char field (moved to TextBoxBase)
29914 - Now setting the document's password var when password is
29917 - Added password_char field (needed here so MultiLine can
29919 - Added logic to MultiLine property setter to set the document's
29920 variable when password display is allowed
29921 - Removed debug code and made some debug code conditional
29923 - Added RecalculatePasswordLine() method to handle special password
29925 - Added PasswordChar property, also added related tracking vars
29926 - Draw() method now uses local text var for grabbing text to draw,
29927 this var is set to line.text unless we're doing password display,
29928 then it is set to the pre-generated all-password-chars line
29929 - Added calling RecalculatePasswordLine() method for password lines
29931 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29934 - Added Reparented property to allow tracking of Window Manager
29935 reparenting actions (which affect X/Y calculations of toplevel
29937 - Made ToString() print window handles in hex
29939 - AddConfigureNotify(): Now uses reparented state off Hwnd to
29940 determine if X/Y needs offsetting
29941 - AddConfigureNotify(): Fixed offset calculations
29942 - Now adds ReparentNotify messages into the queue
29943 - Now processes ReparentNotify messages and causes a
29944 WM_WINDOWPOSCHANGED message to be sent upstream if a window
29945 is reparented (as most likely it's X/Y coordinates are changed
29948 2005-12-14 Jackson Harper <jackson@ximian.com>
29950 * XplatUIX11.cs: Tool windows still need to respek focus.
29952 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
29954 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
29955 have a working release
29957 2005-12-13 Jackson Harper <jackson@ximian.com>
29959 * Form.cs: Update styles after setting the border style regardless
29960 of whether or not the window is using a window manager.
29962 2005-12-13 Jackson Harper <jackson@ximian.com>
29964 * Form.cs: We now hook into an internal window manager instead of just an
29965 MDI subsystem, this is so we can have properly behaving tool windows.
29966 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
29967 * InternalWindowManager.cs: New internal class that acts as a
29968 window manager for tool windows and as a base for mdi windows.
29969 * MdiWindowManager.cs: New class that acts as a window manager for
29972 2005-12-12 Jackson Harper <jackson@ximian.com>
29974 * Control.cs: Updates so we match behavoir for for implicit
29975 controls. Fixes explosions in MDI.
29977 2005-12-12 Jackson Harper <jackson@ximian.com>
29979 * Control.cs: Implement Invalidate (Region).
29981 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
29984 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
29985 the same events as MS does. MS fires events for each property
29986 except, for unknown reasons, Cursor, when the control is reparented.
29987 I can't seem to totally match add/remove since MS also fires some
29988 VisibleChanged events, which makes no sense. Consolidated the
29989 parenting code into a separate method so it can be called from
29990 both Add and Remove. set_Parent no longer needs any special logic
29991 as it calls the parent's add method which implicitly fires
29993 - Removed some obsolete code and debug output
29994 - Enabled state is inherited from parents, if this is enabled
29996 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
29998 * Form.cs: Removed commented out code
30000 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
30003 - Added internal version of Invoke, with additional argument
30004 indicating if we're calling it from a Dispose() handler. That
30005 way we can avoid BeginInvoke throwing an exception if we're
30006 calling for an already destroyed window.
30007 - Added a dispose argument to BeginInvokeInternal, and made the
30008 check if a valid window handle chain exists conditional on
30009 it not being a dispose call
30010 - Removed code in DestroyHandle to destroy our children. Since we
30011 now handle the WM_DESTROY message we will catch all our children
30013 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30015 - Added a field to track the application context of the form.
30016 - No need to set closing variable as response to WM_CLOSE, instead
30017 we destroy the window. We also call PostQuitMessage if the form
30018 has an application context (which makes it the main app form,
30019 which, when closed terminates the app)
30021 - Dropped Exit() method, it's naming was confusing
30022 - Added PostQuitMessage() which causes GetMessage to return false
30023 once the message queue is empty
30024 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
30026 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30027 no longer a valid XplatUI method, but left it in since it's used
30028 internally. Added empty PostQuitMessage() method.
30029 * MenuAPI.cs: Replaced call to Exit() with call to
30030 PostQuitMessage, even though this is probably no longer needed.
30031 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30032 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30034 - Replaced call to XplatUI.Exit() with PostQuitMessage()
30035 - Removed old debug code that would call XplatUI for exception
30036 display, enabled standard exception handling (Still not enabled
30037 though, until NativeWindow's ExternalExceptionHandler define
30040 - Added internal method to allow control to update NativeWindow
30041 after a window has been destroyed
30042 - Added handling of already destroyed windows when calling i
30044 - Added removal of handle from list on ReleaseHandle
30046 - Dropped GetMessageResult var and related code
30047 - Added PostQuitState to field to track if PostQuitMessage has been
30049 - Dropped Exit() method
30050 - Added PostQuitMessage() method
30051 - GetMessage now will return false if PostQuitState is set and no
30052 more messages are in the queue.
30053 - Expose handler will no longer generate WM_PAINT messages if we are
30054 in PostQuitState since it's very likely any windows have already
30055 been destroyed, and since Hwnd won't get updated until we have
30056 processed the DestroyNotify we'd be causing X errors.
30058 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30060 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30061 Thanks to Mike for pointing out the err of my ways.
30063 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30065 * Control.cs(PreProcessMessage): Moved menu handling back, but
30066 after all other key handling, to match MS (who handles Menu in
30068 * Menu.cs (WndProc): Removed my brainfart
30070 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30072 * Control.cs(PreProcessMessage): Removed special menu handling
30073 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30075 2005-12-07 Mike Kestner <mkestner@novell.com>
30077 * Control.cs : special case SYSKEYUP so that we can adjust keynav
30078 state according in tracker.
30079 * Menu.cs : promote tracker field to base class and provide a tracker
30080 lookup capability. Add/Remove shortcuts dynamically if the top menu
30081 has a tracker. Unparent items that are removed from the collection.
30082 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30083 * Theme*.cs: add always_show_hotkeys field to support configurability
30084 of mnemonic display. win32 doesn't show mnemonics until Alt is
30087 2005-12-07 Jackson Harper <jackson@ximian.com>
30089 * MdiChildContext.cs: Use Control.ResetCursor.
30090 * Control.cs: ResetCursor needs to set the property so that the
30091 correct XplatUI call gets made.
30093 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30095 * Control.cs: More fixes to make our key events match MS. We
30096 were not setting the modifier state on KeyData, and we were
30097 not generating any events when Alt was pressed with a key
30098 since handling of WM_SYSxxx was missing for the OnKey methods.
30100 2005-12-07 Jackson Harper <jackson@ximian.com>
30102 * MdiChildContext.cs: reenable the sizing code.
30103 - When the mouse leaves a window reset its cursor.
30105 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
30107 * ThemeClearlooks.cs: Reflect latest Hwnd changes
30109 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
30111 * Hwnd.cs: Now using the theme 3d bordersize to calculate
30112 widths of Fixed3D borders
30114 2005-12-07 Jackson Harper <jackson@ximian.com>
30116 * MdiClient.cs: Fix warnings. Earn Mike's love.
30118 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
30120 * ThemeClearlooks.cs:
30121 - Adjusted mouse over button color
30122 - Added first parts of CheckBox drawing
30123 - Added correct color for selected text background
30124 - Fixed ComboBox drawing
30125 - Added CPDrawBorder3D and CPDrawBorder
30127 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
30129 * XplatUIX11.cs: Added call to XBell for AudibleAlert
30131 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
30133 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30134 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30135 alert users via sound. We could add an enum arg with different
30136 types of alerts in the future
30138 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
30140 * Control.cs: Fix behaviour problems pointed out by Mike
30142 2005-12-05 Mike Kestner <mkestner@novell.com>
30144 * StatusBarPanel.cs: add Invalidate method and hook it into all the
30145 prop setters. Calls parent.Refresh for now, but could be maybe be
30146 optimized with an internal method on StatusBar at some point.
30149 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
30151 * RichTextBox.cs: Implemented get_SelectionColor
30153 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
30155 * ThemeClearlooks.cs:
30156 - Removed dead code
30157 - Draw black button border only if button is Form.AcceptButton
30158 - Draw correct button color for pressed RadioButton if the mouse
30159 has entered the button
30160 - Updated ProgressBar drawing!
30161 - Updated CPDrawSizeGrip drawing
30162 - Updated StatusBarPanel drawing
30164 2005-12-05 Mike Kestner <mkestner@novell.com>
30166 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30167 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30169 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
30171 * ThemeClearlooks.cs: Initial check-in, activate with
30172 export MONO_THEME=clearlooks
30173 * ThemeEngine.cs: Added ThemeClearlooks
30175 2005-12-03 Mike Kestner <mkestner@novell.com>
30177 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30180 2005-12-02 Jackson Harper <jackson@ximian.com>
30182 * Form.cs: If the child form has no menu the default main menu is
30183 used as the active menu.
30185 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
30187 * ListBox.cs: Check if any items exist before trying to resolve
30188 coordinates into items
30190 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
30192 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30193 as the second color for the background hatch
30195 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
30197 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30198 * RichTextBox.cs: FormatText position arguments are 1-based, now making
30199 sure that what we pass to FormatText is always 1-based. Fixes #76885
30201 2005-11-29 Miguel de Icaza <miguel@novell.com>
30203 * NumericUpDown.cs (EndInit): When we are done initializing,
30204 reflect any updates on the UI.
30206 2005-12-02 Jackson Harper <jackson@ximian.com>
30208 * ImplicitHScrollBar.cs:
30209 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30210 their container controls.
30211 * TreeView.cs: Use the new implicit scrollbars.
30213 2005-12-02 Jackson Harper <jackson@ximian.com>
30215 * TreeView.cs: Make top_node internal so the TreeNodeCollections
30217 * TreeNodeCollection.cs: If we remove the topnode we need to
30218 update topnode to the next node in line.
30219 - When clearing nodes go through the same process as removing
30220 them, so they get depareneted and checked if they are top node.
30222 2005-12-01 Jackson Harper <jackson@ximian.com>
30224 * TreeView.cs: When imagelists are used the image area is
30225 selectable as well as the text.
30226 - If there are no selected nodes select the first one.
30227 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30228 so don't do it more then we need to.
30230 2005-12-01 Jackson Harper <jackson@ximian.com>
30232 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30233 that arrows can be scaled.
30235 2005-12-01 Jackson Harper <jackson@ximian.com>
30237 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30238 fail. Patch by Dieter Bremes
30240 2005-11-30 Jackson Harper <jackson@ximian.com>
30242 * Form.cs: Property is 2.0 only
30243 * PrintDialog.cs: Signature fix.
30245 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
30248 - No longer artificially moves text 2 pixels down (now that we have
30249 borders this is no longer needed)
30250 - Added calcs for left, hanging and right indent
30252 2005-11-23 Mike Kestner <mkestner@novell.com>
30254 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30256 2005-11-30 Jackson Harper <jackson@ximian.com>
30258 * MdiChildContext.cs: Set the cloned menus forms, as these don't
30259 get cloned as part of CloneMenu ().
30260 * Menu.cs: Make sure the parent of the items get set correctly
30261 when they are added. And the owners are notified of the changes.
30262 * Form.cs: Create an ActiveMenu property, so that when MDI is used
30263 we can change the menu being displayed/handled by the form without
30264 changing the menu assosciated with the form.
30265 - Don't let Mdi children draw/handle menus.
30267 2005-11-30 Jackson Harper <jackson@ximian.com>
30269 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30270 a MenuChanged event. Just to make the API a little more
30273 * MenuItem.cs: Use the new OnMenuChanged
30274 * MdiChildContext.cs: Handle menu merging.
30275 * Form.cs: Implement MergedMenu.
30277 2005-11-30 Jackson Harper <jackson@ximian.com>
30279 * Menu.cs: We were misusing Add. Add goes behind the specified
30280 index according to the docs, and does not replace the specified
30281 index. So I added an Insert method.
30283 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
30285 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30286 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30288 * RichTextBox.cs: Added calls to base for DnD events
30290 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
30293 - Fixed drag-selection related crash; style fixes
30294 - Implemented undo class
30295 o Implemented method to capture document state for specified
30296 range in document tree
30297 o Implemented method to restore captured document state
30298 o Implemented cursor tracking
30299 o Implemented basic undo stack
30300 - Added undo cursor tracking to methods altering cursor location
30301 - Added undo tracking to selection deletion (still missing
30302 other text-altering hookups)
30304 - Added SelectionLength property
30305 - Implemented CanPaste()
30306 - Implemented Paste()
30307 - Added missing protected methods
30308 - Fixed RTF->Document conversion; now uses font index 0 and color
30309 index 0 as the default font for the parsed text
30310 - Fixed RTF<->Document font size translation
30311 - Fixed RTF generation, now properly handles cross-tag boundaries
30312 for single line selection
30313 - No longer always appends blank line to generated RTF
30315 - Added missing attributes
30316 - Hooked up undo-related methods
30318 - Implemented Copy()
30319 - Implemented Paste()
30320 - Implemented Cut()
30321 - Fixed caret mis-behaviour on backspace across line-boundaries
30323 2005-11-29 Jackson Harper <jackson@ximian.com>
30325 * MdiClient.cs: Add a method for activating mdi children. Very
30326 basic right now. I imagine someday it might need more girth.
30327 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30328 children windows names are added to the menu item.
30329 * ThemeWin32Classic.cs: Draw the arrow if the item is an
30330 mdilist. This happens regardless of whether or not there are any
30331 mdi windows to see in the list, and according to my tests happens
30332 before the items are even added. Also happens if there isn't even
30333 an mdi client to get windows from.
30335 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
30337 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30338 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30340 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
30342 * DataGridTableStyle.cs:
30343 - Create always the styles for the missing columns even if they are
30344 provided by the user (not default table style)
30347 - Fixes SetDataBinding (always re-attach source)
30348 - Fixes SetNewDataSource (only clear styles if they are not for
30350 - Expands OnTableStylesCollectionChanged to handle style refresh
30351 and remove properly
30353 2005-11-29 Jackson Harper <jackson@ximian.com>
30355 * FileDialog.cs: Implement missing bits, remove some dead
30357 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30358 creation of the panel so that the options set on the dialog are
30359 seen when the panel is created.
30360 * TreeView.cs: raise a click when items are clicked.
30362 2005-11-29 Jackson Harper <jackson@ximian.com>
30364 * MdiClient.cs: Pass some signature methods through to base.
30366 2005-11-28 Jackson Harper <jackson@ximian.com>
30368 * ListView.cs: Raise the click event when items are clicked.
30370 2005-11-28 Jackson Harper <jackson@ximian.com>
30372 * MdiClient.cs: Make this algorithm even more beautiful. And fix
30375 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
30377 * ThemeNice.cs: - Removed 1 pixel bitmaps
30378 - Use SmoothingMode.AntiAlias where it makes sense
30379 (ScrollButton arrow for example)
30380 - Enhanced Button focus drawing
30381 - Fixed ComboBox drawing (no artefacts anymore, focus
30382 rectangle is back again, reduced size of ComboButton, etc.)
30383 - Fixed RadioButton focus drawing for Appearence.Button
30384 - Slight ScrollButton redesign
30385 - Some LinearGradientBrush size fixes
30386 - GroupBoxes have now rounded edges
30387 - Fixed StatusBar drawing
30389 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
30391 * ThemeNice.cs: - Remove dead code
30392 - use correct background colors for menus, etc.
30393 - Fake pixel drawing with 1 pixel bitmaps
30395 2005-11-24 Jackson Harper <jackson@ximian.com>
30397 * MdiClient.cs: Size the scrollbars when resizing the window.
30398 - Resize the maximized windows when the client is resized
30399 * Form.cs: Make the child context available
30401 2005-11-23 Jackson Harper <jackson@ximian.com>
30403 * MdiChildContext.cs: Don't size windows if they are maximized.
30405 2005-11-23 Mike Kestner <mkestner@novell.com>
30407 * ContextMenu.cs: use MenuTracker.
30408 * Control.cs: remove menu handle usage.
30409 * Form.cs: remove menu handle usage.
30410 * Hwnd.cs: remove menu handle usage.
30411 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30412 motion and clicks to the new Tracker handlers.
30413 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30415 * MenuAPI.cs: refactored to combine popup and menubar event handling.
30416 Killed the MENU and MENUITEM data types and associated collections
30417 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30418 MenuTracker class that exposes the leftovers from the old MenuAPI
30419 static methods. Restructured Capture handling so that only one grab is
30420 done for the entire menu hierarchy instead of handing off grabs to
30421 submenus. Tracker now has an invisible control to Capture when active.
30422 * MenuItem.cs: add sizing accessors, kill Create
30424 * Theme.cs: remove menu handle and MENU(ITEM) usage.
30425 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30426 MENU(ITEM). remove menu handle usage, use Menu directly.
30427 * XplatUIDriver.cs: remove menu handle usage.
30428 * XplatUIOSX.cs: remove menu handle usage.
30429 * XplatUIWin32.cs: remove menu handle usage.
30430 * XplatUIX11.cs: remove menu handle usage.
30432 2005-11-22 Jackson Harper <jackson@ximian.com>
30434 * Hwnd.cs: Don't compute the menu size for
30435 DefaultClientRectangle.
30436 - Reenable menu sizes being computed for GetClienRectangle.
30437 * Form.cs: Remove comment of trechery
30439 2005-11-22 Jackson Harper <jackson@ximian.com>
30441 * Hwnd.cs: The adjustments for the menu bar are made when it is
30442 attached to the form.
30444 2005-11-19 Jackson Harper <jackson@ximian.com>
30446 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30447 (just like on windows).
30449 2005-11-19 Jackson Harper <jackson@ximian.com>
30451 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30452 use real buttons anymore because they are in non client area. The
30453 one TODO here is that I need to somehow invalidate a section of
30454 the non client area.
30456 2005-11-18 Jackson Harper <jackson@ximian.com>
30458 * Control.cs: Put the enum check back in now that MDI doesnt have
30459 to use this to set border styles.
30460 * Form.cs: Only set mdi child windows borders if the handle has
30462 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30463 this directly on to the driver.
30464 - Get the move start position before adjusting for the titlebar
30465 height, this fixes the windows "skipping" when they are first
30468 2005-11-18 Jackson Harper <jackson@ximian.com>
30470 * XplatUIX11.cs: Just compute the mdi borders separately as they
30471 don't totally match up with normal form borders.
30473 2005-11-18 Jackson Harper <jackson@ximian.com>
30475 * Control.cs: Set WS_ styles for borders, so that the driver does
30476 not have to retrieve the control instance to figure out what kind
30477 of borders it should have.
30478 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30479 driver can know its an mdi child easily.
30480 * XplatUIX11.cs: Get the border styles and whether the window is
30481 MDI from the Styles and ExStyles params instead of having to get a
30482 control. This prevents a chicken and egg problem.
30484 2005-11-18 Jackson Harper <jackson@ximian.com>
30486 * MdiClient.cs: Fix typo so scrollbars show up correctly.
30488 2005-11-18 Jackson Harper <jackson@ximian.com>
30490 * MdiClient.cs: Calculate when to add and remove scrollbars
30492 * MdiChildContext.cs: Adjust the y position to take the titlebar
30494 - No height for FormBorderStyle.None
30496 2005-11-18 Jackson Harper <jackson@ximian.com>
30498 * Control.cs: Allow non enum values to be used for
30499 InternalBorderStyle. MDI does this to set a special border style.
30500 - New utility methods for converting points to/from client coords
30501 - Add the newly created control to the Controls collection before
30502 updating its style. This way UpdateStyle can walk the control
30503 heirarchy to find the control if needed.
30504 so I don't need to create a new Point object all the time.
30505 * Form.cs: Let MDI windows handle their border styles.
30506 - Set styles on MDI windows so the correct title style is derived.
30507 * MdiChildContext.cs: Move all the painting and window handling
30508 into the non client area.
30509 - Use correct sizing and put correct buttons on frames based on
30510 the FormBorderStyle.
30511 - Notify the mdi client about scrolling
30512 - Need to handle the buttons ourselves now, because they are all
30513 in non client areas and we can't add controls there.
30514 * MdiClient.cs: Halfway to scrolling, this implementation is
30515 somewhat broken though, we need to check to make sure other
30516 windows aren't causing scrolling before removing the bars. Also
30517 the bars need to be drawn on top, maybe I can switch implicit
30518 controls to be on top.
30519 * Hwnd.cs: caption_height and tool_caption_height are now
30520 properties of an hwnd, this way they can be set by the driver
30521 based on the type of window they are. In X11 the window manager
30522 handles the decorations so caption_height is zero unless its an
30524 - Add 3 pixel borders for MDI windows (0xFFFF).
30525 - Get rid of some code duplication, have DefaultClientRectanle
30526 just call GetClientRectangle.
30527 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30529 - Set border styles differently for mdi windows.
30530 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30533 2005-11-15 Mike Kestner <mkestner@novell.com>
30535 * Menu.cs: when adding an item to the collection, if item is already
30536 parented, remove it from the parent.
30538 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
30540 * X11DesktopColors.cs: Added KDE support
30542 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
30545 - Clipboard methods now can translate Rtf format
30546 - No longer removes clipboard contents whenever a new format is added
30547 to allow placing multiple formats on the clipboard
30548 * Clipboard.cs: Clipboard now supports getting a IDataObject and
30549 will place all formats contained in it onto the clipboard. Also
30550 now cleans the clipboard before placing a new object onto it
30552 - Implemented set_Rtf
30553 - Implemented set_SelectedRtf
30554 - Created InsertRTFFromStream() method to allow single code base
30555 for all properties and methods that insert RTF into document
30556 - Removed debug output
30558 - Fixed Delete(int) to fix up line numbers
30559 - Fixed ReplaceSelection to combine start and end line
30560 - Fixed serious DeleteChars bug that would leave the document tree
30562 - Improved DumpTree with several logic checks to detect broken
30564 - Removed debug lines
30565 - Fixed Caret.WordForward/WordBack moving code, now always also
30566 updates caret.tag (fixes crash when word-selecting across tag
30567 boundaries via keyboard)
30568 - Added Insert() method for inserting multiline text into documents
30569 - Fixed DeleteChars() calculation errors that would cause a broken
30570 tag chain with multiple tag lines
30571 - DeleteChars() no longer crashes on multi-tag lines if not all tags
30572 - Split() no longer moves caret if split is at caret location
30573 - ReplaceSelection() now updates the cursor and re-displays it
30574 - ReplaceSelection() now uses new Insert() method to avoid code
30576 - FormatText() can now handle formatting partial lines
30578 - Append now uses new TextControl.Insert() method (this avoids
30580 - Implemented Ctrl-X (Cut) (
30581 - Implemented Ctrl-C (Copy)
30582 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
30583 regeneration when pasting text; roundtripping Copy&Paste within
30584 edit control still fails due to some calculation bugs in GenerateRTF)
30585 - The Delete key will now remove the current selection if it is visible
30586 * TextBox.cs: Removed debug lines
30587 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30588 driver to be initialized and can't therefore be done via a static ctor)
30590 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
30592 * TextControl.cs: Added backend code for finding char arrays and strings
30594 - Added mouse wheel scroll support
30595 - Added support for VScroll and HScroll events
30597 - Implemented all seven Find() variants
30598 - Implemented GetCharFromPosition()
30599 - Implemented GetCharIndexFromPosition()
30600 - Implemented GetLineFromIndex()
30601 - Implemented GetPositionFromCharIndex();
30602 - Implemented SaveFile for PlainText and UnicodeText
30603 - Fixed set_Font, now setting a new font applies that font to
30605 - Implemented generic Document to RTF converter
30606 - Implemented SaveFile for RichText format (still missing unicode
30607 conversion for non-ansi chars)
30608 - Implemented get_Rtf
30609 - Implemented get_SelectedRtf
30611 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
30613 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30614 to allow any captures to be released before triggering OnClick. This
30615 way a click handler may capture the mouse without interference.
30616 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30617 This way we send them even though X may not allow a grab (if the window
30618 isn't visible, for example)
30620 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
30622 * DataGridViewRowEventArgs.cs: DataGridView implementation
30623 * DataGridViewElement.cs: DataGridView implementation
30624 * DataGridViewComboBoxCell.cs: DataGridView implementation
30625 * DataGridViewDataErrorContexts.cs: DataGridView implementation
30626 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30627 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30628 * ImageLayout.cs: DataGridView implementation
30629 * DataGridViewComboBoxColumn.cs: DataGridView implementation
30630 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30631 * DataGridViewSelectionMode.cs: DataGridView implementation
30632 * IDataGridViewEditingControl.cs: DataGridView implementation
30633 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30634 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30635 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30636 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30637 * DataGridViewColumnSortMode.cs: DataGridView implementation
30638 * DataGridView.cs: DataGridView implementation
30639 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30640 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30641 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30642 * Padding.cs: DataGridView implementation
30643 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30644 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30645 * DataGridViewRowEventHandler.cs: DataGridView implementation
30646 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30647 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30648 * DataGridViewButtonCell.cs: DataGridView implementation
30649 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30650 * DataGridViewEditMode.cs: DataGridView implementation
30651 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30652 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30653 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30654 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30655 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30656 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30657 * DataGridViewCellEventHandler.cs: DataGridView implementation
30658 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30659 * DataGridViewCellStyleConverter.cs: DataGridView implementation
30660 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30661 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30662 * DataGridViewColumnEventArgs.cs: DataGridView implementation
30663 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30664 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30665 * QuestionEventArgs.cs: DataGridView implementation
30666 * IDataGridViewEditingCell.cs: DataGridView implementation
30667 * DataGridViewTriState.cs: DataGridView implementation
30668 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30669 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30670 * DataGridViewColumnCollection.cs: DataGridView implementation
30671 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30672 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30673 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30674 * DataGridViewColumn.cs: DataGridView implementation
30675 * DataGridViewCellBorderStyle.cs: DataGridView implementation
30676 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30677 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30678 * DataGridViewRow.cs: DataGridView implementation
30679 * DataGridViewImageCellLayout.cs: DataGridView implementation
30680 * DataGridViewImageCell.cs: DataGridView implementation
30681 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30682 * DataGridViewCheckBoxCell.cs: DataGridView implementation
30683 * DataGridViewHeaderCell.cs: DataGridView implementation
30684 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30685 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30686 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30687 * DataGridViewTextBoxColumn.cs: DataGridView implementation
30688 * QuestionEventHandler.cs: DataGridView implementation
30689 * DataGridViewCellStyleScopes.cs: DataGridView implementation
30690 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30691 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30692 * DataGridViewCell.cs: DataGridView implementation
30693 * DataGridViewCellEventArgs.cs: DataGridView implementation
30694 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30695 * DataGridViewCellStyle.cs: DataGridView implementation
30696 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30697 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30698 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30699 * TextFormatFlags.cs: DataGridView implementation
30700 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30701 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30702 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30703 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30704 * DataGridViewButtonColumn.cs: DataGridView implementation
30705 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30706 * HandledMouseEventArgs.cs: DataGridView implementation
30707 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30708 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30709 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30710 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30711 * DataGridViewRowCollection.cs: DataGridView implementation
30712 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30713 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30714 * DataGridViewHitTestType.cs: DataGridView implementation
30715 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30716 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30717 * DataGridViewColumnEventHandler.cs: DataGridView implementation
30718 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30719 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30720 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30721 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30722 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30723 * DataGridViewContentAlignment.cs: DataGridView implementation
30724 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30725 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30726 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30727 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30728 * DataGridViewPaintParts.cs: DataGridView implementation
30729 * DataGridViewCellCollection.cs: DataGridView implementation
30730 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30731 * DataGridViewImageColumn.cs: DataGridView implementation
30732 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30733 * DataGridViewElementStates.cs: DataGridView implementation
30734 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30735 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30736 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30737 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30738 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30739 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30740 * DataGridViewRowHeaderCell.cs: DataGridView implementation
30741 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30742 * DataGridViewTextBoxCell.cs: DataGridView implementation
30743 * DataGridViewBand.cs: DataGridView implementation
30744 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30745 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30746 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30747 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30748 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30749 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30750 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30751 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30752 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30753 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30754 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30756 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
30758 * ThemeWin32Classic.cs:
30759 - Draw the outside focus rectangle around buttons
30760 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30761 doesn't use end caps for every dash of a line anymore. This
30762 workaround ignores the forecolor.
30764 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
30766 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30769 2005-11-07 Jackson Harper <jackson@ximian.com>
30771 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30773 2005-11-07 Jackson Harper <jackson@ximian.com>
30775 * ScrollableControl.cs: Calculate the maximum and change vars
30776 (more) correctly so that scrollbars appear as a sensible size.
30778 2005-11-04 Jackson Harper <jackson@ximian.com>
30780 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30782 * TreeView.cs: When the tree is sorted null out the top_node so
30783 that it is recalculated.
30784 - Use dotted lines instead of dashed lines to match MS better.
30786 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
30789 - Implements key search for items. Useful when browsing files with FileDialog
30790 - When changing view mode or when clear the items reset scrollbar positions
30792 2005-11-04 Jackson Harper <jackson@ximian.com>
30794 * CurrencyManager.cs: Implement the MetaDataChanged event, the
30795 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30796 as to what the method may do as there is no real way of creating a
30797 derived CurrencyManager and calling the method.
30799 2005-11-03 Jackson Harper <jackson@ximian.com>
30801 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30802 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30803 method which seems to just be used internally to refresh the tabs.
30805 2005-11-03 Jackson Harper <jackson@ximian.com>
30807 * TabControl.cs: Implement the remove method. Fix some broken
30810 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30812 * DateTimePicker.cs:
30813 - Added missing DateTimePickerAccessibleObject class
30814 - Added missing events
30815 - Added OnFontChanged method
30816 * Form.cs: Added missing attributes
30817 * TreeView.cs: Added missing attributes
30819 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30821 * GridItemCollection.cs: Fix signatures
30823 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30825 * XplatUI.cs: Updated build rev/date
30826 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
30827 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30828 * Application.cs: Trigger context-specific ExitThread events
30830 2005-11-03 Jackson Harper <jackson@ximian.com>
30834 * GridTableStylesCollection.cs:
30839 * MonthCalendar.cs: Signature fixes
30841 2005-11-03 Jackson Harper <jackson@ximian.com>
30843 * TreeNodeCollection.cs: Remove should not be virtual.
30844 * TreeView.cs: Implement the last of the missing methods.
30846 2005-11-03 Jackson Harper <jackson@ximian.com>
30848 * TreeNodeConverter.cs: Implement to get off my class-status back.
30850 2005-11-03 Jackson Harper <jackson@ximian.com>
30852 * TreeView.cs: Hookup the bits for drag and drop.
30853 * TreeNode.cs: Don't cache the tree_view or index anymore, now
30854 that nodes can be moved from tree to tree easily this just causes
30855 all sorts of problems.
30856 * TreeNodeCollection: Don't need to give treenodes an index and
30857 treeview anymore when they are added, these are computed on the
30858 fly. Also make sure to remove a node before its added.
30860 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
30863 - Added CaretSelection enum
30864 - Added comparison methods to Marker struct, makes selection code
30866 - Added SelectionStart and SelectionEnd as 'moveable' location for
30867 the CaretDirection enum and handler
30868 - Added selection_prev variable to track optimized invalidation for
30869 word and line selection
30870 - Added SelectionVisible property (returns true if there is a valid
30872 - Switched CaretHasFocus to only display the caret if there is no
30874 - Avoiding StringBuilder.ToString to retrieve a single char, instead
30875 using the direct character index; should be much faster
30876 - Added various conditional debug statements
30877 - Fixed invalidation calculation for selection ranges
30878 - Added ExpandSelection() method to support word and line selection
30879 - Switched SetSelectionToCaret to use new Marker compare overloads
30880 - Added central IsWordSeparator() method to determine word
30881 separators/whitespace and FindWordSeparator() to streamline common
30882 usage of IsWordSeparator()
30884 - Removed unneeded grabbed variable, it was just mirroring
30886 - No longer firing OnTextChanged event when Text setter is called,
30887 since the base will fire the event for us
30888 - Added handling of Ctrl-Up/Down selection
30889 - Added handling of Shift-Cursorkey selection
30890 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
30892 - Added handling of Shift and Ctrl-Shift-Home/End selection
30893 - Removed some debug output
30894 - Added handling for single/double/tripple-click to place caret/
30895 select word/select line respectively (Fixes bug #76031)
30896 - Added support for drag expansion of word/line selection
30897 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
30900 2005-11-02 Jackson Harper <jackson@ximian.com>
30902 * X11Dnd.cs: If the drag is going to and from a MWF window just
30903 copy the data instead of sending it out through the X Selection
30906 2005-11-02 Jackson Harper <jackson@ximian.com>
30909 * XplatUIX11.cs: When in a drag we don't want motion notify
30910 messages to get passed on to the other controls. This prevents
30911 mouse move messages from showing up in the drag source.
30913 2005-11-02 Jackson Harper <jackson@ximian.com>
30915 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
30916 the correct button is release to end a drag.
30917 * XplatUIX11.cs: Make the button state internal so the drag system
30918 can access it. Dragging needs to know about all button releases,
30919 not just left button.
30921 2005-11-02 Miguel de Icaza <miguel@novell.com>
30923 * Form.cs (Icon): If the icon is null, reset the icon to the
30926 * Cursor.cs: When writing the AND-mask bitmap do not include the
30927 number of colors, but hardcode those to two (black and white),
30928 fixes the loading of color cursors (Paint Dot Net).
30930 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
30931 turn off autoscaling.
30933 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
30935 2005-11-02 Jackson Harper <jackson@ximian.com>
30937 * X11Dnd.cs: Make sure to send a status message if the pointer
30938 enters a control that can not accept a drop, otherwise the cursor
30939 isn't updated correctly. Also tried to compress the lines of code
30942 2005-11-02 Jackson Harper <jackson@ximian.com>
30944 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
30945 set actions correctly. This isn't perfect as XDND and win32 have
30946 some differences on how you allow actions. I'll clear this up by
30947 adding a path for drag from MWF to MWF windows.
30948 * XplatUIX11.cs: Hook into the dnd system.
30950 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
30952 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
30953 previously shown but they are no longer need it. Very obvious when
30954 browsing files with FileDialog.
30956 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
30958 * Control.cs: We always need to call OnPaintBackground. We pretty much
30959 ignore AllPaintingInWmPaint and always do the painting there, whether
30960 it's set or not, since we always ignore the WM_ERASEBKGND message
30961 (which we don't generate on X11). This fixes #76616.
30962 * Panel.cs: Removed unneeded background painting. This happens properly
30963 in Control.cs already
30965 2005-10-31 Mike Kestner <mkestner@novell.com>
30967 * Menu.cs: Add items to collection before setting their index.
30968 * MenuItem.cs : add range checking with ArgumentException like MS.
30971 2005-10-31 Jackson Harper <jackson@ximian.com>
30973 * ListBox.cs: Invalidate if the area is visible at all not just
30974 contained in the visible rect. Fixes unselection of semi visible
30977 2005-10-31 Jackson Harper <jackson@ximian.com>
30979 * Control.cs: Consistently name the dnd methods. Make them
30980 internal so we can override them to match some MS behavoir
30982 * Win32DnD.cs: Use the new consistent names.
30984 2005-10-31 Jackson Harper <jackson@ximian.com>
30986 * TreeView.cs: Don't draw the selected node when we lose focus.
30988 2005-10-31 Jackson Harper <jackson@ximian.com>
30990 * X11Dnd.cs: We still need to reset the state even though a full
30991 reset isn't being done, otherwise status's still get sent all over
30994 2005-10-31 Jackson Harper <jackson@ximian.com>
30996 * Control.cs: Make the dnd_aware flag internal so the dnd
30997 subsystem can check it. Catch exceptions thrown in dnd handlers to
30999 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31000 * X11Dnd.cs: Handle null data in the converters. Set the XDND
31001 version when sending a XdndEnter. Use the control/hwnd dnd_aware
31002 flags to reduce the number of dnd enters/status's sent.
31004 2005-10-31 Jackson Harper <jackson@ximian.com>
31006 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31008 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
31010 * PictureBox.cs: Fixes 76512
31012 2005-10-28 Jackson Harper <jackson@ximian.com>
31014 * X11Dnd.cs: Early implementation to support winforms being a drag
31015 source for data on X11. Also restructured the converters so they
31016 can go both ways now.
31017 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31019 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
31021 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31024 2005-10-27 Jackson Harper <jackson@ximian.com>
31026 * TreeNode.cs: Implement serialization so my DnD examples will work.
31028 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
31030 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31031 TreeView.cs: Don't dispose objects that are not owned.
31033 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
31035 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31036 should retrieve the current cursor and report that, but XplatUI
31037 doesn't (yet) have an interface for that (and I'm not sure I even
31039 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31040 until any message loop processing is done (and the WM_SETCURSOR
31041 replaces the cursor to the proper one)
31043 - Fixed override behaviour, we can't set the cursor globally on X11,
31044 just for our windows.
31045 - Invalidating the System.Drawing X11 display handle when we are
31047 * Control.cs: Fix to make csc happy
31049 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
31052 - get_Text: Add last line (without trailing newline) to returned
31053 value (Fixes 76212)
31054 - get_TextLength: Count last line in returned length
31055 - ToString: Call Text property instead of duplicating code
31057 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
31059 * ImageList.cs: Dispose ImageAttributes objects.
31061 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
31063 * ImageList.cs: Use attribute constructors with less arguments where
31066 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
31068 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31069 Use typeof instead of strings when assembly is referenced. Added
31070 some more comments.
31072 2005-10-21 Jackson Harper <jackson@ximian.com>
31074 * ListView.cs: Raise a double click event. Also tried to somewhat
31075 fix when the selectedindexchanged event is raised. Its still
31078 2005-10-21 Jackson Harper <jackson@ximian.com>
31080 * TreeView.cs: New method to invalidate the plus minus area of a
31081 node without invalidating the whole node (maybe this can be used
31082 in some more places).
31083 * TreeNodeCollection.cs: When adding to an empty node we need to
31084 invalidate its plus minus area so the little block shows up.
31086 2005-10-21 Jackson Harper <jackson@ximian.com>
31088 * TreeView.cs: Make sure that when we invalidate a node the bounds
31089 are big enough to cover the selected box and the focus
31090 rectangle. Use a different colour for the lines connecting nodes
31091 so they show up with all themes.
31093 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
31095 * NativeWindow.cs: Don't call anything that could call into the driver,
31096 we might be on a different thread.
31098 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
31100 * Control.cs(Dispose): Since Dispose might run on a different thread,
31101 make sure that we call methods that could call into the driver via
31102 invoke, to avoid thread issues
31104 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
31106 * XplatUI.cs: Removed finalizer
31107 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31108 not allowing to be called on the finalizer thread.
31110 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
31113 - Reverted r51889 and r51891.
31114 - Added ImageListItem class that stores unmodified image items and image
31115 properties required to create list images until handle is created.
31116 - Added AddItem and moved image creation logic to AddItemInternal.
31117 - Added CreateHandle method that creates images based on unmodified items.
31118 - Added DestroyHandle that changes state to store unmodified items.
31119 - Add and AddStrip methods no more create handle.
31120 - ReduceColorDepth has no return value.
31121 - Dispose destroys handle.
31122 - Modified other methods to reflect the above changes.
31123 - Implemented key support.
31124 - Added profile 2.0 members and attributes.
31125 - Added private Reset and ShouldSerialize methods that provide the same
31126 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31127 them as they are private.
31128 - Added some more comments about implementation details.
31130 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
31132 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31134 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
31136 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31138 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
31140 * DataGridDrawingLogic.cs: Fixes column hit calcultation
31141 * DataGridColumnStyle.cs: Remove debug message
31143 2005-10-20 Jackson Harper <jackson@ximian.com>
31145 * TreeView.cs: We can always get input keys regardless of whether
31146 or not editing is enabled. They are used for navigation.
31148 2005-10-20 Jackson Harper <jackson@ximian.com>
31150 * TreeNode.cs: Use the viewport rect for determining if a node
31151 needs to be moved for visibility. Don't use Begin/End edit. This
31152 calls a full refresh when its done.
31153 * TreeView.cs: New SetBottom works correctly. Make the viewport
31154 rect property internal so the treenodes can see it. When clicking
31155 on a node we need to ensure that its visible because it might just
31156 be partly visible when clicked.
31158 2005-10-20 Jackson Harper <jackson@ximian.com>
31160 * TreeNodeCollection.cs: Remove debug code.
31162 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
31164 * Datagrid.cs: Implements column sorting in Datagrid
31165 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31167 2005-10-20 Jackson Harper <jackson@ximian.com>
31169 * TreeNodeCollection.cs: Remove items properly. Update the correct
31170 area after removing them.
31172 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
31174 * Datagrid.cs: Should not call base.OnPaintBackground
31176 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
31178 * XplatUIX11.cs (GetMessage):
31179 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31180 window instead of client window
31181 - Now properly calculates NC_xBUTTONUP message coordinates
31182 - ScreenToMenu now properly calculates it's coordinates of whole
31183 window, since menus are in the whole window, not in the client
31185 - Added WholeToScreen coordinate translation method
31187 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
31189 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31190 want to return a message, loop back to the beginning of the function
31191 and grab the next real message to process instead.
31193 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
31195 * Splitter.cs: Properly set limits if no filler control is used
31197 2005-10-19 Jackson Harper <jackson@ximian.com>
31199 * ColorDialog.cs: Don't show the help button if it is not enabled
31200 instead of disabling it (this is what MS does). Don't create the
31201 panel until the dialog is run, otherwise the vars (such as
31202 ShowHelp) are not set yet.
31204 2005-10-19 Jackson Harper <jackson@ximian.com>
31206 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31207 are reduced when adding nodes.
31209 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31212 2005-10-19 Jackson Harper <jackson@ximian.com>
31214 * FolderBrowserDialog.cs: End editing our treeview so the window
31215 actually gets refreshed.
31217 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
31219 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
31220 Obsoleted handling of WM_ERASEBKGND, now always draws our background
31223 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
31225 * MenuAPI.cs: Returns after Hidding window
31226 * XplatUIX11.cs: Added TODO found while debugging menu issues
31228 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
31230 * XplatUIX11.cs: Do not re-map the whole window when it's size
31231 becomes non-zero unless it's supposed to be actually visible
31233 2005-10-18 Jackson Harper <jackson@ximian.com>
31235 * TreeView.cs: We don't need to keep a count anymore.
31236 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31237 use the Grow method.
31239 2005-10-18 Jackson Harper <jackson@ximian.com>
31241 * TreeNodeCollection.cs: Insert is not supported on arrays, so
31242 implement it manually here.
31244 2005-10-18 Jackson Harper <jackson@ximian.com>
31246 * ImageList.cs: Dont kill the list when the colour depth is
31247 changed, just change the colour depth of all the images.
31248 - Same goes for setting the image size. Just resize them all
31249 instead of killing the list softly.
31251 2005-10-18 Jackson Harper <jackson@ximian.com>
31253 * Control.cs: Don't invalidate empty rectangles.
31255 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
31258 - Adds checked item to the Checked/Item lists (where empty before)
31259 - Do not add items to the Selected lists if they are already present
31261 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31262 - When deleting items make sure that we delete them for the Selected
31263 and Checked list also.
31265 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
31267 * Label.cs: Dispose objects no longer used
31268 * ThemeWin32Classic.cs: Dispose objects no longer used
31270 2005-10-18 Jackson Harper <jackson@ximian.com>
31272 * TabControl.cs: Don't refresh the whole control when the tabs are
31273 scrolled, we just need to refresh the tab area.
31275 2005-10-17 Jackson Harper <jackson@ximian.com>
31277 * XplatUIX11.cs: Compress code a little bit. Only calculate the
31278 after handle when we need it.
31280 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
31282 * Control.cs: When the parent size changes, recalculate anchor
31283 positions. Partial fix for #76462
31285 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
31287 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
31288 drawn. Fixes #76462
31290 2005-10-17 Jackson Harper <jackson@ximian.com>
31292 * MonthCalendar.cs: Don't create the numeric up down until our
31293 handle is created. Otherwise our handle is created in the
31294 constructor and we don't know if we are a WS_CHILD or WS_POPUP
31297 2005-10-17 Jackson Harper <jackson@ximian.com>
31299 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31302 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
31303 * TreeNode.cs : small logical fix (was using local var instead of field)
31305 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
31307 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31309 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
31311 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31313 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
31316 - Re-implemented anchoring code. My first version was really broken.
31317 This fixes bug #76033. Unlike the previous implementation we will
31318 no longer have round errors since all numbers are calculated from
31319 scratch every time. Removed various anchor-related obsolete vars.
31320 - InitLayout no longer causes layout event firing and layout to be
31323 2005-10-16 Jackson Harper <jackson@ximian.com>
31325 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31328 2005-10-16 Jackson Harper <jackson@ximian.com>
31330 * TabControl.cs: Remove debug code.
31332 2005-10-16 Jackson Harper <jackson@ximian.com>
31334 * XEventQueue.cs: Increase the default queue size (very simple
31335 apps needed to grow the queue).
31336 * Hwnd.cs: No finalizer so we don't need to suppress
31337 finalization. Compute the invalid area manually so a new rectangle
31338 does not newto be created.
31339 * ScrollableControl.cs: Don't set any params (otherwise visibility
31340 isn't set correctly).
31341 * MdiChildContext.cs: New constructor takes the mdi parent so it
31342 doesn't have to be computed and avoids a crash on windows. Draw
31343 the window icon properly, and allow the text to be seen.
31344 * Form.cs: Use new MdiChildContext constructor. Make sure the
31345 child context isn't null in wndproc.
31346 * TabControl.cs: Don't set focus, this is muddling keyboard
31347 behavoir. Expand the tab rows when a window size increase will
31348 allow extra tabs to be seen. Don't allow tabs smaller than the
31349 width of a window to be scrolled out of view.
31351 * TreeView.cs: Use measure string to calculate a nodes width, the
31352 width is cached and only updated when the text or the font is
31353 changed. Don't check for expand/collapse clicks on the first level
31354 nodes if root lines are disabled.
31356 2005-10-16 Ritvik Mayank <mritvik@novell.com>
31358 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31360 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
31362 * DataGridBoolColumn.cs: fixes warning
31364 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
31366 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31367 to match more to match more precisely the MS Net behavior
31369 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31371 * Hwnd.cs: Added field to track if window is mapped
31373 - Unmap windows if they become 0-size, re-map when
31374 they are >0 again; fixes #76035
31375 - Re-set our error handler after initializing X11Desktop
31376 to override any error handlers Gtk or whatever was called
31379 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31381 * CheckedListBox.cs: Removed unused vars
31382 * ListView.cs: Fixed signatures
31383 * RichTextBox.cs: Removed unused vars
31384 * TextBoxBase.cs: Removed unused vars
31385 * XplatUIWin32.cs: Removed unused vars
31386 * XplatUIX11.cs: Removed unused vars
31387 * XplatUI.cs: Updated version and date to latest published
31389 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31391 * Cursor.cs: Added private .ctor to work around a bug in
31392 resourceset (Thanks to Geoff Norton for the help on this)
31393 * SplitterEventArgs.cs: Made fields accessible so we don't
31394 waste boatloads of objects and can reuse the same one
31396 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31397 any captions and borders when generating screen coordinates
31398 * Splitter.cs: Reimplemented control, now fully complete, uses
31399 rubberband drawing, supports and obeys all properties, has
31402 2005-10-13 Miguel de Icaza <miguel@novell.com>
31404 * Form.cs (Form): Setup default values for autoscale and
31405 autoscale_base_size; Make these instance variables, not static
31408 (OnLoad): on the first load, adjust the size of the form.
31410 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
31412 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
31413 width argument to DrawReversibleRectangle()
31414 * XplatUIWin32.cs, XplatUIX11.cs:
31415 - Implemented width for DrawReversibleRectangle()
31416 - Added logic to DrawReversibleRectangle that recognizes a zero
31417 width or height and only draws a line in that situation
31419 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31421 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31422 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31423 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31424 method (it uses our FosterParent window to get a graphics context)
31426 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
31428 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
31429 and SetWindowBackground methods
31431 - Setting proper ControlStyles
31432 - We no longer call XplatUI.SetWindowBackground and XplatUI.
31433 EraseWindowBackground, instead we draw the window background
31434 ourselves in PaintControlBackground. This behaviour is
31435 required to match MS, where, when OnPaintBackground is not
31436 called, the background is not drawn.
31437 - Removed unneeded Refresh() in set_Text
31438 * Hwnd.cs: Dropped the ErasePending support. No longer needed
31440 - Created DeriveStyles method to translate from CreateParams to
31441 FormBorderStyle and TitleStyle, also handles BorderStyle (which
31442 matches FormBorderStyle enum values)
31443 - Consolidated SetHwndStyles and CalculateWindowRect border/title
31444 style calculations into single DeriveStyles method
31445 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31446 from redrawing the whole window on any resize or expose.
31447 - Fixed CreateWindow usage of SetWindowValuemask. Before not
31448 all styles were applied to our whole/client window appropriately
31449 - Removed EraseWindowBackground() and SetWindowBackground() methods
31450 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31451 no longer clear/redraw the background through X
31452 - Removed handling of erase_pending bit, we have no use for it (or
31455 - Removed generation and handling of WM_ERASEBKGND message
31456 - Removed EraseWindowBackground() and SetWindowBackground() methods
31457 - Removed handling of hwnd.ErasePending flag
31459 - Removed EraseWindowBackground() and SetWindowBackground() methods
31460 - We no longer call EraseWindowBackground on PaintEventStart, we
31461 ignore the fErase flag, erasing is handled in Control in the
31463 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31464 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31465 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
31466 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
31467 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
31468 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31469 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31471 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
31473 * PropertyGrids.cs: Get sub properties
31474 * PropertyGridView.cs: Fix drawing code
31476 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31478 * ListBox.cs: Fixes 76383
31480 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31482 * DataGridTextBoxColumn.cs: Sets location and size before attachment
31483 * ThemeWin32Classic.cs: Fixes border drawing and calculations
31484 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31487 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31489 * ComboBox.cs: Fixes border drawing
31491 2005-10-10 Miguel de Icaza <miguel@novell.com>
31493 * MimeIcon.cs: Ignore errors if the file can not be read.
31495 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
31497 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31498 - Fixed border calculations
31499 - Fixed horizontal scrolling in single column listboxes
31500 - Fixed drawing issues
31502 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
31504 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
31505 FormBorderStyle enum
31506 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
31507 code to determine FormBorderStyles from CreateParams
31509 - Fixed bug where we'd set the wrong window styles if we were
31510 not creating an MDI window
31511 - Added call to XplatUI.SetBorderStyle when form borders are set
31512 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31514 - Removed obsolete edge style
31515 - Switched from BorderStyle to FormBorderStyle
31517 2005-10-10 Jackson Harper <jackson@ximian.com>
31519 * Form.cs: Use the property to get the window handle instead of
31520 accessing it directly. Prevents a null reference exception.
31522 2005-10-10 Jackson Harper <jackson@ximian.com>
31524 * TreeView.cs: Don't adjust the rect given to DrawString now that
31525 our libgdiplus draws correctly.
31527 2005-10-08 Jackson Harper <jackson@ximian.com>
31529 * TreeView.cs: Don't try to find the clicked on node if there are
31530 no nodes in the tree.
31532 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31538 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
31540 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31541 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31543 Use ResPool for brushes and dispose System.Drawing objects that
31544 are not used anymore.
31546 2005-10-07 Jackson Harper <jackson@ximian.com>
31548 * MdiChildContext.cs: Use the new borders instead of drawing them
31551 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31553 * Calling UpdateBounds after changing the window's BorderStyle
31554 since the style can change the ClientSize
31556 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31558 * Control.cs: Made PaintControlBackground virtual
31559 * Panel.cs: Overriding PaintControlBackground instead of using paint
31560 event; paint event method was interfering with 'real' users of the
31563 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
31565 * ThemeWin32Classic.cs: remove border drawing since it is handled
31566 by the base control class now and was causing double border drawing.
31568 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31570 * Panel.cs: Redraw our background on paint. Not a pretty solution,
31571 but it does seem to match MS behaviour. This fixes bug #75324
31573 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31575 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31576 somewhat hackish looking
31578 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31581 - We now accept Enter even if AcceptEnter is false, if the containing
31582 form does not have an AcceptButton configured (fixes bug #76355)
31583 - Calculations are now fixed to no longer use Width/Height, but
31584 ClientSize.Width/Height, since we now support borders (this was
31585 a result of fixing borders and therefore bug #76166)
31586 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
31587 true (fixes bug #76354)
31589 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31592 - Defaulting BorderStyle and setting it in XplatUI when our window
31594 - Added enum check to InternalBorderStyle setter
31596 - Added drawing of window borders
31597 - Now properly calculates WM decorations offset for toplevel
31598 windows (fixes bug #74763)
31600 - Implemented BorderStyles for windows (we're letting win32 draw
31602 - Fixed the signature for SetWindowLong
31603 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31604 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
31606 * UpDownBase.cs: Remove drawing of borders, this is handled by
31607 the driver, outside the client area
31608 * ListView.cs: Removed bogus border calculations. The control should
31609 be oblivious to borders, since those are not part of the client
31611 * X11DesktopColors.cs: Commented out (currently) unneeded variables
31612 * ThemeWin32Classic.cs: Removed border calculations from ListView
31615 2005-10-06 Jackson Harper <jackson@ximian.com>
31617 * MdiChildContext.cs: Clear out the old virtual position remove
31618 all the unneeded calls to CreateGraphics.
31620 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31622 * TextControl.cs: Use proper color for highlighted text; fixes #76350
31624 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31627 - Added loading and setting of our new default icon
31628 - Only set icon if window is already created
31630 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
31633 - Do not explicitly set the foreground and background colors, to
31634 allow inheriting from parents (fixes #76302)
31635 - Use Control's InternalBorderStyle property to deal with borders
31637 2005-10-06 Jackson Harper <jackson@ximian.com>
31639 * MdiChildContext.cs: Use the new xplatui function to draw a
31642 2005-10-06 Jackson Harper <jackson@ximian.com>
31644 * Form.cs: Add the parent before creating the child context cause
31645 we need the parent when setting up the child.
31647 2005-10-06 Jackson Harper <jackson@ximian.com>
31649 * FolderBrowserDialog.cs: redo the tree population code so a
31650 second thread isn't used. Should be a lot faster and more stable
31653 2005-10-05 Jackson Harper <jackson@ximian.com>
31655 * TreeView.cs: There are no expand/collapse boxes if the node has
31658 2005-10-05 Jackson Harper <jackson@ximian.com>
31660 * X11DesktopColors.cs: Get menu colours for the gtk theme.
31662 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
31664 * FileDialog.cs: Fix InitialDirectory
31666 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31669 - Fixes changing between styles
31670 - Fixes simple mode
31671 - Fixes last item crashing when navigating with keyboard
31673 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
31675 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31677 2005-10-05 Jackson Harper <jackson@ximian.com>
31679 * TreeView.cs: If updating the root node do a full refresh.
31680 * TreeNode.cs: The root node should be expanded by default. Also
31681 added a utility prop to tell if we are the root node.
31682 * TreeNodeCollection.cs: Only refresh if the node we are being
31683 added to is expanded. Also added a comment on a potential
31686 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
31688 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
31689 in dispose method. Fixes #76330
31691 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
31693 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31695 - Implements vertical and horizontal scrolling using XplatUI
31696 - Fixes keyboard navagation
31697 - Fixes EnsureVisible
31699 - Handles and draws focus properly
31702 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
31704 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31705 Create handle. NET_2_0: Destroy handle when value is null.
31707 2005-10-03 Jackson Harper <jackson@ximian.com>
31709 * ScrollBar.cs: My last scrollbar patch was broken. This is a
31710 revert and a new patch to prevent the thumb from refreshing so
31713 2005-10-02 Jackson Harper <jackson@ximian.com>
31715 * ScrollBar.cs: Don't update position if it hasn't actually
31716 changed. This occurs when you hold down the increment/decrement
31717 buttons and the thumb gets to the max/min.
31719 2005-10-01 Jackson Harper <jackson@ximian.com>
31722 * MdiChildContext.cs:
31723 * MdiClient.cs: Implement ActiveMdiChild in Form.
31725 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
31727 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31729 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
31731 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31734 2005-09-30 Jackson Harper <jackson@ximian.com>
31736 * ListBox.cs: Don't do a full refresh unless some data has
31739 2005-09-30 Jackson Harper <jackson@ximian.com>
31741 * TreeView.cs: Make sure that the checkboxes size is factored in
31742 even when not visible.
31744 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31746 * FileDialog.cs: Fix Jordi's build break
31748 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31751 - Use standard the Windows colours for the combobox as espected
31752 - Dispose objects that use resouces when no longer need them
31754 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31756 * X11DesktopColors.cs: Initial incomplete implementation
31757 * XplatUIX11.cs: Added call to initialize X11DesktopColors
31759 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
31762 - Switched Theme color names to match the names defined in
31763 System.Drawing.KnownColors. Life's hard enough, no need to make
31765 - Added setters to all theme color properties so themes can set
31766 their color schemes. The setters also propagate the color changes
31767 to System.Drawing.KnownColors via reflection
31768 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31769 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31770 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31771 use the new, more logical theme color names
31772 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31774 * ThemeWin32Classic.cs:
31775 - Removed code to set the old classic Windows colors. Instead it
31776 now relies on the colors returned by System.Drawing.KnownColors
31777 which will be either modern static colors (Unix) or colors
31778 read from the user's configuration (Win32)
31779 - Updated to use the new, more logical theme color names
31780 - Switched DataGrid drawing code to use only Theme colors instead of
31781 a mix of System.Drawing.KnownColors and Theme colors
31782 - DrawFrameControl(): Removed code that fills the button area, the
31783 fill would overwrite any previous fill done by a control. This
31785 - Added DrawReversibleRectangle() stub
31786 * ScrollableControl.cs: Set visible state to false when scrollbars
31787 are removed (pdn fix)
31788 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
31789 DrawReversibleRectangle() method to allow drawing primitive
31791 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31793 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31795 * ImageList.cs: Add(Icon): Create handle.
31797 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
31800 * ThemeWin32Classic.cs:
31801 - Fixes detail mode
31803 - Issues with drawing
31805 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31807 * ImageList.cs: Moved RecreateHandle back to ImageList as event
31808 source has to be the ImageList.
31810 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31812 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31814 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31816 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31818 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31820 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31822 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
31823 * GridItem.cs: Fixed TODOs
31824 * GridItemCollection.cs: Added ICollection interface
31826 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
31828 * ImageList.cs: Resize icons when needed.
31830 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
31833 - Fixes GetBounds and returns on screen rects
31835 - Fixes vertical and horzintal scrolling of items
31836 * ThemeWin32Classic.cs:
31839 2005-09-29 Raja R Harinath <harinath@gmail.com>
31841 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31843 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
31845 * ImageList.cs: Added comments about handle creation. Moved Handle,
31846 HandleCreated and OnRecreateHandle implementations to ImageCollection.
31847 Handle is created in Add methods.
31849 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31851 * DataGridDrawingLogic.cs:
31852 - Takes rows into account on Colum calculations
31853 - Returns the column when clickig
31855 - Fixes default HitTestInfo values
31856 - Fixes HitTestInfo.ToString
31857 - Fixes ResetBackColor
31859 2005-09-28 Jackson Harper <jackson@ximian.com>
31861 * MdiChildContext.cs: Obey rules for fixed sized windows (no
31862 sizing or cursor changes). Also added some temp code to draw the
31863 titlebars text (Makes dev a little easier).
31865 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31867 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
31869 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
31871 * ListBox.cs: Fixes bug 76253
31873 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
31875 * ImageList.cs: Added comments about the current implementation. Added
31876 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
31877 Format32bppArgb to preserve transparency and can use Graphics.FromImage
31878 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
31879 with Bitmap.LockBits for better performance. Revised the whole file to
31880 match MS.NET behaviour and provide better performance. Non-public
31881 interface members are calling public members even when they throw
31882 NotSupportedException for better maintainability. Moved ColorDepth,
31883 ImageSize, ImageStream and TransparentColor implementations to
31884 ImageCollection for better performance as these properties are not used
31886 * ImageListStreamer.cs: Added a new internal constructor that takes an
31887 ImageList.ImageCollection and serializes Images based on
31888 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
31889 match ImageList property name.
31891 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
31893 * ListBox.cs: Fixes IndexFromPoint for last item
31895 2005-09-27 Jackson Harper <jackson@ximian.com>
31897 * Form.cs: Set the position of new mdi children correctly.
31899 2005-09-27 Jackson Harper <jackson@ximian.com>
31901 * MdiClient.cs: New mdi children need to be added to the back of
31902 the controls collection so the zorder is set correctly. Also add a
31903 count of all the child windows that have been created.
31905 2005-09-27 Jackson Harper <jackson@ximian.com>
31907 * Form.cs (CreateParams): Setup MDI forms correctly.
31909 2005-09-27 Jackson Harper <jackson@ximian.com>
31911 * MdiChildContext.cs:
31912 * MonthCalendar.cs:
31918 * ScrollableControl.cs:
31919 * ComboBox.cs: Add implicit controls using the new implict control
31920 functionality in ControlCollection. Also try to block multiple
31921 control add in a suspend/resume layout to save some cycles.
31923 2005-09-27 Jackson Harper <jackson@ximian.com>
31925 * Control.cs: Add functionality to the controls collection to add
31926 'implicit controls' these are controls that are created by the
31927 containing control but should not be exposed to the user. Such as
31928 scrollbars in the treeview.
31929 * Form.cs: The list var of the ControlsCollection is no longer
31930 available because of the potential of implicit controls getting
31931 ignored by someone accessing the list directly.
31933 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
31935 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
31936 loose it's parent. (Fixed bug introduced in r49103 when we added
31937 setting the child parent to null on Remove)
31939 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
31941 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
31942 * Splitter.cs: Added missing attributes for BorderStyle property.
31943 * TextBoxBase.cs: Marked Calculate* methods internal.
31944 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
31947 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
31949 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
31951 2005-09-25 Jackson Harper <jackson@ximian.com>
31953 * TreeView.cs: Update the node bounds correctly regardless of
31954 whether the node is visible.
31956 2005-09-25 Jackson Harper <jackson@ximian.com>
31958 * ImageList.cs: Don't dispose the image after it is added to the
31959 image list. Only reformat images that need to be resized.
31961 2005-09-25 Jackson Harper <jackson@ximian.com>
31963 * ImageList.cs: Don't set the format when changing the image.
31965 2005-09-25 Jackson Harper <jackson@ximian.com>
31967 * TreeView.cs: We can't just assume the node has a font. Use the
31968 treeviews font if no node font is available.
31970 2005-09-25 Jackson Harper <jackson@ximian.com>
31972 * TreeView.cs: Allow the scrollbars to be reset with negative
31974 - Don't add scrollbars to negative sized windows.
31976 2005-09-23 Jackson Harper <jackson@ximian.com>
31978 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
31979 old Mono.Posix. Also remove some stray code that shouldn't have
31982 2005-09-23 Jackson Harper <jackson@ximian.com>
31984 * TreeView.cs: Attempt at proper sizing of the horizontal
31985 scrollbar. Also don't resize the scrollbars unless they are
31988 2005-09-23 Jackson Harper <jackson@ximian.com>
31990 * TreeView.cs: We don't need to expand the invalid area when the
31991 selection changes, as this is all drawn in the node's bounding
31992 box. The area needs to be expanded (previous typo was contracting
31993 it) when the focus rect moves.
31995 2005-09-23 Jackson Harper <jackson@ximian.com>
31997 * TreeView.cs: Display the selection box under the correct
31998 circumstances. We were rendering white text with no selection box
32001 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
32003 * TextControl.cs(Split): Now updates selection start/end if it points
32004 into a line that's being split. Fixes a FIXME and bug #75258
32006 2005-09-23 Jackson Harper <jackson@ximian.com>
32009 * ListControl.cs: Don't use the path when retrieving binding
32010 managers from the binding context. My bat sense tells me that the
32011 path is only used on insertion.
32013 2005-09-22 Jackson Harper <jackson@ximian.com>
32015 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32017 2005-09-22 Jackson Harper <jackson@ximian.com>
32019 * Splitter.cs: There are special cursors used for splitting.
32020 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32022 2005-09-22 Jackson Harper <jackson@ximian.com>
32024 * Splitter.cs: Change the cursor appropriately when the splitter
32025 is moused over, so the user actually knows there is a splitter
32028 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32030 * Label.cs : Fix ToString method to give same output as MS.NET
32032 2005-09-22 Jackson Harper <jackson@ximian.com>
32034 * TreeView.cs: Create the scrollbars when the handle is created
32035 and add them right away, just make them invisble. Also account for
32036 the window being shrunk vertically to the point that the vert
32037 scrollbar needs to be added.
32038 - Remove some 0.5 adjustments to get around anti aliasing issues.
32040 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
32042 * MainMenu.cs: Fixes default value
32043 * MenuItem.cs: Fixes default value
32045 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
32047 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32049 2005-09-21 Jackson Harper <jackson@ximian.com>
32051 * Control.cs: Don't try to set the border style on the window if
32052 it hasn't been created. When the window is created the border
32053 style will be used.
32055 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32057 * Control.cs (Update): Don't call XplatUI if we don't have a
32060 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32062 * ContainerControl.cs: Instead of throwing an exception, print
32063 a one-time warning about Validate not being implemented
32064 * XplatUIWin32.cs: Removed debug output
32066 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32068 * Control.cs: Only set XplatUI background if we expect the windowing
32069 system to handle the background. This stops controls that draw their
32070 own background from flickering
32072 * XplatUIX11.cs: Support custom visuals and colormaps for window
32073 creation. This allows, amongst other things, using MWF X11 windows
32076 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
32078 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32079 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32080 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32081 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32082 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32083 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32084 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32085 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32086 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32087 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32088 GridColumnStylesCollection.cs,
32089 IDataGridColumnStyleEditingNotificationService.cs,
32090 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32091 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32092 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
32093 TreeNodeCollection.cs, AmbientProperties.cs,
32094 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32095 DataObject.cs, ErrorProvider.cs, Splitter.cs,
32096 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32097 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32098 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32099 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32100 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32101 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32102 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32103 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32104 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32105 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32106 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32107 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32108 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32109 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32110 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32111 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32112 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32113 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32114 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32115 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32116 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32117 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32118 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32119 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32120 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32121 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32122 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32123 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32124 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32125 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32126 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32127 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32128 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32129 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32130 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32132 2005-09-21 Jackson Harper <jackson@ximian.com>
32134 * TreeNode.cs: Call Before/After Expand not Collapse when
32137 2005-09-20 Jackson Harper <jackson@ximian.com>
32139 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32141 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
32145 - Fixes proper storing of subitems
32146 - Fixes not updated items
32148 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
32150 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32151 things if our window handle isn't created yet. Also disabled
32152 debug for TextBoxBase
32154 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
32156 * MenuAPI.cs: Remove filtering of events to allow menu usage
32158 2005-09-20 Miguel de Icaza <miguel@novell.com>
32160 * Cursor.cs: Allow null to be passed to Cursor.Current.
32162 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
32164 * ThemeWin32Classic.cs:
32165 - Change some private methods/fields to protected virtual so that
32166 they can be accessed and overriden in derived classes
32167 - First refactoring of some methods. Derived themes now don't
32168 need to duplicate the complete code from ThemeWin32Classic
32170 - Added nice StatusBar
32171 - Derive from ThemeWin32Classic and not Theme
32172 - Removed duplicate ThemeWin32Classic code
32174 2005-09-20 Miguel de Icaza <miguel@novell.com>
32176 * Control.cs (ControlCollection.Add): If the value null is passed
32177 the control is ignored.
32179 Optimize this loop.
32181 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
32183 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32184 PostQuitMessage state.
32185 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32187 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
32189 * Application.cs: Our constructor will never get called, move
32190 initialization to fields; fixes bug #75933
32192 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32195 - Allow files to be selected properly using file name
32197 - Add ability to change diretory (absolute / relative)
32198 using file name combo box.
32200 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
32203 - Fixes Multicolumn listboxes item wrong calculations
32204 - Allows to click when only one item is in the listbox
32205 - Fixes crash when no items using keyboard navigation
32207 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
32209 * ComboBox.cs: Reverted almost everything from the latest patch which
32212 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
32215 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32217 - When DropDownStyle is Simple, it does not show scrollbar
32218 to the last item of the list.
32219 - When DropDownStyle is Simple, it crashed when the list was
32220 scrolled down with the down cursor key.
32221 - Fixed a bug that when DropDownStyle is DropDownList, the
32222 selected item was not shown.
32223 - The position of the selected item was not preserved when
32224 the next dropdown happened.
32225 * ThemeWin32Classic.cs:
32226 - Items were wrapped at the right end.
32227 * CheckedListBox.cs:
32230 - Items should be fully shown.
32231 - When resizing and vertical scrollbar disappeared, the item
32232 of index 0 should be on the top of the list.
32233 - GetItemRectangle should consider the size of ver. scrollbar
32235 - SizingGrip area should not be allocated when it is not
32237 - Now it reflects MinWidth of the containing panel and
32238 fixed a crash that happens when its width becomes so small.
32240 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
32242 * CheckedListBox.cs: Fixes bug 76028
32243 * ListBox.cs: Fixes bug 76028
32245 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
32247 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32248 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32250 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
32252 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32254 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
32256 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
32258 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
32260 * IRootGridEntry.cs: Added
32261 * PropertyGridCommands.cs: Added
32262 * PropertiesTab.cs: Added missing methods and property
32263 * PropertyGridView.cs: Made class internal
32264 * PropertyGridTextBox.cs: Made class internal
32266 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
32268 * MimeIcon.cs: Try to check some other environment variables
32269 if "DESKTOP_SESSION" returns "default"
32271 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
32273 * ThemeNice.cs: Corrected background colors (e.g. menus)
32274 * ColorDialog.cs: Use correct background colors for controls
32276 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
32278 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32280 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
32282 * RichTextBox.cs: Added initial implementation
32283 * lang.cs: Removed. Was accidentally checked in long time ago
32284 * TODO: Removed. Contents were obsolete
32286 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
32288 * PropertiesTab.cs : Added
32290 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
32292 * PropertyGrid.cs : Update
32293 * PropertyGridView.cs : Update
32294 * System.Windows.Forms.resx : Added images and strings
32296 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
32298 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32300 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
32302 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32303 a busy loop right after the Ungrab the X11 display is otherwise
32306 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
32308 * ThemeWin32Classic.cs: Optimise the use of clipping
32310 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
32312 * DataGrid.cs: fixes recursion bug
32314 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
32317 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32320 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
32322 * ThemeNice.cs: Draw nice ProgressBars
32324 2005-09-01 Miguel de Icaza <miguel@novell.com>
32326 * VScrollBar.cs: Another buglet found by Aaron's tool.
32328 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32331 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
32334 - Added nicer menu drawing
32338 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32340 * CreateParams.cs (ToString): Made output match MS
32341 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
32342 handle is already created (to avoid forcing window creation)
32343 * XplatUIX11.cs: Set window text to caption after creating window,
32344 in case Text was set before window was created
32345 * Form.cs: Use this.Text instead of a static string as caption
32347 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32349 * NotifyIcon.cs: Don't set the window to visible; this screws
32350 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32351 OnPaint without a bitmap)
32352 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
32353 happen very often anyway; we could add the check to the WM_PAINT
32354 event generation code
32356 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32358 * NotifyIcon.cs: Fill the icon area with a background color, to
32359 avoid 'residue' when transparent icons are drawn
32361 - Handle whole_window == client_window when destroying windows
32362 - SystrayAdd(): Set client_window to whole_window value to
32363 get mouse and other events passed to NotifyIcon
32365 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
32367 * Form.cs: Set proper default for Opacity property
32369 - ShowSystray(): Don't bother creating telling the OS
32370 about the systray item if no icon is provided
32371 - Now handles WM_NCPAINT message to deal with whole/client window
32373 - Create window as visible to not get caught by Expose optimization
32374 * Hwnd.cs: Removed debug message
32375 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32376 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
32377 PaintEventStart/End to use new client argument
32379 - Commented out debug messages
32380 - Switched PaintEventStart/End to use new client argument
32381 * XplatUI.cs: Added client window bool to PaintEventStart()/
32382 PaintEventEnd() calls, to support drawing in non-client areas
32383 * XplatUIDriver.cs:
32384 - Added client window bool to PaintEventStart()/PaintEventEnd()
32385 calls, to support drawing in non-client areas
32386 - Added conditional compile to allow using MWF BeginInvoke
32389 - Added some conditional debug output
32390 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32391 whole/client window split
32392 - Implemented handling of client argument to PaintEventStart()/End()
32394 - Throw exception if BeginInvoke() is called and the window handle
32395 or one of the window's parent handles is not created
32396 - Added conditional compile to allow using MWF BeginInvoke on
32398 - get_Parent(): Only sets parent if handle is created. This avoids
32399 forcing window handle creation when parent is set.
32400 - Now fires Layout and Parent changed events in proper order
32401 - Switched to use Handle instead of window.Handle for Z-Order setting,
32402 the get_Parent() patch above causes us to possibly get null for 'window'
32403 - Implemented handling of client argument to PaintEventStart()/End()
32404 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32406 - Now sends a Refresh() to all child windows when Refresh() is called
32408 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
32410 * Form.cs: Added (non-functional) Opacity property
32411 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32413 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
32414 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32415 use export MONO_THEME=nice to activate it.
32416 Currently supported controls:
32420 - TabControl (TabAlignment.Top only, other will follow)
32421 * ThemeEngine.cs: Add theme nice
32422 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32425 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
32427 * Splitter.cs: Resize docked control and its neighbor.
32429 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32430 -- Making Windows with Menus layout correctly --
32431 * Form.cs : The first leg of the fix
32432 Menu setter - adjust Client Size as needed to make space for the menu
32433 SetClientSizeCore - doesn't call base version to be able to pass the
32434 menu handle to XplatUI.CalculateWindowRect
32435 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32436 * XplatUIX11.cs: The critical second leg of the fix
32437 GetWindowPos needs to use a recalculated client_rect
32438 so that resizing the window doesn't break layout of child controls.
32439 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32440 Lots of \t\n killed
32442 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
32444 * Label.cs: Now properly recalculates width and height on Font and Text
32445 changes if AutoSize is set
32447 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32448 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32450 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
32452 * ImageList.cs: Makes ToString method compatible with MS
32454 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
32456 * MenuAPI.cs: fixes bug 75716
32458 2005-08-11 Umadevi S <sumadevi@novell.com>
32459 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32461 2005-08-11 Umadevi S <sumadevi@novell.com>
32462 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32464 2005-08-10 Umadevi S <sumadevi@novell.com>
32465 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32467 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
32469 * Menu.cs: fixes bug 75700
32470 * MenuAPI.cs: fixes navigation issues
32472 2005-08-09 Umadevi S <sumadevi@novell.com>
32473 * CheckedListBox.cs - simple fix for GetItemChecked.
32475 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
32477 * ComboBox.cs: Serveral fixes
32478 * ListBox.cs: Serveral fixes
32480 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32482 * ComboBox.cs: Fixes FindString methods and GetItemHeight
32483 * ListBox.cs: Fixes FindString methods
32485 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
32487 * DataGrid.cs: fixes bugs exposed by new tests
32489 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
32491 * Mime.cs: Compile Mono assembly references only if compiling
32492 with Mono (Allows to build with VS.Net again)
32494 2005-07-28 Marek Safar <marek.safar@seznam.cz>
32496 * Control.cs (PaintControlBackground): Draw background image
32498 (CheckForIllegalCrossThreadCalls): Stubbed.
32500 * Form.cs (OnCreateControl): Center when should be centered.
32502 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32504 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
32506 * Binding.cs: Binding to properties should be case unsensitive
32508 2005-07-18 vlindos@nucleusys.com
32510 * DataGrid.cs: fixes setmember order
32512 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
32514 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32515 * FileDialog.cs: FileDialog is now resizable and uses the new
32518 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
32520 * DataGridTextBoxColumn.cs: default value
32521 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32522 * GridTableStylesCollection.cs: fixes checking MappingName
32523 * DataGridDrawingLogic.cs: fixes drawing logic issues
32524 * DataSourceHelper.cs: rewritten to make compatible with more data sources
32525 * DataGrid.cs: fixes
32527 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
32529 * MimeGenerated.cs: Use case sensitive comparer for
32530 NameValueCollections
32532 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
32534 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
32535 * ThemeWin32Classic.cs: bug fixes, code refactoring
32536 * DataGridDrawingLogic.cs: bug fixes, code refactoring
32537 * DataGrid.cs: bug fixes, code refactoring
32538 * DataGridTextBox.cs: bug fixes, code refactoring
32539 * DataGridColumnStyle.cs: bug fixes, code refactoring
32540 * Theme.cs: bug fixes, code refactoring
32542 2005-07-01 Peter Bartok <pbartok@novell.com>
32544 * TextControl.cs: Quick fix for the reported crash on ColorDialog
32545 and other text box usage
32547 2005-07-01 Jackson Harper <jackson@ximian.com>
32549 * TabControl.cs: Make sure the bottom of the tab covers the pages
32552 2005-06-30 Peter Bartok <pbartok@novell.com>
32554 * Form.cs (ShowDialog): Assign owner of the dialog
32555 * TextBoxBase.cs: Always refresh caret size when deleting, caret
32556 might have been moved to a tag with different height
32558 2005-06-30 Jackson Harper <jackson@ximian.com>
32560 * Form.cs: Don't create an infinite loop when setting focus
32561 * MenuItem.cs: Don't dirty the parents if we don't have any
32563 2005-06-29 Ben Maurer <bmaurer@ximian.com>
32565 * LibSupport.cs: Rename
32567 2005-06-29 Peter Bartok <pbartok@novell.com>
32569 * TextBoxBase.cs: Re-align caret after deleting a character
32571 - DeleteChars(): Ensure that tag covers the provided position
32572 - StreamLine(): Drop reference for dropped tag
32574 2005-06-29 Peter Bartok <pbartok@novell.com>
32577 - Selections now work properly, anchoring at the initial location
32578 and properly extending in either direction (SetSelectionToCaret(),
32579 SetSelectionStart() and SetSelectionEnd())
32580 - No longer redraws the whole control on selection change, now
32581 calculates delta between previous and new selection and only
32582 invalidates/redraws that area
32583 - Fixed FindPos() math off-by-one errors
32584 - Changed DeleteChars() to verify the provided tag covers the
32585 provided position, selections may have a tag that doesn't cover
32586 the position if the selection is at a tag border
32587 - Fixed off-by-one errors in DeleteChars()
32588 - Added missing streamlining check in DeleteChars() to remove
32590 - Implemented Invalidate() method, now properly calculates exposures
32591 between two given lines/positions
32592 - Implemented SetSelection()
32593 - Obsoleted and removed FixupSelection()
32594 - Improved RecalculateDocument() logic, removing code duplication
32596 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32598 * LibSupport.cs: changes to match different input/output arguments.
32600 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32602 * LibSupport.cs: added libsupport.so init routine.
32604 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
32606 * ControlBindingsCollection.cs
32607 - Throws an exception on null datasource when adding
32608 - Checks for duplicated bindings when adding
32610 2005-06-28 Jackson Harper <jackson@ximian.com>
32612 * TreeView.cs (OnKeyDown): Support left and right properly
32613 (navigates as well as expanding and collapsing.
32614 - Add support for Multiply, this expands all the selected nodes
32616 - Fix some tabbing.
32618 2005-06-28 Jackson Harper <jackson@ximian.com>
32620 * TreeView.cs: Implement keyboard navigation, currently supports,
32621 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32622 support for toggling checkboxes with the space bar.
32624 2005-06-28 Jackson Harper <jackson@ximian.com>
32626 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32629 2005-06-28 Jackson Harper <jackson@ximian.com>
32631 * TreeView.cs: Add missing event.
32633 2005-06-27 Peter Bartok <pbartok@novell.com>
32636 - Made line ending size configurable (now allows for counting
32637 lineendings as \n or \r\n)
32638 - Added margin to viewport to keep caret visible on right side
32639 - Fixed translation routines for line/pos to documentpos to consider
32640 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32641 - Fixed some line-endings to be unix style
32642 - Fixed Document.FormatText to perform it's calculations 1-based
32643 - Added descriptions for a few methods that might otherwise get
32645 - Added NOTE section with some basic conventions to remember at
32646 the top of the file
32647 - Major fixup for RichTextBox selection drawing:
32648 * Fixed crashes when multiple tags on a single line were selected
32649 * fixed selection box drawing not overlaying text
32650 * fixed bogus offset calculation for tags not starting at index 1
32651 * Switched behaviour from using multiple Substrings of a
32652 StringBuilder.ToString() to using multiple
32653 StringBuilder.ToString(start, length) statements, hoping this is
32654 faster (kept original version commented out in the code, in case
32655 original version was faster)
32656 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
32658 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32661 2005-06-27 Jackson Harper <jackson@ximian.com>
32663 * TabControl.cs: Move to the left and right with the arrow
32664 keys. These keys don't cycle beyond first and last like
32665 tab. Refresh all the tabs when scrolling them to the left or
32668 2005-06-27 Jackson Harper <jackson@ximian.com>
32671 - ToString: Added method
32672 - CreateParams: Remove TODO and comment
32673 - OnKeyDown: Cycle through bounds properly.
32674 - SelectedIndex: Scroll to the right or left if we need to
32675 display the newly selected tab.
32677 2005-06-23 Jackson Harper <jackson@ximian.com>
32679 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32682 2005-06-23 Jackson Harper <jackson@ximian.com>
32684 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32685 CTRL-SHIFT-TAB, and HOME, END are there any others?
32687 2005-06-23 Jackson Harper <jackson@ximian.com>
32689 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32691 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32693 * DataGridTextBoxColumn.cs: fixes and enhancements
32694 * ThemeWin32Classic.cs: fixes and enhancements
32695 * DataGridBoolColumn.cs: fixes and enhancements
32696 * DataGridDrawingLogic.cs: fixes and enhancements
32697 * CurrencyManager.cs: fixes and enhancements
32698 * DataGrid.cs: fixes and enhancements
32699 * DataGridColumnStyle.cs: fixes and enhancements
32701 2005-06-22 Jackson Harper <jackson@ximian.com>
32703 * TabControl.cs: Add some missing methods that just call into the
32704 base. Make the TabPageCollection's IList interface behave in the
32705 same manner as the MS implementation.
32707 2005-06-22 Peter Bartok <pbartok@novell.com>
32709 * TextControl.cs: Added sanity check
32711 - Fixed wrapping behaviour, don't set wrap on single line controls
32712 (this fixes the breakage of colordialog introduced in an earlier
32714 - Added rudimentary support for autoscrolling right-aligned controls
32715 (still needs fixing, also, center alignment scroll is missing)
32717 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
32719 * ScrollBar.cs: Fixes thumbpos on Maximum values
32721 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
32723 * PropertyGridView.cs: Pass context information to UITypeEditors
32725 2005-06-21 Peter Bartok <pbartok@novell.com>
32728 - Now calling PositionCaret with absolute space coordinates
32729 - Enabled vertical scrolling
32730 - Better tracking of scrollbar changes, tied into WidthChange
32732 - Improved cursor tracking
32733 - Removed debug output
32735 - PositionCaret coordinates are now works in absolute space, not
32737 - Improved tracking of document size
32738 - Added events for width and height changes
32740 2005-06-21 Peter Bartok <pbartok@novell.com>
32742 * Form.cs: Set focus to active control when form is activated
32744 - Added word-wrap functionality to RecalculateLine()
32745 - Added some short function descriptions for VS.Net to aid in
32746 writing dependent controls
32747 - Added Caret property, returning the current coords of the caret
32748 - Added ViewPortWidth and ViewPortHeight properties
32749 - Added Wrap property
32750 - Added CaretMoved event
32751 - Removed some old debug code
32752 - Split() can now create soft splits
32753 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32754 - Added method to format existing text
32755 - Fixed size/alignment calculations to use viewport
32756 - RecalculateDocument now can handle changing line-numbers while
32760 - Added some wrap logic, we don't wrap if alignment is not left
32761 - Added casts for scrollbar var, base class switched types to
32762 also support RichTextBoxA
32763 - Implemented handling of scrollbar visibility flags
32766 - Switched scrollbars type to RichTextBoxScrollBars to support
32768 - Added tracking of canvas width/height
32769 - Switched scrollbars to be not selectable (to keep focus on text)
32770 - Added central CalculateDocument() method to handle all redraw
32772 - Added ReadOnly support
32773 - Added WordWrap support
32774 - Fixed handling of Enter key (we now treat it as a DialogKey)
32775 - Fixed caret positioning when h or v scroll is not zero
32776 - Fixed placing/generation of vertical scrollbar
32777 - Added CalculateScrollBars() method to allow updating scrollbar
32778 limits and visibility
32779 - Fixed handling of horizontal scroll
32780 - Added handling of vertical scroll
32781 - Implemented auto-'jump' when caret moves to close to a left or
32782 right border and there is text to be scrolled into view (currently
32783 there's the potential for a stack overflow, until a bug in
32784 scrollbar is fixed)
32786 2005-06-21 Geoff Norton <gnorton@customerdna.com>
32788 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32790 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
32794 - return application/x-zerosize for files with size zero
32795 (if no extension pattern matches).
32796 - check matches collection for strings too.
32797 - return only the first mime type if the name value
32798 collection has more than one mime type.
32800 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
32802 * PropertyGrid.cs: Cleaned up some TODOs
32803 * PropertyGridView.cs: Added support for UITypeEditors
32805 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32807 * DataGrid.cs: clears cached value
32809 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
32811 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32812 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32813 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32814 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32816 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
32818 * ThemeWin32Classic.cs: fixes colour
32820 2005-06-15 Peter Bartok <pbartok@novell.com>
32822 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32823 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32824 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32825 * Control.cs: Added some MWFCategory and MWFDescription attributes
32826 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32828 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
32830 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32833 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
32835 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32836 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32837 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32838 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32839 * DataGrid.cs: default datagrid settings for Default Styles, fixes
32840 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32842 2005-06-13 Jackson Harper <jackson@ximian.com>
32844 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32845 isn't printed when the user enables dropping. (X11 does accept
32848 2005-06-13 Jackson Harper <jackson@ximian.com>
32850 * TreeView.cs: Remove some TODOS.
32852 2005-06-13 Jackson Harper <jackson@ximian.com>
32854 * Form.cs: Hook into the mdi framework.
32855 * MdiClient.cs: Use the base control collections add method so
32856 parents get setup correctly. Set the default back colour and dock
32858 * MdiChildContext.cs: New class, this bad actor handles an
32859 instance of an MDI window. Right now there is only basic
32860 support. You can drag, close, and resize windows. Minimize and
32861 Maximize are partially implemented.
32863 2005-06-13 Jackson Harper <jackson@ximian.com>
32865 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
32866 freaky when both vals are negative. NOTE: There are probably other
32867 places in XplatUIX11 that this needs to be done.
32869 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
32871 * DataGrid.cs: implement missing methods, move KeyboardNavigation
32872 * DataGridColumnStyle.cs: fixes signature
32874 2005-06-12 Jackson Harper <jackson@ximian.com>
32876 * XplatUIX11.cs: Use sizing cursors similar to the ones on
32879 2005-06-11 Jackson Harper <jackson@ximian.com>
32881 * StatusBarPanel.cs: Signature cleanups. Implement
32884 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
32886 * DataGridTextBoxColumn.cs: Honors aligment
32887 * GridColumnStylesCollection.cs: Contains is case unsensitive
32888 * GridTableStylesCollection.cs: several fixes
32889 * DataGridTableStyle.cs: default column creation
32890 * DataGridDrawingLogic.cs: fixes
32891 * CurrencyManager.cs: ListName property
32892 * DataGrid.cs: multiple styles support
32893 * DataGridColumnStyle.cs: fixes
32896 2005-06-10 Peter Bartok <pbartok@novell.com>
32898 * Control.cs(Select): Moved SetFocus call to avoid potential
32899 loops if controls change the active control when getting focus
32900 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
32901 the up/down buttons
32903 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
32905 * ImageListConverter.cs: Implemented
32907 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32909 * MonthCalendar.cs: Wired in NumericUpDown control for year
32911 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
32913 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
32914 DoubleClick events, since they are not meant to be fired.
32916 2005-06-09 Peter Bartok <pbartok@novell.com>
32918 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
32919 Jonathan's standalone controls into MWF, implemented missing
32920 events, attributes and methods; added xxxAccessible classes
32921 * AccessibleObject.cs: Made fields internal so other classes
32922 can change them if needed
32924 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
32926 * UpDownBase.cs: Complete implementation
32927 * NumericUpDown.cs: Complete implementation
32928 * DomainUpDown.cs: Complete implementation
32930 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
32932 * DataGridTextBoxColumn.cs: drawing fixes
32933 * DataGridCell.cs: fixes ToString method to match MSNet
32934 * DataGridTableStyle.cs: fixes
32935 * DataGridBoolColumn.cs: fixes, drawing
32936 * DataGridDrawingLogic.cs: fixes, new methods
32937 * DataGridTextBox.cs: Keyboard and fixes
32939 - Keyboard navigation
32941 - Row selection (single, multiple, deletion, etc)
32944 2005-06-07 Jackson Harper <jackson@ximian.com>
32946 * ThemeWin32Classic.cs: Clear the background area when drawing
32949 2005-06-06 Peter Bartok <pbartok@novell.com>
32951 * ImageListStreamer.cs: Fixed signature for GetData
32952 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
32954 - Added missing ChildAccessibleObject class
32955 - Added missing OnXXXFocus overrides, switched to using those
32956 instead of the event handler
32958 - Added Parent property for ControlAccessibleObject
32961 - Added ResetBindings()
32962 * ListBindingConverter.cs: Implemented some methods
32963 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
32964 * ImageList.cs: Implemented basic handle scheme, removed TODOs
32965 * ContainerControl.cs: Fixed signature, now subscribing to the
32966 ControlRemoved event instead of overriding the handler, LAMESPEC
32967 * CurrencyManager.cs: Added missing attribute
32968 * MonthCalendar.cs: Added missing properties
32970 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32972 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
32974 2005-06-06 Gaurav Vaish and Ankit Jain
32976 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
32977 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
32979 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
32981 * Control.cs: fixes CreateParams Width / Height.
32983 2005-06-05 Peter Bartok <pbartok@novell.com>
32985 * Win32DnD.cs: Removed compilation warnings
32987 2005-06-05 Peter Bartok <pbartok@novell.com>
32989 * Control.cs (CreateParams): Since we don't know if one of the
32990 properties we use is overridden, lets make sure if we fail accessing
32991 we continue with a backup plan
32993 2005-06-05 Peter Bartok <pbartok@novell.com>
32996 - Removed debug output
32997 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
32999 - Plugged resource leak
33000 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33003 2005-06-05 Peter Bartok <pbartok@novell.com>
33005 * XplatUIWin32.cs: Removed DnD code
33006 * Win32DnD.cs: Implemented drop source and drop target functionality
33008 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33010 * UpDownBase.cs: remove duplicate addition of event, enable some code
33011 that was commented out.
33012 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33013 Validate input when a key is pressed. It works fine now for every
33014 combination of Hexadecimal. Only missing some drawing love when sharing
33015 space with other controls.
33017 2005-06-04 Peter Bartok <pbartok@novell.com>
33020 - We need to pass a window for DragDrop, so enable callback events
33021 - Added DnD callback events when being a DragSource
33022 * XplatUI.cs (StartDrag): Added window handle argument
33023 * XplatUIDriver.cs (StartDrag): Added window handle argument
33024 * QueryContinueDragEventArgs: Made fields internally accessible so
33025 drivers can set them
33026 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33029 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
33031 * DataGridTextBoxColumn.cs: column text editing
33032 * DataGridTableStyle.cs: Respect columns styles created by the user
33033 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33034 * DataGridBoolColumn.cs: bool column editing
33035 * DataGrid.cs: fixes to scrolling, properties, etc
33036 * DataGridTextBox.cs: handle keyboard
33037 * DataGridColumnStyle.cs: fixes
33039 2005-06-02 Jackson Harper <jackson@ximian.com>
33041 * ImageListStreamer.cs: Somewhat broken implementation of
33042 GetObjectData. The RLE needs some work to match MS properly.
33044 2005-06-02 Jackson Harper <jackson@ximian.com>
33046 * X11Dnd.cs: Attempting to keep at least one file in MWF
33049 2005-06-02 Peter Bartok <pbartok@novell.com>
33051 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33054 2005-06-02 Peter Bartok <pbartok@novell.com>
33056 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33057 * XplatUI.cs: Added DoDragDrop() method
33058 * XplatUIDriver.cs: Added DoDragDrop() method
33060 2005-06-02 Jackson Harper <jackson@ximian.com>
33062 * Splitter.cs: Implement BorderStyle.
33064 2005-06-02 Jackson Harper <jackson@ximian.com>
33066 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33067 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33070 2005-06-02 Peter Bartok <pbartok@novell.com>
33073 - Added Data setter
33074 - Fixed broken insertion code for SetData, now also
33075 overwrites any existing entry of the same format name
33076 * Hwnd.cs: Added list of pointers that automatically gets
33077 freed when the window is disposed
33078 * XplatUI.cs: Call driver initialization method when loading
33081 - OnDragLeave takes EventArgs, not DragEventArgs
33082 - Added setting of WS_EX_ACCEPTFILES style when dropping is
33084 - Forces style update when drop state changes
33085 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33086 not perfect since we cannot (yet) call the IDataObject.GetData()
33087 method, we keep getting 0x80004005 error, dunno why)
33089 2005-06-02 Peter Bartok <pbartok@novell.com>
33091 * DragEventArgs.cs: Make fields internal so we can cache the
33092 object and re-set the fields from XplatUI
33094 2005-06-02 Jackson Harper <jackson@ximian.com>
33096 * Control.cs: Add some internal methods so the DnD subsystem can
33097 raise DnD events. Also call into the driver when AllowDrop is set.
33099 * XplatUIDriver.cs: New method for setting whether or not a window
33100 is allowed to accept drag and drop messages.
33102 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
33104 * ScrollBar.cs: Make sure that values sent in Scroll events
33105 are always between Maximum and Minimum.
33107 2005-06-01 Marek Safar <marek.safar@seznam.cz>
33109 * Menu.cs: Call MenuChanged when menuitem visibility has been
33111 * MenuItem.cs: Rebuild menu when item is (not) visible.
33112 * MainMenu.cs: MainMenu has special MenuChanged.
33113 * Theme.cs: Caption and FrameBorderSize are not fixed.
33114 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33115 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33117 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33118 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33120 2005-05-30 Jackson Harper <jackson@ximian.com>
33122 * DataFormat.cs: We can't statically initialize this stuff because
33123 it calls into the xplatui and could create a loop. So we lazy init
33126 2005-05-28 Jackson Harper <jackson@ximian.com>
33128 * Control.cs: Proper implementation of Product(Name/Version).
33130 2005-05-27 Jackson Harper <jackson@ximian.com>
33132 * DataObject.cs: Dont crash if no data is found.
33134 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33135 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33136 as per status page, guessing it should be set to true
33138 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
33140 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33141 * DataGridTableStyle.cs: set proper formatting text, def header text
33142 * ThemeWin32Classic.cs: new themable paramaters
33143 * DataGridBoolColumn.cs: paint check box, get data, fixes
33144 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33145 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33146 * DataGridColumnStyle.cs: fixes
33147 * Theme.cs: new themable paramaters
33149 2005-05-26 Peter Bartok <pbartok@novell.com>
33151 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33153 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33154 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33156 2005-05-24 Peter Bartok <pbartok@novell.com>
33158 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33159 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33160 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33161 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33162 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33163 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33164 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33165 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33166 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33167 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33168 missing attributes, etc
33169 * DataGridPreferredColumnWidthTypeConverter.cs: Added
33171 2005-05-24 Peter Bartok <pbartok@novell.com>
33173 * Help.cs: Added, implemented trivial functions, throws up MessageBox
33174 when user tries to get help
33175 * DataObject.cs, DataFormats.cs, LinkArea.cs,
33176 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33177 to suppress warnings
33178 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33179 avoid unreachable code warning
33181 2005-05-20 Peter Bartok <pbartok@novell.com>
33183 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33185 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
33187 * DataGridTextBoxColumn.cs: Basic painting methods
33188 * DataGridTableStyle.cs: Set table style in the column
33189 * ThemeWin32Classic.cs: Use Theme for colors
33190 * DataGridDrawingLogic.cs: Implement more drawing
33191 * DataGrid.cs: drawing, theming, enhacements, fixes
33192 * DataGridColumnStyle.cs: fixes, drawing
33193 * Theme.cs: theming for Datagrid
33195 2005-05-20 Peter Bartok <pbartok@novell.com>
33197 * Cursor.cs: Implemented GetObjectData() method
33199 2005-05-20 Peter Bartok <pbartok@novell.com>
33201 * Cursors.cs: Added setting of cursor name
33203 - Implemented constructors
33204 - Implemented Draw and DrawStretched
33205 - Implemented Current property
33206 - Implemented == and != operators
33207 - Implemented Dispose()
33208 - Implemented ToString
33209 - Added missing attributes
33211 - Added missing reset for OverrideCursor when DoEvents is called
33212 - Fixed creation of cursor, logic was wrong
33214 - Added missing reset for OverrideCursor when DoEvents is called
33215 - Fixed creation of cursor, bit arrays were swapped
33216 * Clipboard.cs: Removed obsolete MonoTODO attribute
33218 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
33220 * ComboBox.cs: fixes OnSelectedItemChanged
33221 * ControlBindingsCollection.cs: fixes item range check
33223 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
33226 - Calc preferred height properly
33227 - Implement missing properties
33229 * NumericUpDown.cs: Implement missing events
33231 2005-05-19 Jackson Harper <jackson@ximian.com>
33233 * TabControl.cs: New method that resizes the tab pages before
33234 redrawing them. This as needed as the control is double buffered
33235 and sizing will not be recalculated unless ResizeTabPages is
33237 * TabPage.cs: Set base.Text instead of Text in the constructor so
33238 that UpdateOwner does not get called. Use the new Redraw method of
33239 TabControl instead of Refresh so the sizing is recalculated.
33240 * ThemeWin32Classic.cs: Draw the text for button tabs.
33242 2005-05-19 Jackson Harper <jackson@ximian.com>
33244 * Control.cs: Paint control background images. Fix typo where
33245 PaintControlBackground was not getting called correctly.
33247 2005-05-19 Peter Bartok <pbartok@novell.com>
33249 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33250 I can investigate, apparently I broke FileDialog
33252 2005-05-19 Marek Safar <marek.safar@seznam.cz>
33254 * AxHost.cs: Some simple properties.
33255 * Control.cs: window must be accessible after ctor.
33256 * Form.cs: Added TransparencyKey property.
33257 * TextBoxBase.cs: Implemented Clear. Text property can be null.
33258 * XplatUIWin32.cs: SetBorderStyle implemented.
33260 2005-05-18 Peter Bartok <pbartok@novell.com>
33262 * DataObject.cs: Entries are not global but particular to the
33263 DataObject, now it behaves that way
33264 * XplatUIWin32.cs: Implemented Clipboard methods
33265 * Clipboard.cs: Implemented
33266 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33267 * XplatUIOSX.cs: Updated to final clipboard prototypes
33268 * XplatUIX11.cs: Implemented Clipboard methods
33269 * XplatUIDriver.cs: Updated to final clipboard prototypes
33270 * XplatUIStructs.cs:
33271 - Added BITMAPINFOHEADER struct
33272 - Added ClipboardFormats enum
33274 - Added ClipboardStruct
33275 - Added Atom enum items for clipboard types
33276 - Fixed atom types for Selection event structures
33278 - Added internal properties and methods for drivers to enumerate
33280 - Switched initialization method to allow drivers to assign their
33281 own IDs even for the MS predefined clipboard IDs
33282 * XplatUI.cs: Updated to final clipboard interface
33284 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33285 * PropertyGridView.cs: Fixed compiler warnings.
33287 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33288 * PropertyGrid.cs: Added some event calls
33289 * PropertyGridView.cs: Change drawing code to use double buffering
33290 * PropertyGridTextBox.cs: Changed Text property name
33291 * GridItem.cs: Added Bounds property.
33292 * GridEntry.cs: Added Bounds property.
33294 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
33296 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33297 since GetType() may not return the correct type if the object is
33300 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
33302 * TreeNodeCollection.cs: fixes get/set item ranges
33304 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
33306 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33308 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
33310 * ComboBox.cs: Fix item range comparation
33311 * ListView.cs: Fix item range comparation
33313 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
33316 - Clear example panel when OnPaint is called
33317 - Better solution for displaying the example panel text
33318 - Select default indexes in the ListBoxes
33320 2005-05-11 Geoff Norton <gnorton@customerdna.com>
33322 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
33324 2005-05-11 Peter Bartok <pbartok@novell.com>
33326 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33327 * SelectionRangeConverter.cs: Implemented
33328 * PropertyGrid.cs: Fixed attribute value
33330 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33331 - Added Sebastien Pouliot's CAS Stack Propagation fixes
33332 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33333 that's common to all drivers. First methods to go there are
33334 Sebastien Pouliot's CAS Stack Propagation helper methods
33335 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33336 Sebastien Pouliot for CAS Stack Propagation
33338 2005-05-11 Geoff Norton <gnorton@customerdna.com>
33341 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33343 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
33345 * DataGridTextBoxColumn.cs: fixed some members
33346 * GridColumnStylesCollection.cs: indexed column is case insensitive
33347 * DataGridTableStyle.cs: fixes
33348 * ThemeWin32Classic.cs: add new theme parameter
33349 * Theme.cs: add new theme parameter
33350 * DataGridDrawingLogic.cs: Datagrid's drawing logic
33351 * DataGrid.cs: fixes, new internal properties, etc.
33352 * DataGridColumnStyle.cs: allows to set grid value
33355 2005-05-10 Peter Bartok <pbartok@novell.com>
33357 * AccessibleObject.cs:
33358 - Removed MonoTODO attribute on help, method is correct
33359 - Fixed Bounds property
33360 * AxHost.cs: Moved MonoTODO
33361 * ButtonBase.cs: Now setting AccessibleObject properties
33362 * RadioButton.cs: Setting proper AccessibleObject role
33363 * CheckBox.cs: Setting proper AccessibleObject role
33364 * ControlBindingsCollection.cs: Added properties, methods and attributes
33365 * DataFormats.cs: Fixed awkward internal API, and changed to enable
33366 userdefined DataFormats.Format items as well
33367 * ListControl.cs: Removed data_member from the public eye
33368 * OpenFileDialog.cs:
33369 - Made class sealed
33370 - Added missing attributes
33371 * SaveFileDialog.cs: Added missing attributes
33372 * ImageListStreamer.cs: Fixed code that caused warnings
33373 * LinkLabel.cs: Removed unreachable code
33374 * TreeView.cs: Fixed code that caused warnings
33375 * PropertyGridView.cs: Fixed code that caused warnings
33376 * GridColumnStylesCollection.cs: Added missing attributes
33377 * GridTableStylesCollection: Added missing attribute
33378 * PropertyManager: Added .ctor
33379 * SecurityIDType: Added
33380 * DataObject.cs: Implemented class
33381 * LinkArea.cs: Added missing attribute
33383 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
33385 * RadioButton.cs: call base method to allow to fire OnClick event
33386 * UpDownBase.cs: OnMouseUp call base method
33387 * CheckedListBox.cs: call base method before returning
33388 * TrackBar.cs: call base method before returning
33391 2005-05-10 Peter Bartok <pbartok@novell.com>
33393 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33396 2005-05-10 Peter Bartok <pbartok@novell.com>
33398 * DataFormats.cs: Implemented
33399 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33400 XplatUIX11.cs: Added Clipboard APIs
33401 * XplatUIWin32.cs: Implemented Clipboard APIs
33402 * FolderBrowserDialog.cs: Added missing event, attributes
33404 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
33406 * CheckBox.cs: call base method to allow to fire OnClick event
33408 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
33410 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33412 2005-05-06 Peter Bartok <pbartok@novell.com>
33414 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33415 * Screen.cs: Implemented
33416 * HelpNavigator.cs: Added
33417 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33419 * HelpProvider.cs: Implemented all we can do until we have a CHM
33420 help library (which means that "What's This" does work now)
33422 2005-05-06 Jackson Harper <jackson@ximian.com>
33424 * XplatUIX11.cs: Fix waking up the main loop.
33426 2005-05-05 Peter Bartok <pbartok@novell.com>
33428 * XplatUI.cs: Updated revision
33429 * Form.cs: Removed enless loop
33430 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33431 * Label.cs (OnPaint): Added call to base.OnPaint()
33432 * ToolTip.cs: Made ToolTipWindow reusable for other controls
33433 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33434 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33436 * ButtonBase.cs: Moved base.OnPaint() call to end of method
33437 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33438 to ToolTip.ToolTipWindow for drawing and size methods; this allows
33439 reuse of ToolTipWindow by other controls
33440 * SizeGrip.cs: Moved base.OnPaint() call to end of method
33441 * XplatUIX11.cs: Now clipping drawing area (experimental)
33442 * PictureBox.cs: Moved base.OnPaint() call to end of method
33443 * Theme.cs: Fixed ToolTip abstracts to match new format
33444 * ErrorProvider.cs: Implemented
33446 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
33448 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33452 - Implements LinkBehavior
33453 - Fixes many issues
33455 2005-05-03 Jackson Harper <jackson@ximian.com>
33457 * ListView.cs: Calculate the scrollbar positioning on resize and
33458 paint, so they get put in the correct place.
33460 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
33462 * ColorDialogs.cs: The small color panels are now handled by
33463 SmallColorControl. This fixes drawing of the focus rectangle
33464 and adds a 3D border.
33466 2005-05-03 Peter Bartok <pbartok@novell.com>
33468 * Control.cs: Modified version of Jonathan Chamber's fix for
33471 2005-05-03 Jackson Harper <jackson@ximian.com>
33473 * ListView.cs: Remove redraw variable. Control now handles whether
33474 or not a redraw needs to be done, and will only raise the paint
33475 event if redrawing is needed.
33477 2005-05-03 Jackson Harper <jackson@ximian.com>
33479 * Splitter.cs: No decorations for the splitter form. Cache the
33482 2005-05-03 Jackson Harper <jackson@ximian.com>
33484 * TreeView.cs: Use dashed lines to connect nodes. Use the
33485 ControlPaint method for drawing the focus rect instead of doing
33488 2005-05-02 Peter Bartok <pbartok@novell.com>
33490 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33492 2005-04-29 Jackson Harper <jackson@ximian.com>
33494 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33495 entire image buffer. Just clear the clipping rectangle.
33497 2005-04-29 Jackson Harper <jackson@ximian.com>
33499 * ThemeWin32Classic.cs: Don't draw list view items that are
33500 outside the clipping rectangle.
33502 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
33504 * ListBox.cs: added horizontal item scroll
33506 2005-04-29 Jackson Harper <jackson@ximian.com>
33508 * ThemeWin32Classic.cs: Remove some old debug code that was
33509 causing flicker with the new double buffering code.
33511 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
33513 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33514 behave like combobox and comboboxlist (still not sure if this is
33517 2005-04-28 Jackson Harper <jackson@ximian.com>
33519 * ThemeWin32Classic.cs: Don't fill the middle of progress
33520 bars. This fills areas outside of the clip bounds that don't need
33523 2005-04-28 Jackson Harper <jackson@ximian.com>
33525 * Control.cs: Don't expose functionality to touch the image buffers.
33527 * ListView.cs: We do not need to (and no longer can) manipulate
33528 the image buffers directly. All of this is handled by Control.
33530 2005-04-28 Peter Bartok <pbartok@novell.com>
33532 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33533 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33534 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33536 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33539 - Adjust control's height for non-simple comboboxes (bug fix)
33541 * MenuAPI.cs: remove unused var
33542 * ScrollBar.cs: remove unsed var
33544 * ListBox.cs: unselect items when clearing
33546 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
33548 * ListControl.cs: honors OnPositionChanged and default Selected Item
33549 * ListBox.cs: unselect items when clearing
33551 2005-04-27 Jackson Harper <jackson@ximian.com>
33553 * X11Keyboard.cs: Initialize a default keyboard and give a warning
33554 if a "correct" keyboard is not found. This will make us not crash,
33555 but might give some users bad keyboard layouts...seems to be the
33556 same thing rewind does.
33558 2005-04-27 Jackson Harper <jackson@ximian.com>
33560 * BindingManagerBase.cs: Attach the current/position changed
33561 handlers to their respective events.
33563 2005-04-27 Jackson Harper <jackson@ximian.com>
33565 * Control.cs: Make sure that the first WM_PAINT does a full draw,
33567 * ThemeWin32Classic.cs: Don't fill the background for picture
33568 boxes. This could overright user drawing.
33569 * ComboBox.cs: Just fill the clipping rect not the entire client
33570 rect when drawing the background. This prevents pieces of the
33571 image buffer from getting overwritten and is theoretically faster.
33573 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
33575 * ComboBox.cs: Databinding support fixes, fire missing events
33576 * ListControl.cs: implement missing methods and properties, fixes
33577 * ThemeWin32Classic.cs: Databiding support on Drawing
33578 * CheckedListBox.cs: Databinding support fixes, fire missing events
33579 * ListBox.cs: Databinding support fixes, fire missing events
33581 2005-04-25 Peter Bartok <pbartok@novell.com>
33583 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33585 2005-04-25 Jackson Harper <jackson@ximian.com>
33587 * TreeView.cs: Use the horizontal scrollbars height not width when
33588 determining how much of the client area is available.
33590 2005-04-25 Jackson Harper <jackson@ximian.com>
33592 * Control.cs: Double buffering is handled differently now. As per
33593 the spec, the extra buffer is created in the WM_PAINT message and
33594 passed down to the control's drawing code.
33602 * PropertyGridView.cs:
33614 * DateTimePicker.cs:
33616 * TreeView.cs: Update to new double buffering system.
33617 * MonthCalendar.cs: Uncomment block, as Capture is now
33618 working. Update to new double buffering
33619 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33620 * PaintEventArgs.cs: New internal method allows us to set the
33621 graphics object. This is used for double buffering.
33622 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33623 rectangle. The internal paint_area var has been removed from
33624 StatusBar. The clipping rect should be used instead.
33625 * Theme.cs: Give the PictureBox drawing method a clipping rect.
33626 * TabPage.cs: The RefreshTabs method was removed, so just call the
33627 tab controls Refresh method now.
33628 * TabControl.cs: Update to new double buffering. Make sure the
33629 handle is created before sizing the tab pages, otherwise we will
33630 get stuck in a loop.
33632 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
33634 * LinkLabel.cs: Fix typo, bug #74719; patch
33635 from Borja Sanchez Zamorano
33637 2005-04-22 Jackson Harper <jackson@ximian.com>
33639 * TreeNode.cs: Implement Handle stuff.
33640 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33642 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
33644 * DataGridTextBoxColumn.cs: call base constructors, fixes
33645 * GridColumnStylesCollection.cs: missing events, methods, and functionality
33646 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33647 * DataGridTableStyle.cs: implements create default column styles
33648 * DataGridBoolColumn.cs: which types can handle
33649 * DataGrid.cs: missing methods, fixes, new functionality
33650 * DataGridColumnStyle.cs: fixes
33652 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
33653 * FolderBrowserDialog.cs:
33654 - Use a thread to fill the TreeView
33655 - Adjusted some sizes
33657 2005-04-19 Peter Bartok <pbartok@novell.com>
33659 * LinkLabel.cs: (Re-)create the pieces when setting the Text
33660 property. Fixes #74360.
33662 2005-04-19 Jackson Harper <jackson@ximian.com>
33664 * XEventQueue.cs: Lock when getting the lockqueue size.
33665 * PictureBox.cs: Call base OnPaint
33667 2005-04-19 Peter Bartok <pbartok@novell.com>
33669 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33670 messages were no longer being processed (this broke BeginInvoke)
33673 2005-04-18 Jackson Harper <jackson@ximian.com>
33675 * TreeView.cs: buglet that caused node images to get drawn
33676 regardless of whether or not they were in the clipping rectangle.
33678 2005-04-18 Jackson Harper <jackson@ximian.com>
33680 * CurrencyManager.cs: There are four rules for GetItemProperties:
33681 - If the type is an array use the element type of the array
33682 - If the type is a typed list, use the type
33683 - If the list contains an Item property that is not an object, use
33685 - use the first element of the list if there are any elements in
33688 2005-04-17 Jackson Harper <jackson@ximian.oom>
33690 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33691 click. This handles offsets for scrolling properly and reduces
33692 memory. Also fixed GetNode to not offset now that TopNode works
33694 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33696 2005-04-17 Jackson Harper <jackson@ximian.com>
33698 * CursorConverter.cs: Initial implementation.
33700 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33702 * ListControl.cs: work towards complex data binding support on ListControl
33703 * CurrencyManager.cs: work towards complex data binding support on ListControl
33704 * ListBox.cs: work towards complex data binding support on ListControl
33707 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
33709 * GridTableStylesCollection.cs: fixes name and constructor
33710 * DataGridTableStyle.cs: fixes
33711 * DataGridBoolColumn.cs: fixes names and constructors
33712 * DataGrid.cs: define methods and properties. Some init implementations
33713 * DataGridCell.cs: define methods and properties. Some init implementations
33714 * GridTablesFactory.cs: Define methods and properties
33716 2005-04-15 Geoff Norton <gnorton@customerdna.com>
33718 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
33719 graphics port changes. We still want the coordinates in global screen
33722 2005-04-14 Jackson Harper <jackson@ximian.com>
33724 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33725 check plus minus or checkbox clicks unless those features are enabled.
33727 2005-04-14 Jackson Harper <jackson@ximian.com>
33729 * TreeView.cs: Add methods for setting the top and bottom visible
33730 nodes. TreeNode::EnsureVisible uses these methods.
33731 * TreeNode.cs: Implement EnsureVisible
33733 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
33735 * Form.cs: Pospone menu assignation if the window has not been created yet
33736 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33739 2005-04-12 Jackson Harper <jackson@ximian.com>
33741 * TreeView.cs: Set the TopNode properly when scrolling
33742 occurs. This has the added benifit of reducing the amount of
33743 walking that needs to be done when drawing. Also removed an old
33745 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33747 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
33749 * Timer.cs: fixes interval setting when the timer is already enabled
33751 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
33753 * FolderBrowserDialog.cs: First approach
33755 2005-04-09 Peter Bartok <pbartok@novell.com>
33757 * FolderBrowserDialog: Added
33759 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
33761 * LinkLabel.cs: move drawing code into the theme
33762 * ThemeWin32Classic.cs: drawing code and painting background bugfix
33763 * Theme.cs: define DrawLinkLabel method
33765 2005-04-05 Jackson Harper <jackson@ximian.com>
33767 * BindingContext.cs: Use weak references so these bad actors don't
33768 stay alive longer then they need to.
33770 2005-04-05 Jackson Harper <jackson@ximian.com>
33772 * ListControl.cs: Basic implementation of complex databinding.
33774 * ListBox.cs: Add calls to ListControl databinding methods.
33776 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
33779 - Don't change PopupButtonState to Normal when the
33780 PopupButton gets pressed several times.
33781 - Renamed ButtonPanel to PopupButtonPanel
33783 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
33785 * ColorDialog.cs: Use cached objects instead of creating them
33786 * LinkLabel.cs: Use cached objects instead of creating them
33787 * Splitter.cs: Use cached objects instead of creating them
33788 * FontDialog.cs: Use cached objects instead of creating them
33789 * PropertyGridView.cs: Use cached objects instead of creating them
33790 * MessageBox.cs: Use cached objects instead of creating them
33791 * FileDialog.cs: Use cached objects instead of creating them
33792 * ThemeWin32Classic.cs: Use cached objects instead of creating them
33793 * TreeView.cs: Use cached objects instead of creating them
33795 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
33797 * Control.cs: use Equals to compare the font since no == op
33798 * ScrollBar.cs: use Equals to compare the font since no == op
33800 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
33802 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33804 2005-04-01 Jackson Harper <jackson@ximian.com>
33806 * Binding.cs: Implement IsBinding.
33807 * BindingManagerBase.cs:
33808 * PropertyManager.cs:
33809 * CurrencyManager.cs: Add IsSuspended property.
33811 2005-04-01 Jackson Harper <jackson@ximian.com>
33813 * Binding.cs: Had some IsAssignableFrom calls backwards.
33815 2005-04-01 Jackson Harper <jackson@ximian.com>
33817 * Binding.cs: Handle null data members when pulling data.
33818 * PropertyManager.cs: Handle the data member being a property that
33821 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33823 * DataGridTextBoxColumn.cs: fixes signature
33824 * DataGrid.cs: calls right constructor
33826 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
33828 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33829 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33830 * GridTableStylesCollection.cs: implements GridTableStylesCollection
33831 * DataGridTableStyle.cs: implements DataGridTableStyle
33832 * DataGridBoolColumn.cs: implements DataGridBoolColumn
33833 * DataGridTextBox.cs: implements DataGridTextBox
33834 * DataGridColumnStyle.cs: implements DataGridColumnStyle
33836 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
33838 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33840 2005-03-29 Peter Bartok <pbartok@novell.com>
33843 - Properly implemented CompanyName property
33844 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33845 returns a path that includes CompanyName, ProductName and
33846 Version (fixes bug #70330)
33848 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
33850 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33853 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33855 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
33857 - Added ReadOnly CheckBox
33858 - Further refactoring: moved some code from Open-/SaveFileDialog
33861 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
33863 * OpenFileDialog.cs: Fixed CheckFileExists
33865 Moved FileView and DirComboBox outside FileDialog class.
33866 They can now be used outside FileDialog
33868 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33870 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
33871 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
33873 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
33875 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
33876 - Added missing CreatePrompt property in SaveDialog
33877 - Overall SaveDialog handling should be better now
33878 - Added non standard ShowHiddenFiles property
33879 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
33880 - Added InitialDirectory and RestoreDirectory support
33882 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
33884 * FileDialog.cs: Made dirComboBox usable
33886 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
33888 * FileDialog.cs: Added Filter support (case sensitiv)
33890 2005-03-24 Jackson Harper <jackson@ximian.com>
33892 * TabControl.cs: Need a couple more pixels for the lines.
33894 2005-03-23 Jackson Harper <jackson@ximian.com>
33896 * TabControl.cs: Give the tab page focus when it is selected.
33898 2005-03-23 Jackson Harper <jackson@ximian.com>
33900 * TabControl.cs: Account for the drawing of tabs borders when
33901 invalidating. If the slider was clicked dont do click detection on
33904 2005-03-23 Jackson Harper <jackson@ximian.com>
33906 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
33908 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
33910 * CategoryGridEntry.cs: Added
33911 * GridItem.cs: Added helper properties
33912 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
33913 * GridEntry.cs: Updated code for collection
33914 * PropertyGrid.cs: Cleaned up some formatting
33915 * PropertyGridView.cs: Added drop down functionality for enums.
33916 * GridItemCollection.cs: Added enumerator logic
33917 * PropertyGridEntry.cs: Added
33919 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33922 - Removed unnecessary commented code
33923 - Fixed handling for entering the filename manually in the combobox
33925 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
33927 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
33929 2005-03-18 Peter Bartok <pbartok@novell.com>
33931 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
33932 them being touching the border
33934 2005-03-18 Peter Bartok <pbartok@novell.com>
33936 * TextControl.cs: Quick hack to center text better
33938 2005-03-18 Peter Bartok <pbartok@novell.com>
33941 - Don't throw NotImplemented exceptions, just print a notice once
33942 instead (requested by Miguel). This makes running existing SWF
33945 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
33946 - Added context menu trigger on right click
33947 * Panel.cs: Trigger invalidate on resize
33949 - Removed old double-buffer drawing
33950 - Added ResizeRedraw style to force proper update of statusbar
33952 - Removed debug output
33953 * ThemeWin32Classic.cs:
33954 - Fixed drawing of status bar, now draws Text property if there
33955 are no defined panels
33957 2005-03-18 Jackson Harper <jackson@ximian.com>
33959 * ImageList.cs: When the image stream is set pull all the images
33961 * ImageListStreamer.cs: Implement reading image list streams.
33963 2005-03-18 Peter Bartok <pbartok@novell.com>
33965 * ThemeWin32Classic.cs (DrawPictureBox):
33966 - Fixed calculations for centered drawing
33967 - Fixed drawing for normal mode, not scaling the image on normal
33969 2005-03-18 Peter Bartok <pbartok@novell.com>
33971 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
33974 - Made Open/Save button the accept button for FileDialog
33975 - Tied the cancel button to the IButtonControl cancel button
33976 - Save/Open now properly builds the pathname
33977 - Now handles user-entered text
33978 - Preventing crash on right-click if no item is selected
33979 - Fixed Text property, now uses contents of textbox
33980 - Fixed SelectedText property, now just returns the text part that
33981 is selected in the text box
33983 2005-03-18 Jackson Harper <jackson@ximian.com>
33985 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
33986 rect, make sure to de-adjust the interior rect after drawing the
33989 2005-03-18 Peter Bartok <pbartok@novell.com>
33991 * MenuAPI.cs: Remove menu *before* executing selected action to
33992 prevent the menu from 'hanging around'
33994 2005-03-17 Geoff Norton <gnorton@customerdna.com>
33996 * XplatUIOSX.cs: Implemented WorkingArea property
33998 2005-03-17 Peter Bartok <pbartok@novell.com>
34000 * XplatUIX11.cs: Fixed menu coord calculations
34001 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34002 for calculating offsets
34004 2005-03-17 Peter Bartok <pbartok@novell.com>
34006 * Hwnd.cs: Do not consider menu presence for default client
34007 rectangle location/size
34008 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34009 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34010 translation functions
34011 * FileDialog.cs: Fixed (what I presume is a) typo
34013 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
34015 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34016 X access (avoids X-Async errors)
34018 2005-03-16 Jackson Harper <jackson@ximian.com>
34020 * TabControl.cs: Raise the SelectedIndexChanged event.
34022 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
34024 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34025 - Removed vertical ToolBar and replaced it with a custom panel
34026 (desktop and home button already work)
34027 - Added Help button (some controls get resized or relocated then)
34028 - Draw correct text depending on Open or Save.
34029 - Fixed some typos...
34031 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
34034 - Only change Maximum and Minimum when need it (bug fix)
34036 2005-03-15 Peter Bartok <pbartok@novell.com>
34038 * Form.cs: Use Handle for icon, to trigger creation if
34039 the window does not yet exist
34041 - CanSelect: Slight performance improvement
34042 - Focus(): Preventing possible recursion
34043 - Invalidate(): Removed ControlStyle based clear flag setting
34044 - WM_PAINT: fixed logic for calling OnPaintBackground
34045 - WM_ERASEBKGND: Fixed logic, added call to new driver method
34046 EraseWindowBackground if the control doesn't paint background
34048 - Moved EraseWindowBackground() method to internal methods
34049 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34050 is sent via SendMessage on BeginPaint call on Win32
34052 - Added EraseWindowBackground() method
34053 - No longer sends WM_ERASEBKGND on .Expose, but on call to
34054 PaintEventStart, which more closely matches Win32 behaviour
34055 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34056 - Fixed SetFocus() to properly deal with client and whole windows
34057 * Hwnd.cs: Added ErasePending property
34058 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34059 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34061 2005-03-12 Geoff Norton <gnorton@customerdna.com>
34064 - Fix hard loop when timers exist.
34065 - Fix bugs with middle and right click for 3 button mice.
34067 2005-03-11 Peter Bartok <pbartok@novell.com>
34070 - get_WorkingArea: Need to call X directly, GetWindowPos only
34071 returns cached data now
34072 - Added sanity check to GetWindowPos hwnd usage
34074 2005-03-11 Jackson Harper <jackson@ximian.com>
34076 * BindingManagerBase.cs: This method isn't used anymore as
34077 PullData now updates the data in the control.
34079 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
34081 * Form.cs: fixes menu drawing on X11
34082 * MenuAPI.cs: fixes menu drawing on X11
34084 2005-03-11 Peter Bartok <pbartok@novell.com>
34086 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34087 from Jonathan Gilbert; should fix bug #73606
34088 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34089 in Screen coordinates. Thanks, Jordi.
34090 * Form.cs: Added missing attribute
34092 2005-03-11 Peter Bartok <pbartok@novell.com>
34095 - Rudimentary Mdi support
34096 - Removed outdated FormParent code
34097 - Implemented lots of missing properties and methods, still missing
34098 transparency support
34099 - Added missing attributes
34100 - Implemented support for MaximumBounds
34101 - Added firing of various events
34102 * XplatUI.cs: Added SetIcon() method
34103 * XplatUIDriver.cs: Added SetIcon() abstract
34104 * XplatUIOSX.cs: Stubbed out SetIcon() method
34106 - Implemented SetIcon() support
34107 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34108 - Switched to unix line endings
34110 - Made POINT internal so for can access it as part of MINMAX
34111 - Implemented SetIcon() support
34112 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34113 native Mdi support again, might have to go managed)
34114 * Control.cs: Now fires the StyleChanged event
34115 * MdiClient.cs: Added; still mostly empty
34117 2005-03-10 Peter Bartok <pbartok@novell.com>
34119 * SaveFileDialog.cs: Added emtpy file
34121 2005-03-08 Peter Bartok <pbartok@novell.com>
34123 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34124 in turn triggers OnCreateContro) when creating a handle for the
34126 * TextControl.cs: Fixed endless loop in certain cases when
34127 replacing the current selection
34129 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
34132 - Honors NewValue changes in Scroll events allowing apps to change it
34133 - Adds First and Last Scroll events
34134 - Fixes Thumb events
34136 2005-03-07 Peter Bartok <pbartok@novell.com>
34138 * Hwnd.cs: Added DefaultClientRectangle property
34139 * XplatUI.cs: Now using the X11 driver Where() method, which provides
34140 more detailed debug information
34142 - Fixed size-change feedback loop, where we would pull an old size
34143 off the queue and mistakenly change our window's size to an
34145 - Now compressing ConfigureNotify events, to reduce looping and
34147 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34150 2005-03-07 Jackson Harper <jackson@ximian.com>
34152 * Binding.cs: Push data pushes from data -> property. Check if the
34153 property is readonly when attempting to set it.
34155 2005-03-07 Jackson Harper <jackson@ximian.com>
34157 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34158 instead of IsSubclassOf. Pulling data now sets the value on the
34160 * PropertyManager.cs:
34161 * CurrencyManager.cs: Just need to pull data when updating now,
34162 because PullData will set the value on the control.
34164 2005-03-04 Jackson Harper <jackson@ximian.com>
34166 * Binding.cs: Implement data type parsing and converting on pulled
34167 data. TODO: Are there more ways the data can be converted?
34169 2005-03-04 Jackson Harper <jackson@ximian.com>
34171 * Binding.cs: Support <Property>IsNull checks. Also bind to the
34172 controls Validating method so we can repull the data when the
34173 control loses focus.
34175 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
34178 - Fixes null string format
34181 - Adds enum type checks
34182 - Fixes redrawing and recalc need after changing some properties
34183 - Fixes on focus_item set after the event
34184 - Fixes adding columns after the control has been created
34186 * ThemeWin32Classic.cs:
34187 - Fixes CheckBox focus rectangle
34188 - Fixes ColumnHeader drawing
34191 2005-03-03 Jackson Harper <jackson@ximian.com>
34193 * Binding.cs: Bind to <Property>Changed events so we can detect
34194 when properties are changed and update the data.
34196 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
34199 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34200 - Fixes ImageList constructor with ImageList container
34201 - Fixes image scaling (wrong parameters at DrawImage)
34203 2005-02-02 Jackson Harper <jackson@ximian.com>
34205 * Binding.cs: Make property searches case-insensitive. Eliminate
34206 some duplicated code.
34208 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
34211 - Handle focus event
34212 - Fix scrollbar events
34213 - Discard highlighted item if remove it
34214 - Fixes SelectedItem with strings
34216 2005-03-01 Peter Bartok <pbartok@novell.com>
34219 - Fixed Visible property, now follows (once again) parent chain
34220 to return false if any control in the chain is visible=false
34221 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34222 - Fixed several places where is_visible instead of Visible was used
34223 - Implemented FIXME related to focus selection when setting focused
34224 control to be invisible
34226 * XplatUIWin32.cs: Now using proper method to find out if window is
34227 visible. Thanks to Jordi for pointing it out
34229 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
34231 * ComboBox.cs: show/hide scrollbar instead of creating it
34233 2005-02-27 Jackson Harper <jackson@ximian.com>
34235 * CurrencyManager.cs: Add PositionChanged stuff.
34237 2005-02-27 Peter Bartok <pbartok@novell.com>
34239 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34240 * XplatUIOSX.cs: Added GetMenuOrigin() stub
34241 * XplatUIWin32.cs: Implemented GetMenuOrigin()
34243 - Implemented GetMenuDC()
34244 - Implemented GetMenuOrigin()
34245 - Implemented ReleaseMenuDC()
34246 - Implemented generation of WM_NCPAINT message
34247 - Implemented generation and handling of WM_NCCALCSIZE message
34248 * Form.cs: Added debug helper message for Jordi's menu work
34250 - Modified ClientRect property; added setter, fixed getter to handle
34251 setting of ClientRect
34252 - Added MenuOrigin property
34254 2005-02-26 Peter Bartok <pbartok@novell.com>
34257 - Destroys the caret if a window that's being destroyed contains it
34258 - Ignores expose events coming from the X11 queue for windows that
34259 already are destroyed
34260 - Now uses the proper variable for handling DestroyNotify, before we
34261 marked the wrong window as destroyed
34262 - Improved/added some debug output
34264 2005-02-26 Peter Bartok <pbartok@novell.com>
34266 * X11Keyboard.cs: Fixes to work on 64bit systems
34268 2005-02-26 Peter Bartok <pbartok@novell.com>
34271 - Now calling OnHandleDestroyed from DestroyHandle()
34272 instead of Dispose()
34273 - Removed bogus call to controls.Remove() from DestroyHandle()
34275 2005-02-26 Peter Bartok <pbartok@novell.com>
34277 * Control.cs: Properly destroy child windows when our handle is
34280 2005-02-25 Peter Bartok <pbartok@novell.com>
34283 - Added 'DriverDebug' define to allow tracing XplatUI API calls
34284 - Alphabetized Static Methods and Subclasses
34287 - Added XException class to allow custom handling of X11 exceptions
34288 - Created custom X11 error handler, tied into XException class
34289 - Added support for MONO_XEXCEPTIONS env var to allow the user
34290 to either throw an exception on X errors or continue running
34291 after displaying the error
34292 - Added handling of DestroyNotify message
34293 - Added handler for CreateNotify message (still disabled)
34294 - Improved (tried to at least) Where method to provide file and lineno
34296 - Added XErrorHandler delegate
34297 - Added XRequest enumeration (to suppor translation of errors)
34299 2005-02-25 Jackson Harper <jackson@ximian.com>
34301 * PropertyManager.cs: Implement editing features
34302 * CurrencyManager.cs:
34303 * Binding.cs: First attempt at UpdateIsBinding
34304 * BindingManagerBase.cs: Call UpdateIsBinding before
34305 pushing/pulling data.
34307 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
34309 * MenuAPI.cs: Respect disabled items
34310 * ThemeWin32Classic.cs
34311 - Caches ImageAttributes creation for DrawImageDisabled
34312 - Fixes vertical menu line drawing
34313 - Draws disabled arrows in disable menu items
34315 2005-02-24 Peter Bartok <pbartok@novell.com>
34318 - Added UserData property to allow associating arbitrary objects
34320 - Fixed leak; now removing Hwnd references from static windows array
34322 - Fixed Graphics leak in PaintEventEnd
34323 - Removed usage of HandleData, switched over to Hwnd class
34324 * HandleData.cs: Removed, obsoleted by Hwnd.cs
34326 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
34328 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34329 * ScrollBar.cs: Fixes bug
34330 * TrackBar.cs: removes death code, clipping, mimize refreshes,
34331 keyboard navigation enhancements
34333 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
34335 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34336 * GroupBox.cs: Add control styles
34337 * Label.cs: Add control styles
34338 * UpDownBase.cs: Add control styles
34339 * ListBox.cs: Add control styles
34340 * XplatUIWin32.cs: Fixes wrong parameter order
34343 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
34345 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34347 2005-02-23 Jackson Harper <jackson@ximian.com>
34349 * PropertyManager.cs: Implement property binding. This doesn't
34350 seem to work yet though as (I think) there are some bugs in
34351 System.ComponentModel.PropertyDescriptor.
34352 * BindingContext.cs: Use new PropertyManager constructor.
34354 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
34356 * ProgressBar.cs: use clip region in ProgressBar
34357 * ThemeWin32Classic.cs: use clip region in ProgressBar
34359 2004-02-22 Jackson Harper <jackson@ximian.com>
34361 * BindingsCollection.cs: Remove some debug code.
34363 2005-02-22 Jackson Harper <jackson@ximian.com>
34365 * BindingContext.cs:
34366 * ControlBindingsCollection.cs:
34367 * CurrencyManager.cs:
34369 * BindingManagerBase.cs: Initial implementation
34370 * BindingsCollection.cs: Add an internal contains method that the
34371 BindingManagerBase uses to ensure bindings aren't added twice to
34373 * PropertyManager.cs: Stubbed out.
34375 * ContainerControl.cs: Hook up databinding
34377 2005-02-22 Geoff Norton <gnorton@customerdna.com>
34380 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34381 Fixed Invalidate/Update chain.
34382 Fixed tons of other minor bugs (this is almost a complete rewrite).
34384 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
34386 * ComboBox.cs: do subcontrol creation when the control is created
34388 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34390 * Label.cs: fixes image drawing (image and imagelist)
34391 * ThemeWin32Classic.cs: cache brushes
34393 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34395 * Form.cs: Move menu drawing code to Theme class
34396 * ComboBox.cs: Move ComboBox drawing code to Theme class
34397 * MenuItem.cs: Move menu drawing code to Theme class
34398 * MenuAPI.cs: Move menu drawing code to Theme class
34399 * ThemeWin32Classic.cs: New methods
34400 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34401 * ListBox.cs: Move Listbox drawing code to Theme class
34402 * Theme.cs: New methods
34404 2005-02-20 Peter Bartok <pbartok@novell.com>
34407 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34408 only process mnemonics on those)
34409 - Fixed event sequence for key handling; first calling
34410 ProcessKeyEventArgs now
34412 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34413 for processing non-character keys
34414 - Fixed WM_CHAR to generate proper event sequence before processing
34415 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34418 2005-02-19 Peter Bartok <pbartok@novell.com>
34420 * UserControl.cs: Added TextChanged event; added attributes
34421 * SizeGrip.cs: Implemented resizing and optional display of grip
34422 * Form.cs: Fixed attribute
34423 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34424 Changed meaning of ScrollWindow bool argument; instead of the
34425 clear attribute (which will be true usually anyway), it gives the
34426 option of moving child controls as well.
34428 - Changed to match new ScrollWindow argument
34429 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34430 now handles the implicit parent window a WM puts around us
34431 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34433 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34434 * TreeView.cs: Adjusted to new ScrollWindow arguments
34436 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
34438 * Form.cs: Menu integration with non-client area
34439 * MenuItem.cs: Menu integration with non-client area
34440 * MenuAPI.cs: Menu integration with non-client area
34442 2005-02-18 Peter Bartok <pbartok@novell.com>
34444 * MethodInvoker.cs: Added
34445 * MdiLayout.cs: Added
34446 * SendKeys.cs: Started implementation
34447 * ErrorIconAlignment.cs: Added
34449 2005-02-18 Peter Bartok <pbartok@novell.com>
34451 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34452 * Form.cs: Added handling for Menu-related Non-client messages
34454 2005-02-17 Peter Bartok <pbartok@novell.com>
34456 * UpDownBase.cs: Fixed typo, compilation errors
34457 * DomainUpDown.cs: Fixed attribute value
34459 2005-02-16 Miguel de Icaza <miguel@novell.com>
34461 * UpDownBase.cs: Attach entry events.
34463 Add ForeColor property, Focused, InterceptArrowKeys (interception
34464 does not work yet).
34466 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
34469 - Redraw non client are on Setmenu
34470 - Calc proper menu starting point
34472 2005-02-17 Peter Bartok <pbartok@novell.com>
34474 * Application.cs: Fixed message_filter check
34476 2005-02-17 Peter Bartok <pbartok@novell.com>
34478 * Application.cs: Now calls registered message filters
34479 * DockStyle.cs: Fixed attribute
34480 * Form.cs: Fixed attribute
34481 * Menu.cs: Fixed attribute
34482 * ToolTip.cs: Fixed attribute
34483 * TreeNode.cs: Added missing attributes and arranged in regions
34484 * PropertyGrid.cs: Fixed signatures
34485 * TreeNodeCollection.cs: Added attributes
34486 * Splitter.cs: Added missing attributes; arranged into regions
34487 * TabPage.cs: Added missing attributes; arranged into regions
34488 * TextBoxBase.cs: Added missing attributes
34489 * TextBox.cs: Added missing attributes
34490 * ArrangeDirection.cs: Added missing attributes
34491 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34492 * ToolBarButton.cs: Fixed attributes
34493 * AnchorStyles.cs: Fixed attribute
34494 * TrackBar.cs: Fixed attributes
34495 * TabControl.cs: Added missing attributes and arranged into regions
34496 * ToolBar.cs: Fixed attribute
34497 * StatusBar.cs: Fixed signature, organized into regions and added
34499 * StatusBarPanel.cs: Fixed attributes
34500 * ContentsResizedEventArgs.cs: Implemented
34501 * ContentsResizedEventHandler.cs: Implemented
34502 * DateBoldEventArgs.cs: Implemented
34503 * DateBoldEventHandler.cs: Implemented
34504 * UpDownEventArgs.cs: Implemented
34505 * UpDownEventHandler.cs: Implemented
34507 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
34509 * Form.cs: first Menu NC refactoring
34510 * MenuAPI.cs: first Menu NC refactoring
34512 2005-02-16 Peter Bartok <pbartok@novell.com>
34514 * ImeMode.cs: Added missing attributes
34515 * Menu.cs: Fixed attribute
34516 * GroupBox.cs: Fixed attribute
34517 * Label.cs: Fixed attribute
34518 * ColorDialog.cs (RunDialog): Removed TODO attribute
34519 * ComboBox.cs: Fixed attributes
34520 * ListControl.cs: Added missing attributes
34521 * PropertyGrid.cs: Fixed attributes
34522 * Control.cs: Fixed attributes
34523 * ListViewItem.cs: Added TypeConverter attribute
34524 * NotifyIcon.cs: Fixed attributes
34525 * ListView.cs: Fixed attributes
34526 * ButtonBase.cs: Fixed attribute
34527 * ImageList.cs: Added missing attributes
34528 * ContainerControl.cs: Fixed signature
34529 * CheckedListBox.cs: Fixed attribute; added missing attributes
34530 * Panel.cs: Fixed attributes
34531 * PropertyTabChangedEventArgs.cs: Added missing attribute
34532 * PropertyValueChangedEventArgs.cs: Added missing attribute
34533 * Binding.cs: Fixed attribute
34534 * ListViewItemConverter: Implemented ListViewSubItemConverter class
34535 * ListBox.cs: Fixed attribute; added missing attributes;
34536 * ScrollableControl.cs: Added missing attributes
34537 * PictureBox.cs: Added missing attributes; implemented missing property
34538 * DateTimePicker.cs: Added missing attributes
34539 * Theme.cs (ToolWindowCaptionHeight): Fixed type
34540 * MonthCalendar.cs: Fixed attributes
34541 * StatusBarPanel.cs: Added missing attributes
34542 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34544 2005-02-16 Peter Bartok <pbartok@novell.com>
34546 * TextBoxBase.cs: The previous method to enforce height yet remember
34547 the requested high was less than ideal, this is an attempt to do
34549 * Control.cs: Added comment about possible problem
34550 * Copyright: Updated format
34551 * GridItemType.cs: Fixed swapped values
34553 2005-02-15 Jackson Harper <jackson@ximian.com>
34555 * BaseCollection.cs: Use property so we never access an
34556 uninitialized list. Also initialize the list in the property.
34558 2005-02-15 Peter Bartok <pbartok@novell.com>
34560 * GroupBox.cs (ProcessMnemonic): Implemented
34561 * Label.cs (ProcessMnemonic): Implemented
34562 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34565 2005-02-15 Peter Bartok <pbartok@novell.com>
34567 * RadioButton.cs (ProcessMnemonic): Implemented
34568 * CheckBox.cs (ProcessMnemonic): Implemented
34570 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34572 - Added internal method to allow calling ProcessMnemonic from other
34574 * ContainerControl.cs:
34575 - Started support for handling validation chain handling
34576 - Implemented ProcessMnemonic support
34577 - Added Select() call to Active, to make sure the active control
34579 * Form.cs: Setting toplevel flag for Forms (this was lost in the
34580 FormParent rewrite)
34581 * ThemeWin32Classic.cs:
34582 - DrawCheckBox(): Fixed stringformat to show hotkeys
34583 - DrawRadioButton(): Fixed stringformat to show hotkeys
34584 * CommonDialog.cs: Removed WndProc override, not needed
34586 2005-02-14 Peter Bartok <pbartok@novell.com>
34588 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34589 missed those in the rewrite
34591 2005-02-14 Miguel de Icaza <miguel@novell.com>
34593 * NumericUpDown.cs (Increment, ToString): Add.
34594 (DecimalPlaces): implement.
34598 * UpDownBase.cs: Add the designer attributes.
34600 2005-02-13 Peter Bartok <pbartok@novell.com>
34602 * Panel.cs: Removed border_style, now in Control
34603 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34604 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34606 2005-02-13 Peter Bartok <pbartok@novell.com>
34608 * MouseButtons.cs: Added missing attributes
34609 * XplatUIStructs.cs: Added enumeration for title styles
34610 * LeftRightAlignment.cs: Added missing attributes
34611 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34612 it compatible with Graphics.FromHwnd()
34613 * SelectedGridItemChangedEventArgs.cs: Fixed property type
34614 * Keys.cs: Added missing attributes
34615 * SelectionRange.cs: Added missing attributes
34616 * SelectionRangeConverter.cs: Added
34618 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34619 ReleaseMenuDC methods
34620 - Renamed ReleaseWindow to UngrabWindow
34621 - Added proper startup notice to allow version identification
34623 - Added missing attributes
34624 - Removed FormParent concept
34625 * Label.cs: Removed border_style field, now in Control
34626 * RadioButton.cs: Now properly selects RadioButton when focus is
34628 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34630 - Added missing attributes
34631 - Added borderstyle handling
34632 - Removed FormParent concept support
34633 - Fixed calls to XplatUI to match changed APIs
34634 - Fixed bug that would case us to use disposed Graphics objects
34635 - Removed unneeded internal methods
34636 - PerformLayout(): Fixed to handle DockStyle.Fill properly
34637 - SelectNextControl(): Fixed to properly check common parents
34638 * TextBoxBase.cs: Removed border_style field (now in Control)
34640 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34641 fixed calculations for form size
34642 - Added support for localized strings and icons
34643 - Improved form size calculations, added border
34644 * ListView.cs: Removed border_style field (now in Control)
34645 * X11Structs.cs: Moved several structs from X11 driver here
34646 * X11Keyboard.cs: Changed debug message
34647 * Application.cs: Removed FormParent concept support
34649 - Resetting end_modal flag
34650 - Removed FormParent concept support
34651 * NativeWindow.cs: Removed FormParent concept support
34652 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34653 Client area and Non-Client whole window to allow support for WM_NC
34655 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34656 prevent using it until it supports Hwnd as per Geoff Norton's request
34657 * ToolBar.cs: Fixed drawing, was not doing proper drawing
34658 * PictureBox.cs: Removed border_style field, now in Control
34659 * XplatUIWin32.cs: Added new driver methods
34661 2005-02-12 Peter Bartok <pbartok@novell.com>
34663 * OpacityConverter.cs: Implemented
34664 * Hwnd.cs: Internal class to support drivers that need to emulate
34665 client area/non-client area window behaviour
34667 2005-02-11 Peter Bartok <pbartok@novell.com>
34669 * KeysConverter.cs: Implemented
34671 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
34673 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34674 * LinkLabel: Added missing attributes
34675 * MainMenu.cs: fixes ToString
34676 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34677 * ListBox.cs: fixes event position
34678 * TrackBar.cs: adds missing attributes and events
34680 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
34682 * MenuItem.cs: Use SystemInformation and bug fixes
34683 * MenuAPI.cs: Use SystemInformation and bug fixes
34685 2005-02-09 Jackson Harper <jackson@ximian.com>
34687 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34688 their keystate otherwise things like VK_MENU get stuck "on".
34690 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
34692 * ListBox.cs: Fixes AddRange bug
34694 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
34697 - Add missing attributes
34698 - Add missing method
34700 * CheckedListBox.cs: Added missing attributes
34701 - Add missing attributes
34702 - Remove extra method
34704 * ComboBox.cs: Added missing attributes
34705 * VScrollBar.cs: Added missing attributes
34706 * ScrollBar.cs: Added missing attributes
34707 * ListBox.cs: Fixes signature, add missing consts
34708 * LinkArea.cs: Added missing attributes
34711 2005-02-08 Peter Bartok <pbartok@novell.com>
34713 * Menu.cs: Added missing attributes
34714 * MainMenu.cs: Added missing attributes
34715 * GroupBox.cs: Added missing attributes
34716 * Label.cs: Added missing attributes
34717 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34719 - Added Instance and Options properties
34720 - Added missing attributes
34721 * Cursor.cs: Made Serializable
34722 * NotifyIcon: Added missing attributes
34723 * MenuItem.cs: Added missing attributes
34724 * TextBoxBase.cs: Implemented AppendText() and Select() methods
34725 * Panel.cs: Added Missing attributes
34726 * MonthCalendar.cs: Fixed CreateParams
34728 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34732 - Fixes issues with links
34733 - Adds the class attributes
34735 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
34738 - Fixes button when no items available in dropdown
34739 - Fixes repainting problems
34740 - Adds the class attributes
34742 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34744 * XplatUIOSX.cs: Detect the menu bar and title bar height from
34745 the current theme. Cache these on startup.
34747 2005-02-07 Jackson Harper <jackson@ximian.com>
34749 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34750 the scrollbar buttons when they are depressed.
34752 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34754 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34755 Get the display size from the main displayid. We currently dont
34756 support multiple display configurations.
34758 2005-02-07 Geoff Norton <gnorton@customerdna.com>
34760 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34762 2005-02-07 Miguel de Icaza <miguel@novell.com>
34764 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34766 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
34768 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34770 2005-02-04 Jackson Harper <jackson@ximian.com>
34772 * ThemeWin32Classic.cs: Respect the clipping rect when
34773 drawing. Only fill the intersection of clips and rects so there
34774 isn't a lot of large fills.
34775 * ScrollBar.cs: Pass the correct clipping rect to the theme
34776 engine. Remove some debug code.
34778 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
34780 * DateTimePicker.cs:
34781 - Fixed crash on DateTime.Parse, use Constructor instead
34783 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34787 - Owner draw support (MeasureItem and DrawItem)
34789 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
34792 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34793 - Fixes MenuItems.Add range
34795 - MergeMenu and Clone and CloneMenu functions
34797 2005-02-03 Jackson Harper <jackson@ximian.com>
34799 * ScrollBar.cs: Make abstract
34800 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34803 2005-02-03 Jackson Harper <jackson@ximian.com>
34805 * ScrollBar.cs: First part of my scrollbar fixups. This removes
34806 all the unneeded refreshes and uses invalidates with properly
34809 2005-02-03 Peter Bartok <pbartok@novell.com>
34811 * ComponentModel.cs: Added
34812 * IDataGridEditingService.cs: Added
34813 * Timer.cs: Added missing attributes
34814 * ToolTip.cs: Added missing attributes
34816 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
34818 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34820 2005-02-03 Peter Bartok <pbartok@novell.com>
34822 * ListBox.cs: Added missing attributes
34824 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
34827 - Fixes font height after font change
34828 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34830 2005-02-02 Peter Bartok <pbartok@novell.com>
34832 * HandleData.cs: Introduced static methods to allow class
34833 to be more self-contained and track it's own HandleData objects
34834 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34835 HandleData to use new static methods
34837 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
34840 - Fixes default size and PreferredHeight
34842 - ObjectCollection.Insert implementation
34848 - ObjectCollection.Insert implementation
34849 - No selection after clean
34852 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34854 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34856 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
34859 - Caches ItemHeight calculation for OwnerDrawVariable
34860 - Handles dropdown properly
34861 - Fixes several minor bugs
34863 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34866 - Fixes 71946 and 71950
34867 - Fixes changing Multicolumn on the fly
34868 - Fixes keyboard navigation on Multicolumn listboxes
34870 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34872 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
34873 crash reporter log.
34875 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34877 * XplatUIOSX.cs: Allow applications to actually exit.
34879 2005-01-31 Geoff Norton <gnorton@customerdna.com>
34881 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
34882 their parent at creation time rather than lazily later. Fixes a major
34883 regression we were experiencing.
34885 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
34887 * ThemeWin32Classic.cs: more date time picker painting fixes
34888 * DateTimePicker.cs: more monthcalendar drop down fixes
34889 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
34891 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
34894 - When moving the thumb going outside the control should stop the moving
34895 - Adds the firing of missing events
34896 - Fixes no button show if Size is not specified
34897 - End / Home keys for keyboard navigation
34899 2005-01-30 Peter Bartok <pbartok@novell.com>
34901 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
34902 sanity check to prevent theoretical loop
34903 * XplatUIWin32.cs (SetVisible): Removed debug output
34904 * XplatUIX11.cs (SystrayChange): Added sanity check
34905 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
34906 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
34907 behaviour, valid until the X11 client window rewrite is done
34908 * TextBox.cs (ctor): Setting proper default foreground and background
34911 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
34913 * Theme: Added DrawDateTimePicker to interface
34914 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
34915 * DateTimePicker.cs: Created (still needs keys and painting code)
34916 * DateTimePickerFormat.cs: added
34917 * MonthCalendar.cs: fixed CreateParams for popup window mode
34919 2005-01-29 Peter Bartok <pbartok@novell.com>
34921 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
34922 this should also the calculations for ligher/darker
34923 * Theme.cs: Fixed defaults for ScrollBar widths/heights
34925 2005-01-29 Peter Bartok <pbartok@novell.com>
34927 * ArrangeDirection.cs: Added
34928 * ArrangeStartingPositon.cs: Added
34929 * SystemInformation.cs: Implemented
34930 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
34931 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
34932 used by SystemInformation class
34933 * X11Strucs.cs: Added XSizeHints structure
34935 - Fixed CreateParams to make sure the menu window is always visible
34936 - TrackPopupMenu: Added check to make sure we don't draw the
34939 2005-01-29 Peter Bartok <pbartok@novell.com>
34941 * HandleData.cs: Added method for altering invalid area
34942 * TextBoxBase.cs: Implemented TextLength
34944 2005-01-28 Peter Bartok <pbartok@novell.com>
34946 * XplatUIX11.cs: Improvement over last patch, not sending
34947 the WM_PAINT directly anymore, instead we scroll any pending
34948 exposed areas and let the system pick out the WM_PAINT later
34950 2005-01-28 Peter Bartok <pbartok@novell.com>
34952 * SWF.csproj: Deleted, no longer used. Instead,
34953 Managed.Windows.Forms/SWF.csproj should be used
34954 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
34955 directly, to avoid a potential race condition with the next
34958 2005-01-28 Peter Bartok <pbartok@novell.com>
34960 * XplatUI.cs: Made class internal
34962 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
34964 * CheckedListBox.cs:
34967 - Missing methods and events
34969 2005-01-27 Peter Bartok <pbartok@novell.com>
34971 * Application.cs (Run): Don't use form if we don't have one
34973 2005-01-27 Peter Bartok <pbartok@novell.com>
34975 * TextBoxBase.cs (get_Lines): Fixed index off by one error
34977 2005-01-27 Peter Bartok <pbartok@novell.com>
34979 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
34980 * GridItem.cs: Added; Patch by Jonathan S. Chambers
34981 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
34982 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
34983 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
34984 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
34985 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34986 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34987 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34988 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34989 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
34990 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
34992 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
34995 - Draw focus on Simple Combobox
34996 - Fixes drawing issues
34999 2005-01-27 Peter Bartok <pbartok@novell.com>
35002 - Place window in default location, instead of hardcoded 0/0
35003 - Send initial LocationChanged event
35005 - UpdateBounds after creation to find out where the WM placed us
35006 - Make sure that if the ParentForm changes location the Form
35008 * XplatUIX11.cs: XGetGeometry will not return the coords relative
35009 to the root, but to whatever the WM placed around us.
35010 Translate to root coordinates before returning toplevel
35012 * XplatUIWin32.cs: Removed debug output
35013 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35014 flag to GetWindowPos, to allow translation of coordinates on X11
35016 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
35018 * ListBox.cs: connect LostFocus Event
35020 2005-01-27 Peter Bartok <pbartok@novell.com>
35022 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35023 XplatUIX11.cs: Extended the Systray API
35024 * Form.cs: Removed debug output
35025 * Application.cs: Fixed focus assignment, always need to call
35026 XplatUI.Activate() since Form.Activate() has rules that may
35028 * NotifyIcon.cs: Should be complete now
35029 * ToolTip.cs: Worked around possible timer bug
35031 2005-01-27 Jackson Harper <jackson@ximian.com>
35034 - Only invalidate the effected tabs when the
35035 selected index changes. This reduces drawing and gets rid of some
35037 - Only refresh if the tabs need to be shifted, otherwise only
35038 invalidate the slider button.
35039 - On windows the tabs are not filled to right if the slider is
35042 2005-01-27 Jackson Harper <jackson@ximian.com>
35044 * TabControl.cs: Only refresh on mouseup if we are showing the
35045 slider. Also only invalidate the button whose state has changed.
35047 2005-01-26 Peter Bartok <pbartok@novell.com>
35049 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35050 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35051 and SystrayRemove() methods
35052 * XplatUIOSX.cs: Stubbed Systray methods
35054 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35056 - Fixed broken XChangeProperty calls (marshalling messed up things)
35057 * X11Structs.cs: Added enums and structs required for Size hinting
35058 * NotifyIcon.cs: Added & implemented
35060 2005-01-26 Jackson Harper <jackson@ximian.com>
35062 * TabControl.cs: Space vertically layed out tabs properly.
35064 2005-01-26 Peter Bartok <pbartok@novell.com>
35066 * Form.cs (CreateClientParams): Always set the location to 0,0
35067 since we're a child window.
35069 * Control.cs (SetVisibleCore): Always explicitly setting the location
35070 of a toplevel window, apparently X11 doesn't like to move windows
35071 while they're not mapped.
35073 2005-01-26 Jackson Harper <jackson@ximian.com>
35075 * TabControl.cs: Implement FillToRight size mode with vertically
35078 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
35080 * ControlPaint.cs, ThemeWin32Classic.cs
35081 - Fixes DrawFocusRectangle
35083 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
35086 - MenuBar tracking only starts when item is first clicked
35087 - Fixes menu hidding for multiple subitems
35088 - Unselect item in MenuBar when item Executed
35091 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
35094 - IsInputKey for ListBox
35097 - Shift and Control item selection
35098 - Implement SelectionMode.MultiExtended
35099 - Fixes RightToLeft
35101 - IsInputKey implemented
35102 - Do not generate OnTextChangedEdit on internal txt changes
35104 2005-01-23 Peter Bartok <pbartok@novell.com>
35106 * AccessibleObject.cs: Partially implemented Select()
35107 * MonthCalendar.cs: Added missing attributes and events
35108 * Form.cs: Fixed CreateParams behaviour, now controls derived from
35109 form can properly override CreateParams.
35110 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35111 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35112 Control performs Invalidate & Update
35113 * NativeWindow (CreateHandle): Added special handling for Form
35114 and Form.FormParent classes to allow overriding of From.CreateParams
35116 - ControlNativeWindow: Renamed 'control' variable to more intuitive
35118 - ControlNativeWindow: Added Owner property
35119 - Removed usage of Refresh() on property changes, changed into
35120 Invalidate(), we need to wait until the queue is processed for
35121 updates, direct calls might cause problems if not all vars for
35122 Paint are initialized
35123 - Added call to UpdateStyles() when creating the window, to set any
35124 styles that CreateWindow might have ignored.
35125 - Added support for Form CreateParent overrides to UpdateStyles()
35126 * MessageBox.cs: Removed no longer needed FormParent override stuff,
35127 CreateParams are now properly overridable
35128 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35129 CreateParams are now properly overridable
35131 2005-01-23 Miguel de Icaza <miguel@ximian.com>
35133 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35136 Capture LostFocus and OnTextBoxChanged. The later introduces a
35137 recursive invocation that I have not figured out yet.
35139 Reset the timer when not using (it was accumulating).
35142 (OnTextBoxChanged): Set UserEdit to true here to track whether the
35143 user has made changes that require validation.
35145 Reset changing to avoid loops.
35147 2005-01-22 Miguel de Icaza <miguel@ximian.com>
35149 * NumericUpDown.cs: Display value at startup.
35151 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35154 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35155 filled in. Added some basic parsing of text.
35157 Still missing the OnXXX method overrides, and figuring out the
35158 events that must be emitted.
35160 * UpDownBase.cs: Handle UserEdit on the Text property.
35162 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
35165 - Fixes IntegralHeight
35168 2005-01-21 Jackson Harper <jackson@ximian.com>
35170 * TabControl.cs: Set the SelectedIndex property when SelectedTab
35171 is set so that the page visibility is updated and the tabs are
35174 2005-01-21 Jackson Harper <jackson@ximian.com>
35176 * TabControl.cs: Use cliping rectangle for blitting. Give the
35177 theme the clipping rect so we can do clipping while
35178 drawing. Remove some debug code.
35180 2005-01-21 Jackson Harper <jackson@ximian.com>
35182 * TabPage.cs: Add a new method so tab pages can force the tab
35183 control to recalculate the tab page sizes.
35184 * TabControl.cs: UpdateOwner needs to make the tab control recalc
35187 2005-01-20 Jackson Harper <jackson@ximian.com>
35189 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35191 2005-01-20 Jackson Harper <jackson@ximian.com>
35193 * TreeView.cs: Set the bounds for nodes properly. They were
35194 getting screwed up when checkboxes were not enabled, but images
35197 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
35200 - Owner draw support
35203 2005-01-20 Jackson Harper <jackson@ximian.com>
35205 * XplatUIStructs.cs: More misc keys
35206 * X11Keyboard.cs: Ignore some control keys.
35208 2005-01-20 Jackson Harper <jackson@ximian.com>
35210 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35211 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35213 2005-01-19 Peter Bartok <pbartok@novell.com>
35215 * Control.cs: Un-selecting the control when it is loosing focus
35217 2005-01-19 Jackson Harper <jackson@ximian.com>
35219 * TreeView.cs: Hook up to the text controls leave event so we can
35220 end editing when the users clicks outside the text box.
35222 2005-01-19 Jackson Harper <jackson@ximian.com>
35224 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35225 get set in the conversion array.
35227 2005-01-19 Peter Bartok <pbartok@novell.com>
35229 * Application.cs (ModalRun): Added a call to CreateControl to ensure
35230 focus is properly set
35232 - Added missing attributes
35233 - removed styles, those are already set in the base class
35235 - Added missing attributes
35236 - Added clip window styles
35237 * CheckBox.cs: Added missing attributes
35239 - FormParentWindow.CreateParams: Added required clip styles
35240 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35241 also filters modifier keys
35243 - Added assignment of Accept and Cancel button to enable Enter
35244 and Esc keys in MessageBox dialogs
35245 - FormParentWindow.CreateParams: Added required clip styles
35246 * RadioButton.cs: Added missing attributes
35247 * TextControl.cs: No longer draws selection if control does not
35250 - Now draws simple rectangle around test area to make it obvious
35251 there's a control. This is a hack until we properly support borders
35252 - A few simple fixes to support selections better, now erases selected
35253 text when typing, and resets selection when using movement keys
35255 2005-01-19 Miguel de Icaza <miguel@ximian.com>
35257 * UpDownBase.cs: Added some new properties.
35259 * DomainUpDown.cs: Implement a lot to get my test working.
35261 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35263 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35265 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35267 * OSXStructs (WindowAttributes): Fixed csc complaints
35269 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35272 OSXStructs.cs: Initial refactor to move enums and consts into
35273 OSXStructs and use them in the driver for greater readability.
35275 2005-01-19 Geoff Norton <gnorton@customerdna.com>
35277 * XplatUIOSX.cs: Initial support for Standard Cursors.
35278 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35280 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
35282 * ComboBox.cs: ability to change style when the ctrl is already
35283 created, missing methods and events, bug fixes, signature fixes
35285 2005-01-19 Peter Bartok <pbartok@novell.com>
35287 * Cursors.cs (ctor): Added ctor to fix signature
35289 2005-01-18 Peter Bartok <pbartok@novell.com>
35291 * Button.cs: Implemented DoubleClick event
35293 - Fixed keyboard handling to behave like MS, where the press of
35294 Spacebar is equivalent to a mousedown, and the key release is
35295 equivalent to mouseup. Now a spacebar push will give the same
35296 visual feedback like a mouse click.
35297 - Added missing attributes
35298 - Added ImeModeChanged event
35299 - Added support for generating DoubleClick event for derived classes
35301 - Implemented DoubleClick event
35302 - Added missing attributes
35303 * CommonDialog.cs: Added missing attribute
35304 * ContextMenu.cs: Added missing attributes
35306 - AutoChecked buttons do not allow to be unselected when clicked
35307 (otherwise we might end up with no selected buttons in a group)
35308 - Added missing attributes
35309 - Implemented DoubleClickEvent
35310 * ThreadExceptionDialog.cs: Enabled TextBox code
35312 2005-01-18 Peter Bartok <pbartok@novell.com>
35314 * Form.cs: Removed debug output
35315 * Button.cs: Added support for DoubleClick method
35317 2005-01-18 Peter Bartok <pbartok@novell.com>
35320 - Added method to parent window that allows triggering size
35321 calculations when a menu is added/removed
35322 - set_Menu: Cleaned up mess from early days of Form and Control,
35323 now properly triggers a recalc when a menu is added/removed
35324 - Added case to select form itself as focused form if no child
35326 - Added PerformLayout call when showing dialog, to ensure properly
35329 - Select(): Made internal so Form can access it
35330 - Focus(): Only call Xplat layer if required (avoids loop), and sets
35332 * Application.cs (Run): Removed hack and calls PerformLayout instead
35333 to trigger calculation when Form becomes visible
35335 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
35337 * ComboBox.cs: fixes for ownerdraw
35339 2005-01-18 Peter Bartok <pbartok@novell.com>
35342 - Sentinel is no longer static, each Document gets it's own, this
35343 avoids locking or alternatively overwrite problems when more
35344 than one text control is used simultaneously.
35345 - Switched to use Hilight and HilightText brushes for text selection
35347 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35349 2005-01-18 Peter Bartok <pbartok@novell.com>
35352 - Hooked up the following events:
35360 o SystemColorsChanged
35361 o ParentFontChanged
35363 - Removed debug output
35364 - Added a call to the current theme's ResetDefaults when a color change
35366 * Form.cs: Now setting the proper ImeMode
35367 * Theme.cs: Defined a method to force recreation of cached resources
35368 and rereading of system defaults (ResetDefaults())
35369 * ThemeWin32Classic.cs: Added ResetDefaults() stub
35371 2005-01-17 Peter Bartok <pbartok@novell.com>
35373 * Control.cs: Added missing attributes
35375 2005-01-17 Jackson Harper <jackson@ximian.com>
35377 * TreeNode.cs: Implement editing. Add missing properties selected
35379 * TreeView.cs: Implement node editing. Also some fixes to use
35380 Invalidate (invalid area) instead of Refresh when selecting.
35382 2005-01-17 Peter Bartok <pbartok@novell.com>
35385 - Implemented InvokeGotFocus() method
35386 - Implemented InvokeLostFocus() method
35387 - Implemented InvokePaint() method
35388 - Implemented InvokePaintBackground() method
35389 - Implemented InvokeClick() method
35390 - Implemented FindForm() method
35391 - Implemented RectangleToClient() method
35392 - Implemented ClientToRectangle() method
35393 - Implemented ResetBackColor() method
35394 - Implemented ResetCursor() method
35395 - Implemented ResetFont() method
35396 - Implemented ResteForeColor() method
35397 - Implemented ResetImeMode() method
35398 - Implemented ResetLeftToRight() method
35399 - Implemented ResetText() method
35400 - Implemented Scale() methods
35401 - Implemented ScaleCore() method
35402 - Implemented Update() method
35403 - Removed unused variables
35404 - Stubbed AccessibilityNotifyClients and
35405 ControlAccessibleObject.NotifyClients() methods (dunno what to do
35407 - Now setting proper default for RightToLeft property
35408 - Fixed bug in SetClientSizeCore that would cause windows to get
35410 - Now sending Click/DoubleClick events
35411 - Now selecting controls when left mouse button is clicked on
35413 * AccessibleEvents.cs: Added
35414 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35415 * XplatUIOSX.cs: Stubbed UpdateWindow() method
35416 * XplatUIWin32.cs: Implemented UpdateWindow() method
35417 * XplatUIX11.cs: Implemented UpdateWindow() method
35418 * Form.cs: Removed stray semicolon causing CS0162 warning
35419 * ThemeWin32Classic.cs: Fixed unused variable warnings
35420 * ScrollableControl.cs: Now calls base method for ScaleCore
35421 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35422 style to avoid interference with internal click handler (which is
35423 different than standard Control click handling)
35425 - Now unchecks all sibling radio buttons when control is
35426 selected (Fixes #68756)
35427 - Removed internal tabstop variable, using the one inherited from
35430 2005-01-17 Jackson Harper <jackson@ximian.com>
35432 * NavigateEventArgs.cs: Fix base type.
35433 * LinkLabel.cs: Sig fix
35435 2005-01-17 Jackson Harper <jackson@ximian.com>
35437 * TreeView.cs: Only invalidate the effected nodes bounds when
35440 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35442 * XplatUIWin32.cs: fixes Win32 marshaling
35443 * XplatUIX11.cs: fixes method signature
35445 2005-01-17 Peter Bartok <pbartok@novell.com>
35447 * XplatUIX11.cs: Clean up resources when we no longer need them
35449 2005-01-17 Peter Bartok <pbartok@novell.com>
35451 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35452 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35453 and DestroyCursor() methods.
35454 * Cursor.cs: Partially implemented, now supports standard cursors;
35455 still contains some debug code
35456 * Cursors.cs: Implemented class
35458 - WndProc(): Added handling of WM_SETCURSOR message, setting the
35460 - Implemented Cursor property
35461 - Replaced break; with return; more straightforwar and possibly
35463 - Now properly setting the result for WM_HELP
35464 * X11Structs.cs: Added CursorFontShape enum
35465 * XplatUIStructs.cs:
35466 - Added StdCursor enum (to support DefineStdCursor() method)
35467 - Added HitTest enum (to support sending WM_SETCURSOR message)
35469 - Now sends the WM_SETCURSOR message
35470 - Implemented new cursor methods
35471 * XplatUIOSX.cs: Stubbed new cursor methods
35473 - Implemented new cursor methods
35474 - Added GetSystemMetrics function and associated enumeration
35476 2005-01-15 Peter Bartok <pbartok@novell.com>
35479 - WndProc(): Now handles EnableNotifyMessage
35480 - SelectNextControl(): Fixed bug where if no child or sibling
35481 controls exist we looped endlessly
35483 2005-01-14 Jackson Harper <jackson@ximian.com>
35485 * TreeView.cs: Recalculate the tab pages when a new one is added
35486 so that the proper bounding rects are created.
35488 2005-01-14 Jackson Harper <jackson@ximian.com>
35490 * TreeView.cs: Draw a gray box instead of a grip in the lower
35491 right hand corner when there are both horizontal and vertical
35494 2005-01-14 Jackson Harper <jackson@ximian.com>
35496 * Control.cs: When erasing backgrounds use FromHwnd instead of
35497 FromHdc when there is a NULL wparam. This occurs on the X driver.
35498 * XplatUIX11.cs: Set the wparam to NULL.
35500 2005-01-13 Jackson Harper <jackson@ximian.com>
35502 * PictureBox.cs: Implement missing methods (except ToString, need
35503 to test that on windows) and events. When visibility is changed we
35504 need to redraw the image because the buffers are killed. When size
35505 is changed refresh if the sizemode needs it.
35507 2005-01-13 Peter Bartok <pbartok@novell.com>
35509 * Control.cs (SelectNextControl): Was using wrong method to select
35512 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35514 * ComboBox.cs: fixes dropstyle
35516 2005-01-13 Peter Bartok <pbartok@novell.com>
35519 - Implemented Select() override
35520 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35521 - Now sets keyboard focus on startup
35522 * Control.cs (SelectNextControl): Now properly handles directed=true
35524 - WndProc: Now passes tab key on to base if AcceptTabChar=false
35525 - Added (really bad) focus rectangle (mostly for testing)
35526 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35527 to enforce redraw on focus changes
35528 * ContainerControl.cs:
35529 - Fixed detection of Shift-Tab key presses
35530 - Fixed traversal with arrow keys
35531 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35532 gonna keep this or if it's complete yet
35534 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
35536 * ComboBox.cs: missing properties, fixes
35538 2005-01-13 Peter Bartok <pbartok@novell.com>
35540 * Panel.cs (ctor): Setting Selectable window style to off
35541 * Splitter.cs (ctor): Setting Selectable window style to off
35542 * GroupBox.cs (ctor): Setting Selectable window style to off
35543 * Label.cs (ctor): Setting Selectable window style to off
35545 2005-01-12 Miguel de Icaza <miguel@ximian.com>
35547 * UpDownBase.cs (InitTimer): If the timer has been already
35548 created, enable it.
35550 Use a TextBox instead of a Label.
35552 2005-01-12 Jackson Harper <jackson@ximian.com>
35554 * TreeView.cs: Refresh the tree after sorting the nodes. Always
35555 draw the connecting node lines (when ShowLines is true).
35556 * TreeNode.cs: The nodes index can now be updated. This is used
35557 when a node collection is sorted.
35558 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35559 insert or an existing unsorted node collection can be sorted.
35561 2005-01-12 Peter Bartok <pbartok@novell.com>
35563 * ContainerControl.cs: Implemented ProcessDialogKeys()
35565 2005-01-12 Peter Bartok <pbartok@novell.com>
35568 - Implemented SelectNextControl() method
35569 - Several focus related bug fixes
35570 - Fixed Docking calculations to match MS documentation and
35573 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
35575 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35578 2005-01-12 Peter Bartok <pbartok@novell.com>
35581 - Fixed broken Contains() method
35582 - Implemented GetNextControl() method. Finally. This is the pre-
35583 requisite for focus handling.
35585 2005-01-12 Peter Bartok <pbartok@novell.com>
35587 * OSXStrucs.cs: Added
35589 2005-01-12 Peter Bartok <pbartok@novell.com>
35592 - Removed PeekMessageFlags
35593 - Implemented SetWindowStyle() method
35594 * XplatUIStructs.cs: Added PeekMessageFlags
35595 * X11Structs: Added missing border_width field to XWindowChanges struct
35597 - PeekMessage: Now throws exception if flags which are not yet
35598 supported are passed
35599 - Implemented SetWindowStyle() method
35600 - Fixed SetZOrder to handle AfterHwnd properly
35601 * XplatUI.cs: Added SetWindowStyle() method
35602 * XplatUIDriver.cs: Added SetWindowStyle() abstract
35604 - Implemented UpdateStyles() method
35605 - Implemented UpdateZOrder() method
35606 * XplatUIOSX.cs: Added SetWindowStyle() stub
35608 2005-01-12 Geoff Norton <gnorton@customerdna.com>
35610 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35614 2005-01-11 Jackson Harper <jackson@ximian.com>
35616 * TreeView.cs: Still need to draw lines to siblings even if out of
35617 the current node is out of the clip.
35619 2005-01-11 Jackson Harper <jackson@ximian.com>
35621 * TreeView.cs: When setting the hbar/vbar/grip position use
35622 SetBounds so that perform layout is only called once. Also suspend
35623 and resume layout so layout is only done once for all controls.
35624 - Removed some debug fluff
35625 * SizeGrip.cs: Call base implmentation in overriding methods.
35626 - When visibility is changed the drawing buffers are killed so we
35629 2005-01-11 Jackson Harper <jackson@ximian.com>
35631 * TreeView.cs: Calculate the open node count while drawing. This
35632 saves us an entire tree traversal for every paint operation. Use
35633 a member var for the open node count so less vars are passed around.
35635 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
35637 * MonthCalendar.cs:
35638 - fixed selection to use mousemove, not mouse polling on timer
35639 * ThemeWin32Classic.cs
35640 - removed redundant unused variable "no_more_content"
35642 2005-01-11 Peter Bartok <pbartok@novell.com>
35644 * XplatUIX11.cs (DoEvents): Needs to return when no more events
35645 are pending, so it now calls PeekMessage instead of GetMessage;
35646 implemented a incomplete version of PeekMessage
35648 2005-01-11 Peter Bartok <pbartok@novell.com>
35650 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35652 * TextBoxBase.cs: Added sending of TextChanged event
35654 2005-01-10 Jackson Harper <jackson@ximian.com>
35656 * TreeView.cs: Try not to draw outside the clipping rectangle on
35659 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
35661 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35663 2005-01-10 Jackson Harper <jackson@ximian.com>
35666 - Implement fast scrolling. Now only the newly
35667 exposed nodes are drawn and the old image is moved using the
35668 XplatUI::ScrollWindow method.
35669 - Factor in height of nodes when calculating whether or not the
35670 node is in the clipping rect.
35672 2005-01-10 Jackson Harper <jackson@ximian.com>
35674 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35676 2005-01-10 Peter Bartok <pbartok@novell.com>
35678 * Application.cs: Added temporary hack to resolve all our resize
35679 required issues on startup. This will get fixed properly at
35680 some point in the future
35682 2005-01-10 Jackson Harper <jackson@ximian.com>
35684 * SizeGrip.cs: New internal class that is used as a sizing
35685 grip control...hence the name.
35687 2005-01-10 Peter Bartok <pbartok@novell.com>
35689 * Control.cs: Implemented proper TabIndex handling, now assigning
35690 a tabindex when a control is added to a container
35691 * GroupBox.cs (ctor): Now sets the Container style bit, required
35692 for Control.GetNextControl()
35694 2005-01-09 Jackson Harper <jackson@ximian.com>
35696 * TextBoxBase.cs: Clear window when scrolling (fixes build).
35698 2005-01-09 Peter Bartok <pbartok@novell.com>
35700 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35701 XplatUIX11.cs: Added ability to control ScrollWindow expose and
35702 an overload for ScrollWindow to allow only scrolling a rectangle
35704 2005-01-09 Peter Bartok <pbartok@novell.com>
35707 - Implemented SetDesktopBounds method
35708 - Implemented SetDesktopLocation method
35710 2005-01-08 Jackson Harper <jackson@ximian.com>
35712 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35713 the node count has changed, this removes to VScroll::Refresh calls
35716 2005-01-08 Geoff Norton <gnorton@customerdna.com>
35718 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35720 2005-01-07 Jackson Harper <jackson@ximian.com>
35722 * TreeNode.cs: Just update the single node when it is
35723 checked. Don't refresh after toggling, the Expand/Collapse already
35725 * TreeView.cs: Respect clipping a little more when drawing. Try
35726 not to redraw things that don't need to be redrawn. Just hide the
35727 scrollbars when they are no longer needed instead of removing
35728 them, so they don't have to be created again and again.
35730 2005-01-07 Geoff Norton <gnorton@customerdna.com>
35732 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
35733 coordinates to window space to place the caret properly, FIXED.
35734 Implement GetWindowState & SetWindowState
35736 2005-01-06 Peter Bartok <pbartok@novell.com>
35739 - Implemented ClientSize property
35740 - Implemented DesktopBounds property
35741 - Implemented DesktopLocation property
35742 - Implemented IsRestrictedWindow property
35743 - Implemented Size property
35744 - Implemented TopLevel property
35745 - Implemented FormWindowState property
35747 - Implemented GetTopLevel() method
35748 - Implemented SetTopLevel() method
35749 * X11Structs.cs (Atom):
35750 - Added AnyPropertyType definition
35751 - Added MapState definiton and updated XWindowAttribute struct
35752 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35753 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35754 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35756 - Implemented GetWindowState() and SetWindowState() methods
35757 - Fixed Win32GetWindowLong return type
35759 - Introduced central function for sending NET_WM messages
35760 - Implemented GetWindowState() and SetWindowState() methods
35761 * TextBoxBase.cs (set_Lines):
35762 - Now uses Foreground color for text added via Text property (Duh!)
35763 - Added code to remember programmatically requested size (fixes
35764 behaviour when Multiline is set after Size)
35765 - Added AutoSize logic
35767 2005-01-06 Jackson Harper <jackson@ximian.com>
35769 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35771 2005-01-06 Jackson Harper <jackson@ximian.com>
35773 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35774 set to less then 0.
35776 2005-01-06 Jackson Harper <jackson@ximian.com>
35778 * ScrollableControl.cs: Lazy init the scrollbars.
35780 2005-01-06 Jackson Harper <jackson@ximian.com>
35782 * Theme.cs: Speed up getting pens and solid brushes, by using
35783 their ARGB as a hash instead of tostring and not calling Contains.
35785 2005-01-06 Peter Bartok <pbartok@novell.com>
35788 - Implemented OnActivated and OnDeactivate event trigger
35789 - Implemented Activate() method
35790 - Fixed ShowDialog() to activate the form that was active before
35791 the dialog was shown
35793 - Added global active_window var that tracks the currently active
35795 - Now always grabs Property changes from the root window to always
35796 catch changes on the active window property
35797 - Added code to PropertyNotify handler to send Active/Inactive
35798 messages when state changes. This puts X11 and Win32 en par on
35799 WM_ACTIVATE notifications (except for double notifications when
35800 the user clicks away from our modal window to another one of our
35803 2005-01-05 Jackson Harper <jackson@ximian.com>
35805 * ImageList.cs: Implment ctor
35807 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35809 * XplatUIOSX.cs: Implement Activate/SetTopmost
35811 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35813 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35815 2005-01-05 Geoff Norton <gnorton@customerdna.com>
35817 * XplatUIOSX.cs: Implement GetActive/SetFocus.
35819 2005-01-05 Peter Bartok <pbartok@novell.com>
35821 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35822 XplatUIOSX.cs: Added GetActive method to return the currently
35823 active window for the application (or null, if none is active)
35825 - Implemented ActiveForm
35826 - Commented out owner assignment for modal dialogs (causes problems
35827 on Win32, since the owner will be disabled)
35828 - Reworked some Active/Focus handling (still incomplete)
35829 * CommonDialog.cs: Commented out owner assignment for modal dialogs
35830 (causes problems on Win32, since the owner will be disabled)
35831 * IWin32Window: Added ComVisible attribute
35833 2005-01-05 Peter Bartok <pbartok@novell.com>
35835 * ToolTip.cs (WndProc): Enable setting focus now that we have the
35836 required XplatUI functions.
35838 2005-01-05 Peter Bartok <pbartok@novell.com>
35840 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35841 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35842 to implement focus and activation handling; still incomplete and
35845 2005-01-04 Peter Bartok <pbartok@novell.com>
35847 * TextBoxBase.cs: Changed access level for Document property to
35848 match switch to internal for TextControl
35850 2005-01-04 Peter Bartok <pbartok@novell.com>
35852 * AccessibleObject: Added ComVisible attribute
35854 2005-01-04 Jackson Harper <jackson@ximian.com>
35856 * X11Keyboard.cs: Remove unneeded var.
35858 2005-01-04 Jackson Harper <jackson@ximian.com>
35860 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
35862 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
35863 ClientMessage. This makes apps exit cleanly (more often).
35865 2005-01-04 Jackson Harper <jackson@ximian.com>
35867 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
35868 handling focus, return correct colors and fonts,
35869 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
35870 handle selection, horizontal scrolling, and mouse interaction.
35872 2005-01-04 Peter Bartok <pbartok@novell.com>
35874 * ICommandExecutor.cs: Added
35875 * IDataGridColumnStyleEditingNotificationService.cs: Added
35876 * IFeatureSupport.cs: Added
35877 * IFileReaderService.cs: Added
35878 * IDataObject.cs: Added ComVisible attribute
35879 * AmbientProperties.cs: Added
35880 * BaseCollection.cs: Added missing attributes
35881 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
35882 * BaseCollection.cs: Added missing attributes
35883 * Binding.cs: Added TypeConverter attribute
35884 * BindingContext.cs: Added DefaultEvent attribute
35885 * BindingsCollection.cs: Added DefaultEvent attribute
35886 * Button.cs: Added DefaultValue attribute
35887 * DragEventArgs.cs: Added ComVisible attribute
35888 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
35889 * KeyEventArgs.cs: Added ComVisible attribute
35890 * KeyPressEventArgs.cs: Added ComVisible attribute
35891 * MouseEventArgs.cs: Added ComVisible attribute
35892 * NavigateEventArgs.cs: Added
35893 * NavigateEventHandler.cs: Added
35894 * FeatureSupport.cs: Added
35895 * OSFeature.cs: Added
35896 * Theme.cs: Added abstract Version property to support OSFeature
35897 * ThemeWin32Classic.cs: Added Version property to
35898 support OSFeature.Themes
35899 * ProgressBar.cs: Removed OnPaintBackground override, not required since
35900 the proper styles to avoid background drawing are set, also doesn't
35902 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
35903 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
35904 * ScrollEventArgs.cs: Added ComVisible attribute
35905 * SplitterEventArgs.cs: Added ComVisible attribute
35906 * AccessibleSelection.cs: Added Flags attribute
35907 * Appearance.cs: Added ComVisible attribute
35908 * Border3DSide.cs: Added ComVisible attribute
35909 * Border3DStyle.cs: Added ComVisible attribute
35910 * BorderStyle.cs: Added ComVisible attribute
35911 * DragAction.cs: Added ComVisible attribute
35912 * ErrorBlinkStyle.cs: Added
35913 * ScrollEventType.cs: Added ComVisible attribute
35914 * AnchorStyles.cs: Added Editor attribute
35915 * DockStyle.cs: Added Editor attribute
35916 * HorizontalAlignment.cs: Added ComVisible attribute
35917 * HelpEventArgs.cs: Added ComVisible attribute
35918 * PaintEventArgs.cs: Added IDisposable
35920 2005-01-04 Peter Bartok <pbartok@novell.com>
35922 * TextControl.cs: Switched Line, LineTag and Document classes to
35925 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35927 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
35928 Simple mode, fixes, IntegralHeight, etc.
35930 2005-01-04 Peter Bartok <pbartok@novell.com>
35932 * TextBoxBase.cs: Using proper font variable now
35934 2005-01-04 Peter Bartok <pbartok@novell.com>
35936 * Form.cs (ShowDialog): Set parent to owner, if provided
35937 * GroupBox.cs: Removed unused vars
35939 - Added GetHashCode() for Document and LineTag classes
35940 - Removed unused variables
35941 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
35942 to allow translation between continuous char position and line/pos
35943 * CheckBox.cs: Removed vars that are provided by base class
35944 * RadioButton.cs: Removed vars that are provided by base class, added
35945 new keyword where required
35946 * LinkLabel.cs: Added new keyword where required
35947 * Control.cs (WndProc): Removed unused variable
35949 - Finished SelectionLength property
35950 - Implemented SelectionStart property
35951 - Implemented Text property
35952 - Removed unused vars
35953 * MessageBox.cs: Added new keyword where required
35954 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
35956 * MenuAPI.cs: Added new keyword where required
35957 * ButtonBase.cs: Removed vars that are provided by base class, added
35958 new keyword where required
35959 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
35960 argument to double, to allow compiling with csc 2.0 (Atsushi ran
35962 * Application.cs (Run): Now triggers the ThreadExit event
35963 * CommonDialog.cs: Added new keyword where required; now properly sets
35964 parent (owner) for dialog
35965 * XplatUIX11.cs: Commented out unused vars
35966 * StatusBar.cs: Fixed signature for Text property
35967 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
35969 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
35971 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
35972 TrackBar.cs, MonthCalendar.cs: remove unused vars
35974 2005-01-03 Jackson Harper <jackson@ximian.com>
35976 * ThemeWin32Classic.cs:
35977 * X11Keyboard.cs: Remove unused vars.
35979 2005-01-03 Peter Bartok <pbartok@novell.com>
35982 - set_Text: Tied into TextControl
35983 - set_TextAlignment: Tied into TextControl
35985 - Added alignment properties and implemented alignment handling
35986 and drawing (still has a bug, not generating proper expose events)
35987 - Added new Line() constructor to allow passing the line alignment
35988 - Fixed selection setting, properly handling end<start now
35989 - Added aligment considerations to RecalculateDocument()
35991 - Now properly enforces control height for single line controls
35992 - Added support for CharacterCasing
35993 - Added IsInputKey override
35994 - Fixed Keys.Enter logic
35995 - Added SetBoundsCore override
35996 - Fixed mouse selection handling
35998 2005-01-03 Jackson Harper <jackson@ximian.com>
36001 - Collapse and uncheck all nodes when CheckBoxes is disabled.
36002 - Checkboxes are always aligned to the bottom of the node,
36003 regardless of item height.
36004 - Use the node bounds to draw the text so we can center it when
36005 the item height is greater then the font height.
36006 - Node::Bounds are only the text part of the node.
36007 * TreeNode.cs: New method to combine collapsing and unchecking all
36010 2005-01-02 Jackson Harper <jackson@ximian.com>
36012 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36013 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36014 tree when a check is changed. TODO: Only refresh the checked node.
36016 2004-12-30 Jackson Harper <jackson@ximian.com>
36018 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36019 * TreeNode.cs: When collapsing make sure to never collapse the
36022 2004-12-29 Jackson Harper <jackson@ximian.com>
36024 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36026 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
36028 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36030 2004-12-28 Peter Bartok <pbartok@novell.com>
36032 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36035 2004-12-28 Peter Bartok <pbartok@novell.com>
36037 * Control.cs (WndProc): Added WM_HELP handler, now generates
36038 HelpRequested event
36039 * Form.cs: Added HelpButton property and required support code
36040 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36042 2004-12-28 Peter Bartok <pbartok@novell.com>
36045 - Made DialogForm.owner variable internal
36046 - Added check to ensure owner form is set before setting
36047 owner properties in CreateParams
36049 2004-12-28 Geoff Norton <gnorton@customerdna.com>
36051 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
36052 swizzling. Implement ClientToScreen and ScreenToClient. Implement
36053 GetCursorPos. Fix major visibility issues. Rework the windowing
36054 system to support borderless/titleless windows (implements menus).
36055 Fix GetWindowPos. Implement initial background color support for
36058 2004-12-28 Peter Bartok <pbartok@novell.com>
36060 * Form.cs (get_CreateParams): Make sure we have an owner before using
36061 the owner variable. Implement proper default if no owner exists
36063 2004-12-28 Peter Bartok <pbartok@novell.com>
36065 * In preparation for making Managed.Windows.Forms the default build target
36066 for System.Windows.Forms, the following stubbed files were added.
36067 Dialogs are currently being implemented by contributors and are only
36068 short-term place holders.
36069 * ColorDialog.cs: Initial check-in (minmal stub)
36070 * DataGrid.cs: Initial check-in (minimal stub)
36071 * DataGridLineStyle.cs: Initial check-in (minimal stub)
36072 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36073 * DataGridTableStyle.cs: Initial check-in (minimal stub)
36074 * FontDialog.cs: Initial check-in (minimal stub)
36075 * FileDialog.cs: Initial check-in (minimal stub)
36076 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36077 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36078 * OpenFileDialog: Initial check-in (minimal stub)
36079 * IComponentEditorPageSite.cs: Initial check-in
36080 * Splitter.cs: Initial check-in (for Jackson)
36081 * SplitterEventArgs.cs: Initial check-in (for Jackson)
36082 * SplitterEventHandler.cs: Initial check-in (for Jackson)
36083 * TextBox.cs: Initial check-in; still needs some wiring to
36084 TextControl backend
36085 * Form.cs: Implemented ControlBox property
36086 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36087 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36088 * TextControl.cs: Added selection functionality; added todo header
36090 - Implemented Lines property
36091 - Implemented TextHeight property
36092 - Implemented SelectedText property
36093 - Implemented SelectionLength property
36094 - Implemented SelectAll method
36095 - Implemented ToString method
36096 - Removed and cleaned up some debug code
36097 - Implemented (still buggy) mouse text selection
36099 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
36101 * ComboBox.cs: Complete DropDownList implementation, fixes.
36103 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
36105 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36106 * ComboBoxStyle.cs: ComboBoxStyle enum
36107 * ComboBox.cs: Initial work on ComboBox control
36109 2004-12-21 Peter Bartok <pbartok@novell.com>
36111 * Control.cs (ctor, CreateParams): Moved setting of is_visible
36112 forward so that anything that creates a window gets the default,
36113 also no longer uses Visible property in CreateParams to avoid
36114 walking up the parent chain and possibly get the wrong visible
36115 status. Fixed IsVisible to no longer walk up to the parent.
36117 2004-12-21 Peter Bartok <pbartok@novell.com>
36119 * Form.cs (ShowDialog): Unset modality for the proper window
36121 2004-12-20 Peter Bartok <pbartok@novell.com>
36123 * CommonDialog.cs: Initial check-in
36125 2004-12-20 Peter Bartok <pbartok@novell.com>
36127 * Control.cs (Visible): Now uses the parent window instead of the
36128 client area window for the property
36131 - ShowDialog(): Now uses the proper window for modality
36132 - The default visibility state for the form parent is now false. This
36133 will prevent the user from seeing all the changes to the form and
36134 its controls before the application hits Application.Run()
36135 - Removed some stale commented out code
36138 - Added FindWindow() method to have a method to check for existence
36140 - Added ability to override default exception handling (for example
36141 when debugging with VS.Net; to do this the ExternalExceptionHandler
36143 - Removed some useless debug output
36146 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36147 not working as expected
36148 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36149 property to allow switching back to the modal window if focus is
36150 given to another one of our windows (Application Modal)
36151 - Now only sets override_redirect if we create a window
36153 - Moved EventMask selection before mapping of newly created window
36154 so we can catch the map event as well
36155 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36156 - Added various Atom related DllImports
36157 - Implemented Exit() method
36158 - .ctor() : No longer shows window if WS_VISIBLE is not defined
36159 in the CreateParams
36161 * MessageBox.cs: Now properly deals with the FormParent window by
36162 providing an override the FormParent CreateParams property to
36163 set as POPUP instead of OVERLAPPED window.
36165 2004-12-19 Geoff Norton <gnorton@customerdna.com>
36167 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
36168 Minor code cleanup.
36170 2004-12-19 Geoff Norton <gnorton@customerdna.com>
36172 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36174 2004-12-18 Peter Bartok <pbartok@novell.com>
36176 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36177 implementing SetModal() method
36179 2004-12-18 Peter Bartok <pbartok@novell.com>
36181 * X11Structs.cs (XGCValues): Fixed type of function element
36182 * XplatUI.cs: Added ScrollWindow() method
36183 * XplatUIDriver.cs: Added ScrollWindow() abstract
36184 * XplatUIWin32.cs: Implemented ScrollWindow() method
36185 * XplatUIX11.cs: Implemented ScrollWindow() method
36186 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36188 2004-12-17 Geoff Norton <gnorton@customerdna.com>
36190 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
36191 Some more keyboard support (INCOMPLETE)
36193 2004-12-17 Peter Bartok <pbartok@novell.com>
36196 - Added color attribute to line tags.
36197 - Added color argument to all functions dealing with tags
36198 - Added color argument support to various functions
36199 - Fixed miss-calculation of baseline/shift in certain circumstances
36201 * TextBoxBase.cs: Added new color option to test code
36203 2004-12-17 Jackson Harper <jackson@ximian.com>
36206 * MonthCalendar.cs: Signature fixes
36208 2004-12-17 Geoff Norton <gnorton@customerdna.com>
36210 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36211 keyboard event moved it. Create a new graphics context for each paint resolves this
36213 2004-12-17 Geoff Norton <gnorton@customerdna.com>
36215 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36216 Make caret exist and go blink blink. Initial keyboard support.
36217 Fix exception handler, Add Invalidate support. Change way RefreshWindow
36220 2004-12-17 Jackson Harper <jackson@ximian.com>
36222 * XplatUIStructs.cs: Updated set of virtual keycodes.
36223 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36225 2004-12-17 Jackson Harper <jackson@ximian.com>
36227 * XplatUIX11.cs: Prune old keyboard code.
36229 2004-12-17 Jackson Harper <jackson@ximian.com>
36231 * XplatUIX11.cs: When generating mouse wparams get the modifier
36232 keys from the ModifierKeys property.
36234 2004-12-17 Jackson Harper <jackson@ximian.com>
36236 * X11Keyboard.cs: Send up/down input when generating
36237 messages. Remove some unused vars.
36239 2004-12-17 Jackson Harper <jackson@ximian.com>
36242 * TreeView.cs: get rid of warnings.
36244 2004-12-17 Jackson Harper <jackson@ximian.com>
36246 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36248 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
36250 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36251 CheckedListBox.cs: Implementation
36253 2004-12-17 Peter Bartok <pbartok@novell.com>
36255 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36257 2004-12-16 Peter Bartok <pbartok@novell.com>
36260 - InsertCharAtCaret(): Fixed start pos fixup
36261 - CaretLine_get: No longer derives the line from the tag, the tag
36262 could be stale if lines in the document have been added or deleted
36263 - RebalanceAfterDelete(): Fixed bug in balancing code
36264 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36265 - Line.Streamline(): Now can also elminate leading empty tags
36266 - DumpTree(): Added a few more tests and prevented exception on
36268 - Added Debug section for Combining lines
36269 - Delete(): Now copies all remaining properties of a line
36272 - Left mousebutton now sets the caret (and middle button still acts
36273 as formatting tester, which must go away soon)
36274 - Added Debug section for Deleting/Combining lines
36275 - Fixed calculations for UpdateView after Combining lines
36277 2004-12-16 Peter Bartok <pbartok@novell.com>
36279 * TextControl.cs: Now properly aligns text on a baseline, using the
36280 new XplatUI.GetFontMetrics() method. Simplified several calculations
36281 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36284 2004-12-16 Peter Bartok <pbartok@novell.com>
36286 * XplatUI.cs: Added GetFontMetrics() method
36287 * XplatUIDriver.cs: Added GetFontMetrics() abstract
36288 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36289 into libgdiplus, our private GetFontMetrics function
36290 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36291 * XplatUIWin32.cs: Implemented GetFontMetrics() method
36293 2004-12-16 Jackson Harper <jackson@ximain.com>
36295 * XplatUIStruct.cs: Add enum for dead keys
36296 * X11Keyboard.cs: Map and unmap dead keys.
36298 2004-12-16 Jackson Harper <jackson@ximian.com>
36300 * X11Keyboard.cs: Detect and use the num lock mask.
36302 2004-12-16 Peter Bartok <pbartok@novell.com>
36304 * Control.cs (CreateGraphics): Added check to make sure the
36305 handle of the window exists before calling Graphics.FromHwnd()
36307 2004-12-16 Peter Bartok <pbartok@novell.com>
36309 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36310 contains a lot of code that's not supposed to be there for the
36311 real thing, but required for developing/testing the textbox
36314 2004-12-16 Peter Bartok <pbartok@novell.com>
36317 - Fixed Streamline method
36318 - Added FindTag method to Line
36319 - Added DumpTree method for debugging
36320 - Added DecrementLines() method for deleting lines
36321 - Fixed UpdateView to update the cursor to end-of-line on single-line
36323 - Added PositionCaret() method
36324 - Fixed MoveCaret(LineDown) to move into the last line, too
36325 - Added InsertChar overload
36326 - Fixed InsertChar tag offset calculations
36327 - Added DeleteChar() method
36328 - Added Combine() method for folding lines
36329 - Fixed Delete() method, no longer allocates wasted Line object and
36330 now copies all properties when swapping nodes
36331 - Delete() method now updates document line counter
36333 2004-12-15 Jackson Harper <jackson@ximian.com>
36335 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36336 * X11Keyboard.cs: Expose the currently selected modifier keys
36337 through a property.
36339 2004-12-15 Peter Bartok <pbartok@novell.com>
36341 * TextControl.cs: Initial check-in. Still incomplete
36343 2004-12-15 Jackson Harper <jackson@ximian.com>
36346 * TreeView.cs: Fix build on csc (second time today ;-))
36348 2004-12-15 Jackson Harper <jackson@ximian.com>
36350 * TreeView.cs: Store the treenodes plus/minus box bounds when it
36351 is calculated and use this for click testing.
36352 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36354 2004-12-15 Jackson Harper <jackson@ximian.com>
36356 * TreeView.cs: Pass the nodes image index to the image list when
36357 drawing that image.
36359 2004-12-15 Jackson Harper <jackson@ximian.com>
36361 * X11Keyboard.cs: Set messages hwnd.
36362 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36363 post_message calls.
36365 2004-12-15 Jackson Harper <jackson@ximian.com>
36367 * X11Keyboard.cs: Fix to compile with csc.
36369 2004-12-15 Jackson Harper <jackson@ximian.com>
36371 * X11Structs.cs: Add key mask values
36372 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36373 * X11Keyboard.cs: New file - Extrapolates and interpolates key
36374 down/up foo into WM_CHAR foo
36375 * KeyboardLayouts.cs: Common keyboard layouts
36376 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36377 post messages into the main queue.
36379 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
36381 * Button.cs: implement ProcessMnemonic
36382 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36384 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36385 * ButtonBase.cs: Show HotkeyPrefix (not the &)
36387 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
36389 * MonthCalendar.cs: Implemented click-hold for next/previous month
36392 2004-12-11 Peter Bartok <pbartok@novell.com>
36395 - Added XKeyboardState (moved from XplatUIX11.cs)
36396 - Added XCreateGC related enums and structures
36397 - Added GXFunction for XSetFunction
36399 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36401 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36402 CaretVisible() calls
36404 * ToolTip.cs: Added code to prevent stealing focus from app windows
36406 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36407 DestroyCaret, SetCaretPos and CaretVisible)
36410 - Added implementation for caret functions
36411 - Moved hover variables into a struct, to make it a bit easier
36412 on the eyes and to debug
36413 - Removed XKeyboardState (moved to XplatUIX11.cs)
36414 - Moved Keyboard properties into the properties region
36416 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36417 call to get a graphics context for our control
36419 * XplatUIOSX.cs: Added empty overrides for the new caret functions
36421 * TreeView.cs: Fixed bug. No matter what color was set it would always
36422 return SystemColors.Window
36424 * XplatUIWin32.cs: Implemented caret overrides
36426 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
36428 * ListBox.cs: fire events, implement missing methods and properties,
36431 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
36433 * MonthCalendar.cs: invalidation bug fixing
36434 * ThemeWin32Classic.cs: paint fixing
36436 2004-12-09 Geoff Norton <gnorton@customerdna.com>
36438 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36439 prepare the CGContextRef there now.
36441 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
36443 * MonthCalendar.cs:
36444 - optimisationL only invalidate areas that have changed
36445 * ThemeWin32Classic.cs:
36446 - only paint parts that intersect with clip_area
36448 2004-12-09 Peter Bartok <pbartok@novell.com>
36450 * Application.cs: Undid changes from r37004 which cause problems
36453 2004-12-09 Ravindra <rkumar@novell.com>
36455 * ToolBar.cs: Added support for displaying ContextMenu
36456 attached to a button on ToolBar.
36457 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36460 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36462 * Label.cs: autosize works in text change and removes unnecessary
36465 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
36467 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36470 2004-12-08 Geoff Norton <gnorton@customerdna.com>
36472 * XplatUIOSX.cs: Added mouse move/click/grab support
36473 Remove some debugging WriteLines not needed anymore.
36474 Add window resizing/positioning.
36475 Fix visibility on reparenting.
36477 2004-12-08 Peter Bartok <pbartok@novell.com>
36479 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36481 2004-12-07 Geoff Norton <gnorton@customerdna.com>
36483 * XplatUIOSX.cs: Initial checkin
36484 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36486 2004-12-03 Ravindra <rkumar@novell.com>
36488 * ListView.cs: Added some keybindings and fixed scrolling.
36489 ScrollBars listen to ValueChanged event instead of Scroll
36490 Event. This would let us take care of all changes being
36491 done in the scrollbars' values programmatically or manually.
36492 * ListView.cs (CanMultiselect): Added a check for shift key.
36493 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36494 * ListViewItem.cs (Clone): Fixed. We need to make a copy
36495 of ListViewSubItemCollection as well.
36497 2004-12-06 Peter Bartok <pbartok@novell.com>
36499 * Control.cs (Parent): Added check and exception to prevent
36502 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
36504 * ListBox.cs: implemented clipping, selection single and multiple,
36507 2004-12-03 Ravindra <rkumar@novell.com>
36509 * ListView.cs (ListView_KeyDown):
36510 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36511 when CTRL key is pressed.
36512 * ListViewItem.cs (Selected): Fixed setting the property.
36514 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36516 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36518 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36519 MinimizeBox, ShowInTaskbar, TopMost properties.
36521 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36522 will be implemented).
36524 2004-12-03 Marek Safar <marek.safar@seznam.cz>
36526 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36528 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36531 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36533 * TreeView.cs: BackColor is Colors.Window.
36535 2004-12-01 Jackson Harper <jackson@ximian.com>
36537 * TreeView.cs: When resizing the tree if the user is making it
36538 smaller we don't get expose events, so we need to handle adding
36539 the horizontal scrollbar in the size changed handler as well as
36540 the expose handler.
36542 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
36544 * DrawItemState.cs: fixes wrong enum values
36546 2004-12-01 Jackson Harper <jackson@ximian.com>
36548 * TreeView.cs: Resize the hbar as well as the vbar on resize.
36550 2004-12-01 Jackson Harper <jackson@ximian.com>
36552 * NodeLabelEditEventArgs.cs:
36553 * NodeLabelEditEventHandler.cs:
36554 * OpenTreeNodeEnumerator.cs:
36556 * TreeNodeCollection.cs:
36558 * TreeViewAction.cs:
36559 * TreeViewCancelEventArgs.cs:
36560 * TreeViewCancelEventHandler.cs:
36561 * TreeViewEventArgs.cs:
36562 * TreeViewEventHandler.cs: Initial implementation.
36564 2004-12-01 Ravindra <rkumar@novell.com>
36566 * ListView.cs (CalculateListView): Fixed scrolling related
36567 calculations. Also, removed some debug statements from other
36569 * ListViewItem.cs: Changed access to 'selected' instance variable
36570 from private to internal.
36571 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36573 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
36575 * ThemeWin32Classic.cs: remove cache of brush and pens for
36576 specific controls and use the global system, fixes scrollbutton
36577 bugs (for small sizes, disabled, etc)
36579 * ScrollBar.cs: does not show the thumb for very small controls
36580 (as MS) and allow smaller buttons that the regular size
36582 2004-12-01 Miguel de Icaza <miguel@ximian.com>
36584 * UpDownBase.cs: Add abstract methods for the interface.
36585 Add new virtual methods (need to be hooked up to TextEntry when it
36587 Add override methods for most features.
36588 Computes the size, forces the height of the text entry.
36590 * NumericUpDown.cs: Put here the current testing code.
36592 * Set eol-style property on all files that do not have mixed line
36593 endings, to minimize the future problems. There are still a few
36594 files with mixed endings, and someone should choose whether they
36595 want to move it or not.
36597 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
36599 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36602 2004-11-30 Ravindra <rkumar@novell.com>
36604 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36605 drawing and replaced use of SystemColors by theme colors.
36606 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36607 * ListView.cs (ListViewItemCollection.Add): Throw exception when
36608 same ListViewItem is being added more than once.
36610 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
36612 * MonthCalendar.cs:
36613 - ControlStyles love to make the control not flicker
36615 2004-11-30 Peter Bartok <pbartok@novell.com>
36617 * CharacterCasing.cs: Added
36619 2004-11-29 Peter Bartok <pbartok@novell.com>
36621 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36622 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36623 I am removing these files as they conflict with already completed
36624 work. While it is fantastic to get contributions to MWF, I
36625 respectfully ask that everyone please coordinate their contributions
36626 through mono-winforms-list or #mono-winforms at this time. We're
36627 explicitly avoiding stubbing and don't want controls that don't have
36628 their basic functionality implemented in svn. Please also see
36629 http://www.mono-project.com/contributing/winforms.html
36632 2004-11-29 Marek Safar <marek.safar@seznam.cz>
36634 * Application.cs (ModalRun): Don't hang after exit.
36636 * Theme.cs: New TreeViewDefaultSize property.
36638 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36639 with less hardcoded SystemColors constant.
36640 Implemented TreeViewDefaultSize.
36642 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36643 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36646 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
36648 * MonthCalendar.cs:
36649 - Fix NextMonthDate and PrevMonthDate click moving calendar
36651 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36653 * MonthCalendar.cs:
36654 - Fix usage of ScrollChange Property when scrolling months
36656 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
36658 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36659 - Fixes menu destroying
36660 - Support adding and removing items on already created menus
36662 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
36664 * MonthCalendar.cs:
36665 - Re-worked all bolded dates handling to match win32
36666 * ThemeWin32Classic.cs:
36667 - Fixed rendering with bolded dates
36669 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
36671 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36672 - Horizontal scroolbar
36677 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
36679 * MonthCalendar.cs:
36680 - Fix Usage of MaxSelectionCount from SelectionRange
36681 - Fixed Shift + Cursor Selection
36682 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36683 - Fixed normal cursor selection to be compat with win32
36684 - Fixed Shift + Mouse Click selection
36686 2004-11-24 Peter Bartok <pbartok@novell.com>
36688 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36689 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36691 - CreatedKeyBoardMsg now updates keystate with Alt key
36692 - Added workaround for timer crash to CheckTimers, Jackson will
36693 develop a proper fix and check in later
36694 - Implemented DispatchMessage
36695 - Removed calling the native window proc from GetMessage (call
36696 now moved to DispatchMessage)
36698 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36699 the keydata (Fixes bug #69831)
36702 - (DispatchMessage): Switched to return IntPtr
36703 - Added DllImport for SetFocus
36705 2004-11-24 Ravindra <rkumar@novell.com>
36707 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36708 background drawing.
36709 * ListViewItem.cs: Fixed various properties, calculations
36710 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36711 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36712 and some internal properties. Fixed MouseDown handler and Paint
36715 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36717 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36719 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36721 * ContainerControl.cs: correct accidental check in of local changes
36723 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
36725 * ThemeWin32Classic.cs:
36726 - Fixed Drawing Last month in grid (sometimes not showing)
36727 * MonthCalendar.cs:
36728 - Fixed title width calculation bug (makeing title small)
36730 2004-11-23 Peter Bartok <pbartok@novell.com>
36733 - Added generation of WM_MOUSEHOVER event
36734 - Added missing assignment of async_method atom
36735 - Fixed WM_ERASEBKGND; now only redraws the exposed area
36737 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36739 * ThemeWin32Classic.cs:
36740 - Fixed Drawing of today circle when showtodaycircle not set
36741 - fixed drawing of first and last month in the grid (gay dates)
36742 * MonthCalendar.cs:
36743 - Fixed Drawing of today circle
36744 - Fixed drawing of grady dates
36745 - Fixed HitTest for today link when ShowToday set to false
36746 - Fixed DefaultSize to obey ShowToday
36748 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
36750 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36751 * System.Windows.Forms/Theme.cs
36752 * MonthCalendar.cs: added for MonthCalendar
36753 * SelectionRange.cs: added for MonthCalendar
36754 * Day.cs: added for MonthCalendar: added for MonthCalendar
36755 * DateRangeEventArgs.cs: added for MonthCalendar
36756 * DateRangeEventHandler.cs: added for MonthCalendar
36758 2004-11-22 Ravindra <rkumar@novell.com>
36760 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36763 2004-11-22 Miguel de Icaza <miguel@ximian.com>
36765 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36768 * NumericUpDown.cs: Added new implementation.
36769 * UpDownBase.cs: Added new implementation.
36771 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36774 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36777 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36780 2004-11-21 Miguel de Icaza <miguel@ximian.com>
36782 * Timer.cs (Dispose): Should call the base dispose when
36785 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36787 * ScrollBar.cs: updates thumb position when max, min or increment
36790 2004-11-21 Ravindra <rkumar@novell.com>
36792 * ListView.cs: Implemented item selection, activation and
36793 column header style. Fixed properties to do a redraw, if
36794 required. Added support for MouseHover, DoubleClick, KeyDown
36795 and KeyUp event handling and some minor fixes.
36796 * ListViewItem.cs: Fixed constructor.
36797 * ThemeWin32Classic.cs: Improved drawing for ListView.
36799 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
36801 * ThemeWin32Classic.cs: initial listbox drawing code
36802 * DrawMode.cs: new enumerator
36803 * ListControl.cs: stubbed class
36804 * ListBox.cs: initial implementation
36805 * Theme.cs: new methods definitions
36806 * SelectionMode.cs: new enumerator
36808 2004-11-17 Peter Bartok <pbartok@novell.com>
36810 * XplatUIWin32.cs: Added double-click events to the class style
36811 * Control.cs (WndProc):
36812 - Added handling of click-count to MouseDown/ MouseUp events.
36813 - Added handling of middle and right mouse buttons
36814 - Removed old debug code
36816 2004-11-17 Jackson Harper <jackson@ximian.com>
36818 * XplatUIX11.cs: Use the new Mono.Unix namespace.
36820 2004-11-17 Ravindra <rkumar@novell.com>
36822 * ListView.cs: Added event handling for MouseMove/Up/Down.
36823 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36824 * ThemeWin32Classic.cs: We need to clear the graphics context and
36825 draw column header in a proper state.
36828 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
36830 * Menu.cs: fixes signature
36832 2004-11-16 Peter Bartok <pbartok@novell.com>
36834 * XplatUIX11.cs (GetMessage): Implemented generation of
36835 double click mouse messages
36837 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
36839 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36842 2004-11-11 Peter Bartok <pbartok@novell.com>
36844 * HandleData.cs: Added Visible property
36845 * XplatUIX11.cs (IsVisible): Now uses Visible property from
36847 * XplatUIX11.cs: Removed old debug leftovers
36848 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36849 * Control.cs (WndProc): Removed old debug leftovers,
36850 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36851 needed WM_SIZE handling
36853 2004-11-11 Jackson Harper <jackson@ximian.com>
36855 * OwnerDrawPropertyBag.cs:
36856 * TreeViewImageIndexConverter.cs: Initial implementation
36858 2004-11-10 Jackson Harper <jackson@ximian.com>
36860 * ThemeWin32Classic.cs:
36861 * TabControl.cs: instead of moving tabs by the slider pos just
36862 start drawing at the tab that is offset by the slider. This way
36863 scrolling always moves by exactly one tab.
36865 2004-11-10 Jackson Harper <jackson@ximian.com>
36867 * TabControl.cs: You can only scroll left when the slider has
36868 already ben moved right.
36870 2004-11-10 Jackson Harper <jackson@ximian.com>
36872 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
36875 2004-11-10 Jackson Harper <jackson@ximian.com>
36877 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
36880 2004-11-09 Jackson Harper <jackson@ximian.com>
36882 * TabControl.cs (CalcXPos): New helper method so we can determine
36883 the proper place to start drawing vertical tabs.
36884 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
36886 2004-11-09 Jackson Harper <jackson@ximian.com>
36888 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
36889 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
36890 and Bottom, left and right are illegal values for this and
36891 multiline is enabled when the alignment is set to left or right.
36892 (DrawTab): Each alignment block should draw the text itself now
36893 because Left requires special love. Also add rendering for Left
36896 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
36898 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
36899 does not destroy the windows, removes debugging messages
36901 2004-11-09 jba <jba-mono@optusnet.com.au>
36903 * ThemeWin32Classic.cs
36904 (DrawButtonBase): Fix verticle text rect clipping in windows
36905 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36906 rendering and incorrect text rect clipping
36907 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
36908 rendering and incorrect text rect clipping
36910 2004-11-08 Jackson Harper <jackson@ximian.com>
36912 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
36913 bottom when they are bottom aligned so the bottoms of the tabs get
36915 * TabControl.cs (DropRow): Move rows up instead of down when the
36916 tab control is bottom aligned.
36918 2004-11-08 13:59 pbartok
36921 - Added handling for various window styles
36922 - Added handling for popup windows
36923 - Added SetTopmost handling
36925 2004-11-08 13:55 pbartok
36928 - Added argument to SetTopmost method
36929 - Fixed broken ClientToScreen function
36931 2004-11-08 13:53 pbartok
36933 * XplatUIStructs.cs:
36934 - Added missing WS_EX styles
36936 2004-11-08 13:53 pbartok
36938 * XplatUI.cs, XplatUIDriver.cs:
36939 - Added argument to SetTopmost
36941 2004-11-08 13:52 pbartok
36944 - Added XSetWindowAttributes structure
36945 - Improved XWindowAttributes structure
36946 - Added SetWindowValuemask enum
36947 - Added window creation arguments enum
36948 - Added gravity enum
36949 - Added Motif hints structure
36950 - Added various Motif flags and enums
36951 - Added PropertyMode enum for property functions
36953 2004-11-08 13:50 pbartok
36956 - Fixed arguments for updated SetTopmost method
36958 2004-11-08 13:49 pbartok
36961 - Fixed arguments for updated SetTopmost function
36962 - Fixed usage of PointToClient
36964 2004-11-08 13:44 pbartok
36967 - Added Clipping of children and siblings
36969 2004-11-08 13:41 pbartok
36972 - Removed SetMenuBarWindow call. We do this in Form.cs
36974 2004-11-08 13:40 jackson
36976 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
36977 scrolling jimmi in the correct location with bottom aligned tabs
36979 2004-11-08 13:36 pbartok
36981 * ContainerControl.cs:
36982 - Implemented BindingContext
36983 - Implemented ParentForm
36985 2004-11-08 12:46 jackson
36987 * TabControl.cs: Put bottom rendered tabs in the right location
36989 2004-11-08 07:15 jordi
36991 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
36994 2004-11-05 17:30 jackson
36996 * TabControl.cs: When selected tabs are expanded make sure they
36997 don't go beyond the edges of the tab control
36999 2004-11-05 14:57 jackson
37001 * TabControl.cs: Reset show_slider so if the control is resized to
37002 a size where it is no longer needed it's not displayed anymore
37004 2004-11-05 13:16 jackson
37006 * TabControl.cs: Make tab pages non visible when added to the
37009 2004-11-05 12:42 jackson
37011 * TabControl.cs: Implement SizeMode.FillToRight
37013 2004-11-05 12:16 jackson
37015 * Control.cs: Do not call CreateHandle if the handle is already
37018 2004-11-05 11:46 jackson
37020 * TabControl.cs: Remove superflous call to CalcTabRows
37022 2004-11-05 09:07 jackson
37024 * XplatUIX11.cs: Update for Mono.Posix changes
37026 2004-11-05 07:00 ravindra
37028 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37031 2004-11-04 22:47 jba
37033 * ThemeWin32Classic.cs:
37034 - Fix Button rendering for FlatStyle = Flat or Popup
37035 - Fix RadioButton and CheckBox rendering when Appearance = Button
37036 (normal and flatstyle).
37037 - Correct outer rectangle color when drawing focus rectangle
37038 - Adjust button bounds to be 1 px smaller when focused
37039 - Make button not draw sunken 3d border when pushed (windows compat)
37040 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37041 - Offset the text in RadioButton and Checkbox when being rendered as
37043 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37045 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37046 - Fixed disabled text rendering for normally rendered radiobuttons
37048 2004-11-04 10:26 jackson
37050 * TabControl.cs: Recalculate tab rows when resizing
37052 2004-11-04 07:47 jordi
37054 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37055 collection completion, drawing issues, missing features
37057 2004-11-04 05:03 ravindra
37060 - We need to recalculate the Thumb area when
37061 LargeChange/maximum/minimum values are changed.
37062 - We set the 'pos' in UpdatePos() method to minimum, if it's less
37063 than minimum. This is required to handle the case if large_change is
37064 more than max, and use LargeChange property instead of large_change
37066 - We return max+1 when large_change is more than max, like MS does.
37068 2004-11-04 04:29 ravindra
37070 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37071 - Changed default value signatures (prefixed all with ListView).
37072 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37074 - Fixed calculations for ListViewItem and implemented Clone()
37077 2004-11-04 04:26 ravindra
37079 * Theme.cs, ThemeWin32Classic.cs:
37080 - Changed default ListView values signatures (prefixed all with
37082 - Fixed default size values for VScrollBar and HScrollBar.
37083 - Fixed DrawListViewItem method.
37085 2004-11-04 04:05 ravindra
37087 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37089 2004-11-04 04:04 ravindra
37091 * ImageList.cs: Implemented the missing overload for Draw method.
37093 2004-11-03 19:29 jackson
37095 * TabControl.cs: Handle dropping rows on selection properly
37097 2004-11-03 11:59 jackson
37099 * TabControl.cs: remove debug code
37101 2004-11-03 11:52 jackson
37103 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37104 the scrolly widgerywoo
37106 2004-11-02 13:52 jackson
37108 * TabControl.cs: Resize the tab pages and tabs when the tab control
37111 2004-11-02 13:40 jackson
37113 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37114 selected tab to the bottom
37116 2004-11-02 13:39 jackson
37118 * TabPage.cs: Store the tab pages row
37120 2004-11-02 12:33 jordi
37122 * MenuItem.cs: fixes handle creation
37124 2004-11-02 11:42 jackson
37126 * TabControl.cs: signature fix
37128 2004-11-02 08:56 jackson
37130 * TabControl.cs: Calculate whether the tab is on an edge properly.
37131 Remove top secret debugging code
37133 2004-11-01 19:57 jackson
37135 * TabControl.cs: Add click handling, and proper sizing
37137 2004-11-01 19:47 jackson
37139 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37142 2004-11-01 19:39 jackson
37144 * TabPage.cs: add internal property to store the bounds of a tab
37147 2004-10-30 04:23 ravindra
37149 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37152 2004-10-30 04:21 ravindra
37154 * ListView.cs, ListViewItem.cs: Added support for scrolling and
37155 fixed calculations.
37157 2004-10-30 03:06 pbartok
37160 - Removed extension of DllImported libs
37162 2004-10-29 09:55 jordi
37164 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37165 navigation, itemcollection completion, menu fixes
37167 2004-10-27 22:58 pbartok
37170 - Now throws a nice error message when no X display could be opened
37172 2004-10-26 13:51 jordi
37174 * ListView.cs: removes warning
37176 2004-10-26 03:55 ravindra
37178 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37179 ThemeWin32Classic.cs: Some formatting for my last checkins.
37181 2004-10-26 03:36 ravindra
37183 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37184 control and default values.
37186 2004-10-26 03:35 ravindra
37188 * Theme.cs: Added some default values for ListView control.
37190 2004-10-26 03:33 ravindra
37192 * ToolBar.cs: ToolBar should use the user specified button size, if
37193 there is any. Added a size_specified flag for the same.
37195 2004-10-26 03:33 ravindra
37197 * ColumnHeader.cs: Added some internal members and calculations for
37200 2004-10-26 03:32 ravindra
37202 * ListViewItem.cs: Calculations for ListViewItem.
37204 2004-10-26 03:31 ravindra
37206 * ListView.cs: Added some internal members and calculations for
37209 2004-10-22 13:31 jordi
37211 * MenuAPI.cs: speedup menus drawing
37213 2004-10-22 13:16 jackson
37215 * XplatUIX11.cs: Make sure to update exposed regions when adding an
37218 2004-10-22 11:49 jackson
37222 2004-10-22 11:41 jackson
37224 * Control.cs: Check to see if the window should have its background
37225 repainted by X when drawing.
37227 2004-10-22 11:31 jackson
37229 * XplatUIX11.cs: When invalidating areas only use XClearArea if
37230 clear is true, this way we do not get flicker from X repainting the
37233 2004-10-22 11:28 jackson
37235 * XEventQueue.cs: Queue properly
37237 2004-10-21 09:38 jackson
37239 * XEventQueue.cs: Fix access modifier
37241 2004-10-21 09:36 jackson
37243 * XEventQueue.cs: Don't loose messages
37245 2004-10-21 09:22 jackson
37247 * XEventQueue.cs: Don't loose messages
37249 2004-10-20 04:15 jordi
37251 * BootMode.cs: enum need it by SystemInfo
37253 2004-10-19 21:58 pbartok
37256 - Small sanity check
37258 2004-10-19 21:56 pbartok
37261 - Added private FormParentWindow class which acts as the container
37262 for our form and as the non-client area where menus are drawn
37263 - Added/Moved required tie-ins to Jordi's menus
37264 - Fixed/Implemented the FormStartPosition functionality
37266 2004-10-19 21:52 pbartok
37269 - Removed unneeded locals
37270 - Added code to all size and location properties to understand and
37271 deal with the parent container of Form
37273 2004-10-19 21:33 pbartok
37276 - Fixed to deal with new Form subclasses for menus
37278 2004-10-19 17:48 jackson
37280 * XEventQueue.cs: commit correct version of file
37282 2004-10-19 16:50 jackson
37284 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37286 2004-10-19 16:15 jordi
37288 * MenuAPI.cs: MenuBarCalcSize returns the height
37290 2004-10-19 08:31 pbartok
37293 - Added missing call to PreProcessMessage before calling OnXXXKey
37296 2004-10-19 00:04 ravindra
37298 * ToolTip.cs: Fixed constructor.
37300 2004-10-18 09:31 jordi
37302 * MenuAPI.cs: menuitems in menubars do not have shortcuts
37304 2004-10-18 09:26 jordi
37306 * MenuItem.cs: fixes MenuItem class signature
37308 2004-10-18 08:56 jordi
37310 * MenuAPI.cs: prevents windows from showing in the taskbar
37312 2004-10-18 00:28 ravindra
37314 * ToolTip.cs: Suppressed a warning message.
37316 2004-10-18 00:27 ravindra
37318 * Control.cs: Default value of visible property must be true.
37320 2004-10-17 23:19 pbartok
37323 - Complete implementation
37325 2004-10-17 23:19 pbartok
37328 - Added EnableWindow method
37329 - Added SetModal stub
37330 - Added generation of WM_ACTIVATE message (still needs testing)
37331 - Added SetTopMost stub
37332 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37334 2004-10-17 23:17 pbartok
37337 - Removed VirtualKeys to XplatUIStructs
37338 - Implemented SetTopMost method
37339 - Implemented EnableWindow method
37340 - Bugfix in ScreenToClient()
37341 - Bugfixes in ClientToScreen()
37343 2004-10-17 22:51 pbartok
37345 * XplatUIStructs.cs:
37346 - Added WS_EX styles to WindowStyles enumeration
37348 2004-10-17 22:50 pbartok
37350 * XplatUI.cs, XplatUIDriver.cs:
37351 - Added method for enabling/disabling windows
37352 - Added method for setting window modality
37353 - Added method for setting topmost window
37355 2004-10-17 22:49 pbartok
37357 * ThemeWin32Classic.cs:
37358 - Added ToolTip drawing code
37360 2004-10-17 22:49 pbartok
37363 - Added ToolTip abstracts
37365 2004-10-17 22:47 pbartok
37368 - Fixed Form.ControlCollection to handle owner relations
37369 - Added Owner/OwnedForms handling
37370 - Implemented Z-Ordering for owned forms
37371 - Removed unneeded private overload of ShowDialog
37372 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37374 - Fixed Close(), had wrong default
37375 - Added firing of OnLoad event
37376 - Added some commented out debug code for Ownership handling
37378 2004-10-17 22:16 pbartok
37381 - Fixed/implemented flat list of controls
37383 2004-10-17 22:14 pbartok
37386 - Added code to simulate modal dialogs on Win32
37388 2004-10-17 16:11 jordi
37390 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37393 2004-10-17 13:39 jordi
37395 * MenuAPI.cs: menu drawing fixes
37397 2004-10-15 09:10 ravindra
37399 * StructFormat.cs: General Enum.
37401 2004-10-15 09:09 ravindra
37403 * SizeGripStyle.cs: Enum for Form.
37405 2004-10-15 09:08 ravindra
37407 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37408 in Theme for ListView.
37410 2004-10-15 09:06 ravindra
37412 * ColumnHeader.cs: Flushing some formatting changes.
37414 2004-10-15 09:05 ravindra
37416 * ListViewItem.cs: Implemented GetBounds method and fixed coding
37419 2004-10-15 09:03 ravindra
37421 * ListView.cs: Implemented Paint method and fixed coding style.
37423 2004-10-15 07:34 jordi
37425 * MenuAPI.cs: fix for X11
37427 2004-10-15 07:32 ravindra
37429 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37430 - Renamed Paint() method to Draw() for clarity. Also, moved
37431 DrawImage() to OnPaint().
37433 2004-10-15 07:25 ravindra
37435 * CheckBox.cs, RadioButton.cs:
37436 - Removed Redraw (), we get it from ButtonBase.
37437 - Implemented Paint (), to do class specific painting.
37439 2004-10-15 07:16 ravindra
37442 - Redraw () is not virtual now.
37443 - Added an internal virtual method Paint (), so that
37444 derived classes can do their painting on their own.
37445 - Modified OnPaint () to call Paint ().
37447 2004-10-15 06:43 jordi
37449 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37450 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37452 2004-10-15 00:30 ravindra
37455 - MessageBox on windows does not have min/max buttons.
37456 This change in CreateParams fixes this on Windows. We
37457 still need to implement this windowstyle behavior in
37460 2004-10-14 05:14 ravindra
37463 - Changed Redraw () to do a Refresh () always.
37464 - Fixed the MouseMove event handling when mouse is pressed,
37465 ie drag event handling.
37466 - Replaced the usage of ToolBarButton.Pressed property to
37467 ToolBarButton.pressed internal variable.
37469 2004-10-14 05:10 ravindra
37471 * ToolBarButton.cs:
37472 - Added an internal member 'inside' to handle mouse move
37473 with mouse pressed ie mouse drag event.
37474 - Changed 'Pressed' property to return true only when
37475 'inside' and 'pressed' are both true.
37476 - Some coding style love.
37478 2004-10-14 00:17 ravindra
37480 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37483 2004-10-14 00:15 ravindra
37485 * ButtonBase.cs: Redraw () related improvements.
37487 2004-10-14 00:14 ravindra
37489 * MessageBox.cs: Moved InitFormSize () out of Paint method and
37490 removed unnecessary calls to Button.Show () method.
37492 2004-10-13 17:50 pbartok
37496 - Removed destroying of window until we solve the problem of X
37497 destroying the window before us on shutdown
37499 2004-10-13 16:32 pbartok
37502 - Now Redraws on MouseUp for FlatStyle Flat and Popup
37504 2004-10-13 14:18 pbartok
37507 - Added code to destroy the X window
37509 2004-10-13 14:18 pbartok
37512 - Added code to destroy a window
37514 2004-10-13 14:12 pbartok
37517 - Added the Redraw on Resize that got dropped in the last rev
37519 2004-10-13 09:06 pbartok
37521 * ThemeWin32Classic.cs:
37522 - Path from John BouAntoun:
37523 * Fix check rendering (centre correctly for normal style, offset
37524 correctly for FlatStyle).
37525 * Fix border color usage (use backcolor) for FlatStyle.Popup
37526 * Use checkbox.Capture instead of checkbox.is_pressed when
37527 rendering flatstyle states.
37529 2004-10-12 21:48 pbartok
37531 * ThemeWin32Classic.cs:
37532 - Removed all occurences of SystemColors and replaced them with the
37533 matching theme color
37535 2004-10-12 21:41 pbartok
37537 * ThemeWin32Classic.cs:
37538 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37539 him using the function for flatstyle drawing
37540 - Changed functions to use the new version of CPDrawBorder3D
37542 2004-10-12 21:15 pbartok
37545 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37546 match MS documentation. They need to return defined colors if the
37547 passed color matches the configured control color. Thanks to John
37548 BouAntoun for pointing this out.
37550 2004-10-12 20:57 pbartok
37553 - Fix from John BouAntoun: Raise ForeColorChanged event when text
37556 2004-10-12 20:46 pbartok
37559 - Fix from John BouAntoun: Now properly sets the Appearance property
37561 2004-10-12 20:45 pbartok
37563 * ThemeWin32Classic.cs:
37564 - Fixes from John BouAntoun: now handles forecolors and backcolors
37565 for flatstyle rendered controls much better; It also fixes normal
37566 checkbox rendering when pushed or disabled.
37568 2004-10-08 02:50 jordi
37570 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37573 2004-10-07 08:56 jordi
37575 * ThemeWin32Classic.cs: Removes deletion of cached brushes
37577 2004-10-06 03:59 jordi
37579 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37580 XplatUIWin32.cs: removes warnings from compilation
37582 2004-10-05 12:23 jackson
37584 * RadioButton.cs: Fix ctor
37586 2004-10-05 11:10 pbartok
37589 - Partial implementation by Benjamin Dasnois
37591 2004-10-05 10:15 jackson
37593 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37596 2004-10-05 03:07 ravindra
37599 - Removed a private method, Draw ().
37600 - Fixed the ButtonDropDown event handling.
37601 - Fixed MouseMove event handling.
37603 2004-10-05 03:04 ravindra
37605 * ThemeWin32Classic.cs:
37606 - Added DrawListView method and ListViewDefaultSize property.
37607 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37608 - Changed DOS style CRLF to Unix format (dos2unix).
37610 2004-10-05 03:03 ravindra
37613 - Added DrawListView method and ListViewDefaultSize property.
37615 2004-10-05 02:42 ravindra
37617 * ToolBarButton.cs: Added an internal member dd_pressed to handle
37618 clicks on DropDown arrow.
37620 2004-10-04 22:56 jackson
37622 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37623 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37624 Control handle the buffers, derived classes should not have to
37625 CreateBuffers themselves.
37627 2004-10-04 21:20 jackson
37629 * StatusBar.cs: The control handles resizing the buffers now.
37631 2004-10-04 21:18 jackson
37633 * Control.cs: When resizing the buffers should be invalidated. This
37634 should be handled in Control not in derived classes.
37636 2004-10-04 14:45 jackson
37640 2004-10-04 02:14 pbartok
37642 * LeftRightAlignment.cs:
37645 2004-10-04 01:09 jordi
37647 * ThemeWin32Classic.cs: fixes right button position causing right
37648 button not showing on horizontal scrollbars
37650 2004-10-02 13:12 pbartok
37653 - Simplified the Invalidate method by using an X call instead of
37654 generating the expose ourselves
37655 - Added an expose when the window background is changed
37656 - Implemented ClientToScreen method
37658 2004-10-02 13:08 pbartok
37661 - Added Win32EnableWindow method (test for implementing modal
37663 - Added ClientToScreen method and imports
37665 2004-10-02 13:07 pbartok
37667 * XplatUI.cs, XplatUIDriver.cs:
37668 - Added ClientToScreen coordinate translation method
37670 2004-10-02 13:06 pbartok
37672 * KeyPressEventArgs.cs:
37673 - Fixed access level for constructor
37675 2004-10-02 13:06 pbartok
37678 - Changed access level for the window_collection hash table
37680 2004-10-02 13:05 pbartok
37683 - Added KeyPreview property
37684 - Added Menu property (still incomplete, pending Jordi's menu work)
37685 - Implemented ProcessCmdKey
37686 - Implemented ProcessDialogKey
37687 - Implemented ProcessKeyPreview
37689 2004-10-02 13:02 pbartok
37692 - Added private method to get the Control object from the window
37694 - Implemented ContextMenu property
37695 - Implemented PointToScreen
37696 - Implemented PreProcessMessage
37697 - Implemented IsInputChar
37698 - Implemented IsInputKey
37699 - Implemented ProcessCmdKey
37700 - Completed ProcessKeyEventArgs
37701 - Fixed message loop to call the proper chain of functions on key
37703 - Implemented ProcessDialogChar
37704 - Implemented ProcessDialogKey
37705 - Implemented ProcessKeyMessage
37706 - Implemented ProcessKeyPreview
37707 - Added RaiseDragEvent stub (MS internal method)
37708 - Added RaiseKeyEvent stub (MS internal method)
37709 - Added RaiseMouseEvent stub (MS Internal method)
37710 - Added RaisePaintEvent stub (MS Internal method)
37711 - Added ResetMouseEventArgs stub (MS Internal method)
37712 - Implemented RtlTranslateAlignment
37713 - Implemented RtlTranslateContent
37714 - Implemented RtlTranslateHorizontal
37715 - Implemented RtlTranslateLeftRight
37716 - Added generation of KeyPress event
37718 2004-10-02 05:57 ravindra
37720 * ListViewItem.cs: Added attributes.
37722 2004-10-02 05:32 ravindra
37724 * ListView.cs: Added attributes.
37726 2004-10-01 11:53 jackson
37728 * Form.cs: Implement the Close method so work on MessageBox can
37731 2004-09-30 14:06 pbartok
37736 2004-09-30 11:34 jackson
37738 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37740 2004-09-30 07:26 ravindra
37742 * ListViewItemConverter.cs: Converter for ListViewItem.
37744 2004-09-30 07:26 ravindra
37746 * SortOrder.cs: Enum for ListView control.
37748 2004-09-30 07:25 ravindra
37750 * ColumnHeader.cs: Supporting class for ListView control.
37752 2004-09-30 07:24 ravindra
37754 * ListView.cs, ListViewItem.cs: Initial implementation.
37756 2004-09-30 07:20 ravindra
37758 * ItemActivation.cs: Enum for ListView Control.
37760 2004-09-29 20:29 pbartok
37763 - Added lookup of pixel value for background color; tries to get a
37764 color 'close' to the requested color, it avoids having to create a
37765 colormap. Depending on the display this could mean the used color
37766 is slightly off the desired color. Might have to change it to a more
37767 resource intensive colormap approach, but it will work as a
37768 workaround to avoid red screens.
37770 2004-09-29 14:27 jackson
37772 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37774 2004-09-28 12:44 pbartok
37776 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37777 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37778 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37779 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37780 TrackBar.cs, VScrollBar.cs:
37781 - Streamlined Theme interfaces:
37782 * Each DrawXXX method for a control now is passed the object for
37783 the control to be drawn in order to allow accessing any state the
37784 theme might require
37786 * ControlPaint methods for the theme now have a CP prefix to avoid
37787 name clashes with the Draw methods for controls
37789 * Every control now retrieves it's DefaultSize from the current
37792 2004-09-28 12:17 jackson
37794 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37797 2004-09-24 14:57 jackson
37799 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37800 Gives us a nice little performance boost.
37802 2004-09-24 12:02 jackson
37804 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37805 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37806 Control and supporting classes. Initial checkin
37808 2004-09-23 13:08 jackson
37810 * Form.cs: Temp build fixage
37812 2004-09-23 01:39 ravindra
37814 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37815 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37816 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37817 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37818 EventHandlers needed by ListView Control.
37820 2004-09-22 14:12 pbartok
37822 * ScrollableControl.cs:
37823 - Implemented DockPadding property
37824 - Implemented AutoScroll property
37825 - Implemented AutoScrollMargin property
37826 - Implemented AutoScrollMinSize property
37827 - Implemented AutoScrollPosition property
37828 - Implemented DisplayRectangle property (still incomplete)
37829 - Implemented CreateParams property
37830 - Implemented HScroll property
37831 - Implemented VScroll property
37832 - Implemented OnVisibleChanged property
37834 2004-09-22 14:09 pbartok
37837 - Added Form.ControllCollection class
37838 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37839 RemoveOwnedForm (still incomplete, missing on-top and common
37840 minimize/maximize behaviour)
37841 - Added StartPosition property (still incomplete, does not use when
37843 - Added ShowDialog() methods (still incomplete, missing forcing the
37846 2004-09-22 14:05 pbartok
37849 - Added message loop for modal dialogs
37851 2004-09-22 14:02 pbartok
37854 - Fixed wrong types for events
37856 2004-09-22 14:00 pbartok
37858 * Shortcut.cs, FormWindowState.cs:
37859 - Fixed wrong values
37861 2004-09-22 12:01 jackson
37863 * Control.cs: Text is never null
37865 2004-09-20 22:14 pbartok
37868 - Fixed accessibility level for Idle handler
37870 2004-09-20 18:54 jackson
37872 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37873 XplatUIX11.cs: New message loop that uses poll so we don't get a
37876 2004-09-17 10:43 pbartok
37879 - Fixed behaviour of arrow buttons. Now properly behaves like
37880 Buttons (and like Microsoft's scrollbar arrow buttons)
37882 2004-09-17 10:14 pbartok
37885 - Added missing release of keyboard/mouse capture
37887 2004-09-17 06:18 jordi
37889 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
37890 Theme.cs: Very early menu support
37892 2004-09-16 17:45 pbartok
37895 - Fixed sending a window to the front
37896 - Added overload for SetWindowPos to avoid casting
37898 2004-09-16 17:44 pbartok
37901 - Added SendToBack and BringToFront methods
37903 2004-09-16 07:00 ravindra
37905 * Copyright: Added Novell URL.
37907 2004-09-16 07:00 ravindra
37909 * ToolBar.cs: Invalidate should be done before redrawing.
37911 2004-09-15 21:19 ravindra
37913 * ColumnHeaderStyle.cs: Enum for ListView Control.
37915 2004-09-15 21:18 ravindra
37917 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
37920 2004-09-13 18:26 jackson
37922 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
37925 2004-09-13 18:13 jackson
37927 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
37928 a second thread and post messages into the main threads message
37929 queue. This makes timing much more consistent. Both win2K and XP
37930 have a minimum timer value of 15 milliseconds, so we now do this
37933 2004-09-13 15:18 pbartok
37935 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37937 - Added Z-Ordering methods
37939 2004-09-13 10:56 pbartok
37942 - Fixed #region names
37943 - Moved properties and methods into their proper #regions
37945 2004-09-13 10:51 pbartok
37948 - Added Accept and CancelButton properties
37949 - Added ProcessDialogKey() method
37951 2004-09-13 08:18 pbartok
37953 * IWindowTarget.cs:
37956 2004-09-10 21:50 pbartok
37959 - Added DoDragDrop() [incomplete]
37960 - Properly implemented 'Visible' handling
37961 - Added SetVisibleCore()
37962 - Implemented FindChildAtPoint()
37963 - Implemented GetContainerControl()
37964 - Implemented Hide()
37966 2004-09-10 19:28 pbartok
37969 - Moved methods into their appropriate #regions
37970 - Reordered methods within regions alphabetically
37972 2004-09-10 18:57 pbartok
37974 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37975 - Added method to retrieve text from window
37977 2004-09-10 18:56 pbartok
37980 - Moved some internal functions into the internal region
37981 - Implemented FontHeight
37982 - Implemented RenderRightToLeft
37983 - Implemented ResizeRedraw
37984 - Implemented ShowFocusCues
37985 - Implemented ShowKeyboardCues
37986 - Implemented FromChildHandle
37987 - Implemented FromHandle
37988 - Implemented IsMnemonic
37989 - Implemented ReflectMessage
37990 - All public and protected Static Methods are now complete
37992 2004-09-10 16:54 pbartok
37995 - Implemented remaining missing public instance properties
37996 - Alphabetized some out of order properties
37998 2004-09-10 05:51 ravindra
38000 * PictureBox.cs: Added a check for null image.
38002 2004-09-10 00:59 jordi
38004 * GroupBox.cs: remove cvs tag
38006 2004-09-09 05:25 ravindra
38008 * ToolBar.cs: Make redraw accessible from ToolBarButton.
38010 2004-09-09 05:23 ravindra
38012 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38015 2004-09-09 02:28 pbartok
38017 * ThemeWin32Classic.cs:
38018 - Improve disabled string look
38020 2004-09-09 01:15 jordi
38022 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38025 2004-09-08 23:56 ravindra
38027 * ItemBoundsPortion.cs: It's enum, not a class!
38029 2004-09-08 23:47 ravindra
38031 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38034 2004-09-08 21:13 ravindra
38036 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38039 2004-09-08 21:03 ravindra
38041 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38044 2004-09-08 21:01 ravindra
38046 * ScrollableControl.cs: Removed unreachable code.
38048 2004-09-08 06:45 jordi
38050 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38052 2004-09-08 01:00 jackson
38054 * XplatUIX11.cs: Only run the timers when updating the message
38055 queue. This effectively gives X messages a higher priority then
38056 timer messages. Timers still need love though
38058 2004-09-07 14:01 jackson
38060 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38061 this for us and the handle is no longer valid.
38063 2004-09-07 13:59 jackson
38065 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38066 loop that manages to not crash. TODO: Add poll and cleanup timers
38068 2004-09-07 11:12 jordi
38070 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38072 2004-09-07 03:40 jordi
38074 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38075 fixes, methods, multiple links
38077 2004-09-06 06:55 jordi
38079 * Control.cs: Caches ClientRectangle rectangle value
38081 2004-09-05 02:03 jordi
38083 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38086 2004-09-04 11:10 jordi
38088 * Label.cs: Refresh when font changed
38090 2004-09-02 16:24 pbartok
38093 - Added sanity check to creation of double buffer bitmap
38095 2004-09-02 16:24 pbartok
38098 - Fixed selection of text color
38099 - Fixed handling of resize event; now properly recreates double
38101 - Added missing assignment of TextAlignment
38102 - Added proper default for TextAlignment
38104 2004-09-02 14:26 pbartok
38107 - Added missing RadioButton.RadioButtonAccessibleObject class
38109 2004-09-02 14:26 pbartok
38112 - Added missing Control.ControlAccessibleObject class
38113 - Started to implement Select()ion mechanisms, still very incomplete
38115 2004-09-02 14:25 pbartok
38117 * AccessibleObject.cs:
38118 - Added missing methods
38120 2004-09-02 14:23 pbartok
38122 * AccessibleNavigation.cs, AccessibleSelection.cs:
38125 2004-09-02 10:32 jordi
38127 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38128 pool for pens, brushes, and hatchbruses
38130 2004-09-01 15:30 jackson
38132 * StatusBar.cs: Fix typo
38134 2004-09-01 14:44 pbartok
38139 2004-09-01 14:39 pbartok
38141 * Button.cs, RadioButton.cs:
38142 - Functional initial check-in
38144 2004-09-01 14:01 pbartok
38147 - Added missing default
38148 - Added missing region mark
38150 2004-09-01 09:10 jordi
38152 * Label.cs: fixes method signatures, new methods, events, fixes
38155 2004-09-01 07:19 jordi
38157 * Control.cs: Init string variables with an empty object
38159 2004-09-01 04:20 jordi
38161 * Control.cs: fires OnFontChanged event
38163 2004-08-31 20:07 pbartok
38166 - Enabled display of strings
38168 2004-08-31 20:05 pbartok
38171 - Added (partial) implementation of DialogResult; rest needs to be
38172 implemented when the modal loop code is done
38174 2004-08-31 19:55 pbartok
38177 - Fixed to match the removal of the needs_redraw concept
38179 2004-08-31 19:55 pbartok
38182 - Removed the rather odd split between 'needs redraw' and redrawing
38183 - Now handles the events that require regeneration (ambient
38184 properties and size)
38186 2004-08-31 19:41 pbartok
38189 - Added firing of BackColorChanged event
38190 - Added TopLevelControl property
38191 - Fixed handling of WM_ERASEBKGRND message
38193 2004-08-31 12:49 pbartok
38199 2004-08-31 12:48 pbartok
38202 - Finished (famous last words)
38204 2004-08-31 04:35 jordi
38206 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38207 scrolling bugs, adds new methods
38209 2004-08-30 14:42 pbartok
38212 - Implemented CheckBox drawing code
38214 2004-08-30 14:42 pbartok
38217 - Made Redraw() and CheckRedraw() virtual
38218 - Improved mouse up/down/move logic to properly track buttons
38220 2004-08-30 09:44 pbartok
38223 - Updated to fix broken build. Not complete yet.
38225 2004-08-30 09:28 pbartok
38230 2004-08-30 09:17 pbartok
38235 2004-08-27 16:12 ravindra
38237 * ToolBarButton.cs: Added TypeConverter attribute.
38239 2004-08-27 16:07 ravindra
38241 * ImageIndexConverter.cs: Implemented.
38243 2004-08-27 14:17 pbartok
38246 - Removed unneeded stack vars
38247 - First attempt to fix sizing issues when layout is suspended
38249 2004-08-25 15:35 jordi
38251 * ScrollBar.cs: more fixes to scrollbar
38253 2004-08-25 14:04 ravindra
38255 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38256 Added the missing divider code and grip for ToolBar Control.
38258 2004-08-25 13:20 pbartok
38261 - Control now properly passes the ambient background color to child
38264 2004-08-25 13:20 jordi
38266 * ScrollBar.cs: small bug fix regarding bar position
38268 2004-08-25 12:33 pbartok
38271 - Now only calls SetTimer or KillTimer if the enabled state has
38274 2004-08-25 12:33 pbartok
38277 - Fixed timer handling, now seems to work
38278 - Improved error message for window creation
38280 2004-08-25 12:32 pbartok
38283 - Fixed generation of MouseUp message
38285 2004-08-25 12:29 jordi
38287 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38288 and fixes for progressbar
38290 2004-08-24 18:43 ravindra
38292 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38293 in ToolBar control.
38295 2004-08-24 17:15 pbartok
38299 - Added missing events
38302 2004-08-24 17:14 pbartok
38304 * StatusBar.cs, PictureBox.cs:
38305 - Now uses Control's CreateParams
38307 2004-08-24 16:36 pbartok
38310 - Fixed background color handling
38311 - Fixed sending of enter/leave events on a grab
38313 2004-08-24 16:35 pbartok
38316 - Refined definitions for CrossingEvent
38318 2004-08-24 12:37 jordi
38320 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38321 formmating, methods signature, and adds missing events
38323 2004-08-24 12:24 jordi
38325 * Control.cs: fire OnEnabledChanged event
38327 2004-08-24 11:17 pbartok
38330 - Implemented SetTimer() and KillTimer()
38332 2004-08-24 11:16 pbartok
38335 - Now uses Remove instead of Add to kill the timer
38337 2004-08-24 10:16 jackson
38339 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38340 picture boxes in the theme now. Draw picture box borders and obey
38343 2004-08-24 05:49 jackson
38345 * Timer.cs: Remove top secret debugging code
38347 2004-08-24 05:34 jackson
38349 * PictureBox.cs: Temp hack to make picture boxes draw their full
38352 2004-08-24 05:29 jackson
38354 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38355 XplatUIX11.cs: Move timers to the driver level. On X they are
38356 queued by the driver and checked on idle.
38358 2004-08-24 01:07 jackson
38360 * XplatUIX11.cs: Use a queue for async messages instead of passing
38361 them as ClientMessages since that was totally broken. Also simply
38362 check for events and return an idle message if none are found. This
38363 gives us an idle handler, and prevents deadlocking when no messages
38366 2004-08-23 18:19 ravindra
38368 * XplatUIWin32.cs: Removed the unwanted destructor.
38370 2004-08-23 17:27 pbartok
38373 - Finishing touches. Works now, just needs some optimizations.
38375 2004-08-23 16:53 jordi
38377 * ScrollBar.cs: small fix
38379 2004-08-23 16:45 pbartok
38382 - Removed debug output
38385 2004-08-23 16:43 jordi
38387 * ScrollBar.cs: [no log message]
38389 2004-08-23 16:10 pbartok
38392 - Fixed handling of WM_CLOSE message
38393 - Removed debug output
38395 2004-08-23 16:09 pbartok
38398 - Added handling of Idle event
38399 - Added handling of form closing
38400 - Fixed reporting of MessageLoop property
38401 - Removed some unneeded code, should provide a bit of a speedup
38403 2004-08-23 15:22 pbartok
38406 - Added InitLayout() method
38407 - Added code to properly perform layout when Anchor or Dock property
38409 - Changed 'interpretation' of ResumeLayout. MS seems to have a
38410 LAMESPEC, tried to do it in a way that makes sense
38412 2004-08-23 14:10 jordi
38414 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38415 properties and methods
38417 2004-08-23 13:55 pbartok
38420 - Properly fixed Jordi's last fix
38421 - Now uses Cursor's Position property instead of calling XplatUI
38424 2004-08-23 13:44 jordi
38426 * PaintEventHandler.cs: Adding missing attribute
38428 2004-08-23 13:39 pbartok
38431 - Implemented Position property
38433 2004-08-23 13:39 pbartok
38435 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38436 - Added method to move mouse cursor
38438 2004-08-23 13:39 pbartok
38441 - Fixed setting of background color
38442 - Added method to move mouse cursor
38444 2004-08-23 13:16 jordi
38446 * Control.cs: avoids null exception
38448 2004-08-22 17:46 jackson
38450 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38453 2004-08-22 17:40 jackson
38455 * XplatUIX11.cs: Add some missing locks
38457 2004-08-22 15:10 pbartok
38459 * Control.cs, Form.cs:
38460 - Removed OverlappedWindow style from Control, instead it's default
38462 - Made form windows OverlappedWindow by default
38464 2004-08-22 13:34 jackson
38466 * ScrollBar.cs: Update the position through the Value property so
38467 the OnValueChanged event is raised.
38469 2004-08-22 12:04 pbartok
38472 - Added Cursor.cs and UserControl.cs
38474 2004-08-22 12:03 pbartok
38477 - Started implementation, not usable yet
38479 2004-08-22 12:00 pbartok
38482 - Implemented UserControl (complete)
38484 2004-08-21 19:20 ravindra
38486 * ToolBar.cs: Correcting the formatting mess of VS.NET.
38488 2004-08-21 18:49 ravindra
38490 * ToolBar.cs: Probably this completes the missing attributes in
38493 2004-08-21 18:03 ravindra
38495 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38496 Fixed toolbar control signatures.
38498 2004-08-21 16:32 pbartok
38503 2004-08-21 16:30 pbartok
38508 2004-08-21 16:19 pbartok
38510 * Control.cs, Label.cs:
38513 2004-08-21 15:57 pbartok
38516 - Added loads of debug output for development
38517 - Fixed typo in method name
38519 2004-08-21 15:52 pbartok
38521 * ToolBarButtonClickEventArgs.cs:
38522 - Added missing base class
38524 2004-08-21 14:53 pbartok
38527 - Updated to match new GrabWindow signature
38529 2004-08-21 14:51 pbartok
38531 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38532 - Added method to get default display size
38534 2004-08-21 14:23 pbartok
38536 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38537 - Added method to query current grab state
38538 - Added argument to allow confining a grab to a window
38540 2004-08-21 14:22 pbartok
38543 - Added [Flags] attribute so that modifiers can be used in bitwise
38546 2004-08-21 14:21 pbartok
38548 * TrackBar.cs, ScrollBar.cs:
38549 - Replaced direct XplatUI calls with their Control counterpart
38551 2004-08-21 13:32 pbartok
38554 - Implemented Created property
38556 2004-08-21 13:28 pbartok
38559 - Implemented ContainsFocus
38561 2004-08-21 13:26 pbartok
38564 - Implemented CausesValidation
38566 2004-08-21 13:21 pbartok
38569 - Implemented CanFocus
38570 - Implemented CanSelect
38571 - Implemented Capture
38573 2004-08-21 12:35 pbartok
38576 - Fixed bug with Async message handling
38577 - Implemented getting the ModifierKeys
38579 2004-08-21 12:32 jackson
38581 * AsyncMethodResult.cs: Make sure we have the mutex before we
38582 release it. Fixes BeginInvoke on windows
38584 2004-08-21 11:31 pbartok
38586 * XplatUIWin32.cs, XplatUIX11.cs:
38587 - Drivers now return proper mouse state
38589 2004-08-21 10:54 jackson
38591 * Control.cs: Implement EndInvoke
38593 2004-08-21 10:48 jackson
38595 * Timer.cs: Remove unneeded finalizer
38597 2004-08-20 19:52 ravindra
38599 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38600 in mouse event handling in the ToolBar control.
38602 2004-08-20 19:50 ravindra
38604 * ImageList.cs: Changed draw method to use the arguments passed in
38607 2004-08-20 18:58 pbartok
38609 * XplatUIStructs.cs:
38610 - Added private message for async communication
38612 2004-08-20 17:38 ravindra
38614 * Control.cs: Made RightToLeft property virtual and removed a
38617 2004-08-20 14:39 jordi
38619 * ThemeGtk.cs: use style_attach
38621 2004-08-20 14:39 pbartok
38624 - Added jackson's Async code from X11 to Win32
38626 2004-08-20 14:09 pbartok
38629 - Added all new files
38631 2004-08-20 14:09 pbartok
38634 - Added call to set window background color
38636 2004-08-20 14:03 pbartok
38638 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38639 - Added method for setting the window background
38641 2004-08-20 14:02 pbartok
38644 - Added method for setting the background color
38645 - Added handling for erasing the window background
38647 2004-08-20 13:45 jordi
38649 * TrackBar.cs: fixes timer, new properties and methods
38651 2004-08-20 13:34 jackson
38653 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38656 2004-08-20 13:22 jackson
38658 * Timer.cs: Timer Tick events are now handed through Controls Async
38659 mechanism so the callbacks are executed in the same thread as X
38661 2004-08-20 13:19 jackson
38663 * XplatUIDriver.cs: Expose functionality to send async messages
38666 2004-08-20 13:18 jackson
38668 * Control.cs: Implement Begininvoke
38670 2004-08-20 13:14 jackson
38672 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38673 messages through the driver
38675 2004-08-20 13:12 jackson
38677 * XplatUIX11.cs: Lock before all X operations. Also added Async
38678 method functionality through XSendEvent
38680 2004-08-20 13:11 jackson
38682 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38683 This will screw up on 64 bit systems)
38685 2004-08-20 13:10 jackson
38687 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38688 Async messages through X/Win32
38690 2004-08-19 19:39 pbartok
38693 - Updated code to match new HandleData.DeviceContext type
38695 2004-08-19 19:38 pbartok
38698 - Made DeviceContext a generic object to allow usage from various
38700 - Added support for queueing Windows messages
38702 2004-08-19 19:37 pbartok
38705 - Added generation of MouseEnter, MouseLeave and MouseHover events
38706 - Added cleanup on EndPaint
38708 2004-08-19 19:17 pbartok
38711 - Added handling of WM_MOUSEHOVER
38712 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38715 2004-08-19 18:55 jordi
38717 * ThemeGtk.cs: fixes button order
38719 2004-08-19 18:12 jordi
38721 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38723 2004-08-19 17:09 pbartok
38726 - Added Right property
38727 - Added RightToLeft property
38729 2004-08-19 16:27 jordi
38731 * ThemeGtk.cs: experimental GTK theme support
38733 2004-08-19 16:26 jordi
38735 * ITheme.cs, Theme.cs: move themes from an interface to a class
38737 2004-08-19 16:25 jordi
38739 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38742 2004-08-19 16:04 pbartok
38745 - Added colormap basics
38746 - Added a way to re-initialize with a different display handle
38747 - Fixed setting of the window background color
38748 - Added various X11 imports related to colors and colormaps
38750 2004-08-19 15:51 pbartok
38753 - Removed packing hints (Paolo suggested this a while back)
38754 - fixed colormap type
38755 - Added default Atom types
38756 - Added Screen and color structs and enums
38758 2004-08-19 15:39 pbartok
38761 - Added missing Draw() method
38762 - Added missing RecreateHandle event
38764 2004-08-19 15:30 pbartok
38767 - Added handling of WM_CLOSE
38769 2004-08-18 13:16 jordi
38771 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38774 2004-08-18 09:56 jordi
38776 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38778 2004-08-17 15:31 ravindra
38780 * SWF.csproj: Updated project.
38782 2004-08-17 15:25 pbartok
38785 - Drawing improvement; don't call UpdateBounds if we are not visible
38786 (or have been minimized)
38788 2004-08-17 15:24 pbartok
38791 - Finished IsVisible
38792 - Added Win32GetWindowPlacement
38794 2004-08-17 15:08 jackson
38796 * Panel.cs: Initial checkin of the Panel
38798 2004-08-17 14:25 pbartok
38801 - Fixed broken handling of default window sizes
38803 2004-08-17 13:29 jackson
38805 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38806 has a large startup time.
38808 2004-08-17 10:25 jackson
38810 * HandleData.cs: union areas properly
38812 2004-08-17 10:12 jackson
38814 * HandleData.cs: union areas properly
38816 2004-08-16 20:00 ravindra
38818 * ToolBar.cs, ToolBarButton.cs: Added attributes.
38820 2004-08-16 18:48 ravindra
38822 * ToolBar.cs: Added attributes.
38824 2004-08-16 17:17 ravindra
38826 * SWF.csproj: Updated project.
38828 2004-08-16 17:16 jackson
38830 * XplatUIX11.cs: Check for more expose events before sending a
38831 WM_PAINT so they can all be grouped together. This makes dragging a
38832 window across another window redraw in a sane way.
38834 2004-08-16 15:47 pbartok
38837 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38838 support OnMouseEnter/Leave()
38839 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38842 2004-08-16 15:46 pbartok
38844 * XplatUIStructs.cs, XplatUIX11.cs:
38845 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38846 OnMouseEnter/Leave()
38848 2004-08-16 15:34 jackson
38850 * XplatUIX11.cs: Group multiple expose events in HandleData, make
38851 sure messages get the message field set to WM_NULL if they are not
38854 2004-08-16 15:24 jackson
38856 * HandleData.cs: HandleData is used for storing message information
38859 2004-08-15 17:23 ravindra
38861 * ColorDepth.cs: Added attribute.
38863 2004-08-15 17:23 ravindra
38865 * SWF.csproj: Updated project for ToolBar Control.
38867 2004-08-15 17:20 ravindra
38869 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
38870 control and also dos2unix format.
38872 2004-08-15 17:13 ravindra
38874 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
38875 ToolBarButtonClickEventArgs.cs,
38876 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
38877 ToolBarTextAlign.cs: First Implementation of ToolBar control.
38879 2004-08-15 15:31 pbartok
38882 - First (mostly) working version
38884 2004-08-13 16:15 pbartok
38887 - Fixed Anchor default
38889 2004-08-13 15:43 pbartok
38892 - Changed GetCursorPos signature
38894 2004-08-13 15:42 pbartok
38896 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38897 - Changed signature for GetCursorPos
38899 2004-08-13 15:25 pbartok
38903 - Fixed resizing/exposure handling
38905 2004-08-13 15:22 jordi
38907 * ThemeWin32Classic.cs: removes redundant code and fixes issues
38910 2004-08-13 14:55 jordi
38912 * TrackBar.cs: change from wndproc to events
38914 2004-08-13 13:00 jordi
38916 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38917 XplatUIX11.cs: implements PointToClient (ScreenToClient)
38919 2004-08-13 12:53 pbartok
38922 - Changed GetWindowPos to also provide client area size
38923 - Fixed broken prototypes for several win32 functions
38925 2004-08-13 12:53 pbartok
38927 * XplatUI.cs, XplatUIDriver.cs:
38928 - Changed GetWindowPos to also provide client area size
38930 2004-08-13 12:52 pbartok
38933 - Added generation of WM_POSCHANGED
38934 - Changed GetWindowPos to also provide client area size
38936 2004-08-13 12:52 pbartok
38939 - Added Dispose() and destructor
38940 - Fixed resizing and bounds calculation
38942 - Added memory savings for invisible windows
38944 2004-08-13 12:46 jordi
38946 * TrackBar.cs: adds timer and grap window
38948 2004-08-13 10:25 jackson
38950 * Timer.cs: SWF Timer
38952 2004-08-12 16:59 pbartok
38954 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38955 - Implemented method to get current mouse position
38957 2004-08-12 14:29 jordi
38959 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
38960 enhancement, fix mouse problems, highli thumb, etc
38962 2004-08-12 13:31 pbartok
38965 - Fixed Anchoring bugs
38967 2004-08-12 13:01 jackson
38969 * StatusBar.cs: Don't forget things
38971 2004-08-12 12:54 jackson
38973 * ThemeWin32Classic.cs: Handle owner draw status bars
38975 2004-08-12 12:54 jackson
38977 * StatusBar.cs: Implement missing properties, events, and methods.
38978 Handle mouse clicking
38980 2004-08-12 10:19 jackson
38982 * StatusBarPanelClickEventArgs.cs,
38983 StatusBarPanelClickEventHandler.cs: Classes for handling status
38984 bar panel click events
38986 2004-08-12 10:10 jackson
38988 * Control.cs: Add missing properties
38990 2004-08-12 09:46 pbartok
38992 * BindingsManagerBase.cs:
38993 - Name changed to BindingManagerBase.cs
38995 2004-08-12 09:25 jordi
38997 * ScrollableControl.cs: calls ctrlbase instead of exeception
38999 2004-08-11 16:28 pbartok
39001 * InputLanguageChangingEventArgs.cs:
39002 - Never check in before compiling. Fixes the last check-in
39004 2004-08-11 16:26 pbartok
39006 * InputLanguageChangingEventArgs.cs:
39007 - More signature fixes
39009 2004-08-11 16:20 pbartok
39011 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39012 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39013 ImageListStreamer.cs, InputLanguage.cs,
39014 InputLanguageChangedEventArgs.cs,
39015 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39016 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39017 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39018 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39021 2004-08-11 16:16 pbartok
39025 - Added .Net 1.1 method
39027 2004-08-11 15:25 pbartok
39030 - Fixed BindingManagerBase.cs filename
39032 2004-08-11 15:22 pbartok
39034 * BindingManagerBase.cs:
39035 - Was checked in with wrong filename
39037 2004-08-11 14:50 pbartok
39042 2004-08-11 13:41 jordi
39044 * XplatUIWin32.cs: Fixes ClientRect
39046 2004-08-11 13:19 pbartok
39048 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39050 - We had SetWindowPos and MoveWindow to set window positions and
39051 size, removed MoveWindow. We have GetWindowPos, so it made sense to
39052 keep SetWindowPos as matching counterpart
39053 - Added some X11 sanity checking
39055 2004-08-11 12:59 pbartok
39058 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39059 (It seems that SetBounds is just a front for SetBoundsCore and
39060 SetBoundsCore updates the underlying window system and
39061 UpdateBounds is responsible for updating the variables associated
39062 with the Control and sending the events)
39063 - Major cleanup of Size handling; we now have two sizes, client_size
39064 and bounds. Bounds defines the window with decorations, client_size
39067 2004-08-11 12:55 pbartok
39069 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39070 - Added method to calculate difference between decorated window and
39073 2004-08-11 12:54 pbartok
39076 - Forcing redraw on resize
39078 2004-08-11 11:43 pbartok
39081 - Removed disposing of the actual images when the list is disposed
39083 2004-08-11 09:13 pbartok
39086 - Now properly reparents windows
39088 2004-08-11 08:37 pbartok
39093 2004-08-11 07:47 pbartok
39096 - Rewrote the collection stuff. Might not be as fast now, not
39097 keeping the number of children around and accessible directly, but
39098 it's more straightforward
39100 2004-08-11 07:44 pbartok
39102 * AccessibleObject.cs:
39103 - Fixed to match ControlCollection rewrite
39105 2004-08-11 07:43 pbartok
39108 - Added missing creation of the collection list
39110 2004-08-10 20:08 jackson
39112 * StatusBar.cs: Get the paint message from WndProc
39114 2004-08-10 19:31 jackson
39116 * ThemeWin32Classic.cs: Create Brushes as little as possible
39118 2004-08-10 19:20 jackson
39120 * UICues.cs: Add Flags attribute
39122 2004-08-10 19:19 jackson
39124 * StatusBarPanel.cs: Signature cleanup
39126 2004-08-10 19:10 jackson
39128 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39129 Initial implementation of status bar item drawing
39131 2004-08-10 17:27 jordi
39133 * TrackBar.cs: add missing methods, properties, and restructure to
39136 2004-08-10 16:24 jackson
39138 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39139 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39142 2004-08-10 13:21 jordi
39144 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39145 enhancements and standarize on win colors defaults
39147 2004-08-10 12:52 jackson
39149 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39150 ThemeWin32Classic.cs: Implement DrawItem functionality
39152 2004-08-10 12:47 jordi
39154 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39156 2004-08-10 12:32 jordi
39158 * Control.cs: throw ontextchange event
39160 2004-08-10 11:43 pbartok
39163 - Added more to the still unfinished Dock/Anchor layout code
39165 2004-08-10 11:39 pbartok
39167 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39168 - Added GetWindowPos method
39170 2004-08-10 11:36 pbartok
39173 - Implemented several methods
39175 2004-08-10 09:47 jackson
39177 * TrackBar.cs: Allow control to handle buffering
39179 2004-08-10 09:41 jackson
39181 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39183 2004-08-10 09:24 jackson
39185 * Label.cs, LinkLabel.cs: Let Control handle buffering.
39187 2004-08-10 09:09 jackson
39189 * StatusBar.cs: Let Control handle all the buffering.
39191 2004-08-10 09:08 jackson
39193 * Control.cs: Control will now handle the buffering code, so each
39194 control does not have to implement this.
39196 2004-08-10 08:34 jackson
39198 * XplatUIDriver.cs: Use default colors from the theme
39200 2004-08-09 17:12 pbartok
39203 - Fixed several bugs Ravindra pointed out
39205 2004-08-09 16:11 pbartok
39208 - Added incomplete dock layout code
39209 - Added support for mouse wheel
39211 2004-08-09 16:09 pbartok
39214 - Added handling for middle and right mousebutton
39215 - Added handling for mouse wheel
39216 - Added handling for key state and mouse state and position
39217 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39220 2004-08-09 15:40 jackson
39222 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39223 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39226 2004-08-09 15:37 jackson
39228 * StatusBar.cs: Initial implementation of StatusBar
39230 2004-08-09 15:36 jackson
39232 * ITheme.cs: Add support for drawing status bar and getting status
39235 2004-08-09 15:35 pbartok
39240 2004-08-09 15:34 jackson
39242 * ThemeWin32Classic.cs: Add support for drawing status bar and get
39243 status bar item sizes
39245 2004-08-09 15:21 jackson
39247 * ThemeWin32Classic.cs: Use known colors for default control
39250 2004-08-09 15:12 jackson
39252 * ThemeWin32Classic.cs: Make the default font static, it is static
39253 in control so this doesn't change functionality and creating fonts
39256 2004-08-09 14:56 pbartok
39259 - Added GrabMode enum
39261 2004-08-09 14:55 pbartok
39263 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39264 - Removed Run method, was only required for initial development
39266 2004-08-09 14:51 pbartok
39268 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39269 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39272 2004-08-09 13:48 pbartok
39275 - Fixed default sizing for child windows
39277 2004-08-09 12:56 pbartok
39280 - Added generation of WM_DESTROY message
39281 - Added handling of window manager induced shutdown
39283 2004-08-09 11:31 jackson
39285 * ThemeWin32Classic.cs: New names for control properties
39287 2004-08-09 11:25 jackson
39289 * Control.cs: Use new color names
39291 2004-08-09 11:02 jackson
39293 * XplatUI.cs: Get default window properties from the theme
39295 2004-08-09 11:01 jackson
39297 * ITheme.cs: The theme engine now controls default window
39300 2004-08-09 11:00 jackson
39302 * ThemeWin32Classic.cs: Add default window color properties
39304 2004-08-09 10:17 jackson
39306 * ThemeWin32Classic.cs: Use correct default back color
39308 2004-08-09 10:05 jackson
39310 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39313 2004-08-09 09:56 jackson
39315 * XplatUI.cs: Remove defaults, these are handled by the theme now.
39317 2004-08-09 09:54 jackson
39319 * Control.cs: Get default properties from the theme.
39321 2004-08-09 09:53 jackson
39323 * ITheme.cs: Themes now handle default control properties
39325 2004-08-09 09:53 jackson
39327 * ThemeWin32Classic.cs: Themes now handle default control
39328 properties so coloring will be consistent
39330 2004-08-08 16:54 jordi
39332 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39334 2004-08-08 15:08 jordi
39336 * XplatUIX11.cs: fixes keyboard crash
39338 2004-08-08 13:47 jordi
39340 * Label.cs: add cvs header info
39342 2004-08-08 12:09 jackson
39344 * ThemeWin32Classic.cs: Add pen_buttonface
39346 2004-08-08 11:52 jordi
39348 * Label.cs, LinkLabel.cs: [no log message]
39350 2004-08-08 11:34 jordi
39352 * ThemeWin32Classic.cs: Use Windows Standard Colours
39354 2004-08-07 17:32 jordi
39356 * TrackBar.cs: throw exceptions of invalid enums values
39358 2004-08-07 17:31 jordi
39360 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39363 2004-08-07 16:56 jackson
39365 * HorizontalAlignment.cs: Initial checkin
39367 2004-08-07 13:16 jordi
39369 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39372 2004-08-07 13:05 jordi
39374 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39375 GetSysColor defines
39377 2004-08-06 18:01 pbartok
39379 * ThemeWin32Classic.cs:
39380 - Fixed some rounding issues with float/int
39382 2004-08-06 18:00 jackson
39384 * DockStyle.cs, AnchorStyles.cs:
39386 Add flags and serializable attributes.
39388 2004-08-06 17:46 pbartok
39391 - Implemented GetParent
39393 2004-08-06 17:18 pbartok
39396 - Fixed some rounding issues with float/int
39398 2004-08-06 17:17 pbartok
39400 * X11Structs.cs, XplatUIX11.cs:
39401 - Fixed Refresh and Invalidate
39403 2004-08-06 15:30 pbartok
39405 * Control.cs, X11Structs.cs, XplatUIX11.cs:
39406 - Fixed recursive loop when resizing
39407 - Improved/fixed redrawing on expose messages
39409 2004-08-06 09:53 jordi
39411 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39412 keyboard navigation
39414 2004-08-06 08:02 pbartok
39416 * X11Structs.cs, XplatUIX11.cs:
39417 - Fixed reparenting
39418 - Fixed window border creation
39420 2004-08-05 15:38 pbartok
39423 - Attempted fix for reparenting problems
39425 2004-08-04 15:14 pbartok
39428 - Fixed Invalidation bug (calculated wrong client area)
39429 - Added ClientSize setter
39431 2004-08-04 15:13 pbartok
39434 - Added AutoScale properties
39436 2004-08-04 15:13 pbartok
39439 - Added latest files
39441 2004-08-04 14:11 pbartok
39443 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39445 - Added Invalidate handling
39447 2004-08-03 17:09 jordi
39449 * XplatUIDriver.cs: fixes spelling mistake
39451 2004-07-27 09:53 jordi
39453 * TrackBar.cs: fixes trackbar events, def classname, methods
39456 2004-07-27 09:29 jordi
39458 * ScrollBar.cs: fixes scrollbar events
39460 2004-07-27 04:38 jordi
39462 * Control.cs: changes to be able to run winforms samples
39464 2004-07-26 11:42 jordi
39466 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39467 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39469 2004-07-26 05:41 jordi
39471 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39472 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39475 2004-07-22 09:22 jordi
39477 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39478 check link overlapping, implement events, and fixes
39480 2004-07-21 10:28 jordi
39482 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39484 2004-07-21 10:19 jordi
39486 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39487 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39488 LinkLabelLinkClickedEventArgs.cs,
39489 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39490 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39493 2004-07-19 13:09 jordi
39495 * Control.cs, Label.cs: label control re-written: added missing
39496 functionlity, events, and properties
39498 2004-07-19 10:49 jordi
39500 * Control.cs: fixes SetBounds logic
39502 2004-07-19 01:29 jordi
39504 * Control.cs: Call RefreshWindow only if the window has created
39506 2004-07-15 14:05 pbartok
39508 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39509 - Implemented ImageList and ImageList.ImageCollection classes
39510 - Added ColorDepth enumeration
39511 - Updated SWF VS.Net project
39513 2004-07-15 11:06 jordi
39515 * XplatUIStructs.cs: added MsgButons enum
39517 2004-07-15 11:03 jordi
39519 * Control.cs: added basic mouse handeling events
39521 2004-07-15 03:38 jordi
39523 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39524 Vertical TrackBar control implementation
39526 2004-07-13 09:33 jordi
39528 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39530 2004-07-13 09:31 jordi
39532 * Control.cs, Form.cs: commit: new properties and fixes form size
39535 2004-07-09 14:13 miguel
39537 * ProgressBar.cs: Spelling
39539 2004-07-09 11:25 pbartok
39542 - Removed usage of Rectangle for drawing. Miguel pointed out it's
39545 2004-07-09 11:17 miguel
39547 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
39549 * ProgressBar.cs: Fixed spelling for `block'
39551 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39554 Avoid using the += on rect.X, that exposed a bug in the compiler.
39556 2004-07-08 23:21 pbartok
39558 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39559 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39560 BaseCollection.cs, Binding.cs, BindingContext.cs,
39561 BindingMemberInfo.cs, BindingsCollection.cs,
39562 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39563 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39564 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39565 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39566 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39567 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39568 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39569 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39570 FrameStyle.cs, GiveFeedbackEventArgs.cs,
39571 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39572 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39573 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39574 InputLanguageChangedEventArgs.cs,
39575 InputLanguageChangedEventHandler.cs,
39576 InputLanguageChangingEventArgs.cs,
39577 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39578 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39579 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39580 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39581 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39582 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39583 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39584 QueryAccessibilityHelpEventArgs.cs,
39585 QueryAccessibilityHelpEventHandler.cs,
39586 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39587 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39588 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39589 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39590 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39591 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39592 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39593 XplatUIX11.cs, lang.cs: