1 2010-04-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * NotifyIcon.cs: Make BalloonWindow expose the owner's Handle.
5 * ThemeWin32Classic.cs: Add a HideBalloonWindow method to force to
6 close an active balloon window.
7 * XplatUIX11.cs: When removing from the system tray try to close
8 the balloon window. This is important when we hide a NotifyIcon and
9 thus need to close its related balloon window as well.
10 Fixes bits of #590093.
12 2010-04-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14 * XplatUIX11.cs: When adding a NotifyIcon to the system tray, mark its
15 Hwnd.mapped as true, since its handle is going to be mapped later by
16 the tray (not us), but we need to know it's alive and can later properly unmap
18 Fixes part of #590093.
20 2010-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22 * TreeNodeCollection.cs: When adding/inserting/setting a new node call
23 TreeView.Sort if needed, and update/recalculate this entire
24 collection in that case.
25 * TreeView.cs: Make 'sorted' internal, instead of directly using
26 Sorted, as this one could trigger a complete Sort() operation.
28 2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
30 * TreeView.cs: We must use the comparer supplied by TreeViewNodeSorter
31 *always*, since it is used recursively, so checking for a number of
32 top level nodes is useless. This should fix a case where we were not
33 sorting any node with a single root node.
35 2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
37 * DataGridView.cs: Call the base Paint impl last, instead of do that
38 at the beginning, to let handlers draw on top of us.
39 Fixes the remaining bits of #587563.
41 2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
43 * ToolStripItem.cs: Separate the background rendering from the Paint
44 routine, so we can both make sure the background stuff is done first,
45 and we also let our items fire the OnPaint event handlers before or
46 after their own routines.
47 * ToolStripLabel.cs: Move the base call to OnPaint to the end, so any
48 user's Paint handler can draw on top of us, like .Net does.
51 2010-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
53 * XplatUIX11.cs: When checking for the values returned by
54 _NET_WORKAREA, use current_desktop+1 instead of current_desktop, since
55 we need the actual value, instead of the index (which is 0 based, and
56 is not working in this case). Patch by Andy Stühr
57 (andysmuell@hammerhartes.de).
60 2010-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
62 * ToolTip.cs: Make TipState internal.
63 * ToolStrip.cs: Use the same idea of ToolTip'state to have our
64 internal timer close the tooltip window after a delay, instead of
65 waiting for the mouse to move to a different item. Also, hide the
66 tooltip window when the handle is destroyed, and also when the control
70 2010-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
72 * ListView.cs: Selection should be available after the first time the
73 handle has been created, even if later the handle is destroyed or
74 temporary invalidated.
77 2010-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
79 * TreeView.cs: When receiving a double click on a node, toggle it only
80 if it has one or more nodes - just as .net does.
83 2010-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
85 * X11Keyboard.cs: Small correction for the previous patch: I forgot to
86 take into account the case where the buffer used in XLookupString is
87 not empty, but filled with garbage.
89 2010-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
91 * X11Keyboard.cs: When handling the key events, sometimes calling
92 either Xutf8LookupString or XLookupString with special chars (such
93 backspace and enter) can result in a buffer filled with garbage, or
94 empty - thus re-use the value returned by the same functions to fill
98 2010-02-25 Ivan Zlatev <ivan@ivanz.com>
100 * Control.cs: ControllCollaction IList implementation wasn't calling the
101 Add implementation causing ParentChanged and all sorts of other events not to
105 2010-02-25 Ivan Zlatev <ivan@ivanz.com>
107 * DataGridView.cs: If we are setting a new data source and it is
108 data bindable clear DataMember before binding.
111 2010-02-25 Ivan Zlatev <ivan@ivanz.com>
113 * DataGridViewCheckBoxCell.cs: Toggle the checkbox on Space key press.
116 2010-02-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
118 * RichTextBox.cs: When retrieving SelectedRtf/Rtf properly escape any
119 RTF reserved char, so we don't end up messing around the actual rtf
121 Fixes part of #575731.
123 2010-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
125 * Line.cs: When setting the Text property, if the new text is larger
126 than the previous one, call Grow to update our internal 'widths'
127 array, to be properly in sync with the new text.
130 2010-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
132 * TabControl.cs: When calculating the layout for the tab pages, take
133 into account the ImageList size info if it exists, even if it is
136 2010-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
140 * X11Structs: Implement the new BeginMoveResize method, designed to
141 instruct the window manager to init a resize operation on a top level
142 form. This is used by StatusStrip.
146 * XplatUICarbon.cs: Fill the gaps by creating stubs and updating the
150 2010-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
152 * ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
153 back color arguments depending on the higlight/focus state, just like
157 2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
159 * ComboBox.cs: When the normal drop down window is closed, make sure
160 that the auto complete list -if any- is closed as well, instead of
161 stay open without need.
163 2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
165 * TextBox.cs: When showing the autocomplete listbox, make sure it's on
166 top, by calling the raw XplatUI.SetZOrder for it, since we can't
167 properly call BringToFront on it as it is parentless. This fixes an
168 issue when using this feature with ComboBox's own parentless listbox.
169 Fixes the remaining bits of #489339.
171 2010-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
178 * XplatUIStructs: Implement support for different kind of audible
179 alerts in Windows, and update the requiered classes.
181 * TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
184 2010-01-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
186 * ComboBox.cs: When use manually setting DropDownHeight, ignore the
187 MaxDropDownHeight property - also rename our field 'count' to
188 'visible_items_count' to avoid confusion as much as possible.
189 Fixes an issue with several items, showing an incorrect layout.
191 2010-01-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
193 * RichTextBox.cs: SelectedText should set Modified to true. Observe
194 that this is happening just here, not for the Text property, and
195 neither for the TextBoxBase impl.
198 2010-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
200 * ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
201 place and synchronize the events properly. Fixes a lack of
202 coordination between the events - which should be fired together.
204 2010-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
206 * TrackBar.cs: Move our events code to a single method, allowing it to
207 optionally fire the Scroll event. This way we both avoid the
208 duplicated calls to OnScroll and also will be able to fire Scroll
209 *before* OnValueChanged in other places.
212 2010-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
214 * RadioButton.cs: When drawing, if Appearance is Button use the old
215 normal routine in the theme engine, instead of using the one in 2.0,
216 since this last one doesn't support proper rendering of the control as
220 2010-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
222 * GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
223 text of the group box if it is disabled.
226 2009-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
228 * Control.cs: When changing the cursor and updating it, do update the
229 cursor immediately even if there's a child control under the current
230 cursor position - this is exactly what .net does.
233 2009-11-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
235 * DataGrid.cs: In OnLeave, do cancel or end current edit, depending on
236 the commit_new_row value, instead of just trying to cancel if a new
237 row had been added. This is important when modifying existing rows and
238 then moving the focus out of the control.
240 2009-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
242 * XplatUICarbon.cs: Implement the overriden AudibleAlert
243 function in XplatUICarbon. Currently it throws
244 NotImplementedException which will kill a WinForms application showing
246 Patch by Erik Ylvisaker (erik@agatelib.org).
248 2009-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
250 * DataGrid.cs: In CurrentCell, the check to do nothing in case we are
251 in the same cell as specified *and* not editing is wrong.
253 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
255 * DataGrid.cs: When removing the cells, don't do anything if the
256 specified row is the extra cell we use to add new ones.
258 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
260 * DataGrid.cs: CurrentCell should be *used* if the new value is the
261 same as the current one, since we could need to activate the edition
262 in the current row. Also, when beginning the edition, do nothing if,
263 basides having an empty source, we are sure we don't have the new
264 cell, which could obviously start it.
265 Fixes other bits of #323154.
267 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
269 * DataGrid.cs: When we get notified by a change in the position of our
270 data source, don't set CurrentRow if the source is empty, as there's
271 no need to do anything else in the first place, and second, the logic
272 in the CurrentRow setter (public property) will add a new row by
273 default in this case (that is, when the source is empty).
274 Fixes part of #323154.
276 2009-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
278 * ToolStripMenuItem.cs: Don't try to use SystemColors.MenuText if fore
279 color is SystemColors.ControlText, as this system color detection
280 should be done *completely*. This is specially important when
281 detecting colors in systems running Gtk+ and dark themes.
283 2009-11-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
285 * DataGrid.cs: Add a new internal property to get the maximum possible
286 visible rows in the grid. We cannot use VisibleRowCount since this
287 value can, depending on the scroll position, return a +1 or -1 value,
288 so we need an absolute way to know whether we need a scroll bar or
289 not. Also, update VLargeChange to avoid code duplication.
290 Fixes a vertical scroll mismatch happening trying to add a new row
291 while the scrollbar has reached its maximum value.
293 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
295 * DataGridTextBoxColumn.cs:
296 * DataGrid.cs: Position the cursor in the add row should *not* show
297 yet another new row - that will happen till we get any real input data
298 from the user. When that happens, we will also mark the new row as
299 ready to commit - otherwise, when the cursor moves to a different row,
300 the just added row will be discarded. This is exactly what .Net seems
303 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
305 * DataGrid.cs: The large value for our vertical scrollbar should
306 depend on the number of visible rows, instead of trying to re-use the
307 value of VisibleRowCount, which is the value of *current* visible
308 rows, and can easily end messed up if new rows are added/removed.
310 2009-11-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
312 * DataGrid.cs: When moving the scroll, *dont* ever end the current
313 edit - this could seriously mess up our current edit cycle, specially
314 when adding new rows.
316 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
318 * TabControl.cs: In OnKeyDown call the base implementation first -
319 this way we let the user tell us whether we should handle the key or
323 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
325 * DataGrid.cs: Implement removal of rows the Correct Way by creating a
326 copy of the indexes, as any direct write access to the source will cause to
327 reset the entire selection - also, do the linear de-selection in
328 reverse order to avoid any index mismatch in the source, due to out of
329 synchronization removing the rows.
331 2009-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
333 * DataGridTextBoxColumn.cs:
334 * DataGrid.cs: Don't use this add-pending behaviour to try to add a
335 new row until we have the first input char - it was helping us to fix
336 other issues we have/had, but it's not matching .net.
338 2009-10-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
340 * TextBoxBase.cs: When returning the preferred height, and we are
341 supposed to be borderless, return the TopMargin value - usually in
342 borderless mode it has a value of 0, but in the ToolStrip controls we
343 need to set the margin manually.
346 2009-10-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
348 * ToolTip.cs: ShowAlways works at the form level, not at the control
349 level. Fixes #544565.
351 2009-10-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
353 * ButtonBase.cs: Usually the click routines are handled in Control,
354 but in this class we are handling it ourselved, thus we need to have
355 the same calls, and we were missing the call to MouseClick.
356 Patch by Eric Petit <surfzoid@gmail.com>.
358 2009-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
360 * ComboBox.cs: When setting Text and data source is being used, if the
361 passed value is not matching any of the items in the source, don't
362 pass it to GetItemText, since it's useless, as GetItemText expects a
366 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
368 * ListView.cs: When retrieving an item in virtual mode, as part of the
369 process calculate its layout, instead of trying to do it later.
370 * ListViewItem.cs: There's no need to try to infer whether we need to
371 compute layout or not anymore - we just do it every time we are
373 This way we should be fixing View changes with cached items, which
374 were storing the previous value, and not updating their contents
377 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
379 * ColumnHeader.cs: Remove the double linear search in the Index
380 property, by removing the call to Contains, which is not needed.
381 Also, Columns collection can never be null.
383 2009-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
385 * ColumnHeader.cs: When calculating the width and height of the
386 column, try to expand to the right and use all the free space if we
387 are the last column *and* the resize mode is set to -2/header content.
390 2009-10-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
392 * ListView.cs: When retrieving the top item, take into account the
393 offset represented by the header control, to retrieve the proper
394 value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
395 Fixes the remaining bits of #543773.
397 2009-10-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
399 * ListView.cs: TopItem setter should set the value as the top, not
400 only ensuring its visibility.
401 Fixes part of #543773.
403 2009-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
405 * ListView.cs: For virtual mode, when navigating the items using keyboard,
406 don't use the matrix of positions, and instead calculate the positions
407 based on the number of cols and rows, taking advantage of the fixed
408 positions of items. Use the same idea to implement FirstVisibleIndex,
409 so we avoid iterating over all the items. Patch by Stephen Robinson
411 Fixes part of #467418.
413 2009-10-12 Dick Porter <dporter@codicesoftware.com>
415 * Splitter.cs: Adjust offsets when more than one splitter is
416 present in a control. Fixes bug 509472.
418 2009-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
420 * ListView.cs: When computing the value for groups height don't use
421 text_size field, since in LargeIcon view it sometimes contains a
422 double height value - use Font.Height directly, and also improve the
424 * ThemeWin32Classic: The same as above.
425 This way the space between the group header, the line, and the items
426 area is not that big in LargeIcon view.
428 2009-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
430 * ListView.cs: When retrieving the fixed positions for the items in
431 virtual mode, use the row value to compute the coords of the item,
432 instead of the col value, as opposed to SmallIcon/LargeIcon views.
434 2009-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
436 * ListView.cs: The location of the items should be computed on the fly
437 in virtual mode - that decreased speed overall, but reduces the load
438 time.that decreased speed overall, but reduces the load time. Also,
439 handle the cases where we were using data structures we don't need to
440 use/create for this mode.
441 Fixes part of #467418.
443 2009-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
445 * ListView.cs: Tile view and VirtualMode can't be applied together.
446 Patch by Stephen Robinson <mono@esar.org.uk>.
448 2009-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
450 * ListView.cs: When calculating the layout for Details view, don't ask
451 for the items *at all* in case we are in virtual mode. This should
452 re-enable the proper behaviour of virtual mode.
454 2009-09-26 Jonathan Pobst <monkey@jpobst.com>
456 * TreeNode.cs: When we invalidate a node, make sure we start at
457 0, instead of the node's Bounds.Left, which does not include
458 the +/-, checkbox, or stateimages.
461 2009-09-24 Ivan N. Zlatev <contact@i-nz.net>
463 * DataGridView.cs: Compare the name and not displayname of properties
464 when checking if the column is already bound.
466 2009-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
468 * RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
469 the position of the caret by adding the needed chars represented by the new line chars,
470 according to the system, using rich *or* hard new lines as needed. Also do a
471 check to be sure we don't move the cursor position beyond the limits
472 of our text. This should avoid problems with text being pasted,
473 regarding the position of the caret.
475 2009-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
477 * RichTextBox.cs: When SelectedRtf is set, and we are in the 0
478 position in the x axis, force to re-use any already available line,
479 even if it is not empty. This way pasting text into our textbox in the
480 beginning for non empty lines should work fine.
482 2009-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
484 * RichTextBox.cs: When we are inserting a flow of rtf text, and we are
485 *not* loading it from a file, try to re-use a line if already
486 available, since the default behaviour of the parser is to create new
487 lines for the document.
488 This should fix a regressions we found after the last fix for #513030.
490 2009-09-14 Tom Hindle <tom_hindle@sil.org>
492 * ToolStripOverflow.cs: Fixes #536036 by adding null ptr check.
494 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
496 * PropertyGrid.cs: Hide the splitter when the help is hidden.
498 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
500 * InternalWindowManager.cs: Call Invalidate-Update instead of
501 Refresh for MS compitability. Note also that Refresh is virtual
502 and several controls override it in order to provide data refresh
503 functionallity on top of the redraw and they do not expect this
505 * Control.cs: In Refresh Invalidate the control and all children
506 insead of calling Refresh for each of them.
509 2009-09-11 Ivan N. Zlatev <contact@i-nz.net>
511 * PropertyGrid.cs: Always set the help panel properties on the
512 internal control, because they are inherited and can change with
516 2009-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
518 * RichTextBox.cs: When processing rtf, don't add a new line if we
519 already have one for that position. This way we avoid overriding by
520 mistake our lines when copying/pasting.
523 2009-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
525 * TextControl.cs: When inserting new lines, look for the end of file
526 char, and remove chars after it. This is unlikely to happeng either
527 loading a file, pasting text or pressing a char, but can happen using
528 the TextBox.Text property.
531 2009-09-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
533 * Line.cs: In DeleteCharacters, cache line.Length for every tag, since
534 tag.Start changes will modify it indirectly and then we would end up
538 2009-09-03 Ivan N. Zlatev <contact@i-nz.net>
540 * BindingSource.cs: Implement support for chained data sources.
541 * ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
543 [Fixes part of bug #536547]
545 2009-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
547 * RichTextBox.cs: When saving the text to a file using SaveFile use
548 Environment.NewLine to separate the lines. This way we should be
549 saving the files according to the system.
550 Fixes the remaining part of #511515.
552 2009-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
554 * RichText.cs: Remove some unix new line characters and use
555 Environment.NewLine. Fixes part of #511515.
557 2009-08-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
559 * TextBoxBase.cs: Modified should *not* be modified from the Text
560 property, as our new tests show. It should be to false, however, in
561 Append and Clear; and Paste, Cut, Undo, and direct user input should set it
562 to true. Also, as opposed to what the .net docs say -but proven by our
563 tests-, the changes should be generating a ModifiedChanged event
564 (thus we set the property, instead of the field).
567 2009-08-27 Ivan N. Zlatev <contact@i-nz.net>
569 * DataGridView.cs: Fire the CellDoubleClicked event.
572 2009-08-27 Ivan N. Zlatev <contact@i-nz.net>
574 * DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
575 DisplayedCells and DisplayedCellsExceptHeader.
578 2009-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
580 * TextControl.cs: When removing a simple char, actually record the
581 action in the undo manager. This way we both support undoing the
582 removal of chars using backspace/delete, as well as keeping data
583 integrity when other undo tasks are performed.
586 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
588 * Control.cs: Remove the ancient code in ResetText, which was setting
589 the internal field to String.Empty, instead of doing it for our Text
590 property, as .net does (which also causes a TextChanged event and all
591 the other related routines).
594 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
596 * TreeNodeCollection.cs: Correctly implement Contains by using a
597 linear search - there's no possible way to use a binary search, since
598 the node instances are not implementing IComparable, nor have a
602 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
604 * DataGrid.cs: If we are *not* changing a row
605 already added to the source, and thus we are adding a new
606 row instead, try to move to the previous row when Esc is
607 pressed -if possible-.
608 Fixes some bits of #322974.
610 2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
612 * DataGridTextBoxColumn.cs:
613 * DataGrid.cs: Moving the cell to the add row (the last one) should
614 not immediately add a new row - this should happen until the very
615 first change happens in that textbox.
616 Fixes part of #322974.
618 2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
620 * ToolStripDropDown.cs: When assigning the owner item, use its Font as
623 2009-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
625 * ToolStripItem.cs: When the owner changes its Font, call the
626 OnFontChanged event, so we let our users know that we likely have a
627 new font - since Font is an ambient property.
628 * ToolStripDropDownItem.cs: When our Font changes, propagate that
629 information to our DropDown control, if any.
632 2009-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
635 * ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
636 previous selection, just like .net does. Also, in the cases where a
637 cell is being edited and it keeps the selected status, use the normal
638 colors for it, and use the selected colors for the rest of the columns of
640 Fixes the remaining bits of #323051.
642 2009-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
644 * DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
645 are not editing already - so the edition is actually active on our
646 column style textbox. Also, it seems the code handling process the
647 grid keys is repeated, but instead of removing it, just comment it for
649 Fixes part of #323051.
651 2009-08-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
653 * AsyncMethodResult.cs: Store a exception field in case the called
654 method actually caused an exception. This way we can throw it later.
655 * XplatUIDriver.cs: Check if the async method result has an exception
656 - throw it if needed.
657 The idea is that Control.Invoke throws the exception from the thread
658 that called it, not the main MWF thread.
659 Patch by Tom Spink <tspink@gmail.com>. Fixes #497175.
661 2009-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
663 * DataGrid.cs: In mouse move we need to shift the selection in case
664 the pointer is on the row headers.
667 2009-08-11 Ivan N. Zlatev <contact@i-nz.net>
669 * SplitContainer.cs: Avoid updating the splitter distance if it hasn't
670 moved. Updating the distance was causing a re-layout which was resetting
671 the clicks counter and preventing DoubleClick from every firing.
674 2009-08-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
676 * DataGrid.cs: When a new TableStyle is added, don't create new
677 columns for it unless it is empty - this is the correct way to both
678 respect the columns if they were provided by our user, or create them
679 for him in case the column collection is empty.
682 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
684 * DataGrid.cs: Actually call BindColumns in the handler for
685 ListManager.MetaDataChanged, since the current code is already taking
686 into account the scenario when a custom table style is used - this was
687 confusing us before, and that's why we commented the call to
688 BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
692 2009-08-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
694 * DataGrid.cs: When setting the data source, if we have a user
695 provided table style available, force a complete bind in case the
696 column styles for that table style is empty.
698 2009-08-09 Ivan N. Zlatev <contact@i-nz.net>
700 * DataGridViewCell.cs: Handle null and DBNull values.
702 2009-08-07 Rodrigo Kumpera <rkumpera@novell.com>
704 * ListBindingHelper.cs: Fix the 1.0 build by making this type available
707 2009-08-07 Ivan N. Zlatev <contact@i-nz.net>
709 * CurrencyManager.cs: Remove duplicate code.
711 2009-08-07 Ivan N. Zlatev <contact@i-nz.net>
713 * DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs:
714 Massive population performance boost. From seconds to ms.
717 2009-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
719 * DataGrid.cs: When handling mouse down on a column, don't do any sort
720 even if the list supports it if we are empty. This way we avoid an exc
721 sorting the empty list, and keep the UI compatible with .net.
723 2009-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
725 * DataGrid.cs: In Edit () check we have any row before trying to use
726 the current row. Fixes a IOOR exc with an empty data grid.
728 2009-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
730 * DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
731 the owner DataGrid - even if this seems to be the right thing to do,
732 .net is not doind this check at this point, but in later operations.
735 2009-07-28 Mike Gorse <mgorse@novell.com>
737 * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
739 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
741 * Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
743 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
746 * XplatUIWin32.cs: We need to filter the messages using
747 Application.FilterMessage for our DoEvents implementations. Observe
748 that I don't like the idea of XplatUI call the upper level Application
749 class, but at this point is easier and simpler to do this call - based
750 on the fact it's only one simple call.
753 2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
755 * TreeNodeCollection.cs: When removing the selected node, set the
756 SelectedNode value of TreeView to null if there aren't more nodes left -
757 this is better than to clear the selected node in Clear, since we need
758 to handle the situation in the Remove methods as well.
761 2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
763 * ToolStripItemCollection.cs: Find should do a case insensitive
764 search, and should throw an ArgumentNullException if the parameter is
767 2009-07-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
769 * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
770 of using a global handler for the ToolStrip. This way the buttons can
771 be recovered and can have its PerformClick method called properly.
774 2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
776 * X11Dnd.cs: Implement support for XdndActionList, so we can get the
777 complete list of the supported actions in the drag source, and use the
778 action passed in the Position message only as a fallback. This will
779 help us with dnd operations with non winforms apps.
782 2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
784 * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
785 Find. This should fix the exception we were getting when trying to
786 convert the ArrayList to an array of objects (since we were losing the
790 2009-07-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
792 * RadioButton.cs: Setting Checked when none of the sibligs is checked
793 should happen *not* in GotFocus, but in the Enter event. This is
794 specially important since we should get that Checked behaviour even if
795 no handle is created yet - and thus, no actual GotFocus call happens at
799 2009-07-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
801 * ComboBox.cs: Adjust manually the top border for out internal
802 ComboBox, since removing the border from it leaves it without any
803 margin. This is not noticeable in a default ComboBox, but it is in an
804 instance shown on top of ToolStrip.
805 Fixes the remaining part of #507462.
807 2009-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
809 * TextBoxBase.cs: Expose the margin top width as a property, to keep
811 * ToolStripTextBox.cs: Since we are actually using no border in the
812 default TextBox impl, and we are drawing the border ourselves, we need
813 to manually set the top margin.
814 Fixes part of #507462.
816 2009-07-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
818 * PrintPreviewDialog.cs: Record when left was pressed, so we can
819 simulate Tab+Alt when moving the focus throughout our buttons and
821 Fixes the remaining bits of #509142.
823 2009-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
825 * TabControl.cs: When computing the width of each tab page, use the
826 page's Font instead of the tab control one.
829 2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
831 * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
832 the current menu is specifically a ContextMenu (this is what .net does
833 as well). This way we also avoid a crash caused by MenuTracker trying
834 to use the menu when it was already hidden.
836 2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
838 * PrintPreviewDialog.cs: Remove the code used to handle the
839 DropDown menu, since we are now doing it by default in ToolBar, and
840 just call the base impl as needed.Also, deactivate the dropdown menu
841 before moving the focus to a different button in our toolbar, as .net
844 * MenuAPI.cs: Make as internal the needed bits to deactivate a
845 ContextMenu, and also to keep some beauty in our api.
847 2009-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
849 * ToolBar.cs: When handling the key down message, if we are on a
850 drop down button, either show the DropDownMenu or pass the key to its
851 ProcessCmdKey method as needed.
852 Fixes the remaining bits of #509985.
854 2009-06-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
856 * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
857 set current_item when navigating with the keyboard, so we can use it
858 properly later. Finally, handle both Enter and Space to fire
859 OnButtonClick *only*, without any other impact, as .net does.
860 Fixes part of #509985.
862 2009-06-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
864 * MenuAPI.cs: Close any active menu when we get a simple Alt.
867 2009-06-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
869 * ToolBar.cs: In OnButtonClick only change the Pushed value for
870 buttons with toogle style. We were previously doing it for
871 DropDownButton's buttons, but that's not what .net is doing.
874 2009-06-26 Atsushi Enomoto <atsushi@ximian.com>
876 * XplatUICarbon.cs : support multi-byte text input.
879 2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
881 * ListBox.cs: When creating DrawItemEventArgs, pass either
882 Theme.ColorHighlightText or ForeColor depending on the selected state
883 of our item, as .net does.
886 2009-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
888 * ComboBox.cs: When handling WM_CHAR, process the message first, and
889 send it to the textbox only if it wasn't handled.
892 2009-06-18 Jonathan Pobst <monkey@jpobst.com>
894 * ComboBox.cs: Only do my big sort at the end of AddRange if
895 the combobox is actually set to Sorted.
897 2009-06-18 Tom Hindle <tom_hindle@sil.org>
899 * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
902 2009-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
904 * ListBox.cs: When calculating the scrollbars for non MultiColumn
905 mode, force the use of the horizontal scrollbar only if
906 ScrollAlwaysVisible is true as well.
909 2009-06-17 Jonathan Pobst <monkey@jpobst.com>
911 * ComboBox.cs: When using AddRange on a sorted combobox, don't
912 try to use our inefficient sorted insert method, just append
913 it and sort the whole thing at then end.
916 2009-06-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
918 * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
919 * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
923 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
925 * DataGridView.cs: Scrolling fixes.
928 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
930 * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and
931 optimize for batch adding rows.
933 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
935 * DataGridView.cs: Avoid calling ReBind twice during the initial data
939 2009-06-16 Ivan N. Zlatev <contact@i-nz.net>
941 * DataGridView.cs: Suppress invalidation during data binding.
942 [Fixes part of bug #512807]
944 2009-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
946 * PrintPreviewDialog.cs: Tune the navigation among the buttons and
947 controls that are part of our ToolBar, so we can mimic the behaviour
948 observed in .Net, by handling also the arrow keys and doing the
949 preprocess for them too.
950 Fixes the remaining bits of #509142.
952 2009-06-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
954 * ToolBar.cs: Expose the current item as internal.
955 * PrintPreviewDialog.cs: Tune the TabStop property for
956 PrintPreviewControl/ToolBar so we match the .net scenario regarding
957 Tab navigation. Also implement support to navigate throughout the
958 items in the ToolBar.
961 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
963 * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs:
964 Implement items syncing in the non-databound scenario.
967 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
969 * DataGridView.cs: Call OnCellValidating and OnCellValidated and
970 handle the Cancel accordingly.
973 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
975 * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
978 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
980 * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
981 DataGridView.cs: Fire CollectionChangeAction.Refresh collection
982 changed when Clearing the collections so that the DataGridView
983 can know and reset the current cell.
986 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
988 * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
989 with the PropertyDescriptor parameter instead of index, because the
990 latter will set some irelevant indices. Fixes a bug uncovered by recent
991 fix to ListChangedEventArgs.
993 2009-06-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
995 * DataObject.cs: When looking for any specific format, do a case
996 insensitive search, as .net does.
999 2009-06-09 Ivan N. Zlatev <contact@i-nz.net>
1001 * CurrencyManager.cs: In AllowNew firstly check if the list is a
1002 IBindingList and proxy to AllowNew. IBindingList has slightly differet
1003 logic and eventhough it's an IList IsReadOnly should not be used in this
1004 case as it might be True but AllowNew could be True as well.
1005 Fixes a bug uncovered by a fix to the Array class.
1007 2009-06-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1009 * ListBindingHelper.cs: In GetListItemType do a null check when
1010 looking for IList.Item, since the impl could be explicit, and thus
1011 private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
1012 Fixes the remaining part of #507120
1014 2009-06-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016 * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
1017 to match them in all the cases, as this is exactly what .net does.
1020 2009-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1022 * ListBindingHelper.cs: In GetListItemType handle gracefully the case
1023 where an instance of IEnumerator returns a null value for its Current
1024 property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
1027 2009-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1029 * ComboBox.cs: Properly detect whether we need to use our vertical
1030 scrollbar or not, specially for DropDownList/DropDown styles,
1031 depending on the value of DropDownHeight.
1034 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1036 * ToolTip.cs: Call the base implementation in Dispose, but do it
1037 before anything else to avoid a regression. This way we do the default
1038 routines related to any System.ComponentModel.Container.
1041 2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1045 * DataFormats.cs: Implement support for serializable types in our
1049 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1051 * ColorDialog.cs: Actually add the help button to the form, so it can
1055 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1057 * PrintPreviewDialog.cs: Don't use Dock.Fill for the
1058 PrintPreviewControl, since it will be hidden in the top by our
1059 toolbar. Use manual location and anchoring instead.
1062 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1064 * FileDialog.cs: When saving the size of the dialog, use the
1065 ClientSize instead of Size, so we have always the same size for the
1066 form. Patch by Alex Shulgin.
1069 2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1071 * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
1072 show a beep, similar to what .net does.
1075 2009-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1077 * ContainerControl.cs:
1079 * ToolStrip.cs: Implicit mnemonic processing should happen for every
1080 ToolStrip child, not only for MenuStrip, so we are going to do that in
1081 ToolStrip.ProcessMnemonic, where we already had that exactly
1082 functionality, but we are only just checking that either this instance
1083 is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
1084 remove the extra code, since we are not going to use it now.
1085 Fixes the remaining bits of #503663.
1087 2009-05-21 Neville Gao <nevillegao@gmail.com>
1089 * ContextMenu.cs: Cleaned up UIA properties.
1091 2009-05-20 Dick Porter <dick@acm.org>
1093 * XplatUICarbon.cs: Add more locking around MessageQueue
1096 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1098 * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
1099 duplication of code, as well as actually getting the focus back in
1100 *any* scenario where the drop down is closed.
1102 2009-05-18 Tom Hindle <tom_hindle@sil.org>
1103 * ScrollableControl.cs: Ignore setting properties HScroll and
1104 VScroll when AutoScroll is true.
1107 2009-05-18 Jonathan Pobst <monkey@jpobst.com>
1109 * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
1110 disabled graphics look closer to the ones that .Net produces.
1113 2009-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1115 * DateTimePicker.cs: When calculating the max width for the year part,
1116 use the current value, since *all* the possible values are exactly a 4
1117 digits number. This way we avoid a ArgumentOutOfRangeException trying
1118 to check against different values.
1121 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1123 * MessageBox.cs: When handling ProcessDialogChar, check that
1124 CancelButton is not null before trying to use it, to avoid a null ref
1125 exception. We don't need to do that on the ok/yes buttons, since they
1129 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1131 * ListBox.cs: Handle the key down event in WndProc instead of doing it
1132 in an event handler, as we need to avoid any operation in case
1133 the user has handled it in its own OnKeyDown handler, and this can't
1134 be achieved since our handler would be the first one always.
1135 * FontDialog.cs: Update the calls since our method handling key down
1139 2009-05-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1141 * Application.cs: We should dismiss the active ToolStrip when we
1142 receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
1143 keyboard short cut can be properly processed by another menu item.
1144 Fixes part of #503663.
1146 2009-05-13 Andreia Gaita <avidigal@novell.com>
1148 * HtmlDocument.cs: If the objects are strings, wrap them in ""
1150 2009-05-13 Andreia Gaita <avidigal@novell.com>
1152 * HtmlDocument.cs: Fix InvokeScript call (duh).
1154 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1156 * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
1157 * ComboBox.cs: If auto complete is being used, it is needed to update
1158 the actual value of the combo box, doing it immediately if the user
1159 presses Enter, or doing it when our combo box loses focus. Finally,
1160 when handling Enter and Escape keys for the combobox, don't try to
1161 hide the listbox if it is not visible in the first place.
1162 Fixes part of #489339.
1164 2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1166 * ToolStripDropDownMenu.cs: Use the height returned by
1167 ToolStripItem.GetPreferredHeight to calculate our own height.
1169 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1171 * TreeNode.cs: When setting Checked, do a double null check, since the
1172 current node can still get a null parent handling
1173 TreeView.OnAfterCheck.
1176 2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1178 * Control.cs: When assigning ContextMenu, do a null check before
1179 assigning its container field.
1181 2009-05-08 Brad Taylor <brad@getcoded.net>
1183 * DateTimePicker.cs: Add a UIA-specific property to ensure that if
1184 is_checkbox_checked is changed, we won't break.
1186 2009-05-08 Andrés G. Aragoneses <aaragoneses@novell.com>
1188 * ToolStripItem.cs: Prevent NRE when our holder is a
1189 ToolStripDropDownButton and we get Select()ed.
1191 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1193 * ToolStripControlHost.cs: DefaultSize must return the current size of
1194 the Control, not the value returned by GetPreferredSize. Also connect
1195 a handle to the control Resize event, and use it to fire
1196 OnHostedControlReize.
1197 Fixes the remaining bits of #483146.
1199 2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1201 * ToolStripDropDown.cs: When performing the layout, use
1202 ToolStripItem.GetPreferredSize ().Height instead of
1203 ToolStripItem.Height, since we are already using it that way in this
1205 Fixes part of ##483146.
1207 2009-05-08 Brad Taylor <brad@getcoded.net>
1209 * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
1210 OnUIASelectionChanged when ShowCheckbox is true and the checkbox
1211 recieves focus. Part of fix for #502029.
1213 2009-05-06 Mike Gorse <mgorse@novell.com>
1215 * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
1216 Add PerformClick and PerformDoubleClick to PopupButton.
1219 2009-05-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1221 * TabControl.cs: call Focus() to emit GotFocus event at the
1222 proper time when SelectionIndex changes. Fixes #499887.
1224 2009-05-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1226 * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
1227 have valid values, even if BoundSpecified is not including
1228 Size/Height/Width - this is useful when we are in a control using Dock
1230 Fixes part of #483146.
1232 2009-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1234 * ComboBox.cs: When losing the focus, if our textbox is not null,
1235 close its auto complete list, if any.
1236 Fixes part of #489339.
1238 2009-04-27 Andrés G. Aragoneses <aaragoneses@novell.com>
1240 * ListView.cs: Make OnColumnClick +internal to be used by a11y.
1242 2009-04-27 Brad Taylor <brad@getcoded.net>
1244 * ToolStripButton.cs: Emit an internal event when CheckOnClick is
1247 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1249 * XplatUIX11.cs: Properly support UTF8 when handling the
1250 SelectionRequest event - this is helpful supporting some window
1251 managers, such KDE, that explictly request the text in utf8, as
1252 opposed to gnome, that supports ascii.
1255 2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1257 * ToolStripDropDownItem.cs: When assigning a new
1258 ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
1259 Capture duties performed by Application/ToolStripManager are handled
1260 nicely and we don't end up in an inconsisten stat.
1263 2009-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1265 * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
1266 any ToolStripDropDownItem when receiving a mouse down event in an
1269 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1271 * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
1273 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1275 * ToolBarButton.cs: rename a method to include UIA prefix.
1277 2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
1279 * ToolBarButton.cs: change visibility of some UIA methods from
1280 protected virtual to private.
1282 2009-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1284 * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
1285 fire OnDropDownOpened/OnDropDownClosed depending on the new
1286 visibility. This also ensures that any direct access to this instance
1287 will fire the mentioned events for the OwnerItem.
1288 * ToolStripDropDownItem.cs: Remove the invocations to
1289 OnDropDownOpened/OnDropDownClosed, since they are handled in
1290 ToolStripDropDown, as well as updating the
1291 OnDropDownHide/OnDropDownShow calls to be in the right order.
1294 2009-04-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1296 * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
1297 shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
1298 event is the same as the owner of the menu item. Also set properly
1299 SourceControl for ContextMenuStrip, as well as add an internal field to
1300 contain the control that owns the ContextMenuStrip (we need to know this
1301 even before the public property is assigned).
1302 Fixes bits of #393775.
1304 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1306 * StatusStrip.cs: Use the same icon as .net when the mouse is over the
1310 2009-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1312 * ComboBox.cs: When calculating the height of the ComboListBox,
1313 specially for the 2.0 profile, use MaxDropDownItems if the
1314 DropDownHeight property hasn't been set, and use the later if it has
1315 been set. This way we support both properties.
1318 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1320 * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
1323 2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1325 * ContainerControl.cs: Implement support for Control.CausesValidation,
1326 by adding a pending list of controls to be validated in the top
1327 container control, and postpone validation as needed.
1328 Also remove any control in the validation chain in case it gets removed
1329 from its owner before the pending validation actually happens.
1332 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1334 * ListBox.cs: The default instance StringFormat field used to draw our
1335 items should use the StringFormatFlags.NoWrap value, so it doesn't try
1336 to put in a different line the text that doesn't fit our bounds, but
1340 2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1342 * CheckedListbox.cs: When executing OnItemClick check that the index
1343 is different to -1 before trying to retrieve an item using that value.
1344 Fixes a ArgumentOutOfRangeException thrown when the horizontal
1345 scrollbar was visible but not needed, and then a clicked was received
1348 2009-04-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1350 * MaskedTextBox.cs: If Insert is pressed, change the internal
1351 overwrite mode for our default value.
1352 Fixes some bits of #477395.
1354 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1356 * ListView.cs: In EnsureVisible avoid any direct access to items if we
1357 are using virtual mode - otherwise use the bounds stored in a specific
1358 item in a given index. This is specially important when using groups
1359 or when items are re-arranged, since the position in the items
1360 collection can be different than that one being displayed.
1361 Fixes the rest of ##491978.
1363 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1365 * ThemeWin32Classic.cs: Include the previous check for ListView in a
1366 2.0 define as needed.
1368 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370 * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
1371 Fixes part of #491978.
1373 2009-04-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1375 * ToolTip.cs: New fields to store the title/icon information.
1376 * ThemeWin32Classic.cs: Implement support for tooltip's title and
1380 2009-04-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1382 * TabControl.cs: When removing a tab that was previously selected, set
1383 internally the value of selected_index to -1, to avoid trying to
1384 access the previous one when trying to set the new one (and was
1385 already removed from the collection). This is what .net seems to do
1389 2009-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1391 * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
1392 separated, and we cannot fallback on Text if Rtf is requested but not
1394 * Clipboard.cs: Actually use the format specified by our user when
1397 2009-03-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1399 * X11Clipboard.cs: Actually look for the RtfText format when calling
1400 GetRftText in our clipboard formats list, instead of using the
1401 generical Text format.
1403 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1405 * TextBox.cs: Process auto completion properly when we are using the
1406 internal source provided by ComboBox, and also remove some repeated
1410 2009-03-30 Tom Hindle <tom-hindle@sil.org>
1412 * DataGridView added Support for Invisible Columns to
1413 AutoFillColumnsInternal method.
1415 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1418 * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
1419 its own file, since it is adding some functionality and thus is not a
1420 simple struct as before.
1421 * XplatUIX11.cs: Add support to store different formats that could
1422 have been specified by the user when puting data in the Clipboard -
1423 this is important when more than one format is supported (such plain
1424 text and rtf text). Update in the needed places, as well as simplify
1428 2009-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1430 * XplatUIX11.cs: When handling the SelectionRequest event, use
1431 SelectionRequestEvent instead of SelectionEvent, so we get the right
1432 data for the app asking for clipboard data. Set the member of
1433 SelectioneEvent.property to indicate the place where we are storing
1434 the information as well - this is specially important for gnome/kde
1435 apps using the TARGETS atom to ask for the supported permission before
1436 actually asking for a specific format.
1439 2009-03-28 Ivan N. Zlatev <contact@i-nz.net>
1441 * DataGridViewCell.cs: We don't support drawing all types of cell borders,
1442 so fallback and at least draw something instead of nothing.
1444 2009-03-27 Ivan N. Zlatev <contact@i-nz.net>
1446 * DataGridView.cs: If the column header isn't visible allow resizing
1447 using the cell column border. Also be sure to reset the cursor properly.
1450 2009-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1452 * ToolStrip.cs: When disposing, iterate over the items in reverse
1453 order, since disposing the items modifies the collection.
1454 * ToolStripItem.cs: Remove from the owner when disposing.
1457 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1459 * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
1460 longer throws a NotImplementedException.
1461 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1464 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1466 * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws
1467 NotImplementedException.
1469 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1471 * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs:
1472 Fix SortMode clash handling.
1475 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1477 * DataGridView.cs: Do not show the vertical scrollbar if there is only
1478 one row or less. For the sake of MSNET compatibility.
1481 2009-03-26 Ivan N. Zlatev <contact@i-nz.net>
1483 * DataGridView.cs: When the current cell is moved out of the editing row
1484 be sure to reset it back to a place holder row.
1486 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1488 * DataGridView.cs: If IsHandleCreated and the very first row is added
1489 to the grid in a non-databound scenario - select the first cell.
1492 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1494 * DataGridView.cs: If we are not databound and empty once the first row
1495 gets added select the first cell.
1498 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1500 * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
1501 DataGridView. They do not belong to a DataGridView.
1504 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1506 * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
1507 Set indices and associate with DataGridView only after the item is
1508 add to the internal list.
1509 [Fixes part of bug #486645]
1511 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1513 * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
1514 FullRowTemplate already contains all the cells.
1515 [Fixes part of bug #486645]
1517 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1519 * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
1520 to perform Pre and Post removal actions to allow the current cell to be
1521 moved and all events fired properly before the column is removed.
1523 2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
1525 * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
1526 Post removal action to allow the current cell to be moved and all events fired
1527 properly before the row is removed.
1529 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1531 * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
1534 2009-03-18 Jonathan Pobst <monkey@jpobst.com>
1536 * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
1537 placement of popup windows on OSX.
1539 2009-03-18 Matt Guo <matt@mattguo.com>
1541 * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
1544 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1546 * DataGridView.cs: Implement the CellMouseDoubleClick event.
1549 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1551 * DataGridView.cs: Fix scrolling to take into account that the
1552 scrollbars are actually inside the client area of the datagridview.
1554 2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
1556 * DataGridView.cs: Implement mouse wheel scrolling.
1559 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
1561 * DataGridView.cs: When DataSource changes the rebinding should happen
1562 not if IsHandleCreated but if BindingContext != null.
1565 2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
1567 * DataGridView.cs: Browsable(false) properties should be skipped when
1568 autogenerating the columns.
1571 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1573 * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
1574 user should use a different handling, trying to use every pressed char
1575 as a unique and only one prefix to compare against the items. Also,
1576 refactor some input check code to avoid duplication.
1579 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1581 * DataGridViewCell.cs: In OwningColumng Handle invalid column index
1585 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1587 * DataGridViewBand.cs: Update our State whenever a property changes.
1588 * DataGridView.cs: Don't be so generous in reseting Displayed, because
1589 it will spawn lots and lots of unneeded State changed events.
1592 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1594 * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
1595 Add support for invisible rows and columns.
1598 2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
1600 * DataGridViewCell.cs: Escape literal { in ToString.
1601 * DataGridViewTextBoxCell.cs: Fix ToString.
1604 2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1606 * MenuAPI.cs: When navigating items using the keyboard properly handle
1607 the case when no item is selected - this way we should try to select
1608 the first or the last item depending on the direction, but no the
1609 second or third one, etc.
1611 2209-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1613 * Form.cs: When calling ProcessCmdKey, just after checking for any
1614 MainMenu, check if there's an active ContextMenu that is *not* owned
1615 by the form - this is needed when a non-focusable control owns a
1616 ContextMenu but its ProcessCmdKey method can't be called since it
1617 can't receive any input.
1620 2009-03-13 Neville Gao <nevillegao@gmail.com>
1622 * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
1623 * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
1624 ContextMenu is displayed.
1626 2009-03-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1628 * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
1629 WM_HELP message for the associated window, don't call
1630 NativeWindow.WndProc *at all*, since this could send a WM_*
1631 key-related to Control.WndProc. Also, return the keypress message, in
1632 case it needs to be preprocessed for any menu.
1635 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
1637 * DataGridView.cs: When removing the first displayed row and moving
1638 the current cell up one we must invalidate the first displayed row
1639 index before calculating the row heights, etc.
1642 2009-03-08 Ivan N. Zlatev <contact@i-nz.net>
1644 * DataGridView.cs: Fix three column bugs:
1645 - Rows should be cleared (but not removed) if columns become 0.
1646 - The current cell should get moved
1647 - ColumnCount increase was adding too many columns.
1649 2009-03-07 Ivan N. Zlatev <contact@i-nz.net>
1651 * DataGridView.cs: Fix RowCount decrease which wasn't working well
1652 in both scenarions - with and without editing row.
1654 2009-03-06 Ivan N. Zlatev <contact@i-nz.net>
1656 * DataGridView.cs: Be compatible with MS in that the scroll to
1657 selection has a synchronous effect. The trick here is that in
1658 order to avoid unnecessary calculations each time a row/column
1659 is added/removed we recalculate the whole grid size just before
1660 just before the scroll to selection.
1663 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1665 * RichTextBox.cs: LoadFile(string path) should pass by default
1666 RichTextBoxStreamType.RichText, without caring about the detection or
1667 extension of the file.
1669 2009-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1671 * RichTextBox.cs: When calling LoadFile, remove the extra EOL
1672 introduced by StreamReader, since it will convert the EOF to an EOL.
1675 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1677 * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
1678 preferred size twice.
1680 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1682 * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
1683 string if we aren't on a ToolStripDropDownMenu.
1685 2009-03-06 Jonathan Pobst <monkey@jpobst.com>
1687 * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
1688 code from Item to Button. Patch from Alex Shulgin.
1690 2009-03-05 Jonathan Pobst <monkey@jpobst.com>
1692 * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
1693 * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
1694 not a ToolStripDropDown.
1695 * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
1697 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
1699 * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
1701 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1704 2009-03-04 Ivan N. Zlatev <contact@i-nz.net>
1706 * DataGridView.cs, DataGridViewElement.cs:
1707 - Always calls OnDataGridViewChanged() if the new DGV is
1708 not the same/null as the current one.
1709 - Do not throw NREs when setting TopLeftHeaderCell to null
1710 - Unset the DGV for TopLeftHeaderCell when replacing it
1711 Based on a patch by Tom Hindle <tom_hindle@sil.org>
1714 2009-03-04 Jonathan Pobst <monkey@jpobst.com>
1716 * ToolStripDropDown.cs: When dismissing control due to ESC, don't
1717 hit a NRE if we are a ContextMenuStrip and do not have a parent.
1720 2009-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1722 * ListView.cs: When removing items from a ListViewItemCollection
1723 contained in ListView (not in ListViewGroup), before actually removing
1724 the items remove them also from their -if any- associated groups. If
1725 the item is present in ListViewGroup.Items but not in ListView.Items,
1726 then don't remove it - this is *exactly* what .net seems to do.
1727 Fixes the remaining bits of #478689.
1729 2009-02-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1731 * ListView.cs: In our MouseDown handler in ItemControl use the item in
1732 the very specific *real* position where the mouse was pressed, using
1733 GetItemAtDisplayIndex for that purpose, instead of directly accessing
1734 Items - this is specially useful when groups with Details view is
1735 used. This is what we do in other places when using groups.
1736 Fixes part of #478689.
1738 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1740 * MaskedTextBox.cs: Properly replace selection when a new valid key
1741 is pressed - even when IsOverwriteMode is false. This is what .net
1744 2009-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1746 * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
1747 true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace,
1748 since Set will keep the previous value in case of error (just what we
1749 need), but still call MaskedTextProvider.Clear if
1750 RejectOnFirstFailure is false - match .net.
1752 2009-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1754 * MaskedTextBox.cs: When setting Text use the very precise algorithm
1755 that .net uses: iterate over every char of the new value, trying to
1756 use every char, and use a normal call to MaskedTextProvider.Replace
1757 call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
1758 in case of error in both cases, as well.
1761 2009-02-25 Neville Gao <nevillegao@gmail.com>
1763 * ColorDialog.cs: Added UIA Framwork Property:
1764 UIASelectedSmallColorControl.
1766 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1768 * MaskedTextBox.cs: Forgot to update the call of the new method
1769 introduces in the previous patch.
1771 2009-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773 * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1774 key. Also create a new method to avoid code duplication between
1775 OnKeyDown and OnKeyPress.
1778 2009-02-24 Ivan N. Zlatev <contact@i-nz.net>
1780 * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
1784 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1786 * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1787 actually inversed, so put it the right way. Also, don't automatically
1788 look for the next editable item after adding a new one, but way for
1789 the next insertion (this is what .net does) - this is not needed when
1790 MaskedTextProvider.InsertAt is called however, since it already looks for the
1791 next editable position.
1792 Fixes the remaining bits of #477383.
1794 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1796 * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1797 MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1798 property after the text was modified, adjust the testPosition value
1799 depending on what method was called.
1800 Fixes part of #477383.
1802 2009-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1804 * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1805 the existence of the column headers, as well as using this information
1806 to adjust the vscrollbar value, so items never get hidden by the
1810 2009-02-23 Ivan N. Zlatev <contact@i-nz.net>
1812 * DataGridView.cs: Make the ScrollBars property work properly.
1814 2009-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1816 * TextBox.cs: Some code lifting for AutoComplete's support. First,
1817 when handling non-navigation keys, save the original Text typed by the
1818 user, and don't motify it BEFORE. This was a design mistake, since the
1819 re-assignation happens only when navigating the append/suggest list,
1820 not while creating the matches. Also, process the Delete key just like
1821 the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1823 Fixes some missing bits of #469967.
1825 2009-02-22 Ivan N. Zlatev <contact@i-nz.net>
1827 * DataGridView.cs: Fix row removal in the data-bound scenario.
1829 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
1831 * DataGridViewCell.cs: Use strict equality comparison in order to
1832 prevent superfluous CellValueChanged events.
1834 2009-02-19 Ivan N. Zlatev <contact@i-nz.net>
1836 * DataGridView.cs: Do not reset the columns when the data list changes,
1837 but only the rows. Fixes multiple bugs related to sorting, custom
1838 column styles being reset and more.
1840 2009-02-19 Jonathan Pobst <monkey@jpobst.com>
1842 * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1845 2009-02-18 Andrés G. Aragoneses <aaragoneses@novell.com>
1847 * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1849 2009-02-17 Andrés G. Aragoneses <aaragoneses@novell.com>
1851 * ToolBarButton.cs: Event for Enabled property (needed to fix
1854 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1856 * TextBox.cs: When handling WndProc with autocomplete activated,
1857 event if the new text is not causing any change in the look up
1858 algorithm, save it as we normally do when numbers and letters.
1861 2009-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1863 * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1864 Invalidate the proper bounds in the TreeView, not only resetting the
1868 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1870 * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1871 BackColor property. This is what .net does in both 1.1 and 2.0.
1872 * TreeView.cs: When selected_node is not the same as highlighted_node,
1873 we need to handle the back color in a different way, trying to use the
1874 node's BackColor if it's not Color.Empty.
1877 2009-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1879 * TreeView.cs: When canceling selection in our MouseUp handler,
1880 invalidate also the previous selected node bounds.
1883 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
1885 * DataGridView.cs: End or if end fails then cancel the current edit
1886 operation before clearing the data source.
1888 2009-02-07 Ivan N. Zlatev <contact@i-nz.net>
1890 * DataGridView.cs: Data-bind only after the handle is created.
1893 2009-02-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1895 * TreeView.cs: When handling the MouseMove event, check if
1896 focused_node and selected_node fields are null - usually they are non
1897 null, since we have always a selected node, but canceling selection by
1898 handling BeforeSelect event leaves the two of them as null.
1901 2009-02-06 Neville Gao <nevillegao@gmail.com>
1903 * TabControl.cs: Control enabled to support accessibility.
1906 2009-02-05 Ivan N. Zlatev <contact@i-nz.net>
1908 * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
1909 - Use ArrayList.Insert instead of the Item property so that the item
1910 is actually inserted and not an existing item replaced.
1911 - Call DataGridView.OnRowsAddedInternal and drop internal from
1912 OnRowsAdded for binary compitability. This also fixes several
1916 2009-02-05 Andrés G. Aragoneses <aaragoneses@novell.com>
1918 * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1921 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1923 * ToolBarButton.cs: Add another event (OnUIATextChanged).
1925 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1927 * ToolBarButton: Fix typo in previous commit (r125704).
1929 2009-02-04 Andrés G. Aragoneses <aaragoneses@novell.com>
1931 * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1932 when a button gets focus, firing the events from the ToolBar.
1935 2009-02-04 Mario Carrion <mcarrion@novell.com>
1937 * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
1939 * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1940 ColumnHeader to raise ColumnWidthChanged.
1943 2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
1945 * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
1946 code in the row collection code, so that the completion happens before
1947 the CollectionChanged event, also better encapsulation.
1950 2009-02-02 Ivan N. Zlatev <contact@i-nz.net>
1952 * DataGridView.cs: When editing is finished do not remove the editing
1953 row, because it has already become a real one. Instead add a new one.
1956 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1958 * TreeView.cs: When drawing the node's image, check that the index
1959 specified by the node is valid for the ImageList.
1962 2009-02-02 Andrés G. Aragoneses <aaragoneses@novell.com>
1964 * ToolBar.cs: Add new UIAPerformClick method to be called by
1965 UIAutomationWinforms when someone calls Invoke() on the
1966 ToolBarButtonProvider. r: jpobst
1968 2009-02-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1970 * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1971 MapNotify/UnmapNotify events - we are already firing those events in
1972 the proper places, so we avoid this way to send the same message two
1973 times. I'm leaving the handling code in case we could break something
1974 in the future, as this change seems dangerous (but needed).
1977 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1979 * DataGridView.cs: Complete incomplete rows when they are added to
1983 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1985 * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
1986 binding is cleared prior to setting it to null. Fixes a regression
1987 causing exceptions when the DataSource is set to null and then set
1988 again to a data source.
1990 2009-02-01 Ivan N. Zlatev <contact@i-nz.net>
1992 * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs:
1993 - Make Image/Bitmap cells work.
1994 - Handle images with size greater than the cell.
1995 - Default to MiddleCenter alignment for image cells.
1998 2009-01-30 Ivan N. Zlatev <contact@i-nz.net>
2000 * UpDownBase.cs: Force Height to PreferredHeight.
2002 2009-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2004 * XplatUIX11.cs: We should use utf8 handling clipboard transference
2005 with other x11 applications, and use utf16 when handling clipboard
2006 data in the class library. Update the related points as well.
2009 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
2011 * DataGridViewCell.cs: Format strings according to the supplied
2015 2009-01-28 Ivan N. Zlatev <contact@i-nz.net>
2017 * DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
2018 addition or removal. Fixes multiple crashes in OnMouseMove.
2020 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
2022 * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
2024 2009-01-27 Ivan N. Zlatev <contact@i-nz.net>
2026 * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
2030 2009-01-26 Andreia Gaita <avidigal@novell.com>
2032 * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
2033 won't be disabled by default.
2036 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
2038 * DataGridView.cs: Do not clear the rows if we are not databound.
2040 2009-01-26 Ivan N. Zlatev <contact@i-nz.net>
2042 * DataGridView.cs: Do not be too smart about selecting the first cell
2043 when the first row is added as this is not what MS does. Fixes the
2046 2009-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2048 * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
2049 take into account the fact that OpenTreeNodeEnumerator needs to call
2050 MoveNext/MovePrevious to actually put the passed node as the one
2051 retrieved in Current. This way this property should work as really
2053 Fixes part of #467225.
2055 2000-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2057 * TreeView.cs: When calculating the scrollbars, don't use
2058 TreeNode.Bounds, since it still can have the values of the previous
2059 -and now invalid- layout -which depends on TreeView.skipped_nodes, and
2060 could not have been updated as well-, and use the actual number of
2061 visible number of nodes to compute the height needed to contain all
2062 the nodes. Also reset the value of vbar to 0 when disabled - this way
2063 we make sure that, when re-enabled, it will update the visible area of
2064 the treeview, even if the previous value before disabling it is the
2065 same as now. Finally don't do anything for the vbar.ValueChanged
2066 handler - for the case wheer we manually set the value but don't the
2067 vbar is disabled already.
2068 Fixes part of #467225.
2070 2009-01-23 Jonathan Pobst <monkey@jpobst.com>
2072 * ToolStrip.cs: Switch from foreach to for, in case the collection
2073 somehow changes while enumerating it.
2075 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
2077 * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no
2080 2009-01-23 Ivan N. Zlatev <contact@i-nz.net>
2082 * DataGridView.cs: Fix new row adding/editing in the non-databound
2085 2009-01-21 Mike Gorse <mgorse@novell.com>
2087 * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
2089 Added UIAValueParamChangedEvent.
2091 2009-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2093 * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
2094 of trying to set as top node the highest parent of the previous top
2095 node. Moving to the bottom of the TreeView after a call to CollapseAll
2096 is exactly what .net does. This should avoid some nasty issue when
2097 CollapseAll is called and we don't need the vertical scroll bar.
2099 2009-01-21 Mario Carrion <mcarrion@novell.com>
2101 * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
2102 and UIATopMostChanged.
2104 2009-01-21 Sandy Armstrong <sanfordarmstrong@gmail.com>
2106 * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
2107 UIAEnabledChanged, and UIATextChanged events.
2109 * Form.cs: Add UIAMenuChanged event.
2112 * MenuAPI.cs: Note which internal APIs are being used by UIA.
2114 2009-01-21 Neville Gao <nevillegao@gmail.com>
2116 * ToolBar.cs: Control enabled to support accessibility.
2119 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2121 * TreeView.cs: When handling mouse up event, check whether
2122 highlighted_node is null or not - usually it should be non-null
2123 alwaays, since the mouse down handler sets it, but some externa
2124 operations, such TreeNodeCollection.Clear, could set it to null.
2127 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
2129 * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu
2132 2009-01-19 Ivan N. Zlatev <contact@i-nz.net>
2134 * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
2137 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2139 * MonthCalendar.cs: When handling the selection changes using the
2140 mouse, don't set SelectionRange if the selection range didn't actually
2141 change. This matters because, even if we set the range to the same
2142 previous range, an extra DateChanged event is fired. Just to be clear:
2143 SelectionRage property doesn't check whether the new value is
2144 different to the previous one (by ref equals doesn't work here).
2145 Fixes other bits of #364914.
2147 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2149 * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
2150 selection using the keyboard, since we are already firing this event
2151 when setting SelectionRange. Also don't set SelectionRange if the
2152 previous and the new value are the same (the property, just as .net
2153 does, doesn't check whether the previous value and the new one are the
2154 same). This saves us from firing OnDateChanged event if the selection
2155 range didn't change actually.
2156 Fixes the remaining bits of #364914.
2158 2009-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2160 * ListBox.cs: When removing an item and the last item is selected,
2161 remove it from the selection, and if selection mode is One try to
2162 select the new last item.
2165 2009-01-16 Mike Gorse <mgorse@novell.com>
2167 * Splitter.cs: Make MaxSize internal so that UIA code can use it.
2169 2009-01-16 Mario Carrion <mcarrion@novell.com>
2171 * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged
2174 2009-01-16 Carlos Alberto Cortez <calberto.cortez@ggmail.com>
2177 * XplatUIX11.cs: Properly encode/decode the unicode strings we
2178 store/retrieve in the Clipboard. Also, since we try to convert the
2179 data to different formats, separate the source and the result of
2180 it, so we can always fallback to the original and don't mix wrong
2183 2009-01-16 Mike Gorse <mgorse@novell.com>
2185 * TextControl.cs: Add UIASelectionChanged event.
2187 2009-01-16 Ivan N. Zlatev <contact@i-nz.net>
2189 * DataGridView.cs: Forward the first key events to the editing control.
2192 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2194 * Application.cs: Oops, launch the copied handler of PreRun instead of
2195 the global one (gendarme would bark otherwise). (Improving r123375)
2197 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2200 * Application.cs: Move the PreRun event fire to the end of the XplatUI
2201 static ctor (we don't move the PreRun event to this class because its
2202 usage would cause the call to the static ctor). This way we can get
2203 a11y support for dialogs that run without App.Run.
2205 2009-01-14 Andrés G. Aragoneses <aaragoneses@novell.com>
2207 * ListView.cs: New internal property to know the inner array's length of
2208 the location of items, in order to avoid a try-catch strategy for the
2209 case when this array has not been resized yet (for reference, look at
2212 2009-01-13 Andrés G. Aragoneses <aaragoneses@novell.com>
2214 * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
2215 reflection calls. This requires UIAutomationWinforms r123213.
2217 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2219 * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
2220 handlers and fire the DateSelected event until MouseUp is reached,
2221 like .net does, instead of firing it for each mouse event.
2222 Fixes part of #364914.
2224 2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2226 * TreeView.cs: When the selection gets canceled using the BeforeSelect
2227 event, invalidate the previous highlighted_node bounds, to show the
2228 user that the item was *not* selected.
2231 2009-01-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2233 * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
2234 well as -in DropDown and Simple modes- writing in the textbox should
2235 try to set the requested item as the top one, but navigating with the
2236 keyboard and handling mouse selection don't need that behaviour. Also,
2237 when resetting selected_index handling key press events, reset
2238 ComboListBox.HighlightIndex.
2239 Fixes the remaining bits of #464188.
2241 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2243 * DataGridView.cs: Fix crashes when shortcut keys are pressed, but
2245 - CurrentCellAddress should be -1, -1 and not 0, 0.
2246 - Be tolerant and fall back to clearing the current cell if either
2247 column or row is -1 in MoveCurrentCell.
2248 - Misc. more -1 checks.
2250 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2252 * DataGridView.cs: Preserve the column index. Fixes a regression
2253 introduced by the data binding position tracking code.
2255 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2257 * DataGridView.cs: If the bottom of the row matches the client height
2258 do not regard the row as partially visible. Fixes the weird scrolling
2259 when there is no scrollbar.
2261 2009-01-11 Ivan N. Zlatev <contact@i-nz.net>
2263 * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
2265 2009-01-09 Mario Carrion <mcarrion@novell.com>
2267 * MessageBox.cs: Fixed internal UIAIconRectangle property.
2269 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2271 * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
2273 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2275 * DataGridView.cs: Track the Position in the CurrencyManager.
2277 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2279 * DataGridView.cs: Implement data-bound new item editing/addition.
2280 * DataGridViewRowCollection.cs: Make it possible for us to internally
2281 remove the edit row.
2282 [Fixes bugs #457107, #457308, #325240]
2284 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2286 * CurrencyManager.cs: Even if Position is set to a greater value than the
2287 list count reset it to position of the last item.
2289 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2291 * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
2292 Fix that in order to make CancelNew to work.
2294 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2296 * BindingSource.cs: When adding a new item try to delegate to the internal
2297 list first before throwing an exception.
2299 2009-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2301 * ComboBox.cs: When setting the text and adjusting the top_item, do it
2302 *only* if the current item is *not* visible already.
2303 Fixes part of #464188.
2305 2009-01-09 Ivan N. Zlatev <contact@i-nz.net>
2307 * DataGridView.cs: Requesting the CurrencyManager for the first time can
2308 lead to unexpected OnBindingContextChanged calls and recursive rebinding.
2312 2009-01-08 Brad Taylor <brad@getcoded.net>
2314 * ComboBox.cs: Expose a few private fields as internal UIA properties.
2316 2009-01-07 Mario Carrion <mcarrion@novell.com>
2318 * DataGrid.cs: CWL removed.
2320 2009-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2322 * RadioButton.cs: When setting Checked, we should first update the
2323 check state of the current RadioButton, as well as invalidating it,
2324 and after that actually update the siblings. This is done to match
2326 Fixes the remaining bits of #463028.
2328 2009-01-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2330 * RadioButton.cs: Setting Checked to false should set TabStop to stop
2331 as well. Also, when we get the focus and no other RadioButton is
2332 selected in the parent control, we should mark ourselves as Checked.
2333 Fixes part of #463028.
2335 2009-01-05 Mario Carrion <mcarrion@novell.com>
2337 * DataGrid.cs: UIA suppport. internal events:
2338 UIAGridCellChanged, UIAColumnsHeadersVisibleChanged,
2339 UIASelectionChanged, UIACollectionChanged. Internal properties:
2340 UIARowHeight, UIACellsArea, UIACaptionArea,
2341 UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle,
2342 UIAVScrollBar and UIAHScrollBar.
2344 2009-01-05 Jonathan Pobst <monkey@jpobst.com>
2346 * ToolStripSplitStackLayout.cs: Enable the overflow button if any
2347 of the buttons are set to Overflow = Always.
2350 2009-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2352 * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
2353 based on whether the binding source is availble or not. Fixes #463008.
2355 2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
2357 * DataGridViewCell.cs: We should return a value even if we are not bound
2360 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2362 * CurrencyManager.cs, DataGrid.cs:
2363 - Rename CanAddRows to AllowNew. The CurrencyManager has no
2365 - Add two more internal properties AllowRemove and AllowEdit.
2366 * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
2367 AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
2368 CurrencyManager data source.
2370 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2372 * DataGridView.cs: Fix crashes caused by assigning negative values to
2373 ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
2374 the column/row heights/widths.
2377 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2379 * DataGridView.cs: Non-autogenerated columns that have a data property
2380 set that exists in the current datasource should be set to be data-bound.
2382 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2384 * DataGridView.cs: Fix column sorting for columns containing null
2385 values. A "null" value is not always "null" (e.g could be String.Empty)
2386 and thus parsing numeric types throwed an exception for "null" values.
2388 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2390 * DataGridView.cs: Detach the editing control when the edit is
2393 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2395 * DataGridView.cs: Multiple fixes to handle last column/row removal
2396 and cell movement after that instead of throwing exceptions.
2398 2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
2400 * DataGridViewCellCollection.cs: When cells are removed the column
2401 indices become invalid if the cell is not the last one and have to
2404 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2406 * DataGridView.cs: Return false in CommitEdit if there was an error.
2408 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2410 * DataGridView.cs: Remove a leftover Console.WriteLine.
2412 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2414 * DataGridViewRow.cs: Access the indexer of the data manager directly
2415 instead of the internal list.
2417 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2419 * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
2420 Rewrite the value getting, setting, parsing, formatting logic:
2421 - If data-bound value get/set should actually get and set from the
2423 - Make proper usage of TypeConverters for value parsing/formatting.
2424 - Raise DataError if setting the new value fails.
2425 - Get rid off the internal valueType field and get/set the ValueType
2429 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2431 * DataGridView.cs: Rewrite the DataBinding layer:
2432 - Get rid off all BindingSource/IBindingList/DataSet/DataTable
2434 - Get rid off the per DataSource type column autogeneration code.
2435 - Use the CurrencyManager for everything that is DataBinding related.
2437 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
2439 * CurrencyManager.cs: Do not fire duplicate ListChanged events.
2441 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
2443 * DataGridView.cs, DataGridViewRow.cs: Add a new internal property
2444 DataManager to fetch the CurrencyManager for the DataGridView and to
2445 spare this logic for the other components to follow.
2447 2008-12-31 Mario Carrion <mcarrion@novell.com>
2449 * MessageBox.cs: UIA support: new properties: UIAMessage,
2450 UIAMessageRectangle and UIAIconRectangle.
2452 2008-12-31 Sandy Armstrong <sanfordarmstrong@gmail.com>
2454 * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
2455 and DirComboBox.DirComboBoxItem.ToString override for UIA support.
2457 2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
2459 * DataGridView.cs: Do not autogenerate duplicate column for a
2460 data member that has already problematically been assigned one.
2463 2008-12-30 Jonathan Pobst <monkey@jpobst.com>
2465 * ProfessionalColorTable.cs: Better detection of user's theme.
2468 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
2470 * DataGridView.cs: In the case where there are no autogenerated
2471 columns and the user adds columns problematically we must generate
2472 the rows after the very first column is added.
2474 2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2476 * DateTimePicker.cs: When increasing/decreasing the value of month
2477 with ShowUpDown set to true, moving from december to january, and
2478 moving from january to december should adjust the year to the next and
2479 the previous year, respectively.
2480 Fixes the remaining bits of #459674.
2482 2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
2484 * DataGridView.cs: If a new cell is selected edit mode should be
2485 immediately enabled only if EditOnEnter is set. Whether the mouse
2486 or not was used to select the cell is irrelevant.
2488 2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
2490 * DataGridView.cs: Remove a bogus ReBind call, which was causing
2491 recursive rebinding.
2493 2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2495 * DateTimePicker.cs: Handle the "MMMM" month format.
2498 2008-12-23 Ivan N. Zlatev <contact@i-nz.net>
2501 - Make ReBind private and refactor various calls to call ReBind
2502 instead of ClearBinding/DoBinding
2503 - Rebind when the column collection changes
2504 * DataGridViewColumnCollection.cs:
2505 - Leave the rebinding on change to be handled by the DataGridView.
2507 2008-12-23 Jonathan Pobst <monkey@jpobst.com>
2509 * DataGridView.cs: Add a ReBind convenience method.
2510 * DataGridViewColumnCollection.cs: Rebind when a column is added.
2513 2008-12-23 Neville Gao <nevillegao@gmail.com>
2515 * StatusBar.cs: Modified argument variable.
2516 * SplitContainer.cs: Control enabled to support accessibility.
2519 2008-12-22 Jonathan Pobst <monkey@jpobst.com>
2521 * ToolStripMenuItem.cs: Guard against an NRE.
2524 2008-12-22 Mario Carrion <mcarrion@novell.com>
2526 * Control.cs: AccessibleXXXX properties don't return
2527 AccessibleObject.XXXX, instead a local referece is returned.
2529 2008-12-22 Neville Gao <nevillegao@gmail.com>
2531 * PrintPreviewControl.cs: Added internal properties to support
2535 2008-12-19 Mario Carrion <mcarrion@novell.com>
2537 * Control.cs: Reverted r121561.
2539 2008-12-19 Andrés G. Aragoneses <aaragoneses@novell.com>
2541 * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
2542 it has been moved to the bridge.
2544 2008-12-18 Brad Taylor <brad@getcoded.net>
2546 * DateTimePicker.cs: Add a few UIA specific events, and a couple
2547 internal methods useful for UIA.
2549 2008-12-18 Mario Carrion <mcarrion@novell.com>
2551 * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
2554 2008-12-17 Mike Gorse <mgorse@novell.com>
2556 * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
2557 item's Focused property is set.
2559 2008-12-17 Sandy Armstrong <sanfordarmstrong@gmail.com>
2563 * TreeNodeCollection.cs: Add events for UIA support:
2564 UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
2565 UIACollectionChanged.
2567 2008-12-17 Bill Holmes <billholmes54@gmail.com>
2569 * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
2570 SubItemStyle member field.
2572 Contributed under MIT/X11 license.
2574 2008-12-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2576 * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
2577 y coord, since it's useless in this case, and we need to rely only on
2578 the number of rows and ItemHeight to compute this value.
2579 Fixes part of #257471.
2581 2008-12-15 Mike Gorse <mgorse@novell.com>
2583 * StatusBar.cs: Send OnUIACollectionChanged in Remove().
2585 2008-12-15 Mario Carrion <mcarrion@novell.com>
2587 * Control.cs: Accessibility properties instantiate AccessibilityObject when
2591 2008-12-15 Brad Taylor <brad@getcoded.net>
2593 * ToolStripItem.cs: Add a UIA specific event for listening for when a
2594 ToolStripItem becomes selected or deselected.
2596 2008-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2598 * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
2599 .net does. Use the date in the point of the mouse move coords as the
2600 new range as well, if the left button of the mouse is being pressed.
2603 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2605 * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
2606 MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
2607 effectively repaint the control.
2608 Fixes the remaining bits of #417961.
2610 2008-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2612 * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
2613 range to contain only dates within the new possible range.
2614 Fixes part of #417961.
2616 2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2618 * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
2619 length of the text, but the end position, so we need to substract 1 to
2620 have a valid value. Also, in the same InputText method, don't use
2621 SelectionLength as the length of the text, since the selected text
2622 could actually be empty, but we need to set the value anyway.
2625 2008-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2627 * TextBox.cs: Don't do any auto complete task if the custom source is
2628 null or empty. Also avoid duplication of code.
2631 2008-12-09 Ivan N. Zlatev <contact@i-nz.net>
2633 * DataGridView.cs: Refresh column sizes when new rows are added.
2636 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2637 * RichTextBox.cs: When parsing the contents of a rtf file, don't call
2638 Split to create a line - we are already doing this, by _adding_ a new
2639 one when rtf_cursor_x is 0 (this field gets this value just after we
2640 receive the newline param as true). This avoids having a proportional number
2641 of empty lines in the end of the rich text box.
2644 2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2646 * RichTextBox.cs: When saving the contents as a plain text, don't add
2647 a new line for every Line structure, since the data in Document
2648 already contains the new line characters. This avoids duplicated new
2649 lines using the Save methods.
2652 2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
2654 * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
2655 framework. Fixes bug #457678.
2657 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2659 * DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
2660 where datasource is null.
2661 [Fixes exception reported in bug 441240]
2663 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2665 * DataGridView.cs: EndEdit validation fixes.
2667 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2669 * DataGridView.cs: This is the cool patch that adds support for
2670 actually updating the data in the databinding backend after editing.
2671 With bonus firing and handling the DataError event.
2673 2008-12-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2675 * Line.cs: When calculating the text tags's Shift value, store it as
2676 pixels instead of points. This way we can actually handle different
2677 fonts in the same RichTextBox, as well as the right size of the caret.
2678 Fixes part of #351938.
2680 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2682 * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was
2683 casted to CheckState causing InvalidCastExceptions.
2685 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2687 * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior
2688 to not depend on the item being clicked.
2690 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2692 * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no
2693 longer throws a NotImplementedException.
2695 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2697 * DataGridView.cs: Set EditingControlFormattedValue when preparing an
2698 IDataGridViewEditingControl for editing.
2700 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2702 * DataGridViewComboBoxCell.cs: Implement data binding support.
2704 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2706 * DataGridView.cs: Use the CurrencyManager to update the data source
2707 binding position instead of casting the data sourcde to BindingSource.
2708 This enables position updating for other type of data sources.
2710 2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
2712 * ComboBox.cs: Update the SelectedIndex before updating the Text
2713 in OnDisplayMemberChanged.
2715 2008-12-07 Ivan N. Zlatev <contact@i-nz.net>
2717 * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
2720 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2722 * DataGridView.cs: Sorting fixes:
2723 - Be strict when sorting is enabled.
2724 - If there is a data source delegate the sorting request.
2726 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2728 * Binding.cs: When converting the data also try with the destination
2729 type typeconverter. This indirectly adds support for Nullable types
2730 in our databinding layer.
2732 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2734 * DataGridView.cs: When cell editing is finished focus back the
2735 DataGridView. Fixes keyboard navigation post-editing.
2737 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2739 * DataGridView.cs: Fix the cell editing by delaying the currentCell
2740 setting to after EndEdit is called for the old cell.
2742 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2744 * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
2746 2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
2748 * XplatUIX11.cs: Send WM_HELP only to the focused window.
2750 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2752 * CurrencyManager.cs: Fix exceptions when resetting the data source
2753 for the same time (e.g. in ComboBox):
2754 - Do not set the list position if we are still transferring data
2755 - When resetting the list firstly push the data then update the
2757 * Binding.cs: Check BindingManager.Position == -1 instead of
2758 BindingManager.Current == null in order to avoid unexpected
2761 2008-12-05 Brad Taylor <brad@getcoded.net>
2763 * MonthCalendar.cs: Add UIA specific events so that we can know when
2764 the selection changes, and when MaxSelectedCount changes.
2766 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2768 * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not
2771 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2773 * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2774 to the control being drawn for the first time by:
2775 - Implement DisplayedRowsCount to not rely on the control being
2776 already painted. Also added support for the partial row flag.
2777 - Fix scrolling to take into account partial rows and scroll to
2781 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2783 * DataGridView.cs: Do not reset the CurrentCell when the handle is
2784 created if the user has already set it.
2786 2008-12-05 Ivan N. Zlatev <contact@i-nz.net>
2788 * DataGridView.cs: Fix CurrentCell to actually select the cell.
2790 2008-12-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2792 * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2793 text and then let the underneath users of IDataObject interpret and
2794 parse by themselves.
2797 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2799 * DataGridView.cs: Fix my previous commit to actually update what it
2802 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2804 * DataGridView.cs: Ensure that when a row is removed the all the
2805 current row/column/cell get updated. Fixes multiple exceptions.
2807 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2809 * DataGridView.cs: Fix scrolling to the current cell when key navigation
2813 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2815 * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2816 * DataGridViewCell.cs: Set the cell as selected prior to setting the
2818 [Fixes issue 1 in bug #443560]
2820 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2822 * DataGridView.cs: Invalidate after the current row/column seletion
2826 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2828 * DataGridView.cs: Refresh the data if the data list is reset, etc.
2830 2008-12-01 Ivan N. Zlatev <contact@i-nz.net>
2832 * DataGridView.cs: Handle datasource state changes:
2833 - IBindingList - list changes
2834 - BindingSource - list changed and datasource changes
2836 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2838 * DataGridView.cs: Select the first cell when databound.
2839 Visually select when CurrentCell is set.
2841 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2843 * DataGridView.cs: Set the current cell before raising CellClick.
2845 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2847 * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
2848 CellLeave events as this is already done in SetCurrentCellAddressCore.
2850 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2852 * DataGridView.cs: Set the minimum size for the columns to be the
2853 width of their header, so that the columns don't get squashed
2856 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2858 * DataGridView.cs: After the data is bound PerformLayout, so that
2859 the columns get autosized.
2861 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2863 * DataGridView.cs: Move all currentCell setting code into
2864 one central place - SetCurrentCellAddressCore. That way the
2865 current cell is properly updated when programatically set.
2866 Fire RowEnter/Leave events.
2868 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2870 * DataGridView.cs: Update the CurrencyManager.Position, so that
2871 when a BindingSource is used BindingSource.Current will be correct.
2873 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2875 * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2876 - No caption text is drawn because Color.Empty is used.
2877 - Fix top and height off by 1.
2879 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2881 * DataGridViewRow.cs: Implement DataBoundItem.
2883 2008-11-30 Ivan N. Zlatev <contact@i-nz.net>
2885 * BindingSource.cs: Return null for Current if there is no data present.
2887 2008-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889 * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2890 menus using the arrow keys. Also when handling the left arrow key, don't
2891 assign the current menu to the parent one, if the parent is null.
2894 2008-11-24 Everaldo Canuto <ecanuto@novell.com>
2896 * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2899 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2902 * ScrollableControl.cs: Simplify the code to manually set the size of
2903 the thum area, avoiding duplication of code, and also preserving the
2904 right value for different code paths - this can happen when size
2905 changes are made to the scrollbar after setting LargeChange, Maximum
2906 or related properties for the ScrollBar.
2908 2008-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2910 * ScrollableControl.cs: When scrolling, don't invalidate the entire
2911 area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2912 what .Net does: copy the visible area, and only invalidate the part of
2913 the area that wasn't visible before scrolling.
2916 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2918 * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2919 can clear ourselves when it is raised, we don't have a newrowindex
2920 if we don't have any columns.
2921 * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2922 re-index after each delete so the NewRow will have the correct index.
2925 2008-11-24 Jonathan Pobst <monkey@jpobst.com>
2927 * Form.cs: Don't change min/max size if it is empty.
2930 2008-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2933 * ScrollableControl.cs: When the manual thumb size is used, the
2934 maximum allowed value should depend on that thumb size, instead of
2935 LargeChange (using the maximum - LargeChange + 1 value). But
2936 LargeChange should be used normally when incrementing/decrementing.
2937 Fixes the remaining part of #441546.
2939 2008-11-23 Andreia Gaita <avidigal@novell.com>
2941 * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream
2942 until an about:blank has been loaded (according to spec). Fix
2943 ScrollbarsEnabled to set when a document is loaded (since we use js
2944 for it). Fix url so it reflects the current loading document and not
2945 the previous one. Send StatusChanged events.
2947 2008-11-23 Andreia Gaita <avidigal@novell.com>
2949 * Application.cs: If a message comes in for an embedded control
2950 (like webbrowser) when we're capturing the keyboard, release the
2951 capture and continue.
2954 2008-11-22 Andreia Gaita <avidigal@novell.com>
2956 * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2958 2008-11-21 Andreia Gaita <avidigal@novell.com>
2960 * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2962 2008-11-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2965 * ScrollableControl.cs: Set manually the thumb size for the
2966 ScrollableControl scrollbars, so any further changes to the underneath
2967 scrollbars respect the original size.
2968 Fixes part of #441546.
2970 2008-11-21 Geoff Norton <gnorton@novell.com>
2972 * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2973 PlatformID.MacOSX now exists.
2975 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2977 * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2978 Having something internal abstract isn't very nice for people who want
2979 to inherit from this class.
2981 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2983 * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2984 invalid value. Just return null for the Image, and use the ImageList's
2985 ImageSize for calculations.
2987 2008-11-20 Jonathan Pobst <monkey@jpobst.com>
2989 * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2990 through DroppedDown so the proper events get called and state gets reset.
2993 2008-11-18 Jonathan Pobst <monkey@jpobst.com>
2995 * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2996 the collection is modified.
2998 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
3000 * DomainUpDown.cs: Remove string cache and reflection optimizations. They
3001 aren't always correct, and fixing them for every case is not worth the
3002 negligible benefit they provide.
3005 2008-11-17 Jonathan Pobst <monkey@jpobst.com>
3007 * DataGridView.cs: We should never add actual cells to the RowTemplate.
3008 Internally, use RowTemplateFull to give us a new row with cells.
3009 * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
3010 * DataGridViewRowCollection.cs: Use RowTemplateFull.
3012 2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3014 * XplatUIX11.cs: Forms without borders should be able to change its
3015 size - specially they should be able to be maximized, adding the
3016 respective MotifFunctions.Resize bit when setting window properties as
3017 well as *not* marking the Hwnd as size fixed.
3020 2008-11-12 Jonathan Pobst <monkey@jpobst.com>
3022 * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
3026 2008-11-11 Andrés G. Aragoneses <aaragoneses@novell.com>
3028 * Application.cs: After UIA assembly is successfully loaded,
3029 dump any exception that happens on initialization to stderr.
3031 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
3033 * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
3034 * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes. Raise
3035 AutoSizeColumnModeChanged.
3038 2008-11-11 Jonathan Pobst <monkey@jpobst.com>
3040 * DataGridViewRowCollection.cs: Guard against the user deleting the
3041 NewRow. Add an internal delete so we can still delete it.
3042 * DataGridView.cs: Use the new internal delete when deleting the NewRow.
3045 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
3047 * TextControl.cs: Add some order of operation to our math so
3048 we don't end up with a negative height for our invalidate rect.
3051 2008-11-10 Jonathan Pobst <monkey@jpobst.com>
3053 * Control.cs: When our enabled changes, notify our implicit children
3054 controls as well as our regular controls.
3057 2008-11-08 Andreia Gaita <shana@jitted.com>
3059 * HtmlElement.cs: Small code cleanup
3061 2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3063 * BindingNavigator.cs: MoveFirstItem should be enabled only if
3064 position is larger than 0, not only different than 0. Also Position
3065 and Count items should be enabled if the BindingSource is non null and
3069 2008-11-05 Jonathan Pobst <monkey@jpobst.com>
3071 * TabControl.cs: Don't raise SelectedIndexChanged until we have
3072 actually modified the tab collection, so TabCount will be correct.
3075 2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
3077 * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
3078 NonSerialized to fix serialization of ListViewItem.
3080 2008-11-04 Mike Gorse <mgorse@novell.com>
3082 * ListView.cs: Call OnUIAFocusedItemChanged after completing the
3083 focus change, and always call in SetFocusedItem.
3084 * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
3086 2008-11-04 Jonathan Pobst <monkey@jpobst.com>
3088 * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
3089 mode. Based on a patch by John Mortlock.
3092 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3094 * ListView.cs: Use the UsingGroups property where needed, instead of
3095 duplicating the check in other places.
3097 2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3099 * ListView.cs: When calculating layout, refresh the count of items
3100 belonging to the default item, insteas of doing it only one time. This
3101 was already working fine for icon views, not not for details.
3104 2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3108 * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
3109 to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
3113 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3115 * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
3117 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3119 * ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
3120 #441280, patch by Mike Gorse <mgorse@novell.com>.
3122 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
3124 * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
3125 if there is no scrollbar.
3128 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
3130 * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
3131 patch from Andy Hume that fixes many issues with ProgressBar.
3134 2008-11-03 Jonathan Pobst <monkey@jpobst.com>
3136 * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
3139 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3143 * NumericUpDown.cs: Internal events added to UpDownBase:
3144 UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
3147 2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
3149 * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
3151 2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3154 * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
3155 Application.EnableVisualStyles hasn't been called.
3156 Fixes part of #437933.
3158 2008-10-31 Andreia Gaita <shana@jitted.com>
3160 * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
3161 if the container is not focused already, we need to specifically set
3162 focus to the first available control, or to the form itself if there
3165 2008-10-31 Andreia Gaita <shana@jitted.com>
3167 activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
3168 WM_ACTIVATE have been processed before returning, so it is guaranteed that
3169 once it returns and the form is visible, it is actually on the screen on X11
3171 * ContainerControl.cs: Only send focus to the control if the top container
3172 is already focused. This is so that, when a form is first shown, all
3173 the enter/leave events are done first before any focus stuff comes in.
3174 If a control has no top container, there's an extra check on Control.Focus
3175 to make sure it gets focused in this particular case.
3177 * Control.cs: Force focus if the control is active but did not receive
3178 focus after being set as active.
3180 * MdiClient.cs: Dispose the form when closing
3182 * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
3183 doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
3184 if the window is a top Form.
3185 Reset all hwnd properties when the window has been destroyed so that
3186 we don't land in any codepaths that might try to do something with it.
3187 Added a bunch of debugging messages. If TRACE is defined, all X calls
3188 are logged through DebugHelper. Set a few missing EntryPoint attributes.
3190 2008-10-29 Mario Carrion <mcarrion@novell.com>
3192 * ListViewItem.cs: Control enabled to support Accessibility:
3193 - Internal events: UIATextChanged, UIASubItemTextChanged.
3194 - Internal event UIATextChanged in ListViewSubItem that triggers
3195 UIASubItemTextChanged.
3196 * ListView.cs: Control enabled to support Accessibility:
3197 - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
3198 UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
3199 - Internal event UIACollectionChanged in ColumnHeaderCollection.
3200 - Internal event UIACollectionChanged in ListViewItemCollection.
3201 - Internal properties: UIAHeaderControl, UIAColumns, UIARows,
3202 UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
3203 - Internal methods: UIAGetHeaderBounds.
3205 2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3207 * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
3208 the event from the respective scrollbars.
3211 2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3213 * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
3214 textbox to know whether any navigation key will be handled or not. If
3215 not, don't pass the message to the textbox, and use it here instead.
3216 * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
3217 is more precise- than the previous AutoCompleteMatches one.
3218 This should the keyboard navigation in ComboBox when using auto
3221 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
3223 * ComboBox.cs: Fix item height calculation based off Font to match .Net.
3226 2008-10-24 Jonathan Pobst <monkey@jpobst.com>
3228 * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
3229 overridden methods will get called.
3230 * ToolStripItem.cs: Raise Click before MouseUp.
3231 * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
3232 the item's location into account.
3235 2008-10-24 Neville Gao <nevillegao@gmail.com>
3237 * NumericUpDown.cs: Control enabled to support accessibility.
3238 [Fiexes bug #438135]
3240 2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3242 * TextBox.cs: Check that we actually have items no navigate, select
3243 text when pressing enter, as well as handle direction keys only if
3244 mode is different to Suggest or the suggest listbox is visible.
3246 2008-10-23 Andreia Gaita <shana@jitted.com>
3248 * WebBrowser.cs: Use the new ContentStream property to retrieve
3249 a stream encoded from the document content
3251 2008-10-23 Andreia Gaita <shana@jitted.com>
3255 HtmlWindow.cs: Fix GetHashcode for null objects
3257 2008-10-22 Andreia Gaita <shana@jitted.com>
3261 HtmlWindow.cs: Fix equality operators (fixes #428173)
3263 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
3265 * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
3266 mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
3269 2008-10-21 Jonathan Pobst <monkey@jpobst.com>
3271 * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
3272 same item with the mouse as was already selected.
3275 2008-10-21 Brad Taylor <brad@getcoded.net>
3277 * TextControl.cs: Break out code to get the visible range into
3278 GetVisibleLineIndexes to be used in UIA code.
3282 * TextBoxBase.cs: Add comments indicating that the method or property
3283 is used via reflection from UIA code.
3285 2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3287 * ListViewItem.cs: Match .net serialization.
3288 Fixes remaining part of #417520.
3290 2008-10-20 Jonathan Pobst <monkey@jpobst.com>
3292 * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
3294 2008-10-20 Mario Carrion <mcarrion@novell.com>
3296 * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
3297 added: UIAToolTipRectangle.
3299 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3301 * ListViewItem.cs: When deserializing enumerate over the data, instead
3302 of accessing the data directly. This way we handle much better the
3303 cases were we lack information.
3306 2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3308 * ListView.cs: When removing an item from a main ListView.Items
3309 collection (and not a ListViewGroupCollection.Items one), remove it
3310 also from the group, as .net does. Patch by Mario Carrion (mario at
3314 2008-10-19 Andreia Gaita <avidigal@novell.com>
3316 * Form.cs: Forms that get closed without a handle being created are
3317 disposed in 2.0. Fixes failing FormTest.FormClose and
3318 FormTest.FormClose2 on windows.
3320 2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3322 * ListView.cs: If both scrollbars are visible, the vertical one
3323 shouldn't extend too far down.
3326 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
3328 * DataGridView.cs: Add the ability to resize columns and rows with
3329 the mouse. Also support double-clicking to autoresize.
3330 * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
3331 * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
3332 * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
3333 isn't shown on autoresize.
3336 2008-10-17 Mario Carrion <mcarrion@novell.com>
3338 * ComboBox.cs: Remove UIAListbox.
3340 2008-10-17 Mario Carrion <mcarrion@novell.com>
3342 * ComboBox.cs, ListBox.cs: Using added/removed item in
3343 OnUIACollectionChangedEvent instead of index.
3345 2008-10-17 Jonathan Pobst <monkey@jpobst.com>
3347 * ComboBox.cs: When we are sorting the items, if the item's type
3348 doesn't support IComparer, use a default one that compares based
3349 off the item's visible text.
3352 2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3354 * ColumnHeader.cs: Invalidate ListView.header_control when setting
3355 ImageIndex/ImageKey.
3356 * ThemeWin32Classic.cs: When drawing the column header, draw a image
3357 for the column if available, and make the required adjustments to the
3361 2008-10-17 Neville Gao <nevillegao@gmail.com>
3363 * StatusBarPanel.cs: Control enabled to support accessibility.
3366 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3368 * DataGridView.cs: When a user begins an edit in the 'new row',
3369 make that a real row, and add a new 'new row'. If the user
3370 cancels the edit, remove the new 'new row' and reset everything.
3371 Also, ensure UserAddedRow and UserRemovedRow events are raised.
3374 2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
3376 * TableLayoutSettings.cs: Fix NREs when deserializing and
3377 panel is not yet set.
3380 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3382 * DataGridView.cs: Invalidate after deleting a row.
3384 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3386 * DataGridView.cs: Handle Enter and Escape keys.
3387 - Move call to EndEdit to MoveCurrentCell.
3388 - Remove call to EndEdit from navigation key routines.
3389 - Fire CellLeave and CellEnter.
3391 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3393 * DataGridViewCell.cs: Some fixes to the new cell border
3396 2008-10-16 Jonathan Pobst <monkey@jpobst.com>
3398 * ThemeEngine.cs: Enable visualstyles rendering by default
3399 (on platforms that support it).
3401 2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
3403 * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
3404 MainForm.OnLoad has completed unless DoEvents is forced.
3407 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
3409 * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
3411 2008-10-15 Jonathan Pobst <monkey@jpobst.com>
3413 * Control.cs: Make our implementation of DrawToBitmap better
3414 match WmPaint. [Fixes bug #435579]
3416 2008-10-14 Andreia Gaita <avidigal@novell.com>
3418 * WebBrowser.cs: Use DocumentElement as the document's root for the
3419 whole content. Should fix DocumentText and DocumentStream problems.
3421 2008-10-14 Jonathan Pobst <monkey@jpobst.com>
3423 * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
3424 these will get called in DGV.OnCollectionChanged. Make sure
3425 OnCollectionChanged always gets called.
3426 * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
3427 from every row. Call this in OnCollectionChanged.
3430 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3432 * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
3433 textbox if auto complete is used, since we need to navigate over it.
3434 And in this case don't pass this messages to the base impl. Also hide
3435 the auto complete list box when displaying the drop down listbox.
3436 * TextBox.cs: new internal members to expose some of the auto complete
3437 functionality to combobox.
3439 2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
3441 * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
3442 MainForm.OnLoad has completed.
3445 2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3447 * TextBox.cs: Apply an old-approved patch that adds autocomplete's
3448 Append support to this controls. We need it to apply new patches.
3450 2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3452 * Control.cs: When updating z order in child controls, send to back
3453 the implicit controls. Also, do it explicitly, instead of making
3454 GetAllControls return the implicit controls in a specific order, and
3455 thus avoid depending on that, which could change in the future.
3458 2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3460 * X11Dnd.cs: Try to call Application.DoEvents before returning in a
3461 call to StartDrag, since we must fire DragDrop/DragLeave *before*
3462 that, as .net does - instead of firing DragDrop/DragLeave *after* the
3463 call to Control.DoDragDrop has completed. This is needed since at the
3464 point of returning, we have sent related dnd ClientMessages, but we
3465 need to wait for them to fire the wmf respective ones.
3468 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
3470 * LinkLabel.cs: Recreate link pieces when change Padding.
3472 2008-10-09 Everaldo Canuto <ecanuto@novell.com>
3474 * LinkLabel.cs: Take Padding into account when recreate link pieces.
3477 2008-10-08 Everaldo Canuto <ecanuto@novell.com>
3479 * Control.cs: Implement internal property PaddingClientRectangle, it will be
3480 useful for drawing controls that must take care about Padding property.
3482 2008-10-08 Jonathan Pobst <monkey@jpobst.com>
3484 * BindingSource.cs: Make item_type internal so we can access it in DGV.
3485 * DataGridView.cs: Add support for autogenerating columns from a
3488 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3490 * DataGridView.cs: Comment out an exception that is getting thrown
3491 too often currently.
3493 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3495 * DataGridView.cs: Always rebind to the datasource, as things may
3496 have changed in it that we aren't capturing yet.
3498 2008-10-07 Jonathan Pobst <monkey@jpobst.com>
3500 * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
3501 drawing mode. If we are top aligned, give ourselves some top padding.
3503 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3505 * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
3506 events on the control under the mouse pointer, instead of firing them
3507 on the window generating the dnd operation. To achieve this re-use the
3508 code used to get the window under the pointer when getting MouseMove
3512 2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3514 * X11Dnd.cs: Don't check that that the window sending the dnd events
3515 is the owner of the selection. Although Gtk+ sets it that way, it's
3516 not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
3517 So, just as Gtk+ does, we set our window sending the dnd events as the
3518 owner of the selection, but don't check it when receiving them. This
3519 should fix interoperability with Qt/Kde.
3522 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
3524 * DataGridView.cs: Make sure we take the vertical scrollbar into
3525 account when autosizing columns.
3527 2008-10-06 Jonathan Pobst <monkey@jpobst.com>
3529 * DataGridView.cs: Handle sorting datetimes.
3531 2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
3533 * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
3534 TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
3535 compilation warnings.
3537 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3539 * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
3540 ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
3541 ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
3542 ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
3543 compilation warnings.
3545 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3547 * DataGridView.cs, DataGridViewCell.cs,
3548 DataGridViewCellValidatingEventArgs.cs,
3549 DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
3550 DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3551 DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
3553 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3555 * HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
3556 Cleanup compilation warnings.
3558 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3560 * XplatUIWin32.cs: Cleanup compilation warnings.
3562 2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
3564 * PropertyGrid.cs: Cleanup compilation warnings.
3566 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3568 * DataGridViewRow.cs: Only clear the row background if we
3569 are going to paint a new background.
3571 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3573 * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
3574 DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
3575 use PaintBorder instead.
3577 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3579 * DataGridView.cs: When CellBorderStyle is set, update the
3580 AdvancedCellBorderStyle to match.
3582 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3584 * DataGridViewCell.cs: Add helper methods to convert Alignment
3585 to TextFormatFlags and align rectangles.
3586 * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
3587 * DataGridViewImageCell.cs: Use Alignment when painting the image.
3589 2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
3591 * ToolTip.cs: Display tooltips only for controls on the active form.
3594 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3596 * DataGridView.cs: Make OnCellValueNeeded internal.
3597 * DataGridViewCell.cs: Raise the CellValueNeeded event so the
3598 user can supply their own value if they choose.
3600 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3602 * DataGridViewColumnHeaderCell.cs: Create a new style object
3603 so the DefaultCellStyle doesn't get changed.
3605 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3607 * ToolStripItem.cs: Check to make sure the owner is actually
3608 changing in InternalOwner before doing any work. Fixes some
3611 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3613 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
3614 * DataGridView.cs: Use a column header's inherited style instead
3615 of just using the default.
3617 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3619 * SplitContainer.cs: Raise SplitterMoved when the splitter is
3622 2008-10-01 Mario Carrion <mcarrion@novell.com>
3624 * ScrollBar.cs: Internal property added: UIAThumbPosition.
3626 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3628 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
3630 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3632 * ToolStripItem.cs: When the user sets Owner, we need to remove
3633 it from its previous owner and then add it to the new owner's
3634 item collection. Also, create InternalOwner, so we can set the owner
3635 that doesn't do this new stuff.
3636 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
3638 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3640 * ToolStripItem.cs: When our parent changes, recalculate our text
3641 size, since we may be getting our Font from our parent. When our
3642 owner's Font changes, recalculate ourselves as we may be using
3645 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
3647 * MenuAPI.cs: Select the first option of a popup when opening the popup via
3648 return key. [Fixes bug #413792].
3650 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3652 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
3653 ambient properties. (Get their value from their parents if
3654 values haven't been set.)
3656 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3658 * ToolStripSystemRenderer.cs: Call overridden methods' bases
3659 after our logic, so users can do painting by handling the events.
3660 Currently, we draw over any user painting.
3662 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
3664 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
3665 after our logic, so users can do painting by handling the events.
3666 Currently, we draw over any user painting.
3668 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
3670 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
3672 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
3674 * TreeNode.cs, TreeView.cs: Move logic that determines the node
3675 image to draw to TreeNode. Give Index/Keys put on the node
3676 precedence over the global one for the TreeView.
3678 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
3680 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
3682 2008-09-29 Mario Carrion <mcarrion@novell.com>
3684 * ListBox.cs: Index fixed.
3686 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688 * TabControl.cs: When expanding the tab -because it's selected now-,
3689 using Right alignment, instead of adding some selected delta value to
3690 the X origin, substract it, so it gets a location adjacent to the panel,
3691 instead of be more separated.
3694 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
3696 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
3699 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3701 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
3702 as well as the other static fields, to avoid using their previous
3703 values my mistake when handling the dnd events. This should avoid
3704 handling any status event after the drop has been finalized/cancelled.
3706 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3708 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
3709 operation, instead of waiting until we get any movement - this will
3710 help us to have the data available in case no movement was detected
3711 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
3712 Finally add a windows.forms-only fallback to fire the mentioned events
3713 if no movement at all was detected, just like .net does.
3716 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
3718 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
3719 return early if the text is empty because the icon doesn't get
3720 drawn then. [Fixes bug #428113]
3722 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3724 * FileDialog.cs: Implement basic support for sorting by columns in
3725 Details view. Patch by Eric Petit.
3728 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3730 * ThemeWin32Classis.cs: When drawing gridlines take into account the
3731 case where ListView.ItemSize hasn't been computed, and provide a
3732 fallback as well. This prevents a division by 0.
3734 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3736 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
3737 correctly draw tooltip backgrounds.
3739 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3741 * ImageList.cs: Change CopyTo implementation to ensure clones are
3742 created of our images.
3745 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
3747 * Control.cs: When setting fonts, we need to ensure we change our
3748 reference to the new font object, even if it represents the same
3749 font as before. If we don't, the original font can get disposed
3750 and we will still try to use it.
3753 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3755 * FileDialog.cs: Take into account Tile view when selecting the view
3758 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3760 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3761 the item bounds, since we can't iterate over them in virtual mode.
3762 Also fix wrong calculation of the gridlines when using scrolling.
3765 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3767 * XplatUIX11.cs: When handling EnterNotify events, take into account
3768 both the public and implicit controls when trying to detect the
3769 grab/ungrab process. This should fix ListView selection in Details
3772 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3774 * TreeView.cs: Redraw the whole node area when the selected node changes.
3775 Things like state images were not getting redrawn because the invalid
3776 rectangle was too small.
3779 2008-09-23 Mario Carrion <mcarrion@novell.com>
3781 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3784 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3786 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3789 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3791 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3794 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3796 * StatusBar.cs: Add tooltip support.
3799 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3801 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3802 alignments of sub items in Details view. Patch by John Mortlock (johnm at
3803 hlaustralia.com.au).
3806 2008-09-23 Neville Gao <nevillegao@gmail.com>
3808 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3811 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
3813 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3816 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3818 * ListView.cs: Don't do anything when EnsureVisible is called inside a
3819 BeginUpdate/EndUpdate block.
3822 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3824 * ListViewItem.cs: The semantics for the public .ctor of
3825 ListViewSubItemCollection need us to already have a Text value for the
3826 item, which in our implementation have as available *after* adding the
3827 first sub item. So create an internal .ctor that satisfies our needs
3828 and let the public .ctor have the same semantics as .net.
3831 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3833 * ListControl.cs: Changes in Formatting related values should call
3834 RefreshItems, as .net does.
3836 * ListBox.cs: In the respective overrides of RefreshItems calculate
3837 layout as well as refreshing - again, this is what .net does.
3840 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3842 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3843 since we are already doing that when we change the value of the
3844 scrollbar or force the call to ScrollWindow in the same method. This
3845 way we don't cause a Invalidate call for all the listbox bounds for
3846 methods calling UpdateTopItem with an already updated top item. This
3847 was happening specially calling EnsureVisible with already visible
3850 2008-09-18 Mike Gorse <mgorse@novell.com>
3852 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3853 XplatUIStructs.cs: Added KeyFilter
3856 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3858 * RelatedPropertyManager.cs: The properties returned by
3859 GetItemProperties should be that ones of the *actual* object returned
3860 by the property, not the property type - this is very special when the
3861 property exposes a type, but the returned object actually is a child
3862 class and implements more functionality and properties.
3864 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3866 * Binding.cs: Don't look for the property in the data source if the
3867 passed string is empty.
3869 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3871 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
3872 fix unused variable warnings.
3874 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3876 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3879 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
3882 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
3883 leads to the window manager overriding our border style and zorder.
3884 - Allow the activation of non-modal forms, which are children of a
3888 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3890 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
3891 ask the window manager to do the work instead of changing the property
3895 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3897 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3898 AddNew to fix some navigation for empty datasets. [Fixes #323053]
3900 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3902 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
3903 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3904 border and fixes some drawing issues when resize form.
3906 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
3908 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3910 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3913 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
3915 * TextBoxBase.cs: For standard textbox the scrollbars are always
3916 visible if Multiline is true.
3919 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3921 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3924 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
3926 [Fixes most od DBNull and HeadersVisible problems]
3929 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3930 returns the value that we need.
3931 - Fixed FromPixelToColumn method that return zero for first column and for
3932 row header cell, now it returns -1 for row header cell.
3933 - Fixed HitTest to check row header cell in column header area, it now
3934 returns HitTestType.None. [Fixes #322864]
3935 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3936 checks for RowHeadersVisible and other things.
3937 - If an exception occurs when setting CurrentCell and user type 'yes' in
3938 message dialog, invalidade current and new cell and set setting_current_cell
3939 to false to prevent future errors. [Partially fixes #323050]
3941 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3942 value (SetColumnValueAtRow), it must be done by grid to properly show
3943 messages. [Fixes #323050]
3945 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3946 better draw column and row header. Also dont draw anything when column
3947 headers is not visible.
3949 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3951 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3954 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3956 * TreeView.cs: Don't start editing a node on right click, only
3959 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3961 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3962 disabled over a year ago.
3963 * Form.cs: Wrap calling Load in a try/catch because it can happen
3964 before the catch-all one in NativeWindow.
3967 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3969 * ToolStripDropDownMenu.cs: Calculate the connected area better
3970 to take into account when the drop down is not directly under the
3972 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3974 2008-09-16 Mario Carrion <mcarrion@novell.com>
3976 * ScrollBar.cs: New event added: UIAValueChanged, generated when
3977 LargeChange, SmallChange, Maximum or Minimum values are changed.
3980 2008-09-16 Mario Carrion <mcarrion@novell.com>
3982 * ErrorProvider.cs: Component enabled to support accessibility.
3983 * Application.cs: Updated to Initialize UIA in ErrorProvider.
3986 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3988 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3989 so we don't highlight on first focus.
3992 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
3994 * TextControl.cs: Correctly calculate the height of the area we
3995 need to invalidate when we have started scrolling and viewport_y
3996 is used. [Fixes bug #387608]
3998 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
4000 * TextControl.cs: When getting the SelectedText, don't add in
4001 NewLine characters, as they are already contained in the lines.
4004 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
4006 * TextBoxBase.cs: Replace the buggy Lines setter with one that
4007 simply concats the lines and send it to the Text setter.
4008 [Fixes issue #2 and #3 of 388115]
4010 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4012 * Binding.cs: The default value of DataSourceNullValue should be
4013 Convert.DBNull actually. Also, the NullValue should only be used *if*
4014 itself is not null, and use the null/Convert.DBNull value instead.
4016 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
4018 * TextControl.cs: Add a method to convert a string newline to the
4020 * TextBoxBase.cs: When the user hits enter, insert a native newline.
4021 [Fixes part 1 of bug #388115]
4023 2008-09-15 Mario Carrion <mcarrion@novell.com>
4025 * ToolTip.cs: UnPopup event set to internal to match public API.
4027 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
4029 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
4030 have to remove the Ctrl in order for the focus moving code to kick in.
4033 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
4035 * CheckedListBox.cs: Return the real item index from Add. It may not be
4036 the last item if the list is sorted. The user can change the NewValue in
4037 the ItemCheck event, we need to use that value if so.
4038 * ListBox.cs: Return the real item index from a sorted Add.
4041 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
4043 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
4044 happen that the icons from the theme is missing or the particular size
4048 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4050 * Binding.cs: When assigning null or DBNull depending on value/ref type,
4051 use IsValueType instead to get the precise desired value.
4054 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4056 * TreeNodeCollection.cs: When adding a new node to an opened node,
4057 we have to invalidate everything below the parent node because
4058 every node scoots down and we have to repaint them.
4061 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4063 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
4064 property into account when drawing.
4067 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4069 * ListBox.cs: When calling Items.Clear(), call
4070 SelectedIndexCollection.ClearCore instead of normal Clear method, to
4071 not fire any Selected*Changed event - this is done to match .net and
4072 don't have invalid values when changing the DataSourceProperty.
4075 2008-09-12 Mario Carrion <mcarrion@novell.com>
4077 * HelpProvider.cs: Control enabled to support accessibility.
4078 * Application.cs: Updated to Initialize UIA in HelpProvider.
4081 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4083 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
4084 make the dialog TopMost as well.
4087 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4089 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
4090 clipboard data better.
4093 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4095 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
4096 TextChanged and SelectionChanged events fire in the same order as .Net.
4099 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4101 * DataGridView.cs: When sorting a column, if it only contains numbers,
4102 do a numeric sort instead of a string sort.
4105 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
4107 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
4108 against NRE's when the settings have a null panel.
4109 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
4113 2008-09-11 Mario Carrion <mcarrion@novell.com>
4115 * ToolTip.cs: Control enabled to support accessibility.
4116 * Application.cs: Updated to Initialize UIA in ToolTip.
4119 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4121 * Control.cs: Make the custom Enumerator internal to fix build.
4123 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4125 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
4126 already in edit mode, begin edit mode. Generally edit mode isn't
4127 started until the second click, but CheckBoxes are special.
4129 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4131 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
4132 since that can be set to anything. Always add them to the Control's
4133 parent. [Fixes bug #416058]
4135 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4137 * ListView.cs: Use a custom enumerator for ListViewItemCollection
4138 so items can be deleted in a foreach.
4141 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4143 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
4144 Store the user set explicit height so that the row can be AutoSized
4145 and then when AutoSize is turned off, it can get its original size back.
4146 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
4147 duplicating the logic. When setting AutoSizeRowsMode to None, reset
4148 rows' heights back to their explicit values.
4151 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4153 * DateTimePicker.cs: When getting focus, select the checkbox if we are
4154 already showing it. Also, don't change its value when pressing space
4155 if the checkbox is not visible (ShowCheckBox as false). Finally, the
4156 checkbox should remain selected as long as Checked is false, and the
4157 other parts are disabled.
4160 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
4162 * MessageBox.cs: Handle shortcut keys to dialog buttons.
4165 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4167 * Binding.cs: When the value retrieved from the control property is
4168 null, don't return Convert.DBNull for Nullable instances, since they
4169 can *actually* get a null value.
4172 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
4174 * Control.cs: Add an internal field to force doublebuffering regardless
4175 of what the public mechanisms are set to. This is because MS's native
4176 controls are doublebuffered even though their .Net bits are set to false.
4177 * ProgressBar.cs: Set force_double_buffer to true.
4180 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
4182 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
4184 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
4185 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
4186 without EditingControls, paint background selection for types without
4187 EditingControls, reset the EditingCellValueChanged flag when the
4188 cell's value is committed.
4189 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
4190 have EditingControls, remove a double call to a cell's OnContentClickInternal,
4191 don't do cell changing logic in OnMouseDown if the cell didn't change.
4194 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4196 * DateTimePicker.cs: Fix the edition of am/pm specifier.
4198 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
4200 * TextControl.cs: Add "&" to the list of valid characters in a URL.
4202 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4204 * DateTimePicker.cs: Before incrementing or decrementing any part in
4205 the textbox, end any current edit. Also when ending the current edit
4206 use the editing_part_index field instead of the current selected
4207 value, since they can be out of synch, and we really need to work on
4208 the *real* current edit part. Finally when PartData.Selected changes,
4209 always try to end any ongoing edit.
4210 This should fix some small errors handling mouse navigation and
4211 increase/decrease operations.
4213 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4215 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
4216 respectively) should handled different, since the 12 hours format
4217 needs the value typed by the user to be adjusted depending on the
4218 a.m/p.m value, so it is preserved, and only changed when the value
4219 reaches the 12 value (when it changes from a.m to p.m).
4220 Fixes part of #416555.
4222 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4224 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
4225 * ToolStripDropDownItem.cs: Don't fire events and such again if
4226 ShowDropDown is called on an already dropped down item.
4227 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
4228 subitems, the user may add some in the DropDownOpening event.
4231 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4233 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
4236 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
4238 * MdiClient.cs: When looking for menustrips on a child form to merge,
4239 look inside ToolStripContainers.
4242 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
4244 * ErrorProvider.cs: Unbreak my previous commit.
4246 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
4248 * ErrorProvider.cs: Icon should always be 16x16.
4251 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
4253 * GridEntry.cs: Invalidate the child items cache when the property
4256 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
4258 * GridEntry.cs, PropertyGridView.cs:
4259 - Update the ReadOnly detection and rendering to finally hopefully
4260 match the one of MSFT.
4261 - Niceify and move the debug CWLS.
4264 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4266 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
4267 since we are already calling Invalidate for the entire control when
4268 needed - and call Redraw() when size changes, since we need to paint
4269 there by ourselved and not anymore from the mentioned method.
4270 This should improve the layout process. Also clean some not needed calls
4273 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
4275 * MenuAPI.cs: Add a null check to the Alt-F4 code.
4278 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
4280 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
4283 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
4285 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
4286 PropertyGridView.sc: Implement lazy/delayed propertygrid population
4287 on item expansion. Improves performance and fixes bug #417955.
4290 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
4292 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
4295 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4297 * TextControl.cs: Add "_" to the list of valid characters in a URL.
4300 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4302 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
4306 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4308 * FontDialog.cs: When storing our font size from the starting font,
4309 use SizeInPoints instead of Size in case Size is a different unit
4313 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
4315 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
4316 don't use it for anything else, check if a directory is highlighted.
4317 If it is, navigate into it.
4320 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4322 * Binding.cs: When acquiring a BindingManagerBase for the first time,
4323 check that the specified property actually exists in the data source,
4324 and throw an ArgumentException if that's not the case - this is only
4325 done for this scenario, since for later cases (such Position changes)
4326 we throw different exceptions (match .Net).
4328 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
4330 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
4331 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
4332 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
4333 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
4334 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
4335 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
4339 2008-09-03 Neville Gao <nevillegao@gmail.com>
4341 * StatusBar.cs: Control enabled to support accessibility.
4344 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4346 * Binding.cs: When connecting the event handler for the "Changed"
4347 event for the property, only do it for PropertyManager, and not for
4348 CurrencyManager - this is exactly what does .Net, totally ignoring any
4349 change in the property of the elements of a list.
4352 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
4354 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
4355 to Windows when creating a window, as we fake MDI stuffs.
4358 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
4360 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
4361 change takes effect.
4363 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
4365 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
4368 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
4370 * DataGridView.cs: Raise CellContentClick event.
4371 [Fixes part of bug #420351]
4373 2008-08-27 Mario Carrion <mcarrion@novell.com>
4375 * ScrollBar.cs: Control enabled to support accessibility.
4378 2008-08-27 Mario Carrion <mcarrion@novell.com>
4380 * ComboBox.cs: Control enabled to support accessibility.
4383 2008-08-27 Mario Carrion <mcarrion@novell.com>
4385 * ListBox.cs: Control enabled to support accessibility.
4388 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
4390 * ComboBox.cs: Don't suppress the TextChanged event when changing
4392 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
4396 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
4398 * ErrorProvider.cs: Fix a regression NRE when setting properties
4399 for a control before it has a parent.
4402 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4404 * Binding.cs: Use the BindingManagerBase.Current value to obtain
4405 connect the property "Changed" event, instead of using the data
4406 sources - this is useful when the property specifies actually a
4407 multiple objects path.
4408 Fixes part of #417973.
4410 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4412 * RelatedPropertyManager.cs: PropertyManager instances associated to a
4413 nested properties should return not the properties of the data source
4414 itself, but the properties of the type of a specific property in the
4415 data source - match .net.
4417 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
4419 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
4420 AddRange overloads into AddItems method, and added missing NULL check.
4421 Added extra argument check to RemoveAt for compatibility with MS.
4422 Modified IList implementation of Add, Contains, IndexOf and Remove to
4423 throw an ArgumentException if item is not an int. Modified IList.Insert
4424 to throw a NotSupportException instead of an Exception. Implemented
4426 (ObjectCollection): To avoid duplication, use AddItems method from
4427 AddRange overloads. On 1.0 profile, first perform NULL check on items
4430 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
4432 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
4435 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
4437 * X11Keyboard.cs : comment out some Console.WriteLine().
4439 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
4441 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
4442 even if premises are not filled. Also XLookupString() was not
4443 receiving correct input, which blocked precise input handling
4446 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4448 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
4449 type of delegate, instead of EventHandler - this was causing a type
4450 cast exception in all apps handling this event.
4453 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
4455 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
4456 ShowDropDown to give the user a chance to dynamically add
4457 drop down items. [Step 1 of fixing bug #417877]
4459 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4461 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
4462 had any mouse motion since the call to StartDrag, to match the dnd
4464 Fixes part of #381876.
4466 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4468 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
4469 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
4470 Also, if we are actually moving into a different window after
4471 grabbing, generate a LeaveNotify event for the previous window, since
4472 we need to fire the leave events until the grab ends, not when
4473 actually moving outside of the control.
4475 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4477 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
4478 events only for client windows was wrong - we need to compare the
4479 client window against the window receiving the EnterNotify event, not
4480 against zero (since client window is never Zero, btw).
4481 This prevents having unnecessary handling of EnterNotify events for
4482 non-client windows when a gran begins.
4484 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4486 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
4487 MouseMove/MotionNotify events at all (which should only happen after
4488 MouseUp/ButtonRelease, as .Net does).
4489 This avoids firing an extra and unnecessary MouseMove event just after
4490 every MouseDown event.
4492 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4494 * LinkLabel.cs: Always clear any previous links when LinkArea
4495 is set. [Fixes bug #410709]
4497 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4499 * ToolStripProfessionalRenderer.cs: Revert last change.
4500 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
4501 for ToolStripDropDownBackground.
4503 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
4505 * ToolStripProfessionalRenderer.cs: Use Window color for the
4506 background of dropdowns to match .Net when the user is not
4507 using the default white. [Fixes bug #418108]
4509 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
4511 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
4512 it caused timer registration twice. Fixed bug #418107.
4514 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4516 [Correction: This is the actual change to X11Dnd issue, not the
4517 previous one, which was actually a different issue.]
4519 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
4520 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4521 when the pointer is actually in motion, but only when the pointer
4522 seems to stop (as .net does).
4523 Fixes part of #381876.
4526 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
4528 * ListBox.cs: Fix CopyTo implementation.
4531 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
4533 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
4534 drawing a ComboBox's background. Fixes bad disabled rendering when
4535 the control is not at 0,0.
4538 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
4540 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
4541 ComponentModel layer, which will properly prioritize the attributes.
4542 Avoids wrong prioritization of duplicate attributes when retrieving
4543 the converter and editor.
4546 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4548 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
4549 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4550 when the pointer is actually in motion, but only when the pointer
4551 seems to stop (as .net does).
4552 Fixes part of #381876.
4554 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
4556 * GridEntry.cs: Perform stricter check for the ParentEntry's
4557 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
4561 2008-08-14 Geoff Norton <gnorton@novell.com>
4563 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
4564 Fixes #396983. Properly fix ActiveWindow trackin and do not
4565 prematurely show POPUP windows.
4567 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4569 * XplatUIX11.cs: Handle the obscured regions while scrolling using
4570 GraphicsExpose event, processing it just after we copy the scrolled
4571 area. This ensures that the next calls to ScrollWindow will copy
4572 regions already updated, and the scrolling will be smooth. Also remove
4573 the code that was trying to detect the obscured regions, since we are
4574 not using it anymore (too slow).
4576 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4578 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
4579 MultiExtended mode, by separating some logic between the ctrl/shift
4580 handling. Also ignore any MouseMove events generated together with
4581 MouseDown events - we are only interested in the real motion event.
4582 Fixes part of #414963.
4584 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
4586 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
4587 is selected. [Fixes bug #414143]
4589 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
4591 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
4592 and not the parent one (the propertyowner). Fixes the behavior of
4593 GetConverter/GetEditor.
4596 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
4598 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
4599 [Fixes part of bug #415452]
4601 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
4603 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
4604 GridEntry, not the current.
4607 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
4609 * TextBoxBase.cs: De-internalize max_length field.
4610 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
4611 share the same logic.
4614 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4616 * ListBox.cs: Selection changes made in the MouseDown handler should
4617 use the *Core versions of selection in SelectedIndices collection,
4618 since the SelectedIndexChanged/SelectedValueChanged events are fired
4619 until we get a MouseUp event, and thus we need to separate the logic
4620 from the events, as done in the keyboard navigation. Also, fire those
4621 selection events from keyboard navigation in SelectionMode.None, even
4622 if we don't have a selection, as .Net does.
4624 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
4626 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
4627 last change introduced when an item is clicked but isn't on a toolstrip.
4629 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4631 * ListBindingHelper.cs: When looking for an object's properties, check
4632 if it implements ICustomTypeDescriptor, in which case we should
4633 resolve the propertu based on its GetProperties method, not in its
4634 actual properties. This is what .Net seems to do.
4635 Fixes a UsingWebBrowser problem during initialization.
4637 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4639 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
4640 sitting on a MenuStrip.
4642 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4644 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
4645 no children with the keyboard, we need to release the keyboard capture.
4648 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
4650 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
4651 no children with the keyboard, we need to release the keyboard capture.
4654 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
4656 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
4657 the GTK+-based implementation of VisualStyles.
4658 * ThemeWin32Classic.cs: Exposed various layout values for use in the
4659 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
4660 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
4661 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
4662 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
4663 TrackBarHorizontalTrackHeight.
4665 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
4667 * TabControl.cs: Added hot style handling for the scroll buttons.
4668 right_slider_state, left_slider_state are now of type PushButtonState to
4669 allow for a hot state. Added tracking of the mouse button being held down
4670 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
4671 LeftScrollButtonArea.
4672 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
4673 TabControlGetRightScrollRect.
4675 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4677 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
4680 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4682 * Form.cs: Ensure that we reset the shown_raised flag after
4683 the form is closed, so that we raise the show events the next
4684 time the form is shown.
4687 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4689 * Form.cs: Ensure closing events are raised only once.
4692 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4694 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
4695 so that we can successfully generate the LParam in-place instead of
4696 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
4697 navigation for menus.
4699 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4701 * MenuAPI.cs: When montion don't set the keyboard navigation state to
4702 'navigating'. Fixes bug #411356.
4704 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4706 [Fixed remaining issues of #406773 (#1)]
4707 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
4709 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
4710 MainMenu (already done) and ContextMenu creation.
4712 * ContextMenu.cs: Create tracker on construction.
4714 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4716 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
4717 possible to instantiate MenuTracker without GrabControl.
4719 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4721 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
4723 * MainMenu.cs: Set GrabControl on SetForm using current form.
4725 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4727 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
4729 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
4731 * MenuAPI.cs: Check if menu is activated before deactivate it in
4734 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
4736 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
4738 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
4739 - One style instance can only participate in a single style collection.
4740 - Styles can request their owner to layout whenever their properties
4742 [Fixes bugs #412583 and #412582]
4744 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
4746 * X11Keyboard.cs: Implement the generation of the LParam for
4747 all keyboard messages.
4750 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
4752 * ListBox.cs: Don't let the user set TopIndex so high that it
4753 scrolls up far enough to show empty items.
4756 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4758 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4759 (I'm an idiot and forgot to commit the actual changes, as well as
4760 specify the right file, which is this one, not ListView.cs).
4762 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4764 * ListView.cs: Don't draw ListViewSubItem instances from
4765 DrawListViewItem - we need to reuse the main item's drawing for the
4766 first sub item in case owner draw is true, but wants the system to
4767 do the default draw for the first sub item, without incurring in a
4771 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
4773 * ToolStripButton.cs: Update Checked for CheckOnClick before
4774 raising the Click event. [Fixes bug #412505]
4776 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
4778 * Form.cs: Remove some seems leftover code for non-TopLevel's
4779 CreateParams, which is breaking ClientSize sizing, because it
4780 removes the border window styles.
4782 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
4784 * PropertyGrid.cs: Invalidate the View when the PropertyTab
4787 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
4789 * WebBrowser.cs: Removed debug output.
4791 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
4793 * FileDialog.cs: Apply patch from Ernesto to clean up some
4796 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4798 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
4799 that the change has an immediate effect.
4801 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4803 * ScrollableControl.cs: Update PerformLayout calls to include
4804 provide the name of the property that changed.
4806 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4808 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
4809 location. Fixes drawing of border and cell borders if scrollable.
4811 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4813 * ScrollableControl.cs: Perform layouting after the AutoScroll
4814 properties have changed, so that the changes have immediate
4818 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4820 * XplatUIX11.cs: Non Client area is actually Client such in the
4821 case of NotifyIcon, so double check WholeWindow == ClientWindow
4822 when adding an expose.
4823 [Fixes bugs #324237 and #357022]
4825 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4827 * TableLayoutPanel.cs: Invalidate after layouting, so that we
4828 repaint the cell borders.
4830 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
4832 * PropertyGridTextBox.cs: Stop filtering messages prior to our
4833 disposal to avoid unexpected ObjectDisposedExceptions.
4835 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
4837 * TableLayoutPanel.cs: Layout on Row/Column count change.
4839 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
4841 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4843 * PictureBox.cs: When ImageLocation is set to null or an empty string,
4844 only set image to null if it was previously initialized from an url
4845 (or using ImageLocation). In ImageLocation, load specified image
4846 asynchronously if WaitOnLoad is false. Added support for local file
4847 paths to LoadAsync, and added missing argument check.
4849 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4851 * DateTimePicker.cs:
4852 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4853 order to set the value as required (which means: when selection
4854 changes for a part being edited, and not before that if not needed).
4855 Also use an enum to describe which part are we using, and use the
4856 selection as a property in PartData, in order to notify the
4857 DateTimePicker owner that we need to end the current edit.
4860 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
4862 * PropertyGridTextBox.cs: Validation should be performed only if we
4863 are focused. We can lose focus for example if the Return key is used
4864 to set the entry and there is an error. When the message box is
4865 displayed we would have validate on click in the message box.
4867 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
4869 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
4870 in order to determine that we are expandable is wrong. There was a bug,
4871 now fixed, in TypeDescriptor that was causing the wrong converter to be
4872 returned which caused GetPropertiesSupported == false in most cases.
4875 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
4877 * ImageList.cs: Fix ICollection.CopyTo implementation for
4878 ImageListCollection. [Fixes bug #409169]
4880 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4882 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4883 WorkingArea so that menus can appear on the second monitor
4884 when one has dual monitors.
4886 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4888 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4891 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4893 * TextBox.cs: Implement navigation support for auto complete in
4894 TextBox, as well as refactor the code to show the auto complete window
4895 when receiving a WM_CHAR message, instead of TextChanged, since
4896 autocomplete itself should be able to set the Text a lot of times and
4897 finally only typing should show it, not changes from code.
4899 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4901 * TabControl.cs: When expanding the selected tab, don't adjust the
4902 width if alignment is Right, since it has a different offset than 0,
4903 as opposed to the other alignments.
4904 Fixes the selected tab not being painted at all with alignment = Right
4905 and using FillToRight size mode.
4907 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4909 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
4911 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4913 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4914 values from the textbox to the boundary values. [Fixes bug #409026]
4916 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
4918 * TreeNodeCollection.cs: We were copying one too many elements when
4919 doing our array copy. Fixes a crash when RemoveAt is called.
4922 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4924 * TabControl.cs: When doing the layout and need to call FillRow -using
4925 FillToRight size mode-, use the overload receiving a bool param
4926 indicating whether we need to do a vertical or horizontal calculation.
4927 Fixes part of #399583.
4929 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4931 * TextBox.cs: When painting, use the value returned by
4932 GetLastVisibleItem instead of using the cached last_item field, since
4933 there could be a desynchronization between the layout and the
4934 painting. Fixes a AOOR exception in auto complete mode.
4936 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
4938 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4939 NonClientAreaEnabled until our VisualStyles is modified to allow it.
4941 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
4943 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4945 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4947 * TextBox.cs: When focus is lost, if the auto complete listbox is
4950 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4952 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4953 tracking size for tool windows.
4954 * Theme.cs, ThemeWin32Classic.cs : Extracted
4955 ManagedWindowSpacingAfterLastTitleButton.
4957 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4959 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4960 They are bit-rotted and have always been listed as "unsupported".
4962 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
4964 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4966 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
4968 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4970 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4972 * ListBox.cs: Make sure last_item_visible gets reset before we try
4973 to do a layout due to scrollbars appearing or disappearing.
4976 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4978 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4979 for different window themes. [Fixes bug #339140]
4981 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
4983 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4984 in ManagedWindowBorderWidth.
4986 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4988 * InternalWindowManager.cs: Change MouseMove to take a point, so
4989 we can use the same point later on.
4990 * MdiWindowManager.cs: Store point sent to MouseMove so we can
4991 later reset to it. On Windows, the Cursor.Position had already
4992 changed by the time we were resetting to it.
4995 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
4997 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4999 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
5003 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
5005 * MdiWindowManager.cs: Double-clicking on the title bar should not
5006 maximize a MDI form if MaximizeBox = false.
5008 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
5010 * ThemeVisualStyles.cs: Fixed a warning.
5012 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
5014 * ThemeVisualStyles.cs: Fixed warnings and formatted.
5016 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
5018 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
5019 implementation produces a better result.
5021 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
5023 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
5026 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
5028 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
5029 cannot be used from the ThemeEngine constructor.
5030 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
5031 Application.VisualStylesEnabled because it does not work on X11.
5033 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
5035 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
5036 that we did not always check for, as well as fixes to the IList
5037 implementations. [Fixes bug #402703]
5039 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
5041 * IDeviceContext.cs: Added Dispose.
5043 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
5045 * Control.cs: Added OnSizeInitializedOrChanged.
5046 * Form.cs: OnLoadInternal: Added a call to
5047 Control.OnSizeInitializedOrChanged.
5048 * InternalWindowManager.cs:
5049 * HandleTitleBarMouseMove: No longer invalidates the parent window.
5050 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
5051 * TitleButton: Added Entered.
5052 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
5053 * MdiWindowManager.cs:
5054 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
5055 move over the maximized title buttons causes a change.
5056 * IsActive: Can now be called before the window is added to a MDI parent.
5057 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
5058 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
5059 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
5060 * ThemeWin32Classic.cs:
5061 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
5062 * DrawTitleButton takes a new form parameter.
5063 * Added ManagedWindowTitleButtonHasHotElementStyle,
5064 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
5066 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
5068 * ThemeEngine.cs: ThemeVisualStyles is now selected if
5069 Application.EnableVisualStyles has been called, even if the current system
5070 configuration does not support rendering with Visual Styles.
5071 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
5072 Styles should not be used.
5074 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
5076 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
5077 ComboBox in FormsTest.
5079 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
5081 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
5082 for fixed toolwindows.
5084 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
5086 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
5088 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5090 * Control.cs: CreateControl just returns if the Control is diposed
5091 and doesn't throw ObjectDisposedException.
5094 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5096 * Control.cs: Do not create the control if the parent isn't created
5097 yet, e.g in the case of a parented form on which .Show is called.
5098 It will be created when the parent is made visible/created.
5101 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5103 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
5104 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
5107 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5109 * Form.cs: When disposed set owner to null. Improves #402446.
5111 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5113 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
5114 use children's PreferredSize if in AutoSize mode and ExplicitBounds
5116 * Form.cs: Take the Padding into account for the PreferredSize.
5119 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5121 * TabControl.cs: Since we don't support more than one direction in
5122 TabControl rows alignment (this is, the row becomes the
5123 bottom row when selected), make Direction return always 1. This way
5124 the layout doesn't get confused about a bad calculation.
5127 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
5129 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
5130 so that the wparam is properly set.
5131 Fixes form moving in the test case in bug 402446.
5133 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
5135 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
5136 the full tree instead of nothing. [Improves bug #406584]
5138 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
5140 * ThemeWin32Classic.cs: Adjusted minimized window painting.
5142 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
5144 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
5147 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
5149 * TreeView.cs: Add a null check when using CollapseAll on an
5150 empty tree. [Fixes bug #406449]
5152 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5154 * Form.cs: Make OnMenuComplete internal so we can call it.
5155 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
5158 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5160 * TabControl.cs: Handle Up and Down keys when TabControl is in
5164 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5166 * TabControl.cs: Invalidate when we remove a tab. Guard against
5167 an AOORE when trying to remove a tabpage that is not owned by the
5171 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5173 * ScrollBar.cs: Change the LargeChange calculation to be correct.
5174 Ensure we are using LargeChange instead of large_change so we our
5175 calculations are correct.
5178 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
5180 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
5181 we need to ensure the ColumnCount/RowCount gets set.
5184 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5186 * ListBox.cs: When handling item navigation, if selection mode is
5187 None, call EnsureVisible, since scrolling is normally handled by
5188 selection, that we are not calling in this case.
5191 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
5193 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
5194 a null check to our focus walking code. [Fixes bug #394332]
5196 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
5198 * ComboBox.cs: Case missed in bug 379596 "Support item
5199 navigation by entering text": On _close_ drop-down select
5200 the first item matching the text in the textbox. [Fixes bug #397265]
5202 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
5204 * DataGridView.cs: Fix a crash when sorting by column headers,
5205 mentioned in bug #404841. Remove some dead switch cases.
5207 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
5211 uses the AutoComplete support in the internal TextBox. Also TextBox
5212 can store a reference to ComboBox, in case AutoCompleteSource is set
5213 to ListItems (this is, ComboBox's items, and we don't want to pass an
5214 additional collection).
5216 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5218 * ListViewItem.cs: Restore the initial value of bounds rect to
5219 Rectangle.Empty, and is this value for Layout detection in virtual
5220 mode. Fixes the tests.
5222 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
5224 * XPlatUI.cs: Remove references to "new" X11 backend.
5226 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
5228 * Control.cs: Add an internal virtual OnDragDropEnd method
5229 to allow controls such as ListBox, which depend on a sequence
5230 of MouseDown+Move+End events, to handle the lack of a MouseUp
5231 when a DnD operation is started in MouseDown.
5232 * ListBox.cs: If a DnD operation is started in MouseDown we won't
5233 get a MouseUp, so reset our state whenever a DnD operation ends.
5235 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
5237 * PropertyGrid.cs: Clear the root griditem first thing when
5238 new object/s is/are selected. Fixes some rare cases where
5239 the View will get a paint request and won't know that the
5240 grid is in the process of repopulating.
5242 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5244 * XplatUIX11.cs, InternalWindowManager.cs:
5245 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
5246 doesn't automagically update the FormBorderStyle, so we must
5247 double check the CreateParams explicitly to determine if the
5248 window is a toolwindow.
5249 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
5250 instead of doing custom checks.
5252 Fixes toolwindows for the test case in bug #402446
5254 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5256 * Control.cs: Visibility of the control should be false
5257 when the handle is destroyed in WmDestroy and not immediately
5258 in Dispose(). This is effectively where the disposing process
5259 ends even though the control is marked as Disposed immediately
5260 after calling Dispose().
5263 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5265 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
5266 when the textbox gets focus.
5269 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
5271 * PropertyGridTextBox.cs, PropertyGridView.cs:
5272 - Alt + Down should show the drop down editor.
5273 - Focus the editor when showing it
5276 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
5278 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
5279 that are not the first panel.
5280 * StatusBar.cs: Ensure that the X coordinate of panels is always
5281 stored. Fix IList implementation of StatusBarPanelCollection to
5282 call the regular methods.
5283 [Fixes bug #403599, #402165]
5285 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
5287 * ThemeWin32Classic.cs: Fix position calculation for centered
5288 text on status bar panels. [Fixes bug #402165]
5290 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
5292 * Splitter.cs: Fix Splitter to:
5293 - Work for arbitrary splitter size
5294 - Handle MinSize and MinExtra properly
5295 - Get rid of absolute positioning during drag and use relative
5296 - Multiple other fixes
5299 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
5301 * Cursor.cs: Show shouldn't hide the cursor.
5303 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5305 * ListViewItem.cs: When invalidating, add some extra space to bounds,
5306 since focus rectangle and selection can add some space and need to
5307 take into account those small offsets - specially in Details view.
5308 * ListView.cs: Instead of invalidate using item Bounds directly, call
5309 item.Invalidate, to have the code centralized.
5310 Fixes focused/selection garbage when selecting and deselecting items
5313 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5315 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
5316 mode we can check whether we have to force a Layout or not, and can
5317 cache based on this, instead of avoiding caching all the the time. Do
5318 this check in GetBounds and TextBounds.
5319 Fixes selection in Details view.
5321 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5323 * ListView.cs: Make HeaderControl internal, thus the theme engine can
5324 get its *real* height instead of trying to infere it.
5325 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
5326 get the position of them, since it's in general a bad idea in general,
5327 and because we can't do that in virtual mode. Instead get the first
5328 visible item as well as item height, and draw them.
5331 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
5333 * ToolStripSplitButton.cs: We can't add in extra width if
5334 the button is not AutoSize. [Fixes bug #401279]
5336 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
5338 * PaddingConverter.cs:
5339 - Implement conversion to InstanceDescriptor
5340 - Handle "All" in CreateInstance by using the supplied
5341 ITypeDescriptorContext.
5342 [Fixes bugs #396076 and #396078]
5344 Patch by Andy Hume <andyhume32@yahoo.co.uk>
5345 Code contributed under MIT/X11 license.
5347 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
5349 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
5351 Add Category attributes.
5352 Code is contributed under the MIT/X11 license.
5354 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
5357 - Fix a NRE when unparenting a form.
5358 - Do not recreate or destroy a parented form when
5361 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5363 * TextBox.cs: Implement basic support for AutComplete with custom
5366 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
5368 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
5369 DropDownButtonBounds should be from the origin of the button, not the
5370 ToolStrip. [Fixes bug #401279]
5372 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
5374 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
5375 running gtk_init_check. This prevents GAIL from loading
5376 unnecessarily, which was breaking UIA support. Initial fix for bug
5378 * Application.cs: Add UIA support to Winforms. New static constructor
5379 uses reflection to initialize UIAutomationWinforms assembly. Added
5380 PreRun event so UIA can initialize before the mainloop starts, and
5381 FormAdded event so UIA can provide a11y support for new Forms in an
5384 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
5386 * DataGridView.cs: When binding to a dataset, subscribe to table
5387 and column change events. Unsubscribe to these when we clear bindings.
5390 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
5392 [DataGrid drawing refactory]
5394 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
5396 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
5397 must be handle by Theme, now it call DataGridPaintColumnHeader.
5399 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
5400 test cases must be also fixed because it checks for wrong size.
5402 * ThemeWin32Classic.cs:
5403 - Draw the bottom line of grid caption.
5404 - Prevent to draw caption text when it is empty.
5405 - Use CPDrawBorder3D for 3D efects to simplify code.
5406 - Uses 3D (when not flat) to paint corner shared between row and column
5408 - Fix header drawing issues on win32, now borders are drawing.
5409 - Fix column header paint issues to mimic win32.
5410 - Adjust header drawing for last column, like first one it must be draw
5412 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
5414 - DataGridPaintColumnHeader created to draw column headers, it also
5415 paint stuff right on Win32.
5416 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
5420 - DataGridPaintRowHeaderStar method added.
5421 - DataGridPaintColumnHeader method added.
5423 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
5425 * Control.cs: Don't reset to Dock style layout if DockStyle is
5426 set to none. [Fixes bug #399316]
5428 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
5430 * Win32DnD.cs: Fix the check for control not equal null.
5431 Fixes bug #341420 and #381886.
5433 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
5435 * DataGridViewRowCollection.cs: Update the indexes of rows after
5436 one has been removed.
5437 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
5438 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
5439 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
5440 rows for the Rows collection, or deleting rows from the bound DataSet.
5442 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
5444 * DataGridView.cs: Listen to a DataSet's changed event even
5445 when autogeneratecolumns is false. Refactor the changed event's
5446 add row code to use the same as the existing add row code.
5449 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5451 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
5452 much any time the caret moves and there is text, not just when
5453 the selection changes as one would think.
5454 * RichTextBox.cs: Override RaiseSelectionChanged and fire
5458 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5460 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
5461 instead of trying to duplicate the code.
5462 * ListBox.cs: Make method internal so we can send keyboard events.
5465 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5467 * TextBoxBase.cs: When pasting and checking the max length,
5468 subtract the selected text length (the text we will be replacing) from
5469 the document length.
5470 * TextControl.cs: Ensure every character insertion is reflected in
5471 charcount, so max length will work properly.
5474 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5476 * ListBox.cs: Ensure scrollbars are updated when a single
5477 column listbox with an already set top-index is created.
5480 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
5482 * FontDialog.cs: Typing in the font/style textboxes should search
5483 the list boxes case-insensitively. [Fixes bug #398343]
5485 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
5487 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
5488 widths of icon and buttons instead of hard coded values.
5490 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5492 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
5493 as well as generating a SelectedIndexChanged event, just like .Net does
5497 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5499 * ListBox.cs: When navigating items visually, use FocusedItem as the
5500 reference point instead of SelectedIndex, since even in
5501 SelectionMode.None we need to support navigation, and in that case we
5502 just can't use SelectedIndex.
5503 Fixes part of #398345.
5505 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
5507 * Control.cs: Make a SetBoundsInternal that avoids the new
5509 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
5510 SetBoundsInternal instead of SetBoundsCoreInternal.
5512 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
5514 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
5515 SetBounds for the scrollbars.
5517 2008-06-10 Andreia Gaita <avidigal@novell.com>
5519 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
5520 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
5521 OnMouseMove, OnMouseOver, OnMouseUp
5522 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
5523 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
5524 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
5525 to the WebControl object to pass to new collection objects
5526 * HtmlHistory.cs: Implement support for individual window histories.
5527 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
5528 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
5529 GotFocus, LostFocus, OnLoad, OnUnload
5530 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
5532 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
5533 security level changes and context menu event support.
5535 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5537 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
5538 as happens with Esc, patch my Andy Hume.
5541 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5543 * MdiWindowManager.cs: DrawMaximizedButtons now uses
5544 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
5545 * Theme.cs: Made MenuButtonSize platform dependent. Added
5546 ManagedWindowButtonSize.
5547 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
5548 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
5550 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5552 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
5553 Added support for rendering with VisualStyles.
5555 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5557 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5558 support for rendering the border with VisualStyles.
5560 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5562 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
5563 the icon is not shown.
5564 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
5567 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
5569 * InternalWindowManager.cs: Draw minimized windows even if they don't have
5572 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
5574 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
5576 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
5578 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
5581 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5583 * ComboBox.cs: When snaping height -because of IntegralHeight set to
5584 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
5585 if the requested height leaves the listbox area with *less* than the
5586 required are to see one item. We were setting it to PreferredHeight
5587 even for values matching the height for a single item.
5590 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
5592 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
5594 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
5596 * DataGridViewCell.cs: Use property instead of field.
5598 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5600 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
5603 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5605 * Theme.cs: Added #region around the managed window code. Made the managed
5606 window methods abstract.
5607 * ThemeWin32Classic.cs: Added #region around the managed window code.
5609 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5611 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
5613 * ThemeWin32Classic.cs: Removed HasBorders checks in
5614 DrawManagedWindowDecorations.
5616 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
5618 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5619 Extracted ManagedWindowGetTitleBarIconArea.
5621 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5623 * DataGridViewCellStyle.cs: Don't clone the font.
5625 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5627 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
5629 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5631 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
5632 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
5635 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
5637 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
5638 Use Format/FormatProvider before trying converters.
5639 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
5640 are 'set'. Change constructor to not use ApplyStyle since it wants
5641 everything applied. Clone the Font.
5642 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
5643 ApplyStyle the rest.
5645 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5647 * ListView.cs: We need to calculate the scrollbars even if the handle
5648 hasn't been created - this is needed when methods using scrollbars
5649 info, such EnsureVisible, are called before control has been created.
5652 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
5654 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
5655 only if the elements are defined.
5657 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5659 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
5660 section. Also, when setting bounds, snap height as well as save the
5661 requested height if Dock has any value affecting the height: Left,
5662 Right and Bottom - important if using IntegralHeight as true.
5664 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5666 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
5667 passed to SetBounds to reflect the new adjusted height (Integral-wise),
5668 instead of doing that only in our SetBoundsCore override, since the
5669 bounds cached can be the same as saved one and we could not get the
5673 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5675 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
5676 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
5677 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
5678 ToolWindowCaptionButtonSize.
5679 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
5681 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5683 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
5685 * Theme.cs: Made DoubleClickTime plaform dependent.
5687 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5689 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
5690 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5691 ToolWindowCaptionHeight.
5693 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5695 * InternalWindowManager.cs: The adjustment to ensure positive client area
5696 sizes is now platform dependent (disabled on Windows).
5697 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5698 RequiresPositiveClientAreaSize.
5700 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5702 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
5704 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5706 * InternalWindowManager.cs: Changed IconicSize to use
5707 SystemInformation.MinimizedWindowSize.
5708 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
5709 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
5711 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5713 * ComboBox.cs: If the combobox is anchored both on top and bottom,
5714 adjust height if IntegralHeight is true when calling SetBoundsCore (as
5715 likely the height was modified even if Height wasn't specified in
5716 BoundsSpecified parameter).
5717 Fixes part of #396297.
5719 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
5721 * InternalWindowsManager.cs: Changed minimum window size while resizing to
5722 SystemInformation.MinWindowTrackSize.
5723 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
5724 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
5726 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
5728 * MenuItem.cs: Fixed Dispose.
5730 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
5732 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
5733 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
5734 EnteredHeaderCell, PressedHeaderCell: Added.
5735 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
5736 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
5737 theme a chance to override default painting.
5738 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
5739 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
5740 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
5741 ListView and DataGridView header rendering.
5743 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
5745 * RichTextBox.cs: GetPositionFromCharIndex should return the
5746 visual position of the character relative to the viewport.
5747 [Fixes part of bug #396664]
5749 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
5751 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
5752 and not just for the existance of an UITypeEditor. In some cases
5753 there is an editor associated just to do PaintValue, but which
5754 doesn't actually support editing.
5757 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5759 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5760 if needed, instead of 0 - this should help us in the corner case where
5761 we have more than one item but we are only partially showing 1 item.
5762 Fixes part of #374713.
5764 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5766 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5767 control, return immediately if the any parent control's handle hasn't
5768 been created or isn't visible, as well as avoiding creating the parent
5769 Form if the handle hasn't been previously created.
5772 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
5774 * TableLayoutPanel.cs: Use border sizes when calculating the
5775 panel's preferred size. [Fixes part of bug #396433]
5777 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
5779 * SplitContainer.cs:
5780 - Fix SplitterDistance to update only if needed.
5781 - Make it force min and max validation.
5782 - Handle properly mouse moves outside the resizeable area.
5785 2008-06-02 Andreia Gaita <avidigal@novell.com>
5787 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5788 (which also suppresses all popup dialogs). Throw NotSupported
5789 exceptions for activex getters/setters.
5790 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5791 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5792 StatusText, Version, GoSearch
5793 * HtmlDocument.cs: Add DocType support
5795 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
5797 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5800 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
5802 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5804 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
5806 * TableLayoutPanel.cs: When calculating preferred size, use the
5807 actual number of columns and rows, not what the user set them to.
5810 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
5812 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5815 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5817 * XplatUIX11.cs: When detecting areas obscured in a control by other
5818 toplevel windows while scrolling, return if the control hasn't a
5822 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5824 * XplatUIX11.cs: Properly detect the visible area of a control being
5825 scrolled (obscured by other winforms controls and any X toplevel
5826 windows), to mark as invalid the requested area to be scrolled that
5827 isn't visible and thus can't be copied.
5830 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5832 * ListBox.cs: Compute the precise amount to vertically scroll when
5833 using DrawMode.OwnerDrawVariable.
5834 Patch by jkeymer (j.keymer@gmx.net).
5836 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5838 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
5839 to avoid setting an invalid value for the verticall scrollbar
5840 when navigating items. And, duh, also remove my silly debug messages
5841 from previous commits.
5844 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
5846 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
5847 make it MS compatible.
5849 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
5851 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
5852 - Allow the editing of entries even if their parent is read-only.
5853 - Do not render expandable properties read-only.
5854 - Refactor expansion checks form PropertyGrid into PropertyGrid.
5856 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
5858 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5859 support for the hover style.
5861 2008-05-29 Andreia Gaita <avidigal@novell.com>
5863 * ContainerControl.cs: Check for null dead-end when traversing the tree
5866 [Fixes #394332, patch by Ernesto Carrea]
5868 2008-05-29 Geoff Norton <gnorton@novell.com>
5870 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5871 constant that it is. Fixes #393981
5873 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
5875 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5876 that the user probably doesn't want to set this.
5878 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
5880 * ThemeWin32Classic.cs: Don't let the text size be bigger than
5881 the control size for CheckBox/RadioBox.
5882 [Fixes part of bug #394645]
5884 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5886 * PropertyGrid.cs: Update the state of the sorting buttons in
5887 the toolbar if PropertySort is set programatically.
5889 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5891 * GridItemCollection.cs: Add multiple items with conflicting names
5892 support and also preserve name ordering.
5895 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
5897 * GridItemCollection.cs: Revert my multiple items with same
5900 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5902 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5904 Fixes part of #393908.
5906 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
5908 * ToolStripDrowDown.cs: When using the Show () methods that have a
5909 Control parameter, set the menu owner to that Control.
5912 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
5914 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5917 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5919 * GridItemCollection.cs: Refactor to support multiple items with the
5923 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
5925 * Control.cs: The 2.0 check for illegal cross thread calls in
5926 Control.Handle were throwing an exception when we were getting
5927 the Handle in order to invoke correctly. Created a private
5928 version that does not contain this check.
5931 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5933 * PropertyGrid.cs: Respect DefaultTabType.
5935 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5937 * ListView.cs: SPACE selects an item.
5940 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
5942 * ListView.cs: Reset the search string whenever the items are
5946 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5948 * ListControl.cs: For the first added item PositionChanged is fired
5949 _before_ ItemChanged, which leave us in a temporary invalid state - so
5950 we need to set the selected index from ItemChanged handler *if* we
5951 know that the first item has just been added *and* the items have been
5952 actually added to the ListControl.
5955 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5957 * TabControl.cs: Only clicks with the left button should be
5961 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5965 * TextBox.cs: Expose an internal method in TextBox to restore the
5966 original context menu, and call it from ComboBox to re-use it in the
5967 combobox containing the file name in FileDialog.cs.
5968 Fixes part of #393775.
5970 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5972 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5975 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
5977 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5980 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5982 * ComboBox.cs: Minor correction to previous patch: PageDown should
5983 also *try* to move by one item if the computed offset is negative,
5984 just like the PageUp case.
5986 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5988 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5989 should be done for at least 1 item, and not stay at the same item.
5990 Fixes part of #374713.
5992 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
5994 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5995 directories. [Fixes bug #393931]
5997 2008-05-22 Andreia Gaita <avidigal@novell.com>
5999 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
6000 Don't fire events until the initial about:blank page has finished
6001 loading. Clean up events.
6003 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
6005 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
6006 FocusIn() too. This should fix the issue on switching
6009 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
6011 * X11Keyboard.cs : set XIM font size to somewhat reasonable
6012 number (ideally the input textbox size, but that could be
6015 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
6017 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
6018 the ToolStripItem's TextChanged. [Fixes bug #393597]
6020 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6022 * TabControl.cs: When invalidating in SelectedIndex and we need to
6023 inflate to take into account the border of the tabs, make sure that
6024 the invalidated rect doesn't overflow the control bounds, since that
6025 would avoid updating at all.
6027 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6029 * TabControl.cs: Don't substract scroller width from the row width,
6030 since we need to take into account the total width of the control when
6031 calculating the position of the tabs. This avoids showing scroller
6032 when it is actually not needed.
6033 Fixes part of #322325.
6035 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6037 * ThemeVisualStyles.cs: Added support for TextBoxBase.
6039 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6041 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6042 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
6044 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
6046 * DataGridView.cs: Only paint the top left header cell if there
6049 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
6051 * DataGridView.cs: When binding to a BindingSource, get the underlying
6052 list to bind to. [Fixes bug #345483]
6054 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
6056 * DataGridView.cs: Do not bind to collection properties.
6059 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6061 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
6063 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6065 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
6068 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6070 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
6072 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6074 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
6077 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6079 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
6081 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6083 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
6086 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6088 * TabControl.cs: Extended to handle the hot style.
6090 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
6092 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
6093 Extended UpDownBase code to handle hot and disabled styles.
6095 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6097 * DataGridView.cs: Handle databinding to generic list type things.
6100 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6102 * DataGridViewCellCollection.cs: Add a method to find the cell
6103 with the given DataPropertyName.
6104 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
6105 * DataGridViewColumnCollection.cs: Add a method to clear all
6106 autogenerated columns.
6107 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
6111 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6113 * DataGridView.cs: Don't try to update the RowTemplate with
6114 a null CellTemplate.
6116 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6118 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
6119 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
6120 * DataGridView.cs: Lots of fixes/enhancements to databinding to
6123 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
6125 * Control.cs: Remove invalidating implicit child controls when
6126 control is invalidated. It was causing too many redraws on
6127 controls with implicit scrollbars.
6128 * ListView.cs: Listen to the Invalidated event and invalidate
6131 2008-05-20 Andreia Gaita <avidigal@novell.com>
6133 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
6134 * HtmlDocument.cs: Check for nulls
6136 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6138 * Control.cs: In ControlCollection.RemoveInternal, remove the
6139 internal control before calling PerformLayout and OnControlRemoved,
6140 which was leaving us in an invalid state and causing a X error (bad
6141 match). Observe that Remove () call has the same order.
6142 Fixes an X error changing ComboBoxStyle.DropDownStyle.
6144 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6146 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
6147 being fired if ControlStyles.UserPaint style is activated.
6150 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6152 * GridEntry.cs: Don't be so strict when setting the value -
6153 do not check if what we set is what we get.
6156 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6158 * XplatUIX11.cs: If there are no timers timeout should be 0
6161 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
6163 * Control.cs: As a followup to invalidating implicit children when
6164 a control is invalidated, only invalidate them if they are in the
6167 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6169 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
6171 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6173 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
6175 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6177 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
6178 * XplatUIWin32.cs: Made Win32DeleteObject public.
6180 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
6182 * GridEntry.cs: Determine HasDefaultValue more strictly by using
6183 PropertyDescriptor.ShouldSerializeValue.
6186 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6188 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
6189 in the classic theme.
6191 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6193 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
6195 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
6196 ScrollBarHasPressedThumbStyle.
6198 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6200 * TextRenderer.cs: Included some methods in the 1.1 profile.
6202 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
6204 * Control.cs: When we make a control visible, it may have been
6205 previously visible and while it wasn't visible, the z-order of
6206 things may have been shuffled, so the control needs to have its
6207 z-order updated just in case. [Fixes bug #391518]
6209 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6211 * ThemeVisualStyles.cs: Added support for GroupBox.
6213 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
6215 * GroupBoxRenderer.cs: Included in the 1.1 profile.
6217 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
6219 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
6220 bug #389996; XSelectInput() behaved as mouse handler robber,
6221 so remove extra call to it.
6223 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6225 * Control.cs: Simplify ControlCollection.Contains method.
6227 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6229 * DataGridViewRow.cs: Implement GetPreferredSize.
6231 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6233 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
6235 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
6237 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
6238 painting and edit control fixes.
6240 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6242 * DataGridView.cs, DataGridViewCell.cs: Work around some external
6243 checks to make sure we are in an actual row/col for top left header cell.
6244 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
6246 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6248 * Control.cs: Use long instead of int when handling WParam from
6249 mousewheel scrolling. Int was overflowing on Win64.
6251 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6253 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
6254 flow panel without scrolling first, and then calculate the
6255 scrolling based on the new layout. [Fixes bug #390149]
6257 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
6259 * ListBox.cs: Invalidate after scrolling up when selected index
6260 changes. [Fixes bug #390151]
6262 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6264 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
6265 set, default height to 150. I tried first with DefaultSize, but this
6266 is not generating a SetBoundsCore call before handle creation time, so
6267 we can take it into account. This is just what .net does.
6269 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
6271 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
6272 as it broke some stuff. Calberto is filing a bug for eno to
6275 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6277 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
6278 to 0 is the current value is -1, and if style is not Simple, just
6279 return, like .net does.
6280 Fixes part of #374713.
6282 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
6284 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
6285 progress bar stuffs, use doubles instead of ints to prevent
6286 overflow. [Fixes bug #389798]
6288 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
6290 * XplatUIX11.cs, X11Keyboard.cs :
6291 Significant refactoring on XIM support. Now IM engine UI
6292 should show up, at mostly-correct preedit position.
6293 - Eliminated use of FocusWindow, as it is never mapped
6294 and hence blocks correct preedit position. XIC is now
6295 created per window, and it must be destroyed too when
6296 the window is destroyed.
6297 - WM_QUIT messages should not be filtered even when hwnd
6298 is zombie. Filtering it could cause endless loop.
6299 - Preedit position must move only when the window is alive.
6300 - Make it IDisposable and make sure to release XIM/XICs.
6302 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
6304 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
6305 XplatUIX11.cs, XplatUIWin32.cs :
6306 fix for bug #325033 and #387693;
6307 - WM_QUIT should not be sent when no running application
6309 - SetTimer/KillTimer (especially on win32) should be
6310 invoked for the window that the timer is/will_be attached.
6311 - There could be unattached timers to a window when it's
6312 started. For those timers, hold pending timers and when
6313 a window is mapped, attach them to it.
6314 - WaitForHwndMessage() could run into loop when
6315 WM_SHOWWINDOW is handled before this method is called.
6316 So, strictly check wm_showwindow state.
6317 - Tick handler should not be invoked while one Tick handler
6318 call is still running (introduced Busy state).
6320 2008-05-13 Andreia Gaita <avidigal@novell.com>
6322 * WebBrowserBase.cs: Override Internal alternative methods for
6323 SetBoundsCore and OnResize instead of the protected ones.
6324 * Control.cs: Move SetBoundsCore and OnResize implementations to
6325 SetBoundsCoreInternal and OnResizeInternal, so they can be
6326 overriden internally (WebBrowserBase needs to catch them but can't
6327 override the protected methods without api compat problems)
6329 2008-05-13 Andreia Gaita <avidigal@novell.com>
6331 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
6333 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6336 * ListView.cs: Remove debug messages.
6338 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6340 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
6341 area is empty. Also calculate scrollbars in Simple mode based in area
6342 height and total number of items, not in MaxDropDownItems.
6343 Fixes part of #371991.
6345 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6347 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
6349 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6351 * BindingSource.cs: GetListSortDescription is not public.
6353 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6355 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
6357 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6359 * HtmlElement.cs: Fix parameter names to match MS.
6360 * HtmlWindowCollection.cs: Should not be sealed.
6362 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6364 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
6365 button, because the thumb button will not get drawn if the scrollbar
6366 is disabled. [Fixes bug #389262]
6368 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6370 * ListBox.cs: Handle End key for multi-column listboxen.
6373 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6375 * ListBox.cs: Fix algorithm to determine which column our item is in.
6378 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6380 * ListBox.cs: Invalidate when the listbox is resized.
6383 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6385 * ListBox.cs: There is always at least one row in the ListBox (if
6386 we are doing these calculations.) [Fixes bug #389253]
6388 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
6390 * ListBox.cs: There is always at least one column in the ListBox.
6393 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6395 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
6396 ensure in Simple mode that the height is exactly the requested one.
6397 Also add the ComboBoxListControl to the controls collection in Simple
6398 mode even if handle hasn't been created.
6399 Fixes part of #371991.
6401 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6403 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
6404 our ComboBox owner instead of giving it back to the previous control (
6405 as done in other controls). Also remove the empty override of Select
6406 method, since we want to be selected *and* give focus to our owner.
6407 This should let the user do keys-navigation in Simple mode.
6409 2008-05-10 Geoff Norton <gnorton@novell.com>
6411 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
6412 problems with rapid scrolling of treeviews. Fixes #381084
6414 2008-05-10 Geoff Norton <gnorton@novell.com>
6416 * XplatUICarbon.cs: Deactivate the active window before
6417 activating the desired window. Completes fixing #386504
6419 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6421 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
6422 SmallChange to the item size width plus the padding, to match .net.
6424 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6426 * FileDialog.cs: Apply the custom filter typed by the user in the file
6427 name combobox as much as possible while navigating in the file dialog.
6430 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6432 * Binding.cs: Actually use NullValue if the retrieved value of
6433 data source is null or DBNull. Makes a test pass.
6435 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
6437 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
6438 * MimeIcon.cs: Provide a way to get icons from resources.
6440 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6442 * Binding.cs: When the value retrieved from the control to be assigned
6443 to the data source is null, actually use the 2.0 DataSourceNullValue
6444 value. Make pass a data binding test.
6446 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6448 * Control.cs: We need to invalidate implicit children even when
6449 invalidate is called with invalidatechildren = false. (Implicit
6450 children are really part of the parent.)
6451 * ListView.cs: Double-buffer internal child controls for less
6453 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
6454 owner ListView subitems for greatly increased performance.
6457 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
6459 * FileDialog.cs: When the user types a wildcard character in the
6460 filename combobox, update the contents of the folder using the text as
6462 Fixes part of #385261.
6464 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6466 * ListBox.cs: Various fixes for MultiColumn listboxen.
6469 2008-05-08 Andreia Gaita <avidigal@novell.com>
6471 * HtmlElement.cs: Implement Style property
6473 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
6475 * ListBox.cs: Respect checkboxes when measuring item size.
6476 * ThemeWin32Classis.cs: When drawing list items, don't draw
6477 text outside of the item's bounds to prevent overlapping.
6478 (.Net actually overlaps, but that's just silly.)
6481 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
6483 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
6484 Gert Driesen. Fixes bug #324830.
6486 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
6488 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
6491 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6493 * BindingSource.cs: When calling IsSynchronized, return the value of
6494 the related IList list.
6496 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6498 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
6501 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
6503 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
6504 navigation to scroll the grid if the current cell is not visible.
6506 2008-05-07 Andreia Gaita <avidigal@novell.com>
6508 * HtmlElement.cs: Implement TabIndex
6510 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
6512 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
6513 properties, even when there are no items.
6516 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
6518 * NativeWindow.cs: Add support for multiple handles per window.
6519 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
6520 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
6521 directly - use FromHandle instead.
6524 2008-05-07 Andreia Gaita <avidigal@novell.com>
6526 * HtmlElement.cs: Implement InnerHTML setter
6528 2008-05-07 Andreia Gaita <avidigal@novell.com>
6530 * HtmlDocument.cs: Implement Focused
6532 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6534 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
6535 methods, as well as add messages to the exceptions.
6537 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6539 * BindingSource.cs: Setting DataSource should only reset DataMember if
6540 the previous value was null (make pass a not working test).
6542 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6544 * BindingSource.cs: When EndInit call is postponed and is called until
6545 DataSource.EndInit is called, remove the handler for data source.
6547 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6549 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
6551 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6553 * ToolStripManager.cs: Store references to toolstrips as
6554 weak references so they do not prevent forms from getting collected.
6557 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6559 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
6560 on .Net. So do the same thing in WndProc.
6562 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6564 * TrackBar.cs: Commit patch from Andy Hume that corrects
6565 the clickable areas to better match .Net.
6568 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6570 * TrackBar.cs: Commit patch from Andy Hume that adds the
6571 ResizeRedraw control flag so the track bar repaints itself
6572 when it is resized. [Fixes bug #387072]
6574 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
6576 * TrackBar.cs: Commit patch from Andy Hume that adds better
6577 support for keyboard navigation when the TrackBar is vertical.
6580 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6582 * BindingSource.cs: Implement ISupportInitializeNotification support.
6584 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
6586 * ThemeVisualStyles.cs: Added support for ToolBar.
6588 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
6590 * ToolBar.cs: Made the Vertical property internal.
6592 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6594 * ThemeVisualStyles.cs: Added support for TrackBar.
6596 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6598 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
6599 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
6600 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
6601 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
6602 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
6603 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
6605 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6607 * ThemeVisualStyles.cs: Added support for UpDownBase.
6609 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
6611 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
6612 Extracted Theme.UpDownBaseDrawButton.
6614 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
6616 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
6617 removed from the static toolstrips collection in ToolStripManager
6618 when they are disposed. Provides a workaround for bug #386483.
6620 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
6622 * GridEntry.cs: Read-only properties with Editor with
6623 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
6626 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
6628 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
6629 the menu key and there are no items on the menu.
6632 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
6634 * Control.cs: Avoid calling ToString on a string.
6635 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
6636 * GroupBox.cs: In FlatStyle property throw, not just create, the
6637 exception. Avoid calling ToString on a string.
6638 * ProgressBar.cs: Avoid calling ToString on a string.
6639 * ScrollBar.cs: Avoid calling ToString on a string.
6640 [All issues were found using Gendarme]
6642 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
6644 * NotifyIcon.cs: Prevent click events to be trigger after double click
6645 events. Fixes remaining issues of bug #324832.
6647 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
6649 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
6650 to mimic win32 behavior. Partially fixes bug #324832.
6652 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6654 * BindingSource.cs: Implement Find methods.
6656 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6658 * BindingSource.cs: Implement Sort, ApplySort overloads, and
6661 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6663 * ListBindingHelper.cs: When calling GetListItemProperties and the
6664 passed object is ITypedList, return the result of
6665 ITypedList.GetItemProperties instead.
6667 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6669 * LinkLabel.cs: Set default value of name on constructor of Link class
6670 only for 2.0 profile.
6672 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6674 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
6675 Fixes remaining issues of bug #346154.
6677 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6679 * LinkLabel.cs: Set a default value for name on internal contructor of
6680 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
6682 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
6684 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
6685 and refer all instances to owner.links. Partially fixes #346154.
6687 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6689 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
6690 length equal zero. Also called CreateLinkPieces in constructor. It fixes
6691 the LinkLabel test 'TestLinkArea'.
6693 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6695 * Form.cs: Remove menu before close form to prevent form to be not gaced.
6698 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6700 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
6703 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6705 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
6708 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6710 * MenuAPI.cs: Remove unused ProcessCmdKey method.
6712 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6714 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
6717 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6719 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
6722 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
6724 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
6725 sometimes we open a conext menu on mouse down of some controls and the mouse
6726 up is dispatched to menu and dont need to. It fix remaining issues of
6727 #363711 and other problems related to menu mouse click events.
6729 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6731 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
6732 some var names to better fit changes, now we have month_menu and today_menu
6733 vars. Fixes bug #363711.
6735 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6737 * MonthCalendar.cs: Handle every right mouse click to open context menu,
6738 right now the default month menu but it will be change to have "Go to today"
6741 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6743 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
6745 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
6747 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
6749 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6751 * ThemeVisualStyles.cs: Added support for TreeView.
6753 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6755 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
6756 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6758 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6760 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6762 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6764 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6765 Implement 2.0 SP1 stuffs.
6767 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6769 * FileDialog.cs: Implement 2.0 SP1 stuffs.
6771 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6773 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6774 Implement CanEnableIme property. (2.0 SP1)
6776 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6778 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6781 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6783 * Control.cs: Provide an internal way for a control to override
6784 the setting of Height.
6785 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6786 set height using new method.
6788 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6790 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6792 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6794 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6795 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6797 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6799 * ThemeVisualStyles.cs: Added support for StatusBar.
6801 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6803 * DataObject.cs: Add the other IDataObject interface.
6805 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
6807 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6808 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6810 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6812 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6813 * ListView.cs: Hide non-public API.
6814 * MaskedTextBox.cs: Remove extra attribute.
6816 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
6818 * DataGridViewImageCell.cs: Use formatted value instead of value
6819 to calculate preferred size.
6821 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6823 * ListBox.cs: Move some initialization around so that selected_indices
6824 is not accessed before it is created.
6826 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6828 * InputLanguageCollection.cs: Implement the collection better.
6831 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6833 * ToolStripDropDownItem.cs: Get the correct event object for
6834 DropDownItemClicked.
6835 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6838 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
6840 * DataGridViewRowCollection.cs: We don't currently support shared
6841 rows. Should fix test failures caused by previous commit.
6843 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6845 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6846 datagridview gets set. Only paint cells in visible columns.
6847 * DataGridViewCell.cs: Draw border after cell content.
6848 * DataGridView.cs: Invalidate after setting some properties. Only
6849 use visible columns. Fit hit test bug with areas in the col/row header
6850 area but not in a row or col. Implement UpdateCell/Row methods.
6852 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6854 * DataGridViewElement.cs: Don't throw NIEX.
6855 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6856 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6857 * DataGridViewCheckBoxColumn.cs: Implement ToString.
6858 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6859 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6860 if the user filled in the formatting Value, use it.
6862 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
6864 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6867 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6869 * BindingSource.cs: Some corrections to Filter property, as well as
6870 setting it for our list when resetting it.
6872 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
6874 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6875 than the maximum. Fixes reopened bug #384182.
6877 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6879 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6880 Fixes remaining issues of #367490.
6882 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6884 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
6885 SystemInformation.WorkingArea to get max_screen value.
6887 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6889 * BindingSource.cs: Implement Filter and RemoveFilter.
6891 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6893 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6895 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6897 * X11Dnd.cs: When trying to convert data and we know we started the
6898 dnd loop, don't try to use the cached data if the loop is not running,
6899 which means that the data has been resetted.
6902 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6904 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6907 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6909 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6910 it to drawn off screen edge. Fixes bug #367490.
6912 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6914 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6915 menu position to have only one assignment of Location var.
6917 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
6919 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6920 for this patch. Fixes bug #384115.
6922 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6924 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6925 the same. If LargeChange is zero, set a minimum size for the scroll
6926 thumb grip. [Fixes bug #384182]
6928 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6930 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6933 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
6935 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
6937 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6939 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6940 patch from Ernesto).
6942 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6944 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6946 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6948 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6950 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6952 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6954 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
6956 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6958 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
6960 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6962 2008-04-27 Andreia Gaita <avidigal@novell.com>
6964 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6965 supposed to return a reference to an mshtml interface, which we
6967 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6968 reference to an mshtml interface, which we don't support). Code
6970 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6971 DomDocument getter (it's supposed to return a reference to an
6972 mshtml interface, which we don't support). Code formatting cleanup.
6974 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6976 * ListView.cs: Ouch, forgot to commit.
6978 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6981 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6983 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6985 * ListView.cs: When calculating box selection for virtual mode, don't
6986 look for intersection with item's text, but item bounds, since that
6987 would mean read ListViewItem's text for _every_ item, and that's
6988 something we just can't do in virtual mode (items are only requested
6991 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
6993 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6994 partial support for managed windows (based on the patch from Ernesto).
6996 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6998 * ListView.cs: When doing a key search use FindItemWithText method
6999 instead of doing the search by ourselves, this way we avoid
7000 duplicating the code and also we handle the special case for virtual
7001 mode. To achieve that make our private overload of FindItemWithText
7002 internal and also have a 'roundtrip' parameter.
7004 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7006 * ListView.cs: When doing the layout don't request the
7007 ListViewItem instance if we are in virtual mode (since we can't request it
7008 until the item is actully drawn).
7010 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7012 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
7015 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7017 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
7018 the patch from Ernesto).
7020 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7022 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
7023 * ThemeVisualStyles.cs: Added.
7025 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7027 * IDeviceContext.cs: Added a missing using.
7029 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7031 * ButtonBase.cs: Made IsDefault protected internal.
7032 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
7034 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7036 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
7037 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
7038 RadioButtonRenderer.cs: Included in the 1.1 profile.
7039 * IDeviceContext.cs: Added.
7040 * TextRenderer.cs: Included a member in the 1.1 profile.
7042 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
7044 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
7046 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
7048 * ErrorProvider.cs: Make the error icons come after the control
7049 they refer to. It isn't the way the MS does it, but its better
7050 than what we were doing. See bug #368587.
7052 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
7054 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
7055 from Eric Albright that lazy loads the input language as ensures
7056 everything gets properly initialized. Fixes bug #373871.
7058 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
7060 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
7061 implicit mnemonics. [Fixes bug #383000]
7063 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7065 * X11Dnd.cs: When canceling the operation, automatically restore the
7066 default cursor - normally the default cursor is restored when the
7067 mouse buttons are released, but we should be able to restore it even
7068 if the buttons are still pressed (for example, when pressing ESC to
7072 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074 * X11Dnd.cs: When starting a new drad and drop operation, set control
7075 field to null, just as the other fields, to avoid calling any
7076 operation on a previous control. Also, when calling DndLeave on a
7077 control, set it to null, thus we don't fire that event multiple times
7081 2008-04-23 Geoff Norton <gnorton@novell.com>
7083 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
7084 the whole_window object. Fixes #377084.
7086 2008-04-23 Andreia Gaita <avidigal@novell.com>
7088 * HtmlElement.cs: Implement RaiseEvent (event injection into the
7091 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
7093 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
7095 2008-04-23 Andreia Gaita <avidigal@novell.com>
7097 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
7100 2008-04-23 Andreia Gaita <avidigal@novell.com>
7102 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
7105 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7107 * X11Dnd.cs: When the drop was cancelled, or could just not be
7108 performed, return DragDropEffect.None always (match .net).
7110 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
7112 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
7114 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
7116 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
7118 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
7120 * DataGridView.cs: Add support for error icon tool tips.
7121 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
7122 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
7124 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
7126 * X11Structs.cs: Add mouse button masks enum.
7127 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
7128 WM_EXITSIZEMOVE only once at the beginning and at the end of the
7129 form resize/move operation instead of for each step of it.
7130 [Fixes bug #346529 for the x11 backend]
7132 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7134 * DataGridView*: Implement support for drawing error icons.
7136 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7138 * TreeView.cs: Make vbar and hbar internal.
7139 * TreeNode.cs: If collapsing the node removes one of the TreeView's
7140 scrollbars, invalidate the whole thing.
7143 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7145 * TreeView.cs: Calling Sort() sets Sorted = true.
7146 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
7147 if the nodes need to be sorted.
7150 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
7152 * Form.cs: Fire SizeChanged for both when the form is minimized and
7154 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
7155 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
7157 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
7159 * ComboBox.cs: If the combobox is disabled, draw a disabled
7160 background before painting anything else.
7163 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7165 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
7166 forget to send a Leave event to the target window - just as .net does
7167 when cancelling dnd operations.
7169 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7171 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
7172 soon as possible - this happens when we send the drop message to the
7173 target window. This way we avoid firing any DragOver _after_ drop finished.
7176 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7178 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
7179 * Form.cs: Handle form minimization as a special state, where size doesn't
7180 change, but we have to fire SizeChanged.
7181 [Fixes bug #325122 for the win32 and x11 backends]
7183 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7185 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
7186 if the handle is disabled.
7189 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7191 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
7192 for forms with FormBorderStyle.None.
7195 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
7197 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
7199 [Fixes bug #346529 for the X11 backend]
7201 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7204 - Send a mouse Enter message after say dragging the mouse with a
7205 button down and then release it in another client.
7206 - Reset the cursor to prevent X11 from remembering it and setting it
7207 before the control gets WM_SETCURSOR.
7208 - Qeueue a mouse move after a mouse enter like win32.
7211 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7213 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
7214 It's sent when the form gets moved, resized, closed.
7215 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
7216 [Fixes bug #359193 for X11]
7218 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7220 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
7223 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
7225 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
7226 group. Fixes the 1.1 build.
7228 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7230 * ListView.cs: Use display indexes for selection in Details view, as
7231 well as do the proper layout based on display indexes for that view
7234 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7236 * ListView.cs: Focused item information is now stored as a display
7237 index, and display indexes are used all over the place for selection,
7238 instead of ListViewItem.Index values, which doesn't give us enough
7239 information to modify the selection in groups mode, and was broken.
7241 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
7243 * Control.cs: Do not fire MouseDown if validation of the control has
7245 * Form.cs: Validate the form before closing.
7246 [Fixes bugs #330501 and #353310]
7248 2008-04-18 Andreia Gaita <avidigal@novell.com>
7250 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
7251 CreateWebBrowserSiteBase implementations
7252 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
7253 Style and TabIndex setters
7255 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7257 * ListViewGroup.cs: When returning the actual item count, return the
7258 proper count for default group.
7261 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7264 * ListViewGroup.cs: When calculating groups layout, get the actual
7265 number of items per group, since groups added to the group BUT not
7266 added to the ListView are just ignored, and can cause some nasty
7267 exceptions because of the lack of synchronization. Also for
7268 ListViewGroup don't use lazy initialization for items, since we
7269 the common scenario is to use it always - and it helps us to refactor
7270 and clean the .ctor overloads.
7272 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7274 * ListView.cs: When adding an item to a ListViewItemCollection
7275 belonging to a group (ListViewGroup.Items), don't generate a redraw if
7276 the added item hasn't beeen previously added to the ListView instance
7277 refered by the group, since it will be ignored. This should avoid some
7278 really nasty flickering.
7280 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7282 * ListView.cs: When accessing an item in a specific display
7283 position, use the helper method GetItemAtDisplayIndex, instead of
7284 direct access to the reordered_items_indices array. When doing layout
7285 for groups set the correct Items index for the display position (since
7286 in groups mode items don't have the same position as in Items
7288 * ListViewGroup.cs: Add a field to store the starting item number,
7289 which is later used when calculating the layout.
7293 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
7295 * Application.cs: Fixed ProductVersion to fallback to the assembly
7296 version. Fixes regression for bug #325413.
7298 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7300 * ListView.cs: New helper method to retrieve an item in a _specific
7301 display_ position (the items can be displayed in a different order
7302 than one of Items collection).
7303 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
7304 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
7305 specific display position (again remember that items can be sorted
7306 different than Items).
7308 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7310 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
7311 list and update it when the collection changes. We were recreating
7312 this several times per row paint and for every pixel the mouse moved
7314 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
7317 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7319 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
7320 list to use generics.
7321 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
7322 and remove unneccessay casts.
7324 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
7326 * DataGridViewBand.cs: Add internal way to set displayed variable.
7327 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
7328 * DataGridView.cs: Make sure we always keep track of Displayed
7329 rows and columns, and only draw things that are displayed.
7331 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
7333 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
7334 whether the key events are filtered or not. Introduced
7335 PreFilter() process for this purpose. This fixes atokx3/iiimx
7338 2008-04-16 Andreia Gaita <avidigal@novell.com>
7340 * HtmlHistory.cs: Implement Length property
7342 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
7344 * DataGridView.cs: Call EndEdit when a sort is performed so we take
7345 away the edit textbox. Refactor to reuse column sort code.
7347 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
7349 * MenuAPI.cs: Remove the code that save and restore capture status of
7350 grab_control, this fixes some Menu and Context menu bugs but maybe it can
7351 cause some others, I cant figure the possible problems of this patch but
7352 right now remove the code looks to be better than keep it. This patch fixes
7353 bugs #357638, #378721 and #379570.
7355 2008-04-12 Andreia Gaita <avidigal@novell.com>
7357 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
7358 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
7359 add missing properties and event handlers.
7361 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
7363 * ListBox.cs: Make sure the LargeChange we are setting is at least
7364 zero, to prevent an IOORE. [Fixes bug #379531]
7366 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
7368 * ComboBox.cs: Support item navigation by entering text. Firstly,
7369 in DropDownList mode, for each key-press select the next item
7370 starting with that letter.
7371 For other modes, when no item selected, on arrow-up/-down and open
7372 drop-down select the first item matching the text in the textbox.
7374 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
7376 * X11Keyboard.cs : Control.FromHandle() could return null
7377 in MoveCurrentCaretPos().
7379 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7381 * ListView.cs: When changing the size in VirtualMode, also Reset the
7383 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
7384 changing selection info for VirtualMode.
7387 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7389 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
7390 view, don't use LineLimit for the first item - use NoWrap *always*
7391 instead, since ListView.LabelWrap is not used for this view.
7394 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7396 * Binding.cs: Call UpdateIsBinding when setting control - probably
7397 Binding is already usable and we don't need to wait to check the
7398 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
7399 Created, just like 2.0 does.
7400 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
7402 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7404 * Binding.cs: Just realized we don't need to have a handler for
7405 BindingContextChanged, since this info should be now consumed directly
7406 in the BindingManagerBase. And also, the manager.IsBindingSuspended
7407 state info is checked directly, instead of caching it.
7409 * CurrencyManager.cs: IsSuspended should return always false if Count
7412 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7414 * Binding.cs: When calling PushData, return if manager.Count == 0,
7415 since we just don't have data to be read. Also, when setting the
7416 Control for binding, hook up some events to refresh the IsBinding
7417 state when BindingContext change or control gets created; use
7418 Control.IsHandleCreated instead of Control.Created check to set
7419 IsBinding state - we *actually* need to modify IsBinding when control
7420 is created, but we don't have any Created event, only HandleCreated.
7421 Fixes part of #349364.
7423 2008-04-11 Geoff Norton <gnorton@novell.com>
7425 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
7426 warping a null Caret.
7428 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7430 * DataGridView.cs: Implement row/column autosizing methods. Implement
7432 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
7433 * DataGridViewRowCollection.cs: Add an internal sorting method.
7435 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7437 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
7438 value in ListView drawing code.
7440 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
7442 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
7443 is clicked. Respect the user setting Cancel in FileOk.
7445 2008-04-11 Geoff Norton <gnorton@novell.com>
7447 * ListView.cs: Avoid setting and resetting control Width/Heights and
7448 calculate the final value and set it once. Prevents a feedback loop
7451 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7453 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
7456 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
7458 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
7459 Add some on-the-spot code, but it seems we don't need it.
7461 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7463 * Form.cs: Add method for DataGridView to trigger focus cues
7464 even when it handles the tab keypress.
7466 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
7468 * DataGridView.cs: More keyboard handling, tab, esc.
7469 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
7470 when at the beginning or end of the text in the text box.
7472 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7474 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
7476 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7478 * DataGridView.cs: Some fixups for showing and adding the edit control.
7479 * DataGridViewButtonColumn.cs: Implement ToString.
7480 * DataGridViewCell.cs: Size and position the control simultaneously.
7481 * DataGridViewTextBoxCell.cs: Use base to position control.
7483 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7485 * DataGridViewCell.cs: Fix up some formatting and painting code.
7486 * DataGridViewImageCell.cs: Implement some NIEX methods.
7488 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7490 * ToolStripItemCollection.cs: What moving an item from one owner
7491 to another, remove from source owner before adding to destination.
7494 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
7496 * PictureBox.cs: Call Load when ImageLocation is set.
7499 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
7501 * X11Keyboard.cs, XplatUIX11.cs :
7502 Implement over-the-spot mode (with some odd offsets).
7503 - set preedit position when caret is set.
7504 - Wrap XMoveResizeWindow() to move preedit position.
7506 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7508 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
7511 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7513 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
7514 and ScanTableIndex public, it fix compilations errors when compiling
7515 WinForms to generate keyboard layout resources.
7517 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
7519 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
7520 different element count than scan table. It prevents some errors in non
7523 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
7525 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
7527 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
7529 * DataGridView.cs: Call OnContentClick.
7530 * DataGridViewCell.cs: Do a null check on ValueType instead
7532 * DataGridViewCheckBoxCell.cs: Implement.
7534 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7536 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
7538 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7540 * X11Keyboard.cs : Check XGetIMValues() return value in
7541 case it does not return input styles in some environment.
7543 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
7545 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
7547 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7549 * BindingContext.cs: Stub UpdateBinding method.
7551 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
7553 * X11Structs.cs : added couple of structs for XIM support.
7555 Release XIM in case it failed to create XIC.
7556 Use consts for XNblah string.
7557 Add support for IM style customization and XIC creation
7558 for preedit-position and preedit-callback.
7559 Right now use MONO_WINFORMS_XIM_STYLE environment variable
7560 (list of: over-the-spot | on-the-spot | root). Only root
7563 (redoing r99172 with fix.)
7565 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7567 * TreeView.cs: Center the checkbox a little better.
7569 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7571 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
7572 Apply very nice patch from Ernesto Carrea that simplifies our
7573 scrollbar drawing. [From bug #376146]
7575 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
7577 * TreeView.cs: Correct the location of the root node checkbox when
7578 ShowRootLines = false. Don't draw the root lines for the root node
7579 when ShowRootLines = false. [Fixes bug #377535]
7581 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
7583 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
7585 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
7587 * MaskedTextBox.cs: Added missing attribute. Code formatting.
7588 * PageSetupDialog.cs: Added missing attribute. Code formatting.
7589 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
7590 * ImeMode.cs: Added missing field.
7591 * HtmlWindow.cs: Code formatting. Fixed line endings.
7592 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
7594 * HtmlHistory.cs: Code formatting. Fixed line endings.
7595 * HtmlDocument.cs: Code formatting. Fixed line endings.
7596 * ToolStripPanel.cs: Added missing IList implementation.
7597 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
7599 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
7601 * BindingContext.cs: Changed argument names to fix corcompare errors.
7602 * DataGridView.cs: Removed extra explicit interface implementation
7603 of IDropTarget. Code formatting.
7604 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
7605 * ComboBox.cs: Changed argument names to fix corcompare errors.
7606 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
7608 * GridColumnStylesCollection.cs: Changed argument names to fix
7609 corcompare errors. Removed extra tabs.
7610 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
7612 * Control.cs: Changed argument names to fix corcompare errors. Code
7613 formatting. Removed extra explicit IList implementation.
7614 * TextBox.cs: Changed argument names to fix corcompare errors. Code
7615 formatting. Use string.Empty instead of "".
7616 * GridItemCollection.cs: Changed argument names to fix corcompare
7617 errors. Code formatting.
7618 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
7619 corcompare errors. Code formatting.
7620 * ImageList.cs: Changed argument names to fix corcompare errors.
7621 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
7622 * DataGridViewRowCollection.cs: Changed argument names to fix
7623 corcompare errors. Code formatting.
7624 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
7625 * DataGridViewSelectedCellCollection.cs: Changed argument names to
7626 fix corcompare errors. Code formatting.
7627 * DataGridViewComboBoxCell.cs: Changed argument names to fix
7628 corcompare errors. Code formatting.
7629 * LinkLabel.cs: Changed argument names to fix corcompare errors.
7630 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
7632 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
7634 * BindingSource.cs: Changed argument names to fix corcompare errors.
7635 Removed extra explicit interface implementations.
7636 * DataGridViewSelectedRowCollection.cs: Changed argument names to
7637 fix corcompare errors. Code formatting.
7638 * ToolStripItemCollection.cs: Removed extra explicit interface
7639 implementation of IList.ReadOnly.
7640 * DataGridViewColumnCollection.cs: Changed argument names to fix
7641 corcompare errors. Code formatting.
7642 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
7643 * ListView.cs: Changed argument names to fix corcompare errors.
7644 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
7646 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
7648 * ListBindingHelper.cs: Changed argument names to fix corcompare
7650 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
7651 fix corcompare errors. Code formatting.
7652 * ToolStripPanel.cs: Removed extra explicit implementation of
7653 IDropTarget interface.
7654 * ListBox.cs: Changed argument names to fix corcompare errors. Code
7655 formatting. Removed extra tabs and spaces.
7656 * DataGridViewCellCollection.cs: Changed argument names to fix
7658 * Help.cs: Changed argument names to fix corcompare errors. Code
7660 * TabControl.cs: Changed argument names to fix corcompare errors.
7661 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
7663 * TableLayoutSettings.cs: Changed argument names to fix corcompare
7666 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7668 * ListBindingHelper.cs: When returning properties, only return those
7669 that are browsable. Also, don't do a linear search of the properties,
7670 but use the indexer of the PropertyDescriptorCollection class.
7672 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7674 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
7675 Dictionary containing the related (child) currency managers. Also,
7676 when setting DataSource, add datasource to our List if it is not a list.
7678 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7680 * PropertyGridTextBox.cs: Fix background color of the buttons.
7681 * PropertyGridView.cs: Make the entry less jumpy.
7683 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7685 * PropertyGrid.cs: Fix unused variable warnings.
7687 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
7689 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
7690 double-click. It expanded it once in the mouse down and then
7691 again in the double-click handler.
7693 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
7695 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
7696 TypeConverter and UITypeEditors.
7698 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
7700 * Control.cs: Visibility should be set synchronously,
7701 so we must also redraw once it is and not rely on layouting or
7702 other code to repaint.
7705 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
7707 * DataGridViewCell.cs: Respect DataGridView.GridColor.
7709 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7711 * Control.cs: Invalidate when the alpha channel is less than 255,
7712 not only when control is transparent.
7714 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7716 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
7717 Implement some painting convenience methods that threw NIEX.
7719 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
7721 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
7722 * DataGridViewLinkCell.cs: Implement.
7724 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
7726 * GridEntry.cs: Report the conversion exception error description.
7729 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
7731 * PropertyGridView.cs: Do not scroll to item on resize.
7734 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7736 * BindingContext.cs: When retrieving a BindingManagerBase, if the
7737 dataSource parameter is ICurrencyManagerProvider, then return
7738 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
7739 instead of creating a new one.
7741 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7743 * BindingSource.cs: Implement support for Type instances as
7746 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
7748 * DataGridView.cs: Minor cleanups and call CellMouseUp.
7749 * DataGridViewCell.cs: Make some painting routines internally virtual.
7750 * DataGridViewButtonCell.cs: Implement.
7752 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
7754 * Control.cs: We always need to invalidate our children with
7755 transparent backgrounds when we are invalidated.
7758 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7760 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7761 and CancelCurrentEdit on CurrencyManager respectively. Implement
7762 support for ICancelAddNew too.
7764 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7766 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7767 call EndNew/CancelNew if list is ICancelAddNew.
7769 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
7771 * DataGridView.cs: Guard against an exception while painting
7772 if there are no rows.
7774 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
7776 * DataGridView.cs: Implement a bunch of keyboard commands.
7778 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
7780 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
7781 isn't set, don't call OnPaint. [Fixes bug #375300]
7783 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7785 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7786 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7787 hookup the remaining events related to CurrencyManager, and fire
7788 OnListChanged also for the Clear () method.
7790 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7792 * BindingSource.cs: Use Current and Position implementations in
7793 CurrencyManager instead of using our own routines, since we need
7794 to be in synch with it. Count should NEVER return a -1 value, and
7795 also report ListChanged events for both simple IList data
7796 sources (manually) as well for IBindingList ones (by hooking up an
7797 event handler for it).
7799 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7801 * BindingSource.cs: Make one .ctor call the another, to avoid
7802 duplicate code. Add the CurrencyManager property, and also for AddNew
7803 throw the proper exceptions and show better error messages.
7805 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7807 * ComboBox.cs: Only adjust selectedindex if Handle has been
7808 created. Fixes failing test.
7810 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7812 * ComboBox.cs: Adjust selectedindex if we insert a new item
7813 above the current selectedindex in a sorted ComboBox.
7816 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7818 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7821 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
7823 * DataGridViewTextBoxCell.cs: Implement stuffs.
7825 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7827 * TreeView.cs: Create the scrollbars even earlier to be
7828 double dog certain they are created before they are accessed.
7830 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7832 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7834 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7836 * ScrollBar.cs: Create an internal safe Value setter so we
7837 won't crash if we try to set a value outside the min and max.
7838 * TextBoxBase.cs: Use safe value setter to guard against a
7839 potential NRE that is being reported by Reflector.
7841 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7843 * TreeView.cs: Create the scrollbars earlier in the constructor
7844 to attempt to guard against an NRE in SetTop in Reflector.
7846 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
7848 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7849 DataGridViewRowCollection.cs: Do not scroll column and row headers,
7850 show messagebox on data format error, use column display index
7851 correctly, make sure HitTest supports new layout stuff,
7852 make sure scrollbars support new layout stuff.
7854 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
7856 * XplatUIX11.cs : Patch by Doug Rintoul.
7857 For some IM engines, keypress events need to delay call
7858 to XPending() and XNextEvent() in the loop so that it
7859 does not mess the orders in XIM commit callback.
7860 Some KeyRelease events such as shift keys need to be
7861 processed both in the IM engine and winforms driver
7862 itself since winforms holds its own state check.
7864 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7866 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
7868 * X11Keyboard.cs, XplatUIX11.cs :
7869 add primitive support for XIM input support (preedit-
7870 nothing and status-nothing). It requires precise event
7871 capturing (XSelectInput/"filterEvents") and different
7872 call to XFilterEvent against root window.
7873 Get composed string and send dummy WM_IME_COMPOSITION.
7874 Free XIM and XIC instances in finalizer.
7876 (This first patch does not include suggested changes
7877 by Doug Rintoul. It will follow.)
7879 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7881 * DataGridView.cs: When binding to a property, if the property
7882 doesn't have a setter, set the column to readonly.
7885 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7887 * ComboBox.cs: Guard against NRE if an arrow key is hit while
7888 we aren't dropped down. Support Home/End in DropDownList mode.
7891 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
7893 * TreeNodeCollection.cs: Don't increment count until we've
7894 saved our index to return.
7897 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7899 * Label.cs: Add padding to the label's AutoSize calculation.
7902 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7904 * ListBindingHelper.cs: Actually implement GetListName method.
7906 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7908 * BindingSource.cs: Throw the propert expceptions for some methods, as
7909 well as detect the list item type for Add method if DataSource is null.
7911 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7913 * DataGridViewCell.cs: I don't know why I commented this out,
7914 putting it back for now.
7916 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7918 * DataGridViewCell.cs: Remove storage for owning column, just
7920 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7921 * DataGridViewColumnHeaderCell.cs: If the header text has been
7922 explicitly set, return it.
7925 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
7927 * DataGridViewRowCollection.cs: Disable row sharing when
7928 using data binding. Its a great feature, but lets work on
7929 getting DGV usable first before we worry about optimizations.
7931 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7933 * BindingSource.cs: When resetting our internal list, compute list
7934 item type information to be used for indirect list access. Also
7935 implement/tune some properties and methods related to the list access
7937 * ListBindingHelper.cs: Add a stub for GetListName method, used from
7940 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7942 * DataGridView.cs: If RowCount is increased while ColumnCount
7943 is zero, add a column. [Fixes bug #331649]
7945 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7947 * DataGridViewRowCollection.cs: When adding new rows for
7948 databinding, make sure they are place before the add row.
7951 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7953 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7954 instead of Index order.
7956 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7958 * DataGridView.cs: If columns are added by increasing ColumnCount,
7959 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7962 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7964 * DataGridView.cs: Turn off and on the "new row" when
7965 AllowUserToAddRows is toggled. When the handle is created,
7966 set current cell and selected cell/row/col.
7968 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
7970 * ComboBox.cs: When navigating the drop down by keyboard, we
7971 need to scroll the list box if our selection moves out of the
7972 currently shown items. [Fixes bug #371990]
7974 2008-03-24 Luke Page <luke.a.page@gmail.com>
7976 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7977 on the control. Also now handles unicode compatibility characters and
7978 stores the unicode compatibility length on the stack. Fixes Bugs
7979 #355198 and #366436.
7981 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7983 * BindingSource..cs: Take into account DataMember when re-creating the
7984 List property, and also create a specific kind of list as needed.
7986 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7988 * ListBindingHelper.cs: Add a new case for GetList () method - when we
7989 get an empty IEnumerable, try to detect whether the datamember is
7990 valid or not for that type, if true, return null, and throw exception
7993 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
7995 * ComboBox.cs: Alt-Down should drop down the list, Esc should
7996 retract it. [Fixes bug #371989]
7998 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
8000 * PropertyGrid.cs: Initialize the sorting button as pushed.
8002 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
8005 - Visually select the PropertyTab.
8006 - Filter Properties by Attributes properly.
8008 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
8010 * MenuItem.cs: Remove menu item from parent when disposed.
8013 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
8015 * ToolBar.cs: Don't reset layout_type if Dock = None.
8017 2008-03-21 Andreia Gaita <avidigal@novell.com>
8019 * UserControl.cs: Select the first available control when we get focus.
8022 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
8024 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
8025 the content if we are in edit mode. [Fixes bug #343964]
8027 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
8029 * DataGridViewCell.cs: Fix border painting for column headers.
8031 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8033 * BindingSource.cs: When setting or resetting data source,
8034 use ListBindingHelper.GetList () method, since it will get the list in
8035 case datasource is IListSource.
8037 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
8039 * DataGridViewCell.cs: Implement lots more stuffs.
8041 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
8043 * PropertyGridView.cs, GridEntry.cs: Implement support for
8044 UITypeEditor.IsDropDownResizable.
8046 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
8048 * DataGridViewCell.cs: Remove unused variables, improve how
8049 several of the property getters work.
8050 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
8051 get its size from the parent row/col.
8053 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
8055 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
8056 user alters manually the PropertyTabs collection via the
8057 PropertyTabs property.
8059 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8061 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
8062 new tests for them to be sure to be compatible with .net.
8064 2008-03-20 Andreia Gaita <avidigal@novell.com>
8066 * WebBrowserBase.cs: Fix attributes, add events
8067 * WebBrowser.cs: Fix Padding signature
8069 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
8071 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
8073 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
8075 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
8076 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
8077 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
8078 passes the new suite of tests for it.
8080 2008-03-18 Andreia Gaita <avidigal@novell.com>
8082 * WebBrowser.cs: Add missing attributes, missing Padding and
8083 DefaultSize properties, remove extraneous getters
8085 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8087 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
8090 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
8092 * ComboBox.cs: Move resetting the selected index to keypress
8093 instead of textchanged. Changing the text programmatically
8094 should not trigger resetting the selected index. Fixes test.
8096 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
8098 * ComboBox.cs: When the user types into the textbox, reset
8099 the selected index to -1. [Fixes bug #371672]
8101 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
8103 * FileDialog.cs: Support Control-A for selecting everything
8104 in an OpenFileDialog. [Fixes bug #371564]
8106 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
8108 * DataGridView.cs: When row/column visible/height properties
8109 change, invalidate. Take the NIEX out of InvalidateRow/Column
8110 etc. We don't support them yet, but we can just invalidate
8111 everything until we do support them. (Added MonoTODO). Set
8112 proper control styles.
8113 * DataGridViewRow.cs: Don't call PaintHeader if row headers
8116 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8118 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
8120 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
8122 * DataGridViewRow.cs: Only paint the white background in
8123 cell bounds, the row bounds extends past the cells if the
8124 grid width isn't as wide as the DGV.
8126 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
8128 * DataGridView*: Completely revamp the drawing to match the
8129 public API. Our grids now look better, and call all the
8130 appropriate methods and event to allow users to override
8131 the painting and do their own.
8133 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8135 * ListBindingHelper.cs: Implement 2.0 GetList methods.
8137 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
8139 * DataGridView.cs: Implement BorderStyle.
8141 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
8143 * FileDialog.cs: Apply patch from Andy Hume: Any time we
8144 are comparing attributes, make sure we only look at the
8145 one we are interested. These calls were failing if there
8146 were more than one attribute.
8149 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
8151 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
8153 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8155 * PageSetupDialog.cs: Stub EnableMetric.
8156 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
8157 * PrintPreviewDialog.cs: Add ProcessDialogKey,
8160 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8162 * MonthCalendar.cs: Remove unused variable.
8164 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
8166 * DataGridView*.cs: corcompare stuffs.
8168 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8170 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
8171 The savings aren't worth the extra code to fix the optimization.
8174 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8176 * ToolBar.cs: Always call base.Dock in the Dock override so that
8177 Control's layout_type gets reset correctly.
8180 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
8182 * X11Dnd.cs: End DnD operation also for the middle mouse button.
8184 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8186 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
8187 at the same time we do explicit ones, because we have to give all
8188 other controls on the container a chance to handle explicit ones
8189 first. If no one has an explicit mnemonic, then we can let the
8190 MenuStrip have a shot at implicit mnemonics.
8191 * MenuStrip.cs: Create an implicit mnemonic function.
8192 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
8193 mnemonics for MenuStrips.
8196 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
8198 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
8199 DataGridColumnStyle.cs: corcompare stuffs.
8201 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8203 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
8204 Details - This is needed after we added the bits to use any available
8205 column also for List and SmallIcon view.
8207 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8209 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
8210 at the proper place, not only when changing SelectedIndex and changing
8211 the selection using keys/mouse, as .net does.
8213 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8215 * ControlBindingsCollection.cs: Implement last 2.0
8216 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
8217 in the new 2.0 Add methods.
8219 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8221 * ListBox.cs: When calling SelectedIndexCollection.Clear,
8222 return if no items are previously selected - this is done to avoid
8223 firing OnSelectedIndexChanged without need to do so. Also,
8224 when creating handle ensure that the focused item is visible (as
8227 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8229 * ListBox.cs: Rewrote/refactored most of selection code. We require
8230 the following things in selection: a) keep selection sorted (both
8231 indices and items), b) SelectedIndices automatically detect the
8232 selection mode, c) SelectedIndex should be the first selected item
8233 index, d) Need to Focus/adjust scroll bar when selecting a new item,
8234 not only for SelectedIndex, which is specially important in Multi*
8235 selection modes. To achieve this we are moving the selection core to
8236 SelectedIndexCollection and make depend all selection modifications on
8240 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8242 * ToolStrip.cs: Enable implicit mnemonics for drop down
8243 menu strips. [Fixes part of bug #367692]
8245 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8247 corcompare - fix parameter names [stragglers].
8248 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
8249 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
8252 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8254 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
8255 was a mnemonic pressed as well as Alt. Also, if nothing handles a
8256 mnemonic, let the ToolStripManager have it even if it doesn't
8257 have a matching mnemonic.
8260 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8262 corcompare - fix warning about implicit implementation
8263 * ToolStrip.cs: Add IToolStripData interface.
8264 * IToolStripData.cs: Add.
8266 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
8268 corcompare - fix warning about implicit implementation
8269 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
8272 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8274 corcompare - fix parameter names [N-Z].
8275 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
8276 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
8277 PropertyManager.cs, RichTextBox.cs,
8278 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
8279 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
8280 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
8281 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
8282 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
8283 ToolStripContentPanel.cs, ToolStripDropDown.cs,
8284 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8285 ToolStripPanel.cs, ToolStripSeparator.cs,
8286 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
8287 UICuesEventHandler.cs, UpDownBase.cs.
8289 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8291 corcompare - fix parameter names [G-M].
8292 GridColumnStylesCollection.cs, GridItemCollection.cs,
8293 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
8294 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
8295 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
8296 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
8297 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
8299 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
8301 corcompare - fix parameter names [A-F].
8302 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
8303 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
8304 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
8305 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
8306 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
8307 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
8308 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
8310 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
8312 * GridEntry.cs: Do not convert not only if the types match,
8313 but also if the property type is assigneable from the value's
8317 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
8319 * PropertyGridView.cs:
8320 - Subscribe to the listbox only once and not everytime.
8321 - Update the textbox even if SetValue fails.
8322 - Close the listbox before calling TrySetValue just in case.
8325 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
8327 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
8329 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8331 * ListView.cs: Implement support for custom column width based on
8332 Columns collection (we were previously using this collection only
8336 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8338 * ListViewItem.cs: For Tile view, always set bounds for the first
8339 subitem (which is the main one), and also don't let Width be larger
8340 than ListView.TileSize.Width. Improve code readibility also.
8341 * ThemeWin32Classic.cs: When painting the ListViewItem instances
8342 in Tile view, _always_ use the NoWrap flag.
8345 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
8347 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
8349 * GridEntry.cs: For MS compitability make all child properties
8350 readonly if the parent is readonly. Ugh.
8351 [Fixes bug #365945 and #365944]
8353 2008-02-29 Andreia Gaita <avidigal@novell.com>
8355 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
8356 relative to the history
8358 2008-02-29 Andreia Gaita <avidigal@novell.com>
8360 * HtmlElement.cs: More handlers for mouse and key events
8362 2008-02-28 Andreia Gaita <avidigal@novell.com>
8364 * WebBrowserBase.cs: MouseClick sig changed.
8365 * HtmlHistory.cs: Implement history navigation
8366 * HtmlElement.cs: Add event handlers, and connect them.
8368 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
8371 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
8372 so that DisplayNameAttribute doesn't get ignored.
8373 - Check for ParenthesizeNameAttribute and parenthesize the Label.
8374 - Add support for PasswordPropertyTextAttribute
8375 * PropertyGridView.cs: Check if an entry is a password.
8376 [Fixes bugs #365589, #365586, #365588]
8378 2008-02-28 Andreia Gaita <avidigal@novell.com>
8380 * PropertyGridView.cs: Revert the message filtering change, as we
8381 need it to block after all. Remove block parameter, unnecessary.
8383 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
8385 * UserControl.cs: Better implementation of GetPreferredSize.
8386 First step to fixing bug #361441.
8388 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8390 * Binding.cs: Actually implement data binding support for
8391 classes implementing IBindableComponent.
8392 * ControlBindingsCollection.cs: Likewise.
8394 2008-02-26 Andreia Gaita <avidigal@novell.com>
8396 * PropertyGridView.cs: Use a message filter to check when to
8399 2008-02-26 Andreia Gaita <avidigal@novell.com>
8401 * Application.cs: Change the message_filters loop so a filter
8402 can be removed while looping.
8404 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
8406 * GridEntry.cs: Optimization in ToggleValue so that it caches
8408 * PropertyGridView.cs: An optimization so that the property isn't
8409 re-read twice for each StandardValue added to the drop-down menu.
8410 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
8414 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
8416 * Application.cs: Apply patch from Justin Cherniak to match
8417 MS better for ProductName, ProductVersion, and CompanyName.
8420 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8422 * Binding.cs: Actually implement 2.0 NullValue property. Also
8423 when changing the formatting related properties, only update the state
8424 if formatting_enabled is true (we don't mind otherwise).
8426 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
8428 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
8431 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
8433 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
8434 of GetType on the current value as it uses reflection to
8435 determine the type. This fixes the case where the new value is
8438 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
8440 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
8443 2008-02-24 Luke Page <luke.a.page@gmail.com>
8445 * Line.cs, TextControl.cs: Implement offset x and y so that a
8446 document doesn't have to begin at (0,0) on the viewpoint.
8447 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
8448 bars and switches the text alignment (and therefore is now
8449 implemented for textbox). Fixes #321383.
8451 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8453 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
8454 properties. Also when changing FormattingEnabled update the control
8455 property -as .Net does-.
8457 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
8459 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
8460 * Binding.cs: Add stubs for the overloads of the Add method in
8463 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8465 * Binding.cs: PullData () returns a false value if we got an exception.
8466 Also when validating the control and we get an error, instead of
8467 setting the value of the previous one, cancel the event (tested in 1.1
8470 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
8472 * TreeView.cs: Make selected_node and highlighted_node internal.
8473 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
8474 to null when Nodes.Clear is called.
8477 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8479 * FontDialog.cs: Ensure that when the Font is set in code,
8480 all the gui pieces are updated accordingly.
8483 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8485 * TextRenderer.cs: Respect proposed size for MeasureString.
8486 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
8487 autosize, use a proposed width to force wrapping for long text.
8490 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8492 * TreeView.cs: Factor in checkboxes = false and state images in
8493 to HitTest. [Fixes bug #363360]
8495 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8497 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
8498 when drawing the selected range.
8501 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
8503 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
8504 ResizeRedraw control styles.
8507 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8509 * TreeView.cs: StateImages are basically custom checkboxes, so
8510 factor their size the same as real checkboxes when determining
8514 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8516 * MessageBox.cs: Make the message box wider if the form caption
8517 is longer than the text in the form.
8520 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
8522 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
8524 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8526 * TreeNode.cs: Guard against an NRE when the parent's
8527 StateImageList hasn't been set.
8530 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8532 * SplitContainer.cs: Add SupportsTransparentBackColor and
8533 OptimizedDoubleBuffering control styles.
8536 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8538 * Application.cs: For the app data paths and the registry key paths,
8539 ensure they are created before returning them to the user.
8542 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8544 * Application.cs: Guard against an NRE in CompanyName and
8547 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
8549 * Application.cs: For CompanyName, ProductName, and ProductVersion,
8550 make sure we handle all three cases correctly: attribute is present,
8551 attribute is present but is an empty string, and attribute is not
8554 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
8556 * PropertyGridView.cs:
8557 - Fix a NRE that caused a test failure
8558 - Another performance improvement - cache the standard values
8561 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8563 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
8566 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
8568 * PropertyGridView.cs: Fix a big performance bug.
8570 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8572 * SelectionRange.cs: Apply patch from Andy Hume to make
8573 constructor behavior more accurate. [Fixes bug #362117]
8575 2008-02-19 Andreia Gaita <avidigal@novell.com>
8577 * Control.cs: Added a new flag is_disposing to track if the
8578 window is currently in the process of being disposed of.
8579 This is used so that, when firing visibility changes triggered
8580 by unparenting controls during Dispose, the control doesn't
8583 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
8585 * ComboBox.cs: Set height to preferred height when the handle
8586 is created. [Fixes bug #360862]
8588 2008-02-18 Andreia Gaita <avidigal@novell.com>
8590 * XplatUIX11.cs: Create FosterParent with border width at 0.
8591 With the previous value of 4, everytime a control got reparented
8592 from parent = null, it's location would be shifted right and
8593 down by 4, since these coordinates would be offset by the
8594 FosterParent's border width.
8596 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
8598 * Control.cs: During diposing firstly remove ourselfes from
8599 the parent and *then* destroy our handle, because removing
8600 ourselfes from the parent controls collection causes
8601 VisibilityChange, etc events, which require a handle and end
8602 up recreating the control.
8604 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
8606 * GridEntry.cs: Set expanded state before notifying that the
8607 expansion has taken place.
8608 * PropertyGridView.cs:
8609 - Set the propertygridtextbox text to the selected
8610 StandardValue before proceeding to setting it.
8611 - Scrolling bugfixes.
8613 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8616 - Fix ValueText to not return null.
8617 - Fix conversion error reporting to actually happen.
8618 * PropertyGridView.cs: Set entry only if the text has changed.
8621 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8624 - Fix handling of a null current value.
8625 - Swallow editor exceptions.
8628 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
8630 * PropertyGrid.cs: Clear current items first thing before
8631 repopulating subitems.
8633 - Handle null StandardValuesCollection.
8634 - Mark as not editable if there is no PropertyDescriptor and
8635 if the Converter cannot convert from string.
8636 [Part of fix for bugs #360666 and #358332]
8638 2008-02-15 Luke Page <luke.a.page@gmail.com>
8639 * MaskedTextBox.cs: Now skips non editable characters after a
8640 character has been entered and we are progressing to the next
8641 position in the MaskedTextBox.
8643 2008-02-15 Luke Page <luke.a.page@gmail.com>
8644 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
8645 that it changes the selection rather than just repositioning the
8646 cursor. Fixes Bug #360873.
8648 2008-02-15 Luke Page <luke.a.page@gmail.com>
8649 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
8650 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
8651 correctly. See #359330
8653 2008-02-15 Andreia Gaita <avidigal@novell.com>
8655 * XplatUIX11.cs: If the handle is null when posting a message, use the
8656 current thread queue to post instead. Fixes #332409
8658 * SendKeys.cs: Slight optimization
8660 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
8662 * PropertyGrid.cs, PropertyGridView.cs:
8663 Fix multiple scrolling and sizing issues.
8666 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
8668 * PropertyGridView.cs: Ensure that drop down editors are shown
8669 in the WorkingArea of the screen.
8672 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
8674 * GridEntry.cs: Fail silently when UITypeEditor is missing.
8677 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8679 * Binding.cs: Implement 2.0 DataSourceNullValue property.
8681 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8683 * PropertyGridView.cs:
8684 - Clear the controls in the drop down form after it is hidden.
8685 - Fix Width sizing of the dropdown editors to match MSFT.
8687 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8689 * PropertyGridView.cs:
8690 - Fix height for drawing the grid entry
8691 text value, so that it clips multiline text properly.
8692 - Fix unfocusing to match MSFT.
8694 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
8696 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
8697 Fixes a bug where on repopulation after value changed items become
8700 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8702 * Binding.cs: For the 2.0 profile, look for a
8703 'PropertyChanged' event in the target control, and add checks for
8704 DataSourceUpdateMode property to change -or not- the data source
8705 from validation/control property change.
8707 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
8709 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
8710 not compare struct with null in 2.0).
8712 2008-02-10 Luke Page <luke.a.page@gmail.com>
8714 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
8715 updates the provider and if not using a provider, uses the internal document
8716 class implementation of password char. Also when showing text, uses display string
8717 from the provider, instead of the actual text.
8719 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8721 * Binding.cs: Ooooops, forgot to take into account the data_source
8722 and binding_member_info null case (it was breaking the Binding tests).
8724 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8726 * Binding.cs: Implement support for data source changes exposed by
8727 'PropertyNameChanged' events, and update the control property as
8730 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8732 * Binding.cs: Implement 2.0 WriteValue method.
8734 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8736 Commit patch from James Purcell for better AutoScale implementation:
8738 * ScaleControl should call GetScaledBounds with the control's total size rather
8739 than client size. GetScaledBounds should handle ignoring the borders in its
8740 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
8741 (for the most part they just call the base code now since that is fixed).
8742 * Added ScaleChildrenInternal to allow controls to disable scaling of children
8743 without having to override ScaleChildren (since none of .NET's controls do).
8744 This is required for most controls in Mono that have scrollbars to prevent the
8745 scrollbars from being moved/resized.
8746 * Nested ContainerControls can have a different scale mode than their parent.
8747 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
8748 designer produce different results both of which look incorrect).
8749 * Default AutoScaleMode for ContainerControl should be Inherit.
8750 * Simplified workaround for ComboBox scaling issue.
8751 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
8752 1.0 style auto scaling should scale the whole control's size instead of
8753 ignoring the borders (except for Form) and the rounding is done differently to
8754 preserve control alignment.
8755 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
8757 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8758 * CurrentAutoScaleDimensions should round the estimated character width instead
8760 * ListBox's GetScaledBounds should always use the height it was set to instead
8761 of the height that was passed in. This prevents rounding errors from
8762 accumulating quickly with IntegralHeight.
8765 2008-02-08 Andreia Gaita <avidigal@novell.com>
8767 * Form.cs: Add a null check (darn it).
8769 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8771 * MdiClient.cs: Make sure the requesting form actually owns the
8772 control menu items before removing them. Also, use
8773 Suspend/ResumeLayout when adding or removing items so we only
8777 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
8779 * Control.cs: Guard against an NRE in ShowFocusCues.
8782 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8784 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8785 property, as well as stubbing DataSourceUpdateMode.
8787 2008-02-08 Andreia Gaita <avidigal@novell.com>
8789 * Form.cs: When closing forms, get focus back to the active control of the
8790 active form. [Fixes #341314, corner case]
8792 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8794 * MdiClient.cs: After we move the scrollbars, invalidate the NC
8795 area, so any old scrollbar artifacts are cleaned up.
8798 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8800 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8801 for our menus, display that control box menu instead of the 1.1
8804 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8806 * MdiControlStrip.cs: Add property to access the mdi form tied to
8808 * MdiClient.cs: Be smarter about removing and adding toolstripitems
8809 to the implicitly merged menu. Every time we clicked the form, items
8810 were getting removed and the re-added, causing the form to jump around
8811 as the menu resized.
8813 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8815 * MdiClient.cs: Make sure the NormalBounds always gets set. It
8816 was being reset by the implicit menu merge for menustrips.
8819 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8821 * Form.cs: Don't do the previous change when WindowState = Normal,
8822 or it messes up where the window is placed. Fixes test failure.
8824 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
8826 * Form.cs: When becoming visible, if we are an MDI child, call
8827 SetWindowState with a dummy old_state so that changes will actually
8829 [Fixes the 2nd part of bug #325473]
8831 2008-02-07 Andreia Gaita <avidigal@novell.com>
8833 * Control.cs: Reset properties to their pre parent-change values in case
8834 the new parent == null (in which case we're basically removing the control,
8835 and don't want any events fired due to fake property changes)
8838 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
8840 * PropertyGridView.cs:
8841 - Refactor SetValue to allow setting the value
8842 when a custom editor is used, but the entry is not editable.
8843 - Remove the custom editor control on CloseDropDown.
8846 2008-02-06 Andreia Gaita <avidigal@novell.com>
8848 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8849 reflection only on 1.1, this property is public on system.drawing on 2.0.
8852 2008-02-06 Andreia Gaita <avidigal@novell.com>
8854 * WebBrowser.cs: Do a normal page refresh by default.
8856 2008-02-05 Andreia Gaita <avidigal@novell.com>
8858 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
8859 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8860 platforms. Fixes #359036
8862 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
8863 platform-specific flags.
8865 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8867 * Binding.cs: Add 2.0 BindableComponent property - just return control
8870 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
8872 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8873 Jonathan for this patch. Fixes #358442.
8875 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
8877 * Form.cs: If we change the active MDI child form, let the others
8878 know they need to repaint their title bar so it will appear inactive.
8879 [Fixes part 1 of bug #325473]
8881 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
8883 * PropertyGridView.cs: Do not trucate custom editors' width
8884 and align them to the left.
8885 [Fixes #358353 and #358349]
8887 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8889 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8890 Also fix the arguments passed to CollectionChangeEventArgs in the
8893 2008-02-04 Geoff Norton <gnorton@novell.com>
8895 * Hwnd.cs: The conversion to Quartz coordinates happens in
8896 System.Drawing. Removing this translation from here.
8898 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8900 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8901 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8902 GridItemCollection.cs:
8903 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8905 2008-02-04 Geoff Norton <gnorton@novell.com>
8907 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
8908 SYSKEYUP if any other key has been pressed in the mean time.
8911 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8913 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8914 when the item in current position is different than 0. Also, save the
8915 item index in the beginning of the operation, instead of getting the
8916 index of the item when the event is actually performed. Lastly clean
8917 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8921 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8923 * Form.cs: Alt-Minus for MDI children system menu should work
8924 with both the minus keys on the keyboard.
8927 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8929 * Control.cs: Don't invalidate on region change. The WM should
8930 take care of this automagically. Keeps us out of an infinite
8931 paint loop if someone changes the Region in the OnPaint.
8934 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
8936 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8938 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8940 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8941 down the MonthCalendar only on F4, not Alt+F4.
8942 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8945 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8947 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8948 if its part of a DateTimePicker, else, use the back color.
8951 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
8953 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8956 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8958 * CurrencyManager.cs: When we get a ListChanged event from our source,
8959 always fire our own ListChanged event, as .Net does.
8961 2008-02-03 Luke Page <luke.a.page@gmail.com>
8963 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8966 2008-02-03 Luke Page <luke.a.page@gmail.com>
8968 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8969 property. Removed if for richtext property that was always true.
8970 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8972 2008-02-03 Luke Page <luke.a.page@gmail.com>
8974 * TextBoxBase.cs - commited patch from James Purcell that
8975 correctly sets the FixedHeight control style when the MultiLine
8976 property is changed on a TextBox control. Fixes bug 358229.
8978 2008-02-02 Luke Page <luke.a.page@gmail.com>
8980 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8981 Fixes bug 351938 - caret is positioned correctly when drawn
8982 and when calculating textual position of caret, no longer
8983 has a NRE in certain situations.
8985 2008-02-01 Geoff Norton <gnorton@novell.com>
8987 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8988 get that region removed from the paint event.
8989 * XplatUICarbon.cs: Remove the window mapping after disposing of
8990 window. Prevents a crash with handle reuse. Optimize exposes
8991 only onto visible windows (rare; but possible).
8993 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
8995 * UpDownBase.cs: Make sure the internal textbox calls the base's
8996 OnMouseDown and OnMouseUp so the textbox will function correctly.
8997 There were notes saying it doesn't chain up, but its an internal
8998 class, so our implementation may differ.
9001 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
9003 * ListBox.cs: Fix a logic error and don't process MouseDown
9004 for mouse buttons other than Left.
9006 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
9008 * Control.cs: Remove HeightInternal.
9009 * ListBox.cs: Commit patch from James Purcell that correctly
9010 calculates heights for ListBoxen.
9013 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
9015 * Label.cs: Apply patch from James Purcell that corrects the
9016 signature of the AutoSize property.
9019 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
9021 * ListBox.cs: Don't throw [Mouse]Click events for buttons
9022 other than the left mouse button.
9024 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
9026 * Control.cs: Remove my awesome optimization as it caused some
9027 regressions with control ordering. :(
9030 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
9032 * PropertyGridView.cs: Fix a NRE on double click when there is no
9035 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9037 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
9039 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
9041 * ListBox.cs: Call MouseClick and MouseDoubleClick.
9044 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
9046 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
9047 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
9048 instead of Hwnd.bmp_g.
9050 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
9052 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
9053 Use the Hwnd one instead.
9055 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
9057 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
9059 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
9061 * Form.cs: corcompare for RestoreBounds.
9063 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
9065 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
9067 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
9069 * Form.cs: Handle Alt-Minus for MDI children forms.
9070 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
9071 Add mnemonics to the control menu.
9074 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9076 * Binding.cs: Initial implementation bits of FormattingEnabled
9077 property and BindingComplete event (2.0).
9078 * BindingCompleteEventArgs.cs: Internal methods for setting error text
9081 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
9083 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
9084 table.Location. [Fixes bug #354672]
9086 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
9088 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
9089 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
9091 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9093 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
9094 of doing all the re-bound work, just invalidate and call SetControlText
9095 to set the updated text of selected item to our textbox.
9098 2008-01-28 Andreia Gaita <avidigal@novell.com>
9100 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
9101 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
9102 missing properties and methods. Add Load, Unload, Error, GotFocus,
9103 LostFocus, Resize, Scroll events (only load and unload are connected)
9105 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
9107 * AccessibleObject.cs: Modified argument names to match MS.
9108 * Button.cs: Modified argument names to match MS.
9109 * BindingContext.cs: Modified argument names to match MS.
9110 * BindingMemberInfo.cs: Modified argument names to match MS.
9111 * ButtonBase.cs: Modified argument names to match MS.
9112 * ComboBox.cs: Modified argument names to match MS.
9113 * Control.cs: Modified argument names to match MS.
9114 * CheckedListBox.cs: Modified argument names to match MS.
9115 * CommonDialog.cs: Modified argument names to match MS.
9116 * DataGrid.cs: Modified argument names to match MS.
9117 * CursorConverter.cs: Modified argument names to match MS.
9118 * ControlPaint.cs: Modified argument names to match MS.
9119 * CheckBox.cs: Modified argument names to match MS.
9120 * ControlBindingsCollection.cs: Modified argument names to match MS.
9121 * BindingSource.cs: Modified argument names to match MS.
9122 * DataFormats.cs: Modified argument names to match MS.
9123 * ContainerControl.cs: Modified argument names to match MS.
9124 * CurrencyManager.cs: Modified argument names to match MS.
9125 * Application.cs: Modified argument names to match MS.
9126 * ContextMenuStrip.cs: Modified argument names to match MS.
9127 * ContextMenu.cs: Modified argument names to match MS.
9128 * BindingManagerBase.cs: Modified argument names to match MS.
9129 * WindowsFormsSection.cs: Fixed line ending.
9131 2008-01-27 Andreia Gaita <avidigal@novell.com>
9133 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
9134 detecting that the dropdown toolwindow is hidden. EndLoop outside the
9137 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
9139 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
9140 MS. Code formatting.
9142 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9144 * Binding.cs: Don't avoid the Format event if the control
9145 property type is object. Also, if the value retrieved by
9146 the data source is null _and_ the control proeprty type
9147 is object, return Convert.DBNull (match .Net).
9148 Fixes part of #324286.
9150 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9152 * ListControl.cs: Since we are getting two BinginContextChanged events
9153 for the same binding context instance (when the control is added to
9154 form, and when the form is actually shown), take it into account only the
9155 first time for a given binding context instance.
9156 Fixes part of #324286.
9158 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
9160 * PropertryGridView.cs: Ops.
9162 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
9164 * PropertyGridView.cs: Close dropdown form if the owner form is
9168 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
9170 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
9171 RootGridEntry.cs, CategoryGridEntry.cs:
9172 PropertyGrid rewrite.
9173 - Rewrite all of the control logic in PropertyGrid.
9174 - Rewrite all of the ComponentModel logic in GridEntry.
9175 - Rewrite all UI work in PropertyGridView.
9176 - Many bugfixes, etc.
9178 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
9180 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
9181 when all contained controls are autosize or dock-fill. Also take into
9182 account when the total percentage of column/row sizes is not 100%.
9185 2008-01-24 Andreia Gaita <avidigal@novell.com>
9188 - Save a reference to the IDocument in the instance and
9189 use that one instead of going to WebHost.Document; the document that the
9190 WebHost returns might not be the right one (in case of frames).
9191 - Use the hashcode returned from the IDocument interface.
9192 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
9193 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
9194 LinkColor, Url, VisitedColor, Window
9197 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
9198 set_Attribute, NextSibling, Parent, TagName, AppendChild,
9199 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
9200 SetAttribute, Equals, equality operators.
9201 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
9202 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
9204 * HtmlElementCollection.cs: Change implementation to use a generic
9205 collection. Implemented Enumerator and CopyTo
9207 * HtmlHistory.cs: Add constructor, no implementation yet.
9209 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
9210 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
9211 Equals, equality operators.
9213 * HtmlWindowCollection.cs: Implemented.
9215 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
9216 has been deprecated).
9218 * WebBrowserBase.cs: Use Completed event to track document loading
9219 (Navigated has been deprecated)
9221 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
9223 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
9224 level MenuItems do not respect tabs.
9227 2008-01-23 Geoff Norton <gnorton@novell.com>
9229 * XplatUICarbon.cs: Ensure that windows are created in their initial
9230 FormWindowState. Finished fixing Fullscreen windows on Carbon
9232 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9234 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
9235 be used as grab_control. Also save status of capture before show ContextMenu
9236 and restore it after close.
9238 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9240 * Control.cs: Internal FindRootParent method added to return high control
9243 2008-01-23 Geoff Norton <gnorton@novell.com>
9245 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
9246 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
9247 it work again. Handle HITTEST events.
9249 2008-01-23 Geoff Norton <gnorton@novell.com>
9251 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
9252 a crash in certain cases. Support for fullscreen windows in certain cases.
9254 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
9256 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
9259 2008-01-23 Geoff Norton <gnorton@novell.com>
9261 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
9263 2008-01-23 Geoff Norton <gnorton@novell.com>
9265 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
9267 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9269 * SplitContainer.cs: Remove unused declarations.
9270 * Binding.cs: Remove unused declarations.
9272 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9274 * Form.cs: Remove unused declaration of 'active' in Activate method.
9275 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
9276 prevent compilation warnings.
9277 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
9278 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
9279 * Bindings.cs: Remove unused formatting_enabled declaration.
9280 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
9282 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
9284 * PropertyGridView.cs: Remove usused 'ex' declaration.
9285 * DataGridView.cs: Remove unused declarations.
9287 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9289 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
9291 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
9292 to Control class, it makes possible to grab menu to controls that can't
9293 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
9294 WmMouseMove removed since it was used only to track menu events.
9297 - Moved all active_tracker stuff from Form.
9298 - ProcessActiveTracker added to prevent code duplicity, now mouse events
9299 can call this method instead of reimplement all necessary code handle for
9301 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
9305 - Remove special handle to ToolStripOverflow, now we can grab menu to
9306 controls that can't reach Form using parent tree.
9307 - Change type of grab_control from Form to Control.
9309 2008-01-22 Geoff Norton <gnorton@novell.com>
9311 * TextBoxBase.cs: Split up the sizing of controls and placing of
9312 controls. Fixes a bug where scrollbars in Reflector could be sized
9313 wrong and have non-working thumbers.
9315 2008-01-23 Geoff Norton <gnorton@novell.com>
9317 * XplatUI.cs: Refactor environment variables to default support to the
9318 Carbon driver on the Mac.
9320 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
9322 * Label.cs: Uses new LabelPainter for drawing operations.
9323 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
9324 * Theme.cs: DrawLabel and LabelDefaultSize removed.
9326 2008-01-22 Geoff Norton <gnorton@novell.com>
9328 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
9330 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9332 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
9333 through the normal flat button code and don't draw the checkbox glyph.
9334 * Theme.cs: Button->ButtonBase signature change.
9337 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
9339 * LinkLabel.cs: Uses new class LinkLabelPainter.
9341 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
9343 * MessageBox.cs: Adjust right border space, we don't need to add
9344 "space_border*2" two times.
9346 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9348 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
9349 becomes a wrapper around Padding.
9350 [Fixes a part of bug #354676]
9352 2008-01-22 Geoff Norton <gnorton@novell.com>
9354 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
9355 acquired. Also ensure the buffer is large enough to grab the header
9356 we need on linux boxes.
9358 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
9360 * Control.cs: Implement a custom enumerator so people can delete
9361 from the Controls collection while in a foreach.
9364 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9366 * PropertyGridView.cs: Fix focusing behavior:
9367 - Tab should focus the grid text box.
9368 - Clicking on the labels shouldn't focus the grid text box.
9370 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9372 * PropertyGridView.cs: IsValueTypeGridItem should return true
9375 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
9377 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
9378 - Renamed GridEntry.SelectedObjects to TargetObjects to better
9379 reflect the property name role.
9380 - PropertyGrid.GetTarget is not required as the target is known
9382 - Setting values will handle value types as a special case now and
9383 populate them up in the chain.
9386 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
9388 * Hwnd.cs: Create a public property for the Graphics we keep around.
9390 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
9392 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
9393 when the current object selection changes.
9394 Fixes failing test SelectedObject_Null2.B5.
9396 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
9398 * PropertyGrid.cs: Process Browsable properties with
9399 DesignerSerializationVisibilityAttribute.Content as being expandable.
9400 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
9401 will not be expandable. We should be nested components-friendly now.
9403 2008-01-21 Andreia Gaita <avidigal@novell.com>
9405 * WebBrowserBase.cs: Check if control was loaded properly,
9406 don't bind if it wasn't.
9408 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
9409 GetElementFromPoint, equality operators, OpenNew, Write.
9410 Remove extra set_Body
9412 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
9414 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
9415 that makes our AutoScale* stuff more tolerant to different orders
9416 of being set. [Fixes bug #354669]
9418 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
9420 * PropertyGridView.cs, PropertyGridTextBox.cs:
9421 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
9422 [Fixes #339005 and #348209]
9424 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
9426 * PropertyGridView.cs: Hide the grid text box before adjusting it
9427 for the newly selected GridItem.
9430 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
9432 * Form.cs: Give MDI children the opportunity to cancel the parent form
9433 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
9434 properly for both the parent and child.
9435 * Application.cs: Signature of internal method changed, pass the previous
9439 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
9441 * PropertyGridView.cs: Set the property value only if it has changed.
9444 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
9446 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
9447 If the mouse hasn't actually moved, ignore these messages so the currently
9448 highlighted menuitem isn't reset to the one under the mouse.
9451 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
9453 * PropertyGridView.cs: When the property changes Invalidate the GridItem
9454 in order for the properties with UITypeEditor.GetPaintValueSupported == true
9455 to reflect the change visually.
9458 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
9460 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
9461 to 2.0 button drawing.
9462 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
9463 the button text is tall enough for one line. LineLimit says it will
9464 always draw at least one line, but it is a lie.
9467 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
9469 * XplatUIStructs.cs, X11Keyboard.cs :
9470 added some more VK_* keys to be handled.
9472 2008-01-16 Andreia Gaita <avidigal@novell.com>
9474 * Control.cs: Check if there is a container before setting or getting
9475 the validation flag.
9477 2008-01-16 Andreia Gaita <avidigal@novell.com>
9479 * ContainerControl.cs: Add flag to track if a control cancels validation,
9480 so we don't fire click events.
9483 - (HandleClick) Check if validation was cancelled before firing the click
9484 events (doubleclicks are fired, but not clicks)
9485 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
9486 ContainerControl.set_ActiveControl, but in the case of non-selectable
9487 controls, like a Label, activecontrol is not set.
9489 * ButtonBase.cs: Only fire clicks if validation passes.
9493 2008-01-16 Geoff Norton <gnorton@novell.com>
9495 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
9498 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
9500 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
9501 SelectedPath, just display the default dialog instead of crashing.
9504 2008-01-16 Geoff Norton <gnorton@novell.com>
9506 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
9507 AddExpose instead of trusting apples compositing manager which doesn't
9508 work for our use case. Remove some dead code causing warnings and
9509 redecorate some other code to prevent warnings.
9511 2008-01-16 Geoff Norton <gnorton@novell.com>
9513 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
9514 carbon signals us to redraw. Fixes another portion of the flickering bug
9516 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9518 * Form.cs: Prevent the MdiParent property to be set when value is the same
9519 as value already set. Fixes bug #328019.
9521 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9523 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
9524 it prevents NRE when closing mdi child windows. Fixes bug #325211.
9526 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9528 * InternalWindowManager.cs: Invalidade close button after mouse up when
9529 mdi form is prevented to close.
9531 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
9533 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
9534 thanks to Andy Hume. Fixes bug #325433.
9536 2008-01-16 Andreia Gaita <avidigal@novell.com>
9538 * LinkLabel.cs: Reset focused_index when resellecting the control.
9541 2008-01-15 Geoff Norton <gnorton@novell.com>
9543 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
9546 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
9548 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
9551 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
9553 * ContainerControl.cs: Setting AutoScaleMode to anything should set
9554 Form.AutoScale to false.
9555 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
9556 AutoScaleBaseSize should be changed on Font change unless it has been
9560 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
9562 * MenuAPI.cs: On instance of MenuTracker check if source control is
9563 ToolStripOverflow and use properly method to find form.
9566 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
9568 [Fixes bug #323241 Transparent toolbar support]
9570 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
9573 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
9574 defined in control style to mimic win32 behavior.
9576 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
9577 it will be transparent.
9579 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
9581 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
9582 CreateParams for ToolBar controls.
9584 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9586 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
9587 FixedToolWindow, SizeableToolWindow, or None for border styles have
9588 different minimum sizes than regular forms. Implemented to fix
9589 regression in PDN with toolbox being too wide.
9591 2008-01-14 Andreia Gaita <avidigal@novell.com>
9593 * HtmlElementCollection.cs: Implemented
9595 * HtmlElement.cs: Implemented:
9603 * HtmlDocument.cs: Implemented GetElementsByTagName.
9605 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9607 * Screen.cs: Stub BitsPerPixel to always return 32.
9609 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9611 * Form.cs: Implement RestoreBounds.
9613 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
9615 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
9616 Sebastien and his fabulous magical problem-finding machine:
9617 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
9618 respect the value set.
9620 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
9622 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
9623 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
9625 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9627 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
9628 messages (to match .Net), we need to remove the capture ourselves.
9630 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
9632 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
9633 will process the message and close our window.
9636 2008-01-10 Geoff Norton <gnorton@novell.com>
9638 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
9639 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
9642 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9644 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
9647 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9649 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
9650 Linux doesn't care, having a minimum matches MS and keeps the window
9651 from becoming too small to use window decorations.
9654 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9656 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
9657 ShowFocusCues. Make focus rectangles fit the text instead of the whole
9658 control. [Fixes bug #325419]
9660 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
9662 * ComboBox.cs: Guard against an NRE if the user open a new form from a
9663 SelectedIndexChanged event. This closes the combobox dropdown, and we
9664 were trying to dispose it. [Fixes bug #352830]
9666 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
9668 * Control.cs, Form.cs: Implement the necessary semantics for
9669 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
9670 to determine if a focus rectangle should be drawn.
9671 * PropertyGrid.cs: Fix property visibility to match override.
9672 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
9674 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
9676 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
9679 2008-01-09 Geoff Norton <gnorton@novell.com>
9681 * XplatUICarbon.cs: Scroll windows in the correct direction.
9683 2008-01-09 Geoff Norton <gnorton@novell.com>
9685 * XplatUICarbon.cs: Track all created utility windows so we can hide them
9686 when the app is deactivated or spaces is enabled.
9688 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9690 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
9691 extra separation pixel for the label rect origin if SmallImageList is
9692 null, and thus we don't need that separation between icon and label
9694 Patch by Ernesto Carrea.
9697 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
9699 * StatusStrip.cs: Invalidate after completing a layout. The base
9700 OnLayout does this, but we don't call the base.
9701 * ToolStripItem.cs: Revert the previous change to invalidate after
9703 [Fixes bug #351341 better.]
9705 2008-01-07 Geoff Norton <gnorton@novell.com>
9707 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
9708 not a notification to exit the application. Listen for WM_QUIT
9711 2008-01-07 Andreia Gaita <avidigal@novell.com>
9713 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
9715 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
9717 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
9718 so it can repaint at the correct location.
9721 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9723 * ListControl.cs: SelectedValue should return a null value if
9724 SelectedIndex is -1. Also, when setting it, it should throw an
9725 ArgumentNullException if the value is null, as well as taking
9726 into account the String.Empty value, instead of ignoring it (we have
9727 tests for that now).
9728 Fixes part of #324286.
9730 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
9732 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
9733 SelectionStart is updated after pressing enter. Fixes bug #351918.
9735 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9737 * TextControl.cs: Revert a piece r92316 that prevented the fix
9738 from working when there were multiple tags in the text box.
9741 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9743 * TextControl.cs: Apply patch from Luke Page that prevents an
9744 NRE when determining the beginning of a paragraph.
9747 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9749 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
9750 caret gets moved with clicking away from a selected block of
9751 text. Fixes bug #351885.
9753 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9755 * TextControl.cs: Apply patch from Luke Page that takes line
9756 alignment into account for mouse selection, so that center and
9757 right aligned text can be selected.
9760 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9762 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9763 issues after loading an RTF file by using the correct line feeds.
9766 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
9768 * TextControl.cs: When deleting multiple line selections, we need
9769 to invalidate every line beginning at the first line of the selection.
9770 Patch from Luke Page fixes bug #351791.
9772 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9774 * ListControl.cs: When getting a CurrencyManager.PositionChanged
9775 event, don't set SelectedIndex if the number of items is 1. This is
9776 because, for the first item, PositionChanged is fired _before_
9777 ItemChanged (the place where we actually populate the items), and
9778 leave us in a temporary invalid state (since items collection is
9782 2008-01-04 Geoff Norton <gnorton@novell.com>
9784 * XplatUICarbon.cs: Create native toolwindows instead of
9785 the managed drawing ones.
9787 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9789 * LineTag.cs: If the line doesn't have any characters, return
9790 0 for GetCharIndex. Fixes an AOORE exception after certain
9791 caret movements. Fixes bug #351683. Patch by Luke Page.
9793 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9795 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9796 is hit when there is selected text, only the selected text gets
9797 deleted, not the character in front of the selection as well.
9800 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9802 * ComboBox.cs: When the values are displayed, calculate the
9803 ComboListBox scrollbar's LargeChange based on the visible area's
9804 height and the actuall ItemHeight, instead of calculating it
9805 based on MaxDropItems value, since it's not used by our _current_
9809 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9811 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9812 Patch from Luke Page that fixes issues with font colors and styles
9813 not showing up in a readonly RichTextBox. Fixes bug #324354.
9815 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
9817 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9818 from Luke Page. This one fixes bug #349926.
9820 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9822 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9823 an item in the IBindingList source changes with
9824 ListChangedType.ItemAdded. Ignore for now firing the event for other
9825 changes, since we want to have tests for those cases as well.
9827 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9829 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9832 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9834 * TextBoxTextRenderer.cs: Implement a cache for measuring each
9835 character. This is effective because the typical usage of a
9836 TextBox is with a limited amount of fonts and characters, and
9837 the current implementation of TextBox measures everything one
9838 character at a time. Another second or two speedup for bug #347238.
9840 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9842 * Control.cs: Rewrite the Font getter to only query the parent's
9843 Font property once instead of twice. Since this operation is
9844 recursive, the queries were growing exponentially as the control
9845 tree got deeper. Another second or two speedup for bug #347238.
9847 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
9849 * Control.cs: Avoid setting a parent (and more importantly, updating
9850 the zorder of all its children) if the parent is already correct in
9851 WmShowWindow. Decreases the startup time of the test case on bug
9852 #347238 from 35 seconds to 11 seconds.
9854 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9856 * X11Dnd.cs: When the dnd operation has started and we are
9857 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9858 This is done to match .Net, which doesn't send those messages after
9859 dnd operation was completed/cancelled.
9862 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
9864 * ToolStrip.cs: Previous change should be != null, not == null.
9867 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
9869 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9870 user may have moved the mouse off the current item during the event.
9872 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9874 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9875 calling GetItemAt for every MouseMove event by also taking into
9876 account whether any mouse button is pressed (probably dragging);
9877 if so, we can call GetItemAt, and if not, try to not call it
9878 (GetItemAt can be quite expensive when used with a large number of items).
9880 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9882 * ListView.cs: Implement -finally- support for dnd, by calling
9883 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9885 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9886 simple calculation of distances for all the items in the owner
9889 2007-12-21 Geoff Norton <gnorton@novell.com>
9891 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
9892 for windows that are originally created as invisible. Fixes missing
9893 main window in paint-mono.
9895 2007-12-21 Geoff Norton <gnorton@novell.com>
9897 * XplatUICarbon.cs: Register our D&D handler. Register our custom
9898 subclass handler for com.novell.mwfview subclassing HIView. Implement
9899 Pasteboard and Dnd methods.
9901 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9903 * ListBox.cs: When we got focus, give focus to first item if there
9904 wasn't any pervious focused item. Also update navigation to depend on
9905 SelectedIndex rather than FocusedItem, just as .Net does.
9908 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9910 * ListBox.cs: Both FindString and FindStringExact methods must do an
9911 case insensitive search, should allow the last valid index to be
9912 passed in the overload taking an initial index, and should also
9913 continue searching from the top back to the specified index when it
9916 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9918 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9919 redraw issue, and allows RichTextBox to draw colored text even while
9920 disabled or readonly.
9922 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9924 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9925 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9926 and doesn't grey text in a disabled RichTextBox.
9928 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9930 * RichTextBox.cs: Apply patch from Luke Page that adds better support
9931 for many RTF commands: quad alignment, separate formatting for blocks
9932 inside groups, and ParDef support. Makes the test case from bug #324589
9935 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9937 * LineTag.cs: Fix an error in the new Draw method that caused
9938 a crash when rendering the document on bug #324589.
9940 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
9942 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9943 TextControl.cs: Apply patch from Luke Page that adds support
9944 for URL links in RichTextBox.
9945 [Fixes enhancement #342516]
9947 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
9949 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9950 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9952 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9954 * ListBox.cs: When a key gets pressed, try to find a string
9955 if the key is a character or a digit.
9958 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9960 * TableLayoutPanel.cs: Remove some unused variables.
9962 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9964 * DateTimePicker.cs: Commit patch from Luke Page that ensures
9965 we don't end up at an invalid date when we click the up/down
9966 spinner to change the month or year. Fixes bug #348682.
9968 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
9970 * Application.cs: Calling Exit in 2.0 should chain to the
9971 Exit (CancelEventArgs) version so it can be cancelled.
9972 * Form.cs: Create a flag to allow raising the Closing
9973 events to be skipped. We raise them once in Application.Exit
9974 and don't want to raise them again when the Form is actually
9975 closed. [Fixes bug #349073]
9977 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
9979 * ToolStripDropDown.cs: Guard against an NRE when there
9980 hasn't been a mainform set in the application context.
9983 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9985 * ListBox.cs: When SetBoundsCore gets called, besides
9986 calling UpdateScrollBars, update the value of
9987 last_visible_index, since we could need to show more items
9988 than before, and we need to let the paint routines know that.
9991 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9993 * ListView.cs: Add DesignerSerializationVisibility attribute to
9994 InsertionMark property.
9995 * ListViewItem.cs: Add same attribute to Position property.
9997 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9999 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
10002 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
10004 * ThemeWin32Classic.cs: Don't draw the background on a
10005 flat button if there is a background image.
10006 [Fixes bug #348649]
10008 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10010 * ListBox.cs: If we remove the item currently selected,
10011 remove it not only from SelectedItems, but also
10012 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
10013 the items count decreased and focused_item has bigger value than that.
10015 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
10017 * Control.cs: Perform our layout after we resize ourselves
10018 if we had to adjust our AutoSize. Missed commit for bug
10021 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
10023 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
10024 we can provide an implementation of AutoSize.
10025 [Fixes bug #346246]
10027 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10029 * ListBox.cs: Add the internal overload Sort (bool paint),
10030 to indicate whether we actually need a paint or we will
10031 call Refresh ourselves. This way we don't request a paint
10032 _before_ having an updated and valid layout.
10035 2007-12-12 Andreia Gaita <avidigal@novell.com>
10037 * XPlatUIX11.cs: Send paint messages when updating a systray icon
10038 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
10039 properly invalidated.
10042 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10044 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
10045 don't simply assign it to our internal group field, but instead
10046 use our Group property, which should do all the neccessary work
10047 required to support groups. Fixes an issue reported to me (mail) by a
10048 guy using this new feature.
10050 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
10052 * Control.cs: Use Scale instead of ScaleControl to ensure the
10053 whole hierarchy gets scaled.
10054 [Fixes bug #347282]
10056 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
10058 * DateTimePicker.cs: Don't set the internal MonthCalendar's
10059 Parent property. Doing this causes the control to be hosted by
10060 the Form instead of being a popup window.
10061 [Fixes bug #347665]
10063 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
10065 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
10066 at an index higher than Count, just use Add instead of Insert.
10067 [Fixes bug #347669]
10069 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
10071 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
10072 DrawPictureBox, this is handled by Control.PaintBackground.
10073 [Fixes bug #347276]
10075 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
10077 * MenuAPI.cs: When process menu keys return true by default only if menu is
10078 active. Fixes bug #342892.
10080 2007-12-09 Andreia Gaita <avidigal@novell.com>
10082 * Control.cs: check if windows are actually mapped before
10083 trying to zorder. Fixes #342509, #346955
10085 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10088 * ListViewInsertionMark.cs:
10089 * ThemeWin32Classic.cs: Implement the drawing side of the
10090 new 2.0 ListView.InsertionMark property.
10092 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
10094 * CurrencyManager.cs: Silence some debug spew.
10096 2007-12-07 Geoff Norton <gnorton@novell.com>
10098 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
10099 masks for our children as well as siblings to avoid having to query
10100 Quartz for this information.
10101 * XplatUICarbon.cs: Implement a delegate based system to pass
10102 information to System.Drawing. Implement Async methods. Remove
10103 the hack for the resize thumb and imlpement a transparent Grow Box.
10104 Rework the messaging system to proplery create window's and messages,
10107 2007-12-06 Andreia Gaita <avidigal@novell.com>
10109 * X11Keyboard.cs: Use Xutf8LookupString to support international
10110 characters under alternate codepages. Patch from #340878
10112 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10114 * ListView.cs: When doing layout computations, set position in the
10115 ListView instances (we cache the position just as .Net does).
10116 * ListViewItem.cs: New internal setter method for Position. Also set
10117 position field as also available in 1.1, since we are going to use it
10118 now in the common case.
10120 2007-12-06 Andreia Gaita <avidigal@novell.com>
10122 * Control.cs: When removing controls, get the actual container
10123 to notify about active control changes. Fixes 341314.
10125 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10127 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
10129 2007-12-05 Andreia Gaita <avidigal@novell.com>
10131 * Control.cs: When updating the zorder, ignore windows that are not
10132 mapped. Fixes #342509
10134 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10136 * ListViewItem.cs: Actually implement serialization on this class.
10138 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
10140 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
10141 LinkCollection. Spaces to tabs, and removed extra tabs.
10143 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10145 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
10146 tests to fail (hopefully).
10148 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10150 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
10151 the image margin so custom renderers can correctly place it.
10153 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10155 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
10156 so custom renderers can correctly place it.
10158 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
10160 * Application.cs: Let WM_CHAR messages flow through to controls
10161 hosted in Strips. [Fixes bug #343972]
10163 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
10165 * ToolStripManager.cs: Guard against an NRE I ran into.
10167 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
10169 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
10170 a Link is manually added to the Links collection, we need to set
10171 its owner, so it can invalidate properly.
10172 [Fixes bug #344012]
10174 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10176 * ListView.cs: When changing ListViewItem.Position (which calls
10177 ListView.ChangeItemLocation), invalidate not only the area
10178 corresponding to the main item, but also to the area occupied
10179 by the items being moved.
10181 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10183 * ListView.cs: When changing the position of a given item,
10184 don't use item bounds, but item areas (which includes the item spacing
10185 between them). Also, use first/last position if the requested
10186 position is outside bounds (as .Net does). Invalidate the previous and
10187 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
10188 in a specific position, instead of directly accessing Items collection
10189 (this is done to get the right item - remember an Item can have a
10190 different position in the grid than in the Items collection).
10192 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10194 * MessageBox.cs: Calculate text area instead of just top left, this rect
10195 area will be used in DrawString. Fixes bug #343364.
10197 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10199 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
10200 screen width. Partially fixes bug #343364.
10202 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
10204 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
10205 code inside recalculate, it makes code more simple.
10207 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
10209 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
10210 between update or add icon. Fixes bug #324344.
10212 2007-11-21 Andreia Gaita <avidigal@novell.com>
10214 * XPlatUIX11.cs: Do not treat tool windows as if they have no
10215 window manager, since that stretches the drawing area to include
10216 the window decorations, and they get hidden. Reverts r84444 and fixes
10217 #335849 and #342790 (mdi and pdn3 regression)
10219 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10221 * ListView.cs: When setting focused item, try to give focus to the
10222 previous one _only_ if the previous one remains valid.
10225 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
10227 * Application.cs: Revert r89650, as it broke a common case to fix
10228 an obscure case. Fixes bug #342606.
10230 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
10232 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
10234 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
10236 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
10237 alignment. [Fixes #324228]
10239 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
10241 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
10242 [Fixes bug #342123]
10244 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
10246 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
10247 it prevent problems when empty captions. [Fixes #342141]
10249 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
10251 * Label.cs: Use Size instead of None. Fixes bug #342077.
10253 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10255 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
10257 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
10259 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
10260 but there isn't a MdiContainer.
10261 [Fixes bug #342358]
10263 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
10265 * TextControl.cs: Don't recalculate document if the recalc_start and
10266 recalc_end hasn't changed.
10267 [Fixes bug #342505]
10269 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
10271 * DataGridViewTextBoxCell.cs: Removed CWL.
10273 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10275 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
10277 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
10279 * TextControl.cs: Missed some code for bug 341534 to trigger a
10280 recalculation when the font changes.
10282 2007-11-16 Andreia Gaita <avidigal@novell.com>
10284 * Control.cs: When updating the zorder, check if the child to update is
10285 the same control that is set to always be on top (i.e., scrollbars), and
10286 just put it on top directly. Fixes BadMatch error on pdn3
10288 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10290 * ListView.cs: Throw the needed exceptions for FindNearestItem.
10292 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
10294 * Control.cs: Don't perform a new layout when a label changes its text,
10295 cause label handles its own autosizing.
10296 [Fixes bug #342077]
10298 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10300 * ListView.cs: Implement 2.0 FindNearestItem methods.
10302 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10304 * ToolStripPanel.cs: Make Join at least add the control to the panel,
10305 even if the rest of what Join does isn't supported. Add some more
10306 support for vertical toolbars.
10307 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
10308 [Fixes the application breaking parts of bug #341998]
10310 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10312 * ToolStripItem.cs: When determining if we have a check/image margin,
10313 we need to look at ShowCheckMargin as well as ShowImageMargin.
10315 2007-11-15 Geoff Norton <gnorton@novell.com>
10317 * XplatUIOSX.cs: Rename to...
10318 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
10319 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
10321 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
10323 * KeysConverter.cs: The default values should be an array of Keys, not
10324 strings. Also, the array has more values for 2.0.
10325 [Fixes bug #341851]
10327 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10329 * Application.cs: Change ExecutablePath to use
10330 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
10331 [Fixes bug #323552]
10333 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10335 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
10336 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
10337 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
10338 be ignored. Create a new GetLineEnding that can specify which types of
10339 line endings to look for. On Insert, only create new lines for \n and \r\n.
10340 [Fixes bug #324274]
10342 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
10344 * TextBoxBase.cs: As we loop through each line changing the font, tell
10345 the document that the line needs to be recalculated. Fixes bug #341534.
10347 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
10348 [Another round of refactoring]
10349 * Line.cs: Add DeleteCharacters.
10350 * LineTag.cs: Add Delete.
10351 * TextBoxBase.cs: Update to use new methods.
10352 * TextControl.cs: Refactor the Delete* methods.
10354 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
10356 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
10357 the patch. [Fixes #324856]
10359 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10362 * ListViewItem.cs: Add an initial implementation of
10363 2.0 ListViewItem.Position getter.
10365 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10367 * ListView.cs: Add a reordered_items_indices array, to allow us
10368 to have a different sorting than that of Items (the sorting in Items
10369 could not match the actual sorting in screen). This is needed to
10370 implement a pair of 2.0 features.
10371 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
10372 actual position in the ListView grid, since it could have a position
10373 different than its Index (position in ListViewItemCollection).
10375 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
10377 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
10378 not draw partial lines.
10379 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
10380 LineLimit flag from the base is preserved.
10381 Fixes the windows part of bug #338965.
10383 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
10385 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
10386 so that it can be canceled in KeyPress.
10389 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10391 * ListView.cs: In ItemControl, reset mouse-handling related
10392 fields even if we dont' have items (we still should reset them when
10393 we had items but then called Items.Clear). Partially based in a patch
10397 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
10399 * Application.cs: In ProductVersion first try AssemblyFileVersion
10400 before falling back to assembly version. Fixes bug #339787.
10402 2007-11-08 Andreia Gaita <avidigal@novell.com>
10404 * HtmlElement.cs: Implement InnerText setter.
10405 * WebBrowserBase.cs: Implement Navigated event support.
10406 Add flag to track when the browser "document" is ready to be retrieved.
10407 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
10408 Make sure browser document is ready before retrieving it.
10409 Clean up cached objects (document) when moving to a new page through
10410 any of the navigation methods.
10411 Use the new Mono.WebBrowser.INavigation interface to control navigation.
10412 Implement OnNavigated event.
10414 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
10416 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
10417 DrawLinkLabel, this is handled by OnPaintBackground.
10418 Fixes bug #339565, part II.
10420 2007-11-07 Andreia Gaita <avidigal@novell.com>
10422 * Control.cs: Revert r88915. Selecting text on a textbox depends on
10423 getting a Select call on click, so this call needs to be here for now.
10426 2007-11-07 Geoff Norton <gnorton@novell.com>
10428 * OSXStructs.cs: Add the kEventClassApplication constants.
10429 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
10430 application is deactivated otherwise Menu overlays linger on top of
10431 other application windows.
10433 2007-11-07 Geoff Norton <gnorton@novell.com>
10435 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
10436 dont support cursors yet anyways. This allows Reflector to run.
10438 2007-11-07 Geoff Norton <gnorton@novell.com>
10440 * XplatUIOSX.cs: Implement DragSize.
10442 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10444 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
10445 ItemControl, request the focus, as .Net does. This is needed after
10446 Control does not request focus anymore when it receives a
10449 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
10451 * Label.cs: Make DrawImage internal so it can be called from Theme code.
10452 Remove the DrawImage call from OnPaint.
10453 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
10454 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
10455 but before we draw the text for DrawLabel and DrawLinkLabel.
10458 2007-11-05 Andreia Gaita <avidigal@novell.com>
10460 * Control.cs: Remove select call on click. Fixes #325809
10462 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10464 * ListViewItem.cs: Add 2.0 Position property getter.
10466 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10468 * ListView.cs: Add 2.0 BackgroundImageTiled property.
10469 Also, to make it work properly, change item's BackColor and
10470 BackgroundImageLayout as needed.
10471 * ThemeWin32Classic.cs: Don't fill any background rectangle
10472 in ListView.ItemControl when drawing items; just let the Control
10473 base implementation fill it.
10475 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10477 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
10478 as well as adding a custom 'dummy' Converter, as .net does.
10480 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10482 * PropertyGridView.cs: When clicking drop-down button,
10483 select an index in the listbox only if our standard values collection
10484 has one or more items.
10486 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10488 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
10491 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
10493 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
10494 the value is not changed. This ensure a pushed button remains in that
10495 state when clicked again. When switching the value of PropertySort
10496 between Categorized and CategorizedAlphabetical, do not update the
10497 grid items and do not fire a PropertyChangedEvent. When clicking the
10498 sorting buttons, do not modify the PropertySort value when switching
10499 between Categorized and CategorizedAlphabetical but only update the
10502 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
10504 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
10506 * PropertyGrid.cs: Also put Categorized button in pushed state when
10507 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
10508 for help description label.
10510 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10512 * ListView.cs: When calculating the biggest item for a given column,
10513 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
10516 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
10518 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
10519 value for PropertySort on 1.0 profile. PropertySortChanged event
10520 should only be fired on 2.0 profile. Fixed NullReferenceException
10521 in UpdateSortLayout when PropertyGrid contains no items.
10523 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
10525 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
10526 [Fixes bug #338554]
10528 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10530 * ListViewItem.cs: Implement 2.0 IndentCount property.
10532 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10534 * X11Dnd.cs: When sending status in a dnd operation, compare current
10535 effect with the 'allowed' field instead of 'drag_data.Allowed', since
10536 the later is only created when a Winforms application is both the
10537 source and the target, but not when we are the target only.
10538 Fixes part of #324251.
10540 2007-11-01 Geoff Norton <gnorton@novell.com>
10542 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
10544 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
10545 children out of the drawing view on mac.
10546 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
10547 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
10549 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
10551 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
10552 on the non-hosted-control part of it shouldn't do anything.
10553 Fixes part of bug #327498.
10555 2007-11-01 Andreia Gaita <avidigal@novell.com>
10557 * WebBrowserBase.cs: revert previous change, resize can be called anytime
10559 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
10561 * Application.cs: When a toolstrip has the keyboard input loop, let messages
10562 it does not use flow through to controls that are hosted in menus.
10563 Same with mouse clicks.
10564 * Form.cs: Don't close all menus on click if the click is on a
10565 control hosted in a menu.
10566 Fixes part of bug #327498, and part of bug #325969.
10568 2007-10-31 Andreia Gaita <avidigal@novell.com>
10570 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
10572 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
10574 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
10575 Addresses an issue raised in bug #336218.
10577 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
10579 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
10580 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
10582 2007-10-30 Andreia Gaita <avidigal@novell.com>
10584 * ContainerControl.cs: Check if the active control is a
10585 child of a removed control and update active_control accordingly.
10588 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10590 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
10591 or the MaxDate. Fixed bug #337693.
10593 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10595 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
10596 after calling SetWindowLong for a form, to force an immediate NC refresh.
10597 Fixes first part of bug #325150.
10599 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10601 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
10602 simple. Fixes the last part of bug #322668.
10604 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
10606 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
10607 needs to be TopMost as well, or else the MessageBox is under the form.
10608 Patch by George fixes bug #325300.
10610 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10612 * X11Dnd.cs: When starting a new drag operation, reset the static
10613 'dropped' field to false (previously the implementation didn't reset
10614 it and got confused after the first drag).
10617 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10619 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
10620 items instead of re-creating them all. For this purpose we now cache
10621 both CategoryGridEntry items and the GridEntries for the main object's
10623 * GridItem.cs: Make SetParent method abstract.
10624 * GridEntry.cs: Override the SetParent method (already there, but now
10628 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10630 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
10631 depending on its depth (as .Net does). Update the needed values in
10632 MouseDown handler. Also draw the plus/minus rect after the label,
10633 so we don't draw on top of it.
10635 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
10637 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
10638 processed by forms or controls when menu is active. [Fixes #333548]
10640 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10642 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
10643 parent doesn't have focus. This was causing ToolStripTextBoxes to take
10644 focus on mouse over.
10646 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10648 * TextControl.cs: Code cleaning, simplifying.
10650 2007-10-24 Geoff Norton <gnorton@novell.com>
10652 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
10653 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
10655 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
10657 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
10658 the cap is maxvalue, not actually 0. [Fixes bug #336218]
10660 2007-10-24 Andreia Gaita <avidigal@novell.com>
10662 * SendKeys.cs: apply jpobst's patch to bug #332409
10664 2007-10-23 Andreia Gaita <avidigal@novell.com>
10666 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
10667 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
10670 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10672 * PropertyGridView.cs: If a property has an UIEditor available,
10673 make the drop-down/editor button available only if the property
10674 is _not_ read only.
10676 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10678 * PropertyGridView.cs: Don't make the grid item textbox
10679 editable when a drop-down control is available, but
10680 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
10681 true. The same bur the color of the grid item value's label.
10683 2007-10-22 Geoff Norton <gnorton@novell.com>
10685 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
10686 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
10687 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
10688 driver. Padd the bottom of all real windows so the resize thumb doesn't
10689 obscure scroll/status bars.
10691 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
10693 * WindowsFormsSection.cs: Implement.
10695 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
10697 * MdiClient.cs: Maximize new active mdi child when a maximized child is
10698 closed see #325434 patch.
10700 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
10702 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
10705 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10707 * PropertyGridView.cs: When showing the textbox for a grid item,
10708 have two local variables to store the read-only and non-editable
10709 status of a grid item (we were previously using just one variable
10710 to do this, when actually they are slightly different).
10711 Fixes part of #325023.
10713 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10715 * PropertyGridView.cs: When showing a drop-down list, try to get the
10716 values using TypeConverter.ConvertTo (to convert to a string). Fixes
10719 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10721 * PropertyGrid.cs: When updating a property and populating sub grid
10722 items, remove the previous ones, and invalidate the specific area.
10723 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
10724 area behind a grid item.
10725 * GridItemCollection.cs: Add an internal Clear method, to allow us to
10726 clean the items if needed (specially for controls implementing
10727 ICustomTypeDescriptor and returning a variable number of properties).
10730 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
10732 * TextControl.cs: Clean up and document the Insert function.
10734 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10736 * TextControl.cs: Make sure we know our start point for updating the view
10737 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
10740 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10742 * ListView: Couple of corcompare fixes.
10744 2007-10-17 Geoff Norton <gnorton@novell.com>
10746 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
10747 the title caption of real window.
10749 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10751 * ErrorProvider.cs: Add the error provider's internal window to a
10752 containercontrol when the parent changes. [Fixes bug #329714]
10754 2007-10-17 Geoff Norton <gnorton@novell.com>
10756 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
10757 When we make a new window; restore the old active window - fixes dialogs.
10759 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10761 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10762 when modifying a property, and if found then invalidate as
10764 Fixes part of #324865.
10766 2007-10-17 Geoff Norton <gnorton@novell.com>
10768 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
10769 highly experimental. Fixed coordinate translation. Fixed window locations.
10770 Initial support for clipping. Implemented NC areas and menus. Support for
10771 launching from command line from Will Johansson (wjohansson@atacomm.com).
10772 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10773 wjohansson@atacomm.com)
10774 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10775 Hwnds now track the existence of all of their children for Mac clipping.
10776 * XplatUI.cs: Re-enabled the native driver on the Mac.
10778 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
10780 * Line.cs: Move the InsertString function to here.
10781 * TextControl.cs: Cleanup some duplicate code, move some InsertString
10782 functionality to Line.
10784 2007-10-17 Geoff Norton <gnorton@novell.com>
10786 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
10788 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
10790 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10791 always setting value to true.
10792 * Form.cs: When changing AcceptButton, notify new and original button.
10794 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
10796 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10797 a custom control that implements IButtonControl instead of an actual
10798 button. [Fixes bug #334244]
10800 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
10802 * Form.cs: Change SelectActiveControl to internal, we need to call it in
10805 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10806 active control when activate a new mdi window.
10808 [Fixes bug #330495]
10810 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
10812 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10814 [Fixes bug #333617]
10816 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10818 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10819 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
10820 so we always recalculate the whole document instead of just the new part.
10821 [Fixes bug #325082]
10823 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10825 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10826 when the mouse was to the left of the first character in the line.
10828 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
10830 * TextBox.cs, TextBoxBase.cs: When setting the document's password
10831 character, use the property instead of the variable so that the
10832 UseSystemPasswordChar property is taken into account.
10833 [Fixes bug #333748]
10835 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10837 * FolderBrowserDialog.cs: When a node is right clicked and the "New
10838 folder" contex menu appears, actually add the new folder to it, even
10839 if the node is not currently selected. Still use SelectedNode in case
10840 there wasn't found a node under the pointer.
10843 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10845 * ListViewItem.cs: When retrieving the focused state, the index check
10846 should be done only when ListView is in virtualmode, as it is an
10847 expensive check for normal mode.
10849 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10851 * ListViewItem.cs: Make the focus state information be stored
10852 in the ListView, not in the items. This is done to match the MS
10853 behaviour for items that are not yet part of a ListView control;
10854 besides that, since just one item can be focused at the same time,
10855 we save a little space in our items.
10856 Fixes part of #331643.
10858 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10860 * ComboBox.cs: When focus is lost, deselect the text. When setting
10861 text of control, select all text. Do not hide selection when control
10862 does not have focus. Fixes bug #333663.
10864 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10866 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10867 instead of ArgumentException when SelectionLength is set to negative
10868 value. Added same check to SelectionStart. Code formatting.
10870 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
10872 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10873 or SelectionStart. Code formatting.
10875 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10877 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10878 indicating that there was not a previous drag-and-drop operation going
10880 Fixes part of #325071.
10882 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10884 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10885 AllowedEffect, don't let the drop operation happen.
10888 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10890 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10892 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10894 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10897 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
10899 * Line.cs: Add a method that finds the tag that contains an x-coord.
10900 * LineTag.cs: Add a method that finds the character at an x-coord using
10901 a binary search, the old way was a linear search.
10902 * TextControl.cs: Change FindCursor to use the above new methods.
10904 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10906 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10907 value different than AllowedEffect). This should be possible to
10908 indicate that dragging is not possible in some control/area.
10910 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
10912 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
10913 descent internally when font changes instead of outside code being responsible
10915 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10916 instead of accessing internal variables.
10918 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
10920 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10921 remove special treatment for ArrangeIcons since it is already arranged.
10923 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10925 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10926 the Win32 backend uses Color.
10927 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10928 Refactor to store a Color instead of a Brush for Color.
10930 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10932 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10933 away. I didn't realize I needed this when I refactored these earlier.
10935 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10937 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10938 store a Color structure and use the ResPool for back color instead of
10939 holding onto brushes.
10941 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
10943 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10944 [Fixes bug #325592]
10946 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10948 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10949 to recalculate its size. Fixes a part of bug #331052.
10951 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10953 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10954 button. Fixes a part of bug #331052.
10956 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10958 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10960 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10962 [Fixes bug #330986]
10964 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10966 * TextBoxTextRenderer.cs: Don't make this a static class, as static
10967 doesn't exist in 1.1. (Thanks jb!)
10969 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
10971 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10972 class to allow us to use different backends on different platforms.
10973 Linux uses the current [Draw|Measure]String backend. Windows uses
10974 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10975 of GDI+. This leads to better looking text and more accurate measurements
10976 on Windows, fixing many of the reported issues.
10977 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10979 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10981 * FolderBrowserDialog.cs: When running on Windows,
10982 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10983 since we must match both "C:" and "C:\" forms. A little hackish, but
10987 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10989 * ListView.cs: When calling EndEdit (after editing an item),
10990 create a new instance of LabelEditEventArgs to keep clean the fields
10991 in case we get a new call to BeginEdit; also do Application.DoEvents
10992 to have focus in synch. This is a fix similar to TreeView's #325244.
10994 2007-10-07 Andreia Gaita <avidigal@novell.com>
10996 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10997 * WebBrowserBase.cs: Added dialog support, calling the
10998 WebBrowserDialogs classes for each specific dialog type.
11000 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11002 * ListView.cs: When the last item is focused and is removed,
11003 move the focus to the previous item (in Items order). This is what MS
11007 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11009 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
11010 instead of the opposite (RemoveAt call Remove). This is a better
11011 approach since we don't need to to a pair of traversals when using
11014 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11016 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
11017 check that the node actually has nodes, and if not, move to the
11018 parent node instead.
11021 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11023 * TreeView.cs: Move the previous change to the general case (to
11024 call Application.DoEvents in cases where the method was called by
11027 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11029 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
11030 call Application.DoEvents. This is neccessary when we get a call to
11031 BeginEdit from an AfterLabelEdit handler, because the focus always
11032 goes to the TreeView, even if we try to give it to our
11033 LabelEditTextBox. The call do Application.DoEvents seems to
11034 synchronize the focus, basically.
11037 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11039 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
11040 should be false. This also removes some nasty recursive paths. Fixes
11043 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
11045 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
11046 state to normal. Also resize window when cascading. Fixes #325433.
11048 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
11050 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
11051 DefaultForeColor, as drawing empty colored lines isn't very useful.
11052 [Fixes the not drawn lines part of bug #324358]
11054 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
11056 * TextControl.cs: Move Line and LineTag classes into separate files to
11057 make things easier to find.
11058 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
11059 * RichTextBox.cs: Capitalize LineTag.Length property access.
11060 - This is purely an organizational/formatting change, no logic changed. -
11062 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
11064 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
11067 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
11069 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
11072 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
11074 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
11075 prevent calling of OnBackColorChanged. Fixes #325321.
11077 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
11079 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
11080 because control can be disabled because owner is disabled.
11082 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
11084 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
11085 string.Empty, test failed from previous change.
11087 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
11089 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
11090 is null, not String.Empty. See bug #323038.
11092 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
11094 * TextControl.cs: Change the margins to match MS a little better.
11095 Still not perfect for X11 due to some DrawString differences, but
11096 is still an improvement over the old stuff.
11097 Partially fixes #324467.
11099 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11101 * FolderBrowserDialog.cs: When using MyComputer as
11102 RootFolder, let absolute paths be considered as valid ones. Also, use
11103 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
11104 for Windows compatibility.
11105 Partially fixes #325247.
11107 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11109 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
11110 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
11111 method, since it causes the dialog to not select folders directly
11112 under the root path (when setting SelectedPath property).
11114 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11116 * TreeNode.cs: When calling Expand/Collapse and need to call
11117 ExpandBelow/CollapseBelow respectively, take into account
11118 partially visible nodes (previously Expanding/Collapsing
11119 a partially visible node in the bottom was not updating its +- sign).
11121 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11123 * TreeView.cs: When calling Expand on a TreeNode, and we need to
11124 expand nodes below (ExpandBelow), scroll the entire Viewport
11125 area if the node is above it and not visible (instead of scrolling
11126 the area from node's Bottom, which applies only when the node is
11130 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11132 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
11133 node in the bottom area (as .Net does). This is done to preserve the
11134 scroll position when ExpandAll is called before handle is created for
11135 the 1.1 profile (bottom area, as opposed to top area in 2.0).
11138 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11140 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
11141 bottom area if we are in fact not using the vertical scroll bar.
11144 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
11146 * Control.cs: Comment out a double buffering optimization that doesn't
11147 take into account invalidates created in OnPaint, causing the control
11148 to never be redrawn. It would take quite a bit of work to work around
11149 this, but I left it commented with an explanation for later possible
11151 [Fixes bug #328681]
11153 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
11155 * Control.cs: Ask parent to perform a layout if control is AutoSize and
11157 * RadioButton.cs: Implement GetPreferredSizeCore.
11158 [Fixes bug #328672]
11160 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
11162 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
11165 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
11167 * Application.cs: Move the sync context stuff to Run instead of RunLoop
11168 so that it doesn't get uninstalled on modal forms.
11169 * Control.cs: Install a sync context when a control is created.
11170 * WindowsFormsSyncronizationContext.cs: Create a private static control
11171 to invoke on. This is easier than trying to find a created control we
11173 [Fixes bug #327608]
11175 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
11177 * Application.cs: Install a WindowsFormsSynchronizationContext in the
11178 run loop, and uninstall it when done.
11179 * WindowsFormsSynchronizationContext.cs: Implement.
11180 [Fixes the common case in bug #327608]
11182 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
11184 * DataGridViewCellCollection.cs: Added argument checks for indexers.
11185 Use case-insensitive lookup of column name in indexer. Code
11188 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11190 * TreeNode.cs: When collapsing or expanding a node, check whether its
11191 change will affect the visible area (we were previously doing a
11192 IsVisible check, but that check is not enough since children nodes
11193 could be still visible). Fixes part of #325266.
11195 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
11197 * TreeView.cs: Always select the first node when the TreeView gets
11198 focus if there is no currently selected node.
11199 [Fixes bug #324279]
11201 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
11203 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
11204 node being selected is null.
11205 [Patch from Yves Bastide fixes bug #326858]
11207 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11209 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
11210 whether all the parent nodes are expanded.
11211 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
11212 call RecalculateVisibleOrder if all previous nodes are expanded.
11213 Before that we were doing a IsVisible check, but sometimes the node
11214 is not in the visible area, but _should_already be ready, because of
11215 all previous nodes are expanded. Fixes #325259.
11217 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11219 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
11220 portion of the item is clicked.
11222 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11224 * TextControl.cs: Do not tell the system to move the cursor if the
11225 textbox isn't focused. Fixes part of bug #322668.
11227 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11229 * ComboBox.cs: When there are no items, do not show the dropdown if
11230 the down arrow is clicked. Fixes part of bug #322668.
11232 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
11234 * ToolStripComboBox.cs: Manually set the size of this control in the
11235 constructor, as it doesn't seem to be the same as DefaultSize.
11236 Fixes a failing monobuild test.
11238 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
11240 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
11241 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
11243 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
11245 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
11246 Desktop. This lets it work for people who have moved their desktops
11247 from the default location on windows. For people who have not, both
11248 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
11250 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11252 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
11253 but when the base constructor sets this, the control is null. Set it
11254 again in the constructor. Fixes a failing monobuild test.
11256 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11258 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
11260 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
11263 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11265 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
11266 will handle it themselves.
11267 * ToolStripItem.cs: When deciding what the text of a tooltip should
11268 be, use the Text property instead of the text field.
11269 * ToolStripTextBox.cs: Handle tooltips.
11270 [Fixes bugs #325417 and #325973]
11272 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11274 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
11275 left click. Fixes the easy part of bug #325969.
11277 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
11279 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
11280 bug #325406, but set a minimum for StatusStrip to 22 to keep
11281 bug #325390 fixed. I think this minimum would have been figured
11282 up automatically if the grip was actually a ToolStripItem, but it
11285 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11287 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
11288 as this is apparently the actual value used by .Net. Also apply
11289 ItemPadding in Details view only, and decrease the general width padding,
11290 to have only the needed. This should fix #324340 in Windows too.
11292 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11294 * ListViewItem.cs: Don't Invalidate item if parent is inside
11295 a BeginUpdate/EndUpdate block. This prevents to have differences
11296 between the ListView and items state, as well as avoid some exceptions
11298 * ListView.cs: Make 'updating' field internal.
11300 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11302 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
11303 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
11304 size if appropriate.
11305 Fixes reopened bug #325414.
11307 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11309 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
11310 * ToolStripItem.cs: Invalidate before and after our new autosize when
11312 Fixes reopened bug #325390.
11314 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11316 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
11317 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
11320 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
11322 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
11324 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11326 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
11327 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
11330 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
11332 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
11333 item to select when the ToolStrip is selected.
11334 * ToolStripControlHost: Realign the control when the bounds or visibility
11336 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
11337 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
11339 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
11340 base.OnPaint. Was causing text not to be drawn.
11342 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
11344 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
11346 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11348 * TreeView.cs: When creating the label edit text box,
11349 set is initially to Visible = false. This is done to
11350 prevent a confusion in the layout which makes it to lose
11351 focus when shown the first time. Fixes part of #82592.
11353 2007-09-13 Andreia Gaita <avidigal@novell.com>
11355 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
11357 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11359 * ToolStrip.cs: Take Margin into account when calculating preferred
11360 size. Also, allow preferred size to get smaller than the explicit
11362 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
11363 First step towards fixing bug #82747.
11365 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11367 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
11368 full row select background over the plus/minus glyph. Also, turn
11369 off the focus rectangle for full row select since MS doesn't seem
11370 to ever paint it. [Fixes bug #81839]
11372 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11374 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
11375 This was causing keyboard opened dropdowns to lose focus.
11378 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11380 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
11381 ClientRectangle instead. [Fixes bug #82838]
11383 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
11385 * SplitContainer.cs: We can't reset Visible on every layout because
11386 someone may have set Visible = false explicitly on a SplitterPanel.
11387 Make sure when we switch orientation the SplitterDistance does not
11388 change. Fixes two failing tests.
11390 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11392 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
11393 TextRenderer, since the latter is only available in 2.0.
11395 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
11397 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
11398 * SplitContainer.cs: Implement FixedPanel layouting.
11400 2007-09-12 Andreia Gaita <avidigal@novell.com>
11402 * WebBrowserBase.cs: setup shutdown routine
11404 2007-09-12 Andreia Gaita <avidigal@novell.com>
11406 * Application.cs: Let keyboard events that are targetted
11407 to non-mwf windows hosted inside mwf (as in, webbrowser),
11408 propagate properly. Fixes keyboard handling on the webbrowser.
11410 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11412 * ListView.cs: When handling MouseUp event and we are
11413 highligting a node with the mouse right button, don't trigger
11414 Before/AfterSelecting event, since we are not actually selecting
11417 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11419 * TreeView.cs: When editing a node, modify the edit text box
11420 depending on the text length (as you are typing), like MS does.
11422 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
11424 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
11425 Override GetPreferredSizeCore to perform calculations. Remove custom
11426 autosize logic. [Fixes bug #82739]
11428 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
11430 * TextBoxBase.cs: Modified should default to false.
11432 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11434 * Control.cs: Update the anchoring distances even when layout is supspended.
11435 Patch provided by George fixes bug #82805.
11437 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11439 * Control.cs: Provide a setter for ExplicitHeight.
11440 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
11441 remove the hacks in here for requested_height.
11444 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11446 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
11447 Maximum to lower that its current Value caused an ArgumentException by setting
11448 the Value to the new Maximum.
11450 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11452 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
11453 handle moves to the closest tick when it is being dragged.
11456 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
11458 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
11459 can't let them count as real items when calculating where to merge in the
11460 user's items. [Fixed bug #82786]
11462 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11464 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
11465 who want to add a menu item directly onto a toolstrip.
11466 [Fixes bug #82775, part II]
11468 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11470 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
11471 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
11472 don't set it to available.
11473 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
11474 [Fixes bug #82727, part II]
11476 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11478 * StatusStrip.cs: Change item placement to None if not visible.
11479 * ToolStripItem.cs: Invalidate when InternalVisible changes.
11480 These should have been committed to fix 82723, but I missed them.
11482 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
11484 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
11485 Click, and that it is only called once.
11486 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
11487 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
11491 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11493 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
11495 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
11496 instead of 8, just like above. Partially fixes #82734.
11498 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11500 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
11503 * ListView.cs: Remove extra space between rows in Details view (match
11505 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
11508 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
11510 * Application.cs: Modified ProductVersion to return value of
11511 AssemblyInformationVersion if available, and fallback to assembly
11512 version. Fixes bug #82746. Code formatting.
11513 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
11516 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11518 * Control.cs: When updating ZOrder for a child control,
11519 take into account the implicit ones (we need it in our controls
11520 using them). Fixes #82642.
11522 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
11524 * ToolStripItem.cs: Add support for animated images.
11527 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
11529 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
11530 visible. [Fixes bug #82727]
11532 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11534 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
11535 so we repaint using the new size. [Fixes bug #82723]
11537 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11539 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
11540 option. [Fixes bug #81779]
11542 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11544 * TreeView.cs: Override HandleClick because the StandardClick style is
11545 set to false. According to MSDN (and testing), the click events should
11546 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
11548 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11550 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
11551 the border will disappear. Fixes reopened #82653.
11553 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11555 * Control.cs: If the control is autosize, and its preferred size changes
11556 when it lays out its children, tell its parent so it can be re-layed out.
11557 Fixing some of the fallout from r85433.
11559 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11561 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
11562 and CheckBox share some code.
11564 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11566 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
11567 the TrackBar, not every mouse move. [Fixed bug #82718]
11569 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11571 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
11572 under 2.0 rendering. [Fixes bug #82657]
11574 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11576 * TreeView.cs: If we found a TreeNode to display a context menu, but
11577 it doesn't have one to show, let the TreeView display its menu
11578 instead. [Fixes bug #82680]
11580 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
11582 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
11583 OnPaintInternal instead. Give the internal TextBox a Border property
11584 so it can draw itself more correctly. [Fixes bug #82653]
11586 2007-09-06 Zoltan Varga <vargaz@gmail.com>
11588 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
11590 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11592 * ComboBox.cs: Adjust combobox button state to reflect current state when
11593 back to enabled = true. Fixes first issue of #82654.
11595 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11597 * Control.cs: Fix last patch regression, prevent forms to update zorder when
11598 setting visible property.
11600 2007-09-05 Everaldo Canuto <everaldo@simios.org>
11602 * Control.cs: Update zorder after control creation in SetVisibleCore, it
11603 fix zorder for controls initially created as non visible. Fixes #82667.
11605 2007-09-04 Everaldo Canuto <everaldo@simios.org>
11607 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
11608 mimic win32 look. Fixes #82656.
11610 2007-09-01 Zoltan Varga <vargaz@gmail.com>
11612 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
11613 Stubs for new net 3.5 classes.
11615 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11617 * ListViewItem.cs: In ListViewItemCollection operations calculate
11618 Layout for owner as well as invalidate it. Fixes part of #82642.
11620 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
11622 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
11623 when returning Enabled. [Fixes bug #82651]
11625 2007-08-30 Everaldo Canuto <everaldo@simios.org>
11627 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
11629 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11631 * ListView.cs: Put item padding info in a single place
11632 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
11634 * ThemeWin32Classic.cs:
11635 * Theme.cs: Likewise.
11637 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11639 * ListView.cs: When a ListViewSubItem instance is invalidated,
11640 invoke Invalidate on parent ListViewItem, not parent ListView.
11643 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11645 * ListView.cs, ListViewItem.cs: corcompare stuffs.
11647 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11649 * BindingMemberInfo.cs: Implement == and != operators.
11651 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
11653 * HtmlElementEventArgs.cs: Implement properties.
11655 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11657 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
11659 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11661 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
11662 Add (string,string,string) to implement the imagekey. It turns out, we
11663 use the requested imagekey whereas .Net does not. So I broke ours to match
11666 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11668 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
11670 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
11672 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
11674 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
11676 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
11677 up-to-date. Fixes bug #82618.
11679 2007-08-29 Everaldo Canuto <everaldo@simios.org>
11681 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
11682 reflect document changes. Fixes #82367.
11684 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11686 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
11687 as well as add new ones. This should make work the BackgroundImage
11688 property for ListView again.
11690 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11692 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
11693 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
11694 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
11696 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11698 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
11701 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11703 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
11704 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
11706 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
11708 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
11709 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
11711 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
11713 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
11715 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
11717 * GridEntry.cs: Implement GetService.
11719 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
11721 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
11722 for label editting, make sure we focus back on the TreeView.
11725 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11727 * ListView.cs: Add some 2.0 overrides.
11729 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11731 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
11732 because getter dont returns right value before handle creation. Thanks
11733 to George. Fixes #82569.
11735 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11737 * Theme.cs: Revert last patch, it causes error under win32.
11739 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
11741 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
11742 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
11743 logical Desktop rather than the physical file system location. Fixes #82603.
11745 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
11747 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
11748 for the patch. Fixes #82568.
11750 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11752 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
11755 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11757 * ListViewInsertionMark.cs: New stubbed class.
11759 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11761 * FolderBrowserDialog.cs: When adding folder, immediately create the
11762 directory with temporary name and rename the directory when editing
11763 finishes. This matches MS. Ensure the node for the new folder is
11764 selected and LabelEdit is disabled, when editing is either finished
11767 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11769 * TreeView.cs: When editing label of node, ensure node is visible.
11771 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
11773 * PropertyGridView.cs: Set the value only if it has changed.
11775 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11777 * ListView.cs: Some more code refactoring to add support sorting
11778 with groups (now for Details view). Remove unused code also.
11780 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11782 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11783 Not a big fan of reacting immediately to a field in an EventArg, but that's
11784 the way it's done. (This is part of the previous commit that got left out.)
11786 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
11788 * FolderBrowserDialog.cs: Removed need for separate description field.
11789 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11790 has focus when dialog box is displayed again, regardless of what
11791 button was pressed the previous time. Set RootFolder and SelectedPath
11792 each time dialog box is displayed. This ensures the treeview is
11793 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11794 when it does not have focus. Added support for more special folders.
11796 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11798 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
11799 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
11800 it resets the edit_args.
11801 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11804 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
11806 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11807 button to match MS. Provide more meaningful exception message for
11808 invalid RootFolder value. Use zero-length string when SelectedPath
11809 is set to null. Allow non-rooted paths in SelectedPath, but ignore
11810 them in FolderBrowserTreeView. Allow folders to be created in
11811 RootFolder. Fixes bug #82576.
11813 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11815 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11816 since we need to take into account the group headers and the margin
11818 * ListViewGroup.cs: Add a rows field to store the number of rows per
11821 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11823 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11824 Anyways, let's just follow the lead.
11826 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11828 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11829 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
11830 controls in GetPreferredSizeCore.
11831 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11834 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
11836 * PrintDialog.cs: Need to instantiate the form variable here too.
11838 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11840 * ListView.cs: Do some reorganization to support sorting in groups,
11841 by doing the layout sequentially in ListView.Items. Also add support
11842 for the Default Group, which should be available for items with no
11844 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11845 for storing layout info also.
11846 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11847 collection, as well as providing internal members to do a traversal
11848 including the default group (needed when doing layout/drawing).
11849 * ThemeWin32Classic.cs: When drawing group headers use internal
11850 ListViewGroupCollection members to take into account the default
11853 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
11855 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
11857 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11859 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11860 been created. If handle is created, we want arror keys. If we are editing
11861 a node, we want things like enter, esc, home, end, page up, page down.
11862 Allows Esc to work for FolderBrowserDialog.
11864 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11866 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11867 they close when ESC is pressed. Thanks Andy!
11869 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11871 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11872 This way we can tell if this is a CommonDialog provided with mono, or one
11873 that is being implemented outside by a developer. If it is an external one,
11874 the developer is responsible for showing their own form. We were showing
11875 our blank form after the developer showed his.
11876 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11877 PageSetupDialog.cs: Instantiate form variable in our constructor.
11880 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11882 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11883 and always return true. [Fixes bug #81616]
11885 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
11887 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11888 TextBox. [Fixes bug #82549]
11890 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
11892 * FileDialog.cs: When Save/Open is clicked and no filename is selected
11893 or entered then do not close the dialog. Fixes bug #82539. Removed
11896 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
11898 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11899 code to this method. It is calling every time filter changes. This method
11900 will help to fix the bug #80887.
11902 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11904 * CheckBox.cs: Implement AutoSize calculation.
11906 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
11908 * CheckBox.cs: Use new 2.0 rendering for 2.0.
11909 * Theme.cs: Method declarations for 2.0 rendering path.
11910 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11912 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11914 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11916 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11918 * ListViewGroupCollection.cs: Implement AddRange the right way, to
11919 only call Redraw on the parent one time.
11921 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11923 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11924 GetClipboardContent.
11925 * DataGridViewCell.cs: Implemented GetClipboardContent,
11926 GetEditedFormattedValue, GetFormattedValue.
11927 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11929 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11931 * TableLayoutStyleCollection.cs: corcompare fix.
11933 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
11935 * DataObject.cs: Implemented retrieval of convertible / not convertible
11938 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
11940 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11941 ourselves. This ensures the entire old bounds are repainted, in case our new
11942 size is smaller. [Fixes bug #82518]
11944 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
11946 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11947 flag to make fast handle of mouse events, without this the mouse move is
11948 handled in some manner, whether it is a mouse move or not. Fixes #81588.
11950 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11952 * ListView.cs: When doing layout calculations don't use a ref
11953 param to keep the current item; instead use its Index value (this
11954 is specially important when doing the layout with Groups
11955 and Items being sparse). Also don't take into account items added to
11956 the Group but not yet added to the main ListView.Items collection.
11958 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11960 * ListViewGroupCollection.cs: Forgot to mimic an issue
11961 in the indexer (don't assign the ListView owner for new values).
11963 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11965 * ListViewGroupCollection.cs: Make the string indexer use
11966 the int based indexer to re-use code, instead of duplicate the code.
11967 Also Redraw as needed and take into account null values.
11969 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11971 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11974 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
11976 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11977 when other buttons are clicked or navigated to.
11979 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11981 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11982 it's XplatUIX11 that attaches them.
11984 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11986 * DataGridView.cs: If a column has been added, recreate the editing row.
11989 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11991 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11992 of the tag to draw. Makes disappearing text show up again.
11994 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11996 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11997 Contents. Fixes #82487.
11999 2007-08-19 Andreia Gaita <avidigal@novell.com>
12001 * Added HtmlElement.cs, HtmlElementCollection.cs,
12002 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
12004 2007-08-19 Andreia Gaita <avidigal@novell.com>
12006 * BindingSource.cs: Implement this, dispose and getenumerator.
12007 * DataGridViewRowCollection.cs: Move the InvalidOperationException
12008 out of AddInternal, throw it only on public Add calls. The
12009 UsingWebBrowser sample was blowing up with this when setting the
12010 DataSource after adding DataBindings, so it's likely that .net
12011 only throws this exception when Add is called directly.
12013 * ToolStripControlHost.cs: Return the hosted control's text
12014 property, and not the ToolStripItem one (it would always return
12015 the initial value).
12017 * HtmlDocument.cs: Implement GetElementById and All
12018 * WebBrowser.cs: Remove exception on set_DocumentStream.
12020 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
12022 * Form.cs: Fix the max and min value for opacity (0~1).
12024 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
12027 * DataGridTableStyle.cs: Default header font is now null, on getter it
12028 returns datagrid font when is null. On setter permits null.
12031 - When ResetHeaderFont set header font to null.
12032 - On EndInit set grid_style.DataGrid.
12034 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
12036 * TabControl.cs: Fix regression in default padding x.
12038 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
12040 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
12042 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
12044 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
12045 not 2. Fixes #82229.
12047 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12049 * TabControl.cs: Fix tab size when image height is less than text height.
12050 Partially fixes #81837.
12052 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12054 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
12055 "alt + tab". It works only for Win32, for X11 theres no way to remove window
12056 from taskbar and keep it on "alt_tab". Fixes #81722.
12058 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12060 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
12061 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
12062 Fixes #80877 and #79418.
12064 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12066 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
12067 between position and one of the screen borders. Fixes #82349.
12069 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12071 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
12072 the MessageBox in the taskbar. Fixes #82457.
12074 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
12076 * MessageBox.cs: Fix form size when icon is set and text height is bigger
12077 than icon. Fixes #82468.
12079 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12081 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
12082 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
12083 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
12084 Refactored HandleNCCalcSize somewhat to avoid code duplication.
12085 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
12086 FormBorderStyle to decide if we're calculating a new size from the
12087 client size or not. CreateParams: Don't fake tool windows, only the X11
12088 backend manages toolwindows manually.
12090 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12092 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
12093 ObjectDisposedException.
12095 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12097 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
12098 in OnLoad should not have any effect. [Fixes bug #82470]
12100 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12102 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
12103 paint for controls that create their own ToolTipWindow instead of
12104 going through ToolTip.
12106 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12108 * ToolTip.cs: Make Hide internal instead of public to match MS API.
12110 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12112 * ListViewGroupCollection.cs: Use generic List instead of an
12113 ArrayList, since this collection is 2.0 only.
12115 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
12117 * ToolTip.cs (Hide): Made public to make the build work (should
12118 this not be public?).
12120 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12122 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
12124 * ToolTip.cs: Add an internal Visible property to facilitate transition.
12126 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
12128 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
12129 PopupEventHandler.cs: Make these internal for 1.1.
12130 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
12131 use ToolTipWindow internals.
12132 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
12133 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
12135 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12137 * X11Dnd.cs: Add a null check.
12139 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12141 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
12142 nothing else succeeds. Fixes #82453.
12144 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12146 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
12147 rectangle if we're painting to another window than the one the paint
12148 message was generated on. Simplify the code somewhat, which makes
12149 PaintEventEnd also simpler.
12151 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12153 * Control.cs: When changing parent of a form, let the form decide whether
12154 XplatUI.SetParent should be called or not.
12155 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
12156 recreating the handle. If the new parent's handle isn't created, don't
12157 recreate our handle, just destroy it. CreateParams: Check if the
12158 parent's handle is created before fetching it.
12160 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12162 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
12163 Update calls to PaintEventStart/End to take a Message argument.
12164 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
12165 take a Message argument.
12166 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
12167 Message argument, and handle the case where we don't paint to the window
12168 for which the paint message was generated.
12170 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12172 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
12173 Marshal.GetLastWin32Error. Plug nasty memory leak in
12174 PaintEventStart/End, we were creating a DC we weren't releasing.
12176 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12178 * ListView.cs: Add Groups support in Details view. Also have a small
12179 method to do the layout of the group header. Don't use a separate
12180 method to do the groups calculation in Icons view, since our methods
12181 are now a little simpler.
12182 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
12184 * ThemeWin32Classic.cs: Likewise.
12186 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
12188 * Application.cs: Add FilterMessage method and rework our message loop
12191 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
12193 * Application.cs: Add some methods and stub a few methods that are
12194 pretty much never used.
12196 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
12198 * TreeNode.cs: Add some serialization methods.
12200 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12202 * ListView.cs: In ListViewItemCollection have a
12203 'is_main_collection' field to not modify ListViewItem.ListView
12204 when using it as ListViewGroup.Items (and not ListView.Items)
12205 and also don't modify selection state (.Net behaviour).
12206 Instead, set group for items contained in a ListViewGroup.Items collection.
12207 * ListViewItem.cs: Simplify some code in Group setter.
12208 * ListViewGroup.cs: use the new .ctor to pass the current instance
12209 to the ItemsCollection.
12210 * ListViewGroup.cs: Set the ListView property for ListViewGroup
12211 instances when adding/removing. Also make Remove use RemoveAt, which
12212 should perform better.
12214 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12216 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
12217 that crept into the 1.1 profile.
12219 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12221 * ToolBarButton.cs: Implement ImageKey.
12223 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
12225 * ToolBar.cs: Implement ScaleControl/ScaleCore.
12227 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12229 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
12230 created, it might have gotten destroyed since we last checked. Fixes
12233 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
12235 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
12236 tooltip will hide when mouse is moved off the control.
12239 2007-08-11 Andreia Gaita <avidigal@novell.com>
12241 * WebBrowserBase.cs, WebBrowser.cs: add implementation
12242 using Mono.Mozilla for loading and navigating webcontrol
12244 The initial implementation was done on
12245 /trunk/mozembed/tests/browser , and copied here.
12247 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
12249 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
12250 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
12252 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
12254 * DataGridView.cs: Add support for an editing row. Fixes #82226.
12255 RowTemplateFull: throw an exception if a column doesn't have a template.
12256 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
12257 add the row just before it.
12258 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
12260 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
12261 DataGridView field to be able to reach the grid's editing row.
12263 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12265 * ToolTip.cs: If the control's handle hasn't been created when it has a
12266 tooltip set on it, don't check to see if we need to show the tooltip. This
12267 check was causing the control's handle to be created.
12270 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12272 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
12274 Handle Not Created -1 0
12278 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
12280 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
12283 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
12285 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
12286 * ToolTip.cs: Implement some properties and owner draw.
12288 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12290 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
12291 show them again, since setting visibility causes a paint, causing an
12292 endless loop (instead use a temporary and set it all when it's known if
12293 they should be shown or not). Fixes #79265.
12295 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12297 * DataGridView.cs: Only do a full column/row selection if a header was
12298 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
12299 isn't pressed, deselect everything before selecting something.
12301 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12303 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
12304 behaviour according to bug #81075 - they are returned in the order they
12305 are selected. Fix HitTest to check if the point is within any of the
12306 headers. Allow for row/column selection when in ColumnHeader or
12307 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
12308 the row and column to call when their selected state changes, and
12309 updated selected_[rows|columns] whenever SetSelected* is called.
12310 * DataGridViewBand.cs: Initialize isRow correctly. Call
12311 SetSelected[Row|Column]CoreInternal when the selected state changes, and
12312 add a SelectedInternal to avoid StackOverflows.
12313 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
12314 ReadOnly no matter what.
12315 * DataGridViewSelectedColumnCollection.cs,
12316 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
12317 the items in reverse order (just as MS does...)
12319 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
12321 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
12322 itself, not part of a mnemonic. [Fixes bug #82378]
12324 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12326 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
12327 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
12328 the DGV, the column, the row, or the cell itself is readonly.
12330 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
12332 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
12333 OSVersion.Platform.
12334 * FileDialog.cs: Same.
12335 * TextRendered.cs: Same.
12336 * FolderBrowserDialog.cs: Same.
12337 * TextBoxBase.cs: Same.
12338 * Application.cs: Same.
12339 * Cursors.cs: Same.
12340 * ThemeClearLooks.cs: Same.
12342 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
12344 * XplatUI.cs: Added RunningOnUnix property to be used by controls
12345 instead of duplicating these checks everywhere.
12346 * FileDialog.cs: Use case-insensitive comparison for populating the
12347 DirComboBox when not running on unix. Fixes bug #82385.
12348 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
12351 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12353 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
12354 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
12355 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
12356 cell and column selection with ctrl and shift pressed. Call the correct
12357 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
12358 the corresponding virtual method (PaintBackground to paint background,
12360 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
12361 either the column, row or the cell itself is selected.
12362 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
12364 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
12365 here. When the row is selected, don't select all cells. Each cell now
12366 queries the row to see if the row is selected.
12368 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
12370 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
12373 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12375 * ListView.cs: In ListViewItemsCollection check that owner is
12376 not null before trying to access it (this happens quite often
12377 using Groups). Also don't duplicate calls by calling CollectionChanged
12380 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12382 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
12383 when we are dismissed to clear keyboard mnemonics.
12384 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
12385 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
12386 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
12387 was activated by keyboard or the OS tells us to always draw them.
12388 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
12389 [Fixes bugs #82376, #82377]
12391 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12393 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
12394 shot at having it because Alt was pressed.
12395 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
12396 the first real menu item.
12397 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
12398 a mnemonic if Text is null.
12401 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12403 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
12404 search do check whether the item is already contained in the
12405 collection or not; instead check if the owner of the item is the same
12406 as ours. Also, remove a redundant check in the same method.
12408 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
12410 * Control.cs: Allow the clip region to be set back to null.
12411 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
12412 [Fixes button still showing up in bug #82370 when Show Through is turned off]
12414 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12416 * GridEntry.cs: Add a null check.
12417 * PropertyGrid.cs: When checking for existing grid entries, ignore category
12418 entries. Fixes #82297.
12420 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
12422 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
12425 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
12427 * ListBox.cs: Implement ScaleControl.
12429 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12431 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
12433 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
12434 parent has a menu strip. Fixes #81689.
12436 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12438 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
12439 moments, so apply some fuzzy logic to determine if the mouse is still
12440 inside a control or not. Fixes #82288 (for the third time).
12442 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12444 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
12445 Don't create the child if it has been disposed already (may happen if
12446 the user closes the form the Load event).
12448 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12450 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
12453 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
12455 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
12456 might call us after we've been destroyed, in which case our own private
12457 parent field is null. Fixes #82326.
12459 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
12461 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
12462 check for setting the dropdown's owner.
12464 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
12466 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
12467 before removing system menu items.
12469 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
12471 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
12473 * MdiControlStrip.cs: Added. These are the menu items used in mdi
12475 * ToolStrip.cs: Add a null check to mnemonics.
12476 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
12478 [Fixes most of bug #81689]
12480 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12482 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
12484 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12486 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
12488 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12490 * DataGridViewCell.cs: EditType: returns
12491 DataGridViewTextBoxEditingControl always.
12493 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
12495 * TextRenderer.cs: Remove the LineLimit string format flag from the
12496 DrawString fallback method so that things like buttons that aren't
12497 tall enough to draw a full line will still draw part of the text.
12498 [Fixes part of bug #82272]
12500 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12502 * DataGridView.cs: Implemented AutoResizeColumn(s).
12503 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
12504 according to the Alignment.
12505 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
12506 Implement alignment and padding when painting.
12507 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
12509 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
12511 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
12514 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12516 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
12519 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12521 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
12522 hide GetPreferredSize from public API.
12523 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
12524 * ToolStripItem.cs: Stub out drag and drop methods and events.
12525 * ToolStripManager.cs: Stub out Save/LoadSettings.
12526 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
12527 * ToolStripPanel.cs: Fix corcompare error.
12528 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
12529 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
12530 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
12532 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
12534 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
12535 bounds height instead of PreferredHeight. Puts things back the way
12536 they were for height while still fixing the width. Fixes broken unit
12539 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12541 * Binding.cs: Implement 2.0 constructors and add a null check.
12543 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12545 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
12546 and fix row index (off by one).
12548 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12550 * PropertyGridView.cs: Remove debug output.
12552 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
12554 * Control.cs: We need to reset the is_created flags when the handle is
12555 destroyed. Fixes #82187.
12556 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
12557 client coordinates if the window doesn't have a parent.
12558 Win32GetParent returns the parent or the owner, and for top-level
12559 windows with no parent (but with an owner) we were calculating the
12560 location from the location of the owner.
12561 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
12562 form has been disposed.
12563 * MdiClient.cs: Add a null-check.
12565 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
12567 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
12568 actually do auto-sizing. Override the internal GetPreferredSizeCore
12569 so we can provide an implementation that returns the current width
12570 and preferred height. Allows anchor = right to work with TextBox 2.0.
12573 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12575 * ListView.cs: Add support for navigating items in Groups mode, by
12576 creating a big matrix containing all rows and cols of all groups. When
12577 are in other mode than Details, pressing Up should have a similar
12578 behaviour as that one of Down (moving to the next available column if
12579 current one doesn't have an item in the requested row). Also, don't
12580 proceed to use groups if ShowGroups is false.
12581 * ListViewGroup.cs: Add an internal int field to store the starting
12582 row of the group (used by the big matrix used for navigating the
12584 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
12587 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
12589 * ToolStripDropDown.cs: When we do Show, start with the
12590 DefaultDropDownDirection, but if our popup menu is going to off-screen,
12591 modify the direction to keep it on screen. [Fixes bug #82210]
12593 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
12595 * FileDialog.cs: Accept any FilterIndex value, and store it
12596 unmodified. When FilterIndex is less than 1, or greater than number
12597 of filters, then default to first filter. Only add filter extension to
12598 file if user did not specifiy an extension. When type of dialog is
12599 OpenFileDialog and DefaultExt is set, then only use filter extension
12600 if: CheckFileExists is true and no file wih the default extension
12601 exists, or CheckFileExists is false, and user specified file does not
12602 exist. When CheckFileExists is true, then add first extension of
12603 selected filter that matches existing file. Perform checks for
12604 existing file, overwrite and create after extension has been added to
12605 file name. When CheckFileExists is true and type is SaveFileDialog,
12606 then only consider first filter extension if DefaultExt is set.
12607 When CheckFileExists is true, then ignore DefaultExt if file with that
12608 extension does not exist. Also perform check for existing file when
12609 type is SaveFileDialog. Changed some field to constants.
12611 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12613 * ListView.cs: Take into account the region used by header
12614 control when doing the vertical scroll (this way we invalidate
12615 the precise area, and don't get any dirty one).
12617 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
12619 * FileDialog.cs: Check for valid filterIndex on button open/save.
12622 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12624 * ListView.cs: Update some layout calculations in details view
12625 and clean the code in a pair of assignations.
12627 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12629 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
12630 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
12631 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
12632 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
12634 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12636 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
12637 performance of thread-safe Graphic methods. (Thanks rolf!)
12639 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12641 * ListView.cs: When doing the layout calculations, don't calculate
12642 scroll bars before handle is created. This is unnecessary and also
12643 calculating them before handle creation item causes a number of random
12644 bugs (which begin to appear after Chris' big patch for handle creation
12647 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
12649 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
12650 for things that don't have a Graphics object. Currently, things just use
12651 the static Hwnd.bmp_g which is not thread safe.
12653 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12655 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
12656 dialog. Fixes #82187.
12658 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12660 * DataGridViewElement.cs: Initialize state.
12661 * DataGridView.cs: Forward a few Mouse events to cells. Add
12662 GetRowInternal and GetCellInternal that doesn't unshare rows.
12663 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
12664 don't use the index, but look it up. Add
12665 DataGridViewControlCollection.RemoveInternal to remove controls
12666 that Remove won't remove (scrollbars, edit control).
12667 * DataGridViewColumn.cs: Initialize State correctly.
12668 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
12669 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
12671 * DataGridViewRowCollection.cs: Implemented shared rows.
12672 * DataGridViewRow.cs: Throw exceptions as MS do.
12673 * DataGridViewCell.cs: A few properties are implemented by a
12674 Get<Property> method, so move implementation there and remove the
12675 NIEX in the method. Add a bunch of OnXInternal that DataGridView
12676 calls when necessary.
12677 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
12678 complicates matters.
12679 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
12682 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12684 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
12685 the children controls. Instead, we will just set up the proper docking for the
12686 children controls so we don't have to worry about it. [Fixes bug #82188]
12688 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12690 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
12691 canceling and correct Before/AfterLabelEdit properties as layed out in bug
12692 81847. [Fixes bug #81847]
12694 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
12696 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
12697 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
12698 an explicit size based on the design-time size of the text. Since our fonts
12699 may not match this explicit size, we tend to cut off the ends of people's labels.
12701 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
12703 * Menu.cs: Add some missing methods to MenuItemCollection.
12705 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12707 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
12708 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
12709 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
12710 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
12711 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
12712 * DataGridViewElement.cs: State defaults to Visible.
12713 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
12714 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
12716 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
12718 * Control.cs: Minor 1.1 corcompare fix.
12720 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12722 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
12723 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
12725 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12727 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
12728 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
12729 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
12730 DataGridViewSelectedColumnCollection.cs,
12731 DataGridViewSelectedRowCollection.cs: Corcompare work.
12733 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12735 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
12736 it is autoset by VS2005 designer and the effect is barely noticeable.
12738 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
12740 * TreeView.cs: Implement HitTest.
12742 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12744 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
12745 manually adding and removing the control from the Controls
12747 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
12748 EditingControlInternal property that tracks the editing control.
12749 Always keeping the scrollbars in the Controls collection, as MS
12750 testing confirms is the right behaviour.
12752 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
12754 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
12755 according to MSDN and new test.
12757 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12759 * TreeNode.cs: Implement ToolTipText.
12760 * TreeView.cs: Implement tooltips, NodeMouse* events.
12762 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12764 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12766 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12768 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12769 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12771 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
12773 * Control.cs, Form.cs, ContainerControl.cs,
12774 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
12775 for misc properties.
12777 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
12779 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12780 * TreeView.cs: Implement StateImageList.
12782 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12784 * Form.cs: Don't check if the current form is the active form before
12785 activating it. Fixes #81904.
12787 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12789 * Form.cs: Don't check if the current form is the active form before
12790 activating it. Fixes #81904.
12792 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12794 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12796 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12798 * Form.cs: Don't try to position the form after loading if the form was
12799 disposed. Fixes #81969.
12801 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12803 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12804 properties. Had to change ToolBar into ToolStrip, which required a
12807 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12809 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12810 resized, fixes part of #79829 (vertical lines in toolbar).
12811 PropertyGrid: Refactored Populate* to something that's easier to
12812 follow at least for me, as well as splitting it up into several new
12813 methods, required to update only subitems when something has
12814 changed by a popup editor or listbox. Don't use events to check
12815 when any values are changed, since the events are unreliable (we're
12816 changing the objects the events are registered with, and if the
12817 event handling requires the objects to be immutable (objects stored
12818 in hashtables for instance), the events will never be raised).
12819 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12820 everytime we change a value, since events are unreliable.
12821 DropDownButtonClicked: For the same reason don't compare objects to
12822 check if it has changed or not, it would require all objects to
12823 derive Equals. Fix dialog location on windows, MS is doing weird
12824 things when creating parented forms.
12825 * GridEntry.cs: Add a SelectedObject setter.
12827 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
12829 * TreeNode.cs: Add some corcompare attributes.
12830 * TreeNodeCollection.cs: Implement 2.0 stuffs.
12831 * TreeView.cs: Implement some 2.0 stuffs.
12833 2007-07-18 Andreia Gaita <avidigal@novell.com>
12835 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12838 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
12840 * ListBox.cs: Implement custom tab offsets.
12842 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12844 * ToolStripContentPanel.cs: Support System renderer.
12845 * ToolStripControlHost.cs: Set RightToLeft to default to No.
12847 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12849 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12851 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12853 * CheckBox.cs: Chain TextAlign to base implementation instead of
12854 maintaining another one.
12856 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12858 * ButtonBase.cs: Fix an incorrect string constant.
12860 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12862 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12863 of creating one for measuring strings.
12865 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
12867 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
12868 Implement MaxItemSize.
12870 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
12872 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12873 for DeviceContext. Instead, use the static one available in Hwnd.
12874 Informal tests show this saves about 500k on formtest.exe.
12876 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
12878 * ContainerControl.cs: Implement 2.0 AutoScaling.
12880 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
12882 * ComboBox.cs: Work around bug #82120 (bug in mcs).
12884 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
12886 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12887 Darken the focus color.
12889 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
12891 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12893 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12894 X, Y instead of a rect for drawing text.
12895 - For ControlPaint.DrawCheckBox, center the check a little better when the
12896 checkbox is odd width. When drawing a flat checkbox, use a white background
12897 when state != inactive.
12898 [Fixes bugs #82097, 82100]
12900 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
12902 * ListControl.cs: When changing CurrencyManager, disconnect event
12903 handlers from previous one. Fixes bug #81771. Code formatting.
12905 2007-07-15 Andreia Gaita <avidigal@novell.com>
12907 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12908 full preview invalidation from layout invalidation, and only invalidate
12909 the layout when setting zoom or other properties. Invalidation should
12910 always be done even when resetting properties with the same values as
12911 what is there. Fixes #81744 and #79830.
12913 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12915 * ListView.cs: Implement initial support for Groups. Split some of the
12916 LayoutIcons code to render a partial list of the items (needed by
12917 items contained in ListViewGroup instances). Let the
12918 ListViewItemsCollection.ListView property be modifiable (needed when
12919 using Groups, too).
12920 * ListViewGroup.cs: Use a Bounds property rather than a Location
12921 one. Also invalidate the bounds when they get changed.
12922 * ThemeWin32Classic.cs: When drawing items, also draw the group header
12923 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12926 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12928 * ListView.cs: When space gets pressed and CheckBoxes is true,
12929 don't invoke the Begin and EndUpdate methods. We are generating
12930 a redraw of the entire control without need to do so.
12932 2007-07-13 William Holmes <billholmes54@gmail.com>
12934 * Control.cs: Changing logic in FindFlatForward and
12935 FindFlatBackward to handle multiple Controls with
12937 This fixes bug 81687.
12939 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
12941 * OSFeature.cs: Enable IsPresent.
12943 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12945 * Control.cs: Don't do anything in WmShowWindow if the control has been
12946 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12947 control is created, put on a form, the control is disposed (the
12948 form is never shown), and then we get a MapNotify, triggering a
12950 * Form.cs: Exclude the current form when sending Deactivate to all
12952 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12953 there was a race condition because assigning the handle raises
12954 events, we can get more messages, therefore trying to assign the
12955 handle again, which would fail if any of those event handlers
12956 closed/disposed the control.
12958 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12960 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12962 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12964 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12965 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12967 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12969 * DateTimePicker.cs: If there's no part format specifier, return an
12972 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
12974 * FlatButtonAppearance.cs: Throw NotSupportedException for a
12975 Transparent BorderColor.
12977 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
12979 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12980 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12981 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12982 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12983 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12984 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12985 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12987 * X11Structs.cs: Remove warnings, add ToString implementations.
12989 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12991 * XplatUIX11.cs: Translate min/max size according to the actual min/max
12992 size, and not the current size. Fixes #81798.
12994 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
12996 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12997 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12998 to the control yet).
13000 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13002 * PropertyGridTextBox.cs: Add a method that sends any forwarded
13003 mousedowns to the contained textbox.
13004 * X11Structs.cs: More ToString implementation.
13005 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
13008 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13010 * PropertyGridView.cs: Add a null-check, fixes a few tests.
13012 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
13014 * TableLayoutPanelCellPosition.cs: TypeConverter.
13016 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13020 * PropertyGridTextBox.cs: Propagate any color changes to all contained
13022 * PropertyGridView.cs: A few color fixes.
13024 2007-07-10 Jackson Harper <jackson@ximian.com>
13026 * TextControl.cs: Remove some old unused text formatting stuff.
13028 2007-07-10 Jackson Harper <jackson@ximian.com>
13030 * TreeView.cs: Update full row select invalidation to match the
13031 newer DrawSelection... method.
13032 - Make sure to invalidate the entire width when selecting a new
13033 node, if we have full row selection enabled.
13035 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
13037 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
13038 display of properties again.
13040 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
13042 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
13043 to existing collections.
13045 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13047 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
13048 that changed between 1.1 and 2.0.
13050 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13052 * PowerStatus.cs: Added. This is just a data class, it is filled
13053 in by SystemInformation.
13055 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13057 * Message.cs: Add op_Equality and op_Inequality.
13059 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13061 * MenuStrip.cs: Finish corcompare work.
13063 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13065 * LinkArea.cs: Add op_Equality and op_Inequality.
13067 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13069 * Application.cs: Add MessageLoopCallback delegate.
13071 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13073 * ListBox.cs: First set of 2.0 stuffs.
13075 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
13077 * Control.cs: Make an internal Height property we can override
13078 without messing up the public API.
13079 * ListBox.cs: Override HeightInternal to always return the size
13080 the user set. [Fixes bug #80466]
13082 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
13084 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
13085 paint cell borders if we haven't calculated where they go yet.
13086 [Fixes bugs #82040 and #82041]
13088 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13090 * ListView.cs: In Details view, set the location of item_control
13091 in the (0,0) position (and the header_control is thus on the
13092 item_control). This way the Bounds of the Items are relative to the
13093 ListView control (before this, they had a Bounds value without the
13094 header_control offset, which wasn't matching .Net). Fixes #82004.
13096 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13098 * ListControl.cs: When DataSource is set to null, pass an empty
13099 array of object to SetItemsCore. This is done to clean the items
13100 in the ListContol children. Fixes #81788.
13102 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13104 * ListControl.cs: Add 2.0 stuffs.
13106 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13108 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
13109 Refresh is overkill for just about every repaint request.
13111 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13113 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
13114 so remove my custom Get method and fix the property getter.
13116 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13118 * Label.cs: DefaultMargin for 2.0.
13120 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13122 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
13123 reported issue where other controls with mnemonics would steal strokes
13124 from a selected ComboBox.
13126 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
13128 * ScrollOrientation.cs: Make internal for 1.1.
13129 * ScrollEventArgs.cs: Add 2.0 stuffs.
13131 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
13133 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13134 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
13135 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
13137 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13139 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
13141 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13143 * ListView.cs: Implement the so-incredibly broken 2.0
13144 VirtualItemsSelectionRangeChanged event.
13146 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13148 * ListView.cs: When enter is pressed and selection is non empty,
13149 an OnItemActivate event must be fired.
13151 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13153 * ListView.cs: Store the FocusedItem information as an
13154 int instead of a ListViewItem (needed by VirtualMode).
13155 Update the calls to SetFocusedItem to pass an index instead of
13157 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
13158 the Focused state from the owner ListView.
13160 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13162 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
13163 property. Also, invalidate previous focused item in the mentioned
13164 property (match .Net).
13166 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13168 * ListView.cs: Implement 2.0 FocusedItem property setter.
13170 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13172 * ListView.cs: Implement 2.0 TopItem property setter.
13174 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
13176 * StatusStrip.cs: The default renderer is System.
13177 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
13178 if the user specifies it.
13179 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
13180 if we are ManagerRenderMode.
13181 * ToolStripMenuItem.cs: Calculate our text color better.
13182 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
13183 from Professional to the base class based off working with the System renderer.
13184 * ToolStripSystemRenderer.cs: Added.
13186 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13188 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
13190 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
13192 * ToolTip.cs: Implement 2.0 Tag property.
13194 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13196 * ListView.cs: Implement 2.0 HitTest methods.
13198 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13200 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
13201 item is under the pointer or not (sugar). Also remove the TODO
13202 regarding to the cursor changes in OneClick activation.
13203 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
13204 the subitems use the parent's HotFont if UseItemStyleForSubItems is
13205 true; otherwise don't show the underline style.
13207 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13209 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
13210 the code to retrieve the item at position only one time. Also
13211 change cursor when Activation is ItemActivation.OneClick as well
13212 as invalidate the item if HotTracking is true (to show/hide the
13213 underline style). Add an internal HotItemIndex property to retrieve
13214 the current hot item's index.
13215 * ListViewItem.cs: Add an internal HotFont property to cache the
13216 font used when HotTracking is true and the pointer moves within the
13218 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
13219 HotFont depending on the hot state of the item.
13221 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13223 * ListView.cs: Implement 2.0 HotTracking property.
13225 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13227 * ToolStripControlHost.cs: If our hosted control never got created,
13228 don't try to dispose it. [Fixes bug #81909]
13230 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13232 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
13234 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
13236 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
13238 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13240 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
13242 * DrawListViewColumnHeaderEventArgs.cs:
13243 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
13244 using the DrawText () methods.
13246 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
13248 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
13249 background which got erased in my changes yesterday.
13251 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13253 * ListViewItem.cs: Actually set bounds for subitems in Details view
13255 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
13256 can invoke from the owner draw routines if we need it. Also, add
13257 support for Owner draw in Details view.
13259 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13261 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
13262 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
13263 ShowImageMargin setting, properly align text in a ToolStripLabel
13264 hosted on a ToolStripDropDown.
13266 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13268 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
13269 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
13271 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13273 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
13275 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
13277 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
13278 location to match ToolStripMenuItems.
13280 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13282 * DrawListViewColumnHeaderEventArgs.cs:
13283 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
13284 column headers in ListView.
13286 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
13288 * UserControl.cs: Implement AutoSize.
13290 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13292 * DrawListViewItemEventArgs.cs:
13294 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
13297 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
13299 * ToolStripDropDownItemAccessibleObject.cs: Added.
13300 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
13301 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13302 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
13303 ToolStripTextBox.cs: corcompare work.
13305 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
13307 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
13308 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
13309 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
13312 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
13314 * OSFeature.cs: Add IsPresent.
13315 * PrintPreviewControl.cs: Add RightToLeft.
13316 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
13317 * SplitterPanel.cs: Add AutoSizeMode.
13319 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13321 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
13322 * MdiClient.cs: Add 2.0 ScaleControl.
13323 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
13324 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
13326 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13328 * Form.cs: Implement some scaling methods, stub some RTL methods,
13331 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13333 * Control.cs: corcompare work.
13334 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
13336 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
13338 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
13339 ControlPaint 2.0 stuffs.
13341 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13343 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
13345 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13347 * UpDownBase.cs: Add 2.0 stuffs.
13349 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13351 * NumericUpDown.cs: Add 2.0 stuffs.
13353 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13355 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
13357 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13359 * ErrorProvider.cs: Implement 2.0 stuffs.
13361 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13363 * DomainUpDown.cs: Implement 2.0 stuffs.
13365 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13367 * CheckedListBox.cs: Fix RefreshItems signature.
13369 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
13371 * PictureBox.cs: Implement 2.0 stuffs.
13373 2007-06-12 Andreia Gaita <avidigal@novell.com>
13375 * TabControl.cs: Check if there are tabpages before checking
13376 the selected index - fix #81802 (font changes raise a ResizeTabs
13377 call on controls.add, which blew up nicely with no tabpages)
13379 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13382 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
13384 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13387 * ListViewItem.cs: In VirtualMode the selection information
13388 resides in the ListView, rather than in the Items. Also, throw
13389 InvalidOperationExceptions when VirtualMode is being used and
13390 CheckedItemCollection is accessed.
13392 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13394 * ComboBox.cs: Add ScaleControl.
13396 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13398 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
13400 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13402 * GroupBox.cs: Add 2.0 stuffs.
13404 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
13406 * Panel.cs: Add autosize properties/event.
13408 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
13411 - When we remove a control, remove it from the collection before performing the layout.
13412 - Setup an internal property for explicit_bounds.
13413 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
13414 - Perform a layout when we set a new AutoSizeMode.
13416 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
13418 * ScrollableControl.cs: Add 2.0 stuffs.
13420 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13422 * ScrollBar.cs: Add 2.0 stuffs.
13424 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13426 * Splitter.cs: Add 2.0 stuffs.
13428 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13430 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
13431 to have BindingContext simply use base implementation.
13433 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13435 * ColumnHeader.cs: corcompare fix.
13437 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13439 * Button.cs: corcompare fixes.
13440 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
13442 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
13444 * Button.cs: Override GetPreferredSizeCore.
13445 * ButtonBase.cs: PerformLayout after changing properties that can affect
13446 AutoSize. Simplify some mouse/keyboard code.
13447 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
13448 * MouseEventArgs.cs: Make Location internal for 1.1.
13449 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
13450 * Theme.cs: Add CalculateButtonAutoSize.
13451 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
13453 2007-06-05 Miguel de Icaza <miguel@novell.com>
13455 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
13457 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13459 * ListViewItem.cs: We can't cache Bounds in VirtualMode
13460 since we can get different item instances every time we retrieve it.
13462 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13464 * ListView.cs: Work around for #81602, since an unkown an pretty
13465 infrequent condition appears only in some systems (old linux boxes, it
13468 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13470 * Button.cs: Completely reformat and a little refactor to bring
13471 this closer to Mono circa 2007.
13473 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13475 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
13476 to be ButtonBase.Invalidate.
13478 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13480 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
13482 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
13484 * ButtonBase.cs: Completely reformat and a little refactor to bring
13485 this closer to Mono circa 2007.
13487 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
13489 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
13490 values for autosize. Fixes #80137.
13492 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13494 * Control.cs: Don't perform layout when AutoSize changes.
13495 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
13496 directly when autosizing, use SetBounds with BoundsSpecified.None.
13497 Fixes unit tests my last commit broke.
13499 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13501 * Control.cs: Perform layout when AutoSize changes.
13502 * Form.cs: Implement AutoSizing.
13504 2007-06-01 Chris Toshok <toshok@ximian.com>
13506 * DataGrid.cs: remove the XXX'ed check at the top of
13507 ProcessGridKey. fixes #80464.
13509 2007-06-01 Chris Toshok <toshok@ximian.com>
13511 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
13512 adding idempotent (add/remove in Edit()), and also make sure we
13513 don't add it until after we set the text, so it's not tripped in
13514 Edit(). Fixes unit test regression.
13516 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
13518 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
13519 change is user explicit, not when the layout engine moves stuff. Fixes
13520 anchoring to bottom and right. [Fixes bug #81790]
13522 2007-06-01 Andreia Gaita <avidigal@novell.com>
13524 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
13526 2007-06-01 Andreia Gaita <avidigal@novell.com>
13528 * ContainerControl.cs:
13529 Fire enter event for common ancestor if it is not a ContainerControl.
13530 Send focus to the active_control and not the 'value', the active
13531 control might have been changed in one of the events fired.
13532 Definitely fixes #80159.
13534 2007-06-01 Andreia Gaita <avidigal@novell.com>
13536 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
13538 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13540 * PropertyGrid.cs: Anchor the help description to the bottom of the
13541 help panel and refactor SelectGridItem into a
13542 SelectGridItemInternal that can be set to null (and update it to
13543 clear the help texts when it is set to null). Set root item to null
13544 when there's no SelectedObject. Fixes #80438.
13545 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
13546 when we're recalculating after a resize (only).
13548 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13550 * ListView.cs: Implement 2.0 RedrawItems method.
13552 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13554 * ListControl.cs: Disconnect PositionChanged and ItemChanged
13555 handlers from previous data manager when DataSource is set to
13556 null. Fixes #81771.
13558 2007-05-31 Jackson Harper <jackson@ximian.com>
13560 * TextBoxBase.cs: These seem to be the correct values.
13562 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
13564 * FileDialog.cs: When close dialog with ok set filterindex using combobox
13565 value. Fixes #81784.
13567 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
13569 * Control.cs: Implement 2.0 scaling methods.
13571 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13573 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
13574 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
13577 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13579 * ProgressBar.cs: Implemented missing 2.0 members.
13581 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13583 * Control.cs: Corcompare issues.
13584 * MessageBox.cs: Implemented missing 2.0 functions.
13586 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13588 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
13589 Implemented more 2.0 members.
13591 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13593 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
13594 null (strange, but it seems to happen when running unit tests).
13596 2007-05-30 Andreia Gaita <avidigal@novell.com>
13598 * ContainerControl.cs: Set active_control even earlier, before
13599 firing any events, and undo it if validation returns false.
13601 2007-05-30 Andreia Gaita <avidigal@novell.com>
13603 * ContainerControl.cs: Raise Validation and Enter/Leave events
13604 even if there is no Form and set active_control earlier, just
13605 before firing Enter events (toshok's patches). Fixes #80647.
13607 2007-05-30 Jackson Harper <jackson@ximian.com>
13609 * TextControl.cs: Redid the pageup/pagedown a little to simplify
13610 things and fix bug #81311.
13612 2007-05-30 Jackson Harper <jackson@ximian.com>
13614 * X11Dnd.cs: Now that we have our own event loop, we need to
13615 cancel when we get a mouseup but it won't be accepted.
13617 2007-05-30 Chris Toshok <toshok@ximian.com>
13619 * DataGrid.cs (set_CurrentCell): guard against negative
13622 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
13623 array index syntax instead of looping over the property names.
13625 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
13626 and set IsInEditOrNavigateMode to false there.
13628 2007-05-30 Jackson Harper <jackson@ximian.com>
13630 * TreeView.cs: Make sure we don't get a bad visible order when
13631 setting to the top node. Fixes some misc crashing in
13634 2007-05-30 Andreia Gaita <avidigal@novell.com>
13636 * UserControl.cs: Add 2.0 AutoSizeMode
13638 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13640 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
13642 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13644 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
13645 lines. Fixes #80285.
13647 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13649 * DataGridColumnStyle.cs: Add char trimming column header text format.
13651 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
13653 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
13656 2007-05-29 Jackson Harper <jackson@ximian.com>
13658 * TreeNode.cs: Fix off by one on calculating whether or not a node
13661 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
13663 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
13664 * ScrollableControl.cs: Force an UpdateDistances when we move the
13668 2007-05-29 Andreia Gaita <avidigal@novell.com>
13670 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
13671 update the page setup screen.
13673 2007-05-29 Andreia Gaita <avidigal@novell.com>
13675 * PageSetupDialog.cs: Fix landscape mode.
13677 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13679 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
13680 IconSizeHorizontalSpacing.
13682 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13684 * ListView.cs: The declaration of prev_tooltip_item should be inside
13685 a NET_2_0 conditional (avoid a warning).
13687 2007-05-28 Andreia Gaita <avidigal@novell.com>
13689 * PageSetupDialog.cs: Implement PrintPreview control to display
13690 the preview thumbnail. Change unit conversion to use
13691 PrinterUnitConvert methods.
13693 Note: there is a huge bug in ms.net where the default margins are
13694 interpreted as centimeters (?), when in fact they are set in inches. When
13695 loading the page setup dialog initially (ms.net), the default margins
13696 are set to 1 inch, and the dialog shows them with value 10, when in fact
13697 it should be 25 (properly converted). Our dialog doesn't have this bug.
13699 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
13701 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
13703 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13706 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
13709 2007-05-28 Andreia Gaita <avidigal@novell.com>
13711 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
13712 an IntPtr on csc (it builds fine on mcs, could it be a compiler
13713 bug?), convert the ptr to Int32 first.
13715 2007-05-28 Jackson Harper <jackson@ximian.com>
13717 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
13718 recieved, we will exit the dnd tracking loop.
13720 2007-05-28 Jackson Harper <jackson@ximian.com>
13722 * X11Dnd.cs: Keep tracking until the xdnd finished event is
13723 recieved. TODO: I should probably stick a timer on the dropped
13724 event, and finish the drag if the XDND Finished event never shows
13725 (because some apps don't seem to send it).
13727 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
13729 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
13732 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13734 * MonthCalendar.cs: Only mark the keypresses we actually handle as
13737 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13739 * MonthCalendar.cs: Set the size after initializing all the relevant
13740 variables. Fixes #81742.
13742 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
13744 * KeyEventArgs.cs: Fix typo.
13746 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
13748 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
13749 to match MS. Fixed MinDate to only accept value less than or equal
13750 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
13751 Removed TODO's that are now verified by unit tests.
13753 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
13755 * TreeNodeCollection.cs: Minor corrections to exceptions to match
13758 2007-05-25 Jackson Harper <jackson@ximian.com>
13760 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13761 it's own message loop.
13762 * XplatUIX11.cs: Remove some of the dnd hooks
13764 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
13766 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13767 instead of MinimizedWindowSize.
13769 2007-05-25 Jackson Harper <jackson@ximian.com>
13771 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13773 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13775 * KeyEventArgs.cs: Added SuppressKeyPress.
13776 * Control.cs: Added support for SuppressKeyPress.
13778 2007-05-24 Andreia Gaita <avidigal@novell.com>
13780 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13781 problems with PieChart. suppress_validation should not be a counter,
13782 if there are several BeginInit calls, the first EndInit will
13783 activate validation. Fix exceptions thrown by set_Value.
13784 * UpDownBase.cs: ValidateText only if it's the user editing it.
13786 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13788 * ListControl.cs: FilterItemOnProperty should return the filtered
13789 item proeprty even if DataSource is null. The same applies for
13790 GetItemText. Fixes #80427.
13792 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13794 * Control.cs: If a control doesn't have a parent when it's Dock is
13795 set, but it has children, it needs to do a layout. Fixes some nested
13796 controls issues. [Fixes bug #81199]
13798 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13800 * ComboBox.cs: If there are few items in the drop down list, make it
13801 the exact size the items need, no bigger. Fixes #81612.
13803 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13805 * Application.cs: When we have captured the keyboard for a menu,
13806 check for mouse down events in case we need to close the menu.
13807 * Control.cs, Form.cs: Remove mouse down checks for menus.
13809 2007-05-24 Jackson Harper <jackson@ximian.com>
13811 * TextControl.cs: Handle tabs in non multiline mode a little
13814 2007-05-24 Jackson Harper <jackson@ximian.com>
13816 * TextControl.cs: We need to manually break apart tabbed text and
13817 move the tabs, since the system.drawing tabbing mechanism relies
13819 * TextBoxBase.cs: Move the caret properly when the user enters a
13822 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
13824 * ContainerControl.cs: Don't check CanSelect before calling
13826 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
13827 release a KeyboardActive on click if it's not ours.
13829 2007-05-23 Andreia Gaita <avidigal@novell.com>
13831 * ColumnHeader.cs: Add TypeConverter
13833 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13835 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13837 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13839 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13841 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13843 * LinkLabel.cs: Implement public Padding property.
13845 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13847 * LinkLabel.cs: Implement public FlatStyle.
13849 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
13851 * Control.cs: Apply patch from George to call parent.PerformLayout
13852 when Visible is changed. [Fixes bugs #81118, 81718]
13854 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13856 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13858 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13860 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13862 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
13864 * ContextMenu.cs: Implement Collapse.
13866 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13868 * ToolBarButton.cs: Implement Name.
13870 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13872 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13873 use current_item, it prevents some NRE. Fixes #81675.
13875 2007-05-22 Andreia Gaita <avidigal@novell.com>
13877 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13878 without updating the text.
13880 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13882 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13883 without calling DeleteObject. [Should fix bug #81709]
13885 2007-05-22 Jackson Harper <jackson@ximian.com>
13887 * RichTextBox.cs: Set the line endings correctly, when flushing
13890 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
13892 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13893 {Width=0,Height=0}.
13895 2007-05-22 Jackson Harper <jackson@ximian.com>
13897 * TreeView.cs: Setting top with a null node should set to the very
13900 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13902 * Form.cs: ShowDialog: destroy the handle when message loop is
13903 finished, matches MS behaviour. Refactor parts of WmClose into
13904 RaiseCloseEvents, that only raises events if they haven't already
13905 been raised. Fixes #81688 and #81521.
13906 * Application.cs: Don't call close on the form when exiting a modal
13907 loop, it will raise all the (Form)Closed/Closing events again if
13908 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13909 which doesn'r raise any events it they have been raised before.
13911 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
13913 * Control.cs: Add OnPrint.
13914 * ToolStrip.cs: Add GetChildAtPoint.
13915 * ToolStripContainer.cs: Add OnRightToLeftChanged.
13916 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13918 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
13920 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
13922 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13924 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13925 isn't visible anymore. Fixes #81651.
13927 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13929 * Control.cs: WmShowWindow: Update children's z-order after setting
13930 their parent. SetParent may show the window, thereby corrupting
13931 z-order, since the window will be shown on top.
13932 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13933 multiple (and redundant) WM_SHOWWINDOW messages.
13934 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13935 event has already been raised.
13936 * Form.cs: Change is_changing_visible_state to a counter, since
13937 SetVisibleCore can be called recursively. CreateHandle: when
13938 creating mdi children, send (De)Activated events.
13939 * MdiClient.cs: Update use of is_changing_visible_state.
13940 * Application.cs: OnThreadException: Surround exception handling with
13941 try/finally to ensure we always reset the error-handling state
13944 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13946 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13949 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13951 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13952 SmallIcon views, now that we have a standarized horizontal spacing.
13954 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13955 4, just like the other views (Match .Net).
13957 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
13959 * Control.cs: Delay calculating anchor distances until we actually layout.
13960 Always query the WM for the actual size and location it put us at instead of
13961 only when we send negative values.
13962 [Fixes bugs #81694, 81695]
13964 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
13966 * Application.cs: Avoid a possible stack overflow when trying to exit
13969 2007-05-19 Marek Safar <marek.safar@gmail.com>
13971 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13974 2007-05-19 Andreia Gaita <avidigal@novell.com>
13976 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13977 * NumericUpDownAcceleration.cs,
13978 NumericUpDownAccelerationCollection.cs: Added 2.0
13981 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
13983 * RichTextBox.cs: Recalculate the document after the ScrollBars
13984 property is changed. Fixes bug #81681.
13986 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
13988 * DataObject.cs: Implement 2.0 methods.
13990 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13992 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13993 in the center of the checkbox, not in the left-top corner.
13996 2007-05-18 Jackson Harper <jackson@ximian.com>
13998 * RichTextBox.cs: Recalculate the document after the scrollbars
13999 property is changed.
14000 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
14003 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14005 * CreateParams.cs: Make HasWindowManager marginally faster.
14006 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
14007 into Hwnd so that other drivers can use it as well.
14008 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
14009 the default location from Hwnd. Fixes MDI client windows always
14010 showing up at (0,0) in Windows (Win32 won't set the default
14011 location since the window styles aren't correct).
14013 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
14015 * TreeView.cs: Modified DoubleBuffered to just use the base
14018 2007-05-18 Jackson Harper <jackson@ximian.com>
14020 * TreeView.cs: Set the top node to the last child node when
14022 - When we get focus, if there is no selected node, use the top
14025 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
14027 * KeysConverter.cs: Add CanConvertTo.
14028 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
14029 * LinkConverter.cs: Added.
14031 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
14033 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
14034 it prevents error when file dont have write access. Fixes #81669 and #81667.
14036 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
14038 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
14039 button text. Fixes #79640.
14041 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
14043 * Control.cs: According to MSDN controls created in the designer theres
14044 keyboard accelerators visible by default. So included check for design
14045 in ShowKeyboardCuesInternal.
14047 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
14049 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
14050 text. Fixes #81621.
14052 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
14054 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
14055 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
14057 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
14059 * Control.cs: Finish implementation of UI State using WmChangeUIState
14060 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
14061 in some controls to check for show_keyboard_cues to draw accell keys "_".
14063 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14065 * ListBox.cs: When calculating the horizontal scrollbar
14066 in single column mode, don't use values less than 0 for
14067 Maximum. Fixes #81474.
14069 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14071 * ListBox.cs: Throw the some missing exceptions in
14072 ListBox.ObjectCollection methods.
14074 2007-05-17 Jackson Harper <jackson@ximian.com>
14076 * TextBoxBase.cs: Recalculate the document when the word wrap
14077 value has changed. This fixes 81488.
14079 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
14081 * Clipboard.cs: Implement missing GetText overload.
14083 2007-05-17 Chris Toshok <toshok@ximian.com>
14085 * Control.cs (CheckDataBindings): remove the binding_context arg
14088 * CurrencyManager.cs (OnItemChanged): fix this now that
14089 BindingManagerBase is fixed. also remove the comment telling where
14090 the fix should go. We set transfering_data to true/false around
14091 the call to PushData to keep UpdateIsBinding from being called.
14092 (ListChangedHandler): remove the extra OnMetaDataChanged call for
14093 PropertyDescriptorAdded in the 1.1 case. The extra call is
14094 actually generated by System.Data generating 2 metadata changed
14095 events of its own per column add. The fix should go there. Add a
14096 comment to that affect in our test's Assert.Ignore.
14098 * BindingManagerBase.cs: Rework PullData and PushData slightly.
14099 we keep a boolean flag (transfering_data) that keeps us from
14100 calling UpdateIsBinding multiple times if we re-enter either of
14103 * ControlBindingsCollection.cs (AddCore): remove the
14104 binding_context arg to binding.Check.
14106 * Binding.cs (IsBinding): don't check if we're binding here, just
14107 return our cached value. we update it in UpdateIsBinding.
14108 (Check): don't take the binding_context arg, we'll just use our
14109 control's. Also, for some reason MS doesn't use the data member
14110 field when getting the bindingmanager for this binding. it just
14111 uses the datasource. Make this method callable multiple times,
14112 and only do the is_null_desc stuff if manager.Position != -1 (so
14113 we don't get an exception accessing manager.Current).
14114 (UpdateIsBinding): move the code from IsBinding here.
14115 (PositionChangedHandler): call Check here to we can initialize
14116 things that require a non- -1 position.
14118 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
14120 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
14123 2007-05-17 Andreia Gaita <avidigal@novell.com>
14125 * TabControl.cs: Add 2.0 methods and events, including
14126 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
14127 * TabPage.cs: Add 2.0 methods
14129 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
14131 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
14132 keyboard_cues is properly handled by message method.
14134 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
14136 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
14138 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
14140 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
14142 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
14145 - WmUpdateUIState added to handle state changes, it make call to
14146 OnChangeUICues event.
14147 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
14150 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
14152 * ImageKeyConverter.cs: Added.
14153 * TreeViewImageKeyConverter.cs: Added.
14155 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14157 * ToolTips.cs: Update Text if SetToolTip is called for a control
14158 already showing the tooltip, as well as restarting its timer; show
14159 tooltip if we are inside the control bounds by the time of calling
14160 SetToolTip. Inside ShowTooltip remove the check to not show the
14161 tooltip again for the active control (it is allowed by .Net to
14162 show the tooltip on the same control multiple times).
14164 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14166 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14168 2007-05-16 Andreia Gaita <avidigal@novell.com>
14170 * ContainerControl.cs: only process tab key if there are no
14171 modifier keys present, otherwise the control does the
14172 tab processing, if it needs to. Fixes #81622
14173 * TabControl.cs: Fixes calculation for which tab to select on
14176 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14178 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14180 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
14182 * Control.cs: Make IsInputCharInternal to allow controls to
14183 override it and still match MS API.
14184 * TextBoxBase.cs: Override IsInputCharInternal and always
14188 2007-05-15 Jackson Harper <jackson@ximian.com>
14190 * TextBox.cs: Disable some of the menu options when using a
14193 2007-05-15 Jackson Harper <jackson@ximian.com>
14197 * RichTextBox.cs: Some new 2.0 methods
14199 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
14201 * FileDialog.cs: On 1.0 profile, do not support multidotted
14204 2007-05-14 Jackson Harper <jackson@ximian.com>
14206 * TextBoxBase.cs: Implement some of the new 2.0 methods.
14207 * RichTextBox.cs: We need to override these methods on 2.0.
14208 * MaskedTextBox.cs: These are implemented now
14209 * TextControl.cs: This was off by one.
14211 2007-05-14 Jackson Harper <jackson@ximian.com>
14213 * TextControl.cs: Because the line endings are including in the
14214 text, we don't need to add them in anymore.
14216 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14218 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
14219 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
14221 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14223 * ToolBar.cs: Adjust size to default size when button theres no text and
14224 image, it fixes remaining issues from #81524.
14226 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14229 - When not flat call redraw to recalculate sizes on creare handle to match
14231 - Revert 77220 because it causes some regressions in toobar
14234 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
14236 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
14237 now actually enters a usable state.
14239 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14241 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
14242 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
14245 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14247 * ToolBar.cs: Save default_size on create handle to use later for buttons
14248 without text, needed to mimic win32 behavior.
14250 2007-05-11 Everaldo Canuto <everaldo@simios.org>
14252 * ToolBar.cs: Fix button layour to best fit width or height according to
14253 vertical or not. Fixes #81524.
14255 2007-05-10 Everaldo Canuto <everaldo@simios.org>
14257 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
14258 toolbar size info because different styles theres different sizes.
14261 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14263 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
14264 if we are using checkboxes, checked is true, and we have less
14265 than two images in StateImageList; for the 1.1 in the same scenario
14266 draw the first image if we have at least one image in StateImageList.
14267 Fixes part of #81191.
14269 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14271 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
14272 the owner's Items collection on merge.
14274 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14276 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
14277 * ToolStripItemCollection.cs: Lots of fixes to when events get called
14278 and parent/owner gets changed based on gert's unit tests.
14280 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
14282 * MaskedTextBox.cs: Started implementing parts of it.
14284 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14286 * ListView.cs: When clicking the checkbox on the items
14287 take into account the double clicks even if we have only
14288 one image in StateImageList (only for 1.0/1.1). Also
14289 generate an extra change of checked state when we receive
14290 the second click on checkbox (match .Net behaviour).
14291 Fixes part of #81191.
14293 2007-05-10 Everaldo Canuto <everaldo@simios.org>
14295 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
14297 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
14299 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
14300 even if OnLoad is overriden and base.OnLoad is not called.
14303 2007-05-10 Andreia Gaita <avidigal@novell.com>
14305 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
14306 shame. (I blame my ever-persisting and annoying cold)
14308 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14310 * ListView.cs: Don't eat navigation keys. Let them flow through to
14311 KeyDown/KeyPress routines. [Fixes bug #81569]
14313 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14315 * ListView.cs: When handling keys for selecting the item based off
14316 keyboard input, do not consider keys pressed with Alt or Control. Also,
14317 correctly handle keys when the Shift key is down. [Fixes bug #81578]
14319 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14321 * Control.cs: When using UseWaitCursor, we have to store the requested
14322 Cursor to use when UseWaitCursor is turned off.
14324 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
14326 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
14328 * Application.cs: Use PreProcessControlMessage instead of
14330 * PreProcessControlMessage.cs: Make internal for 1.1.
14332 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14334 * Control.cs: Add InternalContains focus property, which hast the same
14335 functionality of ContainsFocus, but also including implicit controls.
14336 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
14337 since we need to know if the focus is contained in our implicit
14338 ItemControl when calculating Layout. Fixes part of #80888.
14340 2007-05-08 Everaldo Canuto <everaldo@simios.org>
14342 * ToolTip.cs: Remove center form string alignment as it must be align to
14345 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
14347 * ToolStripItemCollection.cs: Set the new item's parent and owner
14348 in Insert like we do in Add. [Fixes bug #81568]
14350 2007-05-08 Jackson Harper <jackson@ximian.com>
14352 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
14353 - Off by one error in SetTop
14354 - Disable DoubeBuffering
14356 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14358 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
14359 control as much as necessary in order to make it entirely visible,
14360 instead of centering the control in the container (matches MS
14361 behaviour). CalculateCanvasSize: we need to take the current scroll
14362 position into account when calculating the maximum canvas,
14363 otherwise the following scenario will fail: resize so that the
14364 scrollbars appear, use the scrollbars to scroll, resize again
14365 smaller, and now the canvas size is too small. Recalculate: when
14366 showing scrollbars make sure they start off at 0, and try to scroll
14367 the active control into view. Fixes #79540. HandleScrollBar: don't
14368 scroll anywhere if the scrollbar isn't visible.
14370 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14372 * ListView.cs: When focus changed, call Layout/Invalidate
14373 in the focused item to update the selected state (should show
14374 entire label when ListView is focused, and a part of it if is not).
14375 * ListViewItem.cs: When doing layout for LargeIcon, take into account
14376 for displaying the entire label not only the Focused state of the
14377 item, but also the Focused state of the ListView (match .Net
14380 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14382 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
14383 Implement UseWaitCursor.
14385 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14386 Applying contributed patch from Sergey Volk.
14388 * Clipboard.cs: Implement SetDataObject retry logic and new overload
14390 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
14392 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14394 * Control.cs: Implement DrawToBitmap.
14396 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14397 Applying contributed patch from Stefan Noack.
14399 * Control.cs: Add [Get|Set]AutoSizeMode.
14401 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14403 * MdiClient.cs: Unmerge menus when the last child is closed.
14405 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
14407 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
14408 * ToolStripManager.cs: Call Merge on DropDowns.
14411 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
14413 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
14415 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
14416 visibility. We can't create forms visible, since we have to set the
14417 owner before making the form visible (otherwise Win32 will do
14418 strange things with task bar icons). The problem is that we set the
14419 internal is_visible to true before creating the control, so
14420 is_changing_visible_state is the only way of determining if we're
14421 in the process of creating the form due to setting Visible=true -
14422 this works because SetVisibleCore explicitly makes the form
14423 visibile afterwards anyways. Fixes #80775.
14425 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14427 * ThemeWin32Classic.cs: When drawing ListViewItems,
14428 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
14429 or LargeIcon _and_ item is not focused (match .Net behaviour).
14431 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
14433 * Control.cs, Form.cs: Fix some obsolete method warnings.
14435 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
14437 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
14438 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
14440 2007-05-04 Andreia Gaita <avidigal@novell.com>
14442 * ContainerControl.cs: Fix active_control attribution when going
14443 up the parent chain so that the first parent container gets the control
14444 and the rest of the parent containers get the child containers (skips
14445 non-containers). Fixes #80729
14447 2007-05-04 Randolph Chung <tausq@debian.org>
14449 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
14452 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14454 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
14455 takes a size parameter, since the CreateParam's size isn't true for
14456 minimized forms. Fixes #81518,
14458 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14460 * Form.cs: Add OnDeactivateInternal.
14461 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
14463 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
14465 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
14466 accessing the parent. Fixes #81508.
14468 2007-05-03 Chris Toshok <toshok@ximian.com>
14470 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
14471 2.0 block, pass listposition + 1 to ChangeRecordState when a row
14472 was added before the current listposition. Fixes the
14473 TestInsertRowBeforeCurrent unit test.
14475 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
14477 * Application.cs: Add RaiseIdle.
14478 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14479 XplatUIX11.cs: Implement RaiseIdle.
14481 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
14482 corcompare work: N - Z
14486 * ScrollableControl.cs
14487 * SplitContainer.cs
14490 * SystemInformation.cs
14492 * TableLayoutControlCollection.cs
14493 * TableLayoutPanel.cs
14498 * ToolStripComboBox.cs
14499 * ToolStripContainer.cs
14500 * ToolStripContentPanel.cs
14501 * ToolStripDropDown.cs
14502 * ToolStripDropDownItem.cs
14503 * ToolStripDropDownMenu.cs
14505 * ToolStripItemCollection.cs
14506 * ToolStripMenuItem.cs
14507 * ToolStripPanel.cs
14508 * ToolStripSplitButton.cs
14511 * TreeNodeCollection.cs
14512 * TreeNodeMouseHoverEventArgs.cs
14515 2007-05-01 Everaldo Canuto <everaldo@simios.org>
14517 * ContextMenu.cs: Add public method Show with alignment property to 2.0
14518 stuff. Thanks aatdark for the patch.
14520 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14522 * GridItem.cs: Implement 2.0 Tag property.
14524 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
14526 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
14527 count instead of Nodes.Length. [Fixes bug #81448]
14529 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14531 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
14534 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14535 corcompare work: A - M
14536 * BindingNavigator.cs
14541 * FlowLayoutPanel.cs
14547 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
14549 * Application.cs: Give toolstrips a chance to process mnemonics.
14550 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
14551 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
14552 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
14554 2007-05-01 Jackson Harper <jackson@ximian.com>
14556 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
14558 - Don't set the BoundsSpecified
14560 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14562 * Application.cs: When using the toolstrip shortcut mechanism, allow the
14563 message to pass through to a regular control if it hosted by a toolstrip.
14564 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14565 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
14567 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14569 * TextRenderer.cs: Use the flags argument when using the MeasureString
14570 fallback algorithm.
14572 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
14574 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
14575 the MDI menu item. [Fixes bug #81483]
14577 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
14579 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
14580 string. When setting Name to null, use zero-length string instead.
14582 2007-04-29 Andreia Gaita <avidigal@novell.com>
14584 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
14585 DeselectTab). Implement missing 2.0 TabPageCollection methods
14586 (Add, ContainsKey, RemoveByKey, IndexOfKey)
14588 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
14590 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
14592 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
14594 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
14595 Fixes bug #81479. Include details of exception when LoadFile fails.
14597 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
14599 * DrawListViewSubItemEventArgs.cs: Added missing setter
14601 2007-04-27 Andreia Gaita <avidigal@novell.com>
14603 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
14604 Hide methods (not complete). Implement missing 2.0 OnPopup event.
14606 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14608 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
14609 removed in ly last commit (it was breaking the Label edit feature).
14611 * ThemeWin32Classic.cs: When drawing a ListViewItem use
14612 StringAlignment.Near for LineAlignment (match .Net).
14614 2007-04-27 Andreia Gaita <avidigal@novell.com>
14616 * TabControl.cs: Change SetTab so it adds the tabpage to the list
14617 of controls if it isn't already there - was blowing up when doing
14618 tabcontrol.TabPages[i]=new TabPage().
14619 SetTab now does a replace by removing the page at the index.
14620 Add a new InsertTab method that inserts a page in a given index
14621 instead of replacing.
14622 Implements TabPageCollection.Insert(int, TabPage).
14624 2007-04-27 Chris Toshok <toshok@ximian.com>
14626 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
14627 internal handler that can be invoked from our subclasses.) Also,
14628 add a comment to PushData about how we need to fix it.
14630 * CurrencyManager.cs: tons of changes here. trying to get things
14631 matching the behavior of .net wrt event orders (ItemChanged,
14632 CurrentChanged, PositionChanged.) I've implemented a private .net
14633 symbol (ChangeRecordState) that appears in stack traces because
14634 it's actually easier to do this than to effective inline all its
14635 various behaviors at every call site.
14637 * RelatedPropertyManager.cs: guard against an exception here by
14638 not using parent.Current if the position is set to -1 (if the
14639 parent datasource is cleared, for instance).
14641 * Binding.cs: don't parse data in PushData (this might be wrong,
14642 but it jives with MS's behavior.) Also, don't call PushData when
14643 we get a CurrentChanged event.
14645 2007-04-27 Andreia Gaita <avidigal@novell.com>
14649 WebBrowserSiteBase.cs,
14650 HtmlDocument.cs: Added stubbed out classes, no real implementations
14653 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14655 * MainMenu.cs: In draw method without parameters call draw method with
14656 PaintEvent, another one (just rect) adjust rectangle and we dont need it
14657 as Rect property is already adjusted. Fixes #80694.
14659 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
14661 * Application.cs: Need to handle keyboard menu deselection here.
14662 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
14663 navigation, allowing keyboard to work on X11.
14664 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
14666 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14668 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
14669 menu bar. It fixes some drawing issues in menu bar.
14671 2007-04-27 Everaldo Canuto <everaldo@simios.org>
14673 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
14674 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
14675 when <alt> key is pressed.
14677 2007-04-26 Everaldo Canuto <everaldo@simios.org>
14679 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
14680 example just set visible to false and make this prevent from other problems.
14681 In SystrayAdd always remove pending expose. Fixes #81072.
14683 2007-04-26 Marek Safar <marek.safar@gmail.com>
14685 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
14688 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14690 * ListView.cs: Added three missing 2.0 events and corresponding
14691 EventHandlers. Added the OwnerDraw property.
14692 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
14694 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14696 * DrawListViewItemEventArgs.cs
14697 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
14699 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
14701 * TextControl.cs: Fixed typo in constructor
14703 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
14705 * Application.cs: Create a shortcut path so that currently selected
14706 MenuStrips can intercept keyboard events without having focus.
14707 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
14708 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
14709 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
14710 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
14711 generate WM_SYSCOMMAND message in X11 for other platforms.
14712 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
14713 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
14714 * ToolStripSplitButton.cs: Add DefaultItem property.
14716 2007-04-26 Everaldo Canuto <everaldo@simios.org>
14718 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
14719 fixes some menu draw problem on Windows with border diferent from default
14720 it also fixes #81403.
14722 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14724 * Form.cs: Refactor WndProc into separate methods, just like Control is
14727 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14729 * Control.cs: set_Text: move the call to the driver into a seperate
14730 virtual method so that Form can override it.
14731 * MaskedTextBox.cs: Corcompare fixes.
14732 * Form.cs: Override UpdateWindowText and only update the styles if the
14733 form has been shown (fixes #81405).
14735 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
14737 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
14738 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
14739 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
14740 the form lost focus or another control was clicked.
14742 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
14744 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
14747 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14749 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
14750 DrawListViewItemEventHandler.cs,
14751 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
14753 * X11Structs.cs: More ToString implementation.
14755 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
14757 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14758 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14760 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14762 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14764 * FormCollection.cs: Don't add a form if it's already in the
14766 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14767 according to behaviour and MSDN. The ownerWin32 is the active
14768 window at the moment when we call ShowDialog, not the context's
14769 main form (the context's main form may open another form that opens
14770 a form with ShowDialog, the win32 owner is the second form). Add
14771 and remove forms to the Application.OpenForms in other places to
14772 better match MS behaviour. Add an IsActive property that raises
14773 On(de)Activated only if the active state has changed (we were
14774 raising OnDeactivated before OnActivated while creating forms).
14775 * Application.cs: Refactor Enabling/Disabling of windows for modal
14776 dialog loops out to separate methods, and restore the thread
14777 context when we quit the method. Fixes #81407.
14779 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14781 * ListView.cs: In ItemControl.HandleClicks, also fire
14782 2.0 MouseClick or MouseDoubleClick events on the parent,
14783 not only the Click/DoubleClick events.
14785 2007-04-24 Andreia Gaita <avidigal@novell.com>
14787 * TableLayoutSettings.cs:
14788 - Added a GetControls method and a support structure to help the
14789 TypeConverter to enumerate the controls for serialization.
14790 - Added a new serialization constructor.
14791 - Added a isSerialized flag initialized to true on the
14792 serialization constructor so that the TableLayoutPanel.LayoutSettings
14793 setter does not throw the designed NotSupportedOperation exception
14794 when the object is built through deserialization.
14795 - Implemented GetObjectData
14797 * TableLayoutPanel.cs: Added check on LayoutSettings.
14799 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14801 * ListView.cs: Report Click and DoubleClick events to the parent
14802 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14803 from breaking the click count state when using dialog forms (Control
14804 reports the clicks in a similar fashion). In the previous behaviour
14805 the last WM_LBUTTONUP message in a double click was sent to the
14806 ListView's form, instead of the ListView, which was breaking the click
14807 count for it. Fixes #80387.
14809 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
14811 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14813 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
14815 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
14816 us from created dropdowns for menu items that do not have subitems.
14817 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14818 Check HasDropDownItems before calling DropDown so a dropdown will not be
14819 created if it isn't needed.
14821 2007-04-24 Jackson Harper <jackson@ximian.com>
14823 * TreeView.cs: Set the first node to the selected node when we get
14824 focus if there is no selected node.
14826 2007-04-24 Andreia Gaita <avidigal@novell.com>
14828 * MimeIcon.cs: remove using blocks so that image streams are
14829 not disposed of. Fixes #80151
14831 2007-04-24 Jackson Harper <jackson@ximian.com>
14833 * TextBoxBase.cs: Fixup the height of textboxes when the control
14836 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
14838 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
14839 for each ToolStripItem when the parent's RightToLeftChanged is called.
14841 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14843 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14845 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14846 property, so that the setter can be overriden too.
14847 * TextBox.cs: Change GetContextMenuInternal() to use
14848 ContextMenuInternal.
14850 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14852 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14855 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14857 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14860 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14862 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14863 avoid duplicate work. Mostily skeleton code, it's not working at
14866 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
14868 * NotifyIcon.cs : stub for MouseClick event
14869 * Application.cs: stub for SetUnhandledExceptionMode
14871 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
14873 * BindingNavigator.cs : Initial (partial) implementation
14875 2007-04-23 Jackson Harper <jackson@ximian.com>
14877 * TreeView.cs: Do not create the treeview's handle when setting
14878 the scroll position.
14879 - ExpandAll needs to compute the scrollbars so it knows which
14880 position to set the bar too.
14882 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14884 2007-04-23 Jackson Harper <jackson@ximian.com>
14886 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14889 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
14891 * ToolStripItem.cs: Make GetImageSize internal.
14892 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14893 need to draw an item. Fixes a reported issue where images on menus
14894 that were not 16x16 were drawing incorrectly.
14896 2007-04-21 Miguel de Icaza <miguel@novell.com>
14898 * Padding.cs: Use the converter, fixes the resgen2 issue with
14901 2007-04-21 Jackson Harper <jackson@ximian.com>
14903 * TreeView.cs: Dont try to unhighlight the selected node if there
14904 isn't a selected node.
14906 2007-04-21 Jackson Harper <jackson@ximian.com>
14912 * TreeView.cs: Use the InternalBorderStyle property to set the
14913 initial border style, this forces the client rectangle to be sized
14916 2007-04-20 Jackson Harper <jackson@ximian.com>
14918 * TreeView.cs: Simplify scrolling to the last node after expanding
14920 - Fix some off by ones with setting the bottom.
14922 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14924 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14925 that. We were incorrectly doing it the other way around. Also,
14926 update ClientSize if we change the BorderStyle before the control
14929 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14931 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14932 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14933 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14934 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14935 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14936 Caption to CaptionHeight.
14937 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14938 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14939 and FixedFrameBorderSize to return value from current XplatUI driver.
14940 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14941 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14942 and FixedFrameBorderSize using win32 API. Renamed Caption to
14944 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14945 * SystemInformation.cs: Fixed typo in BorderSize.
14947 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
14949 * XplatUI.cs: Added MenuAccessKeysUnderlined.
14950 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14951 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14953 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14954 value from XplatUI driver.
14955 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14956 SystemParametersInfo.
14957 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14959 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14962 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14964 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14966 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14968 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14970 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
14972 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14973 MenuStrips that contain ToolStripSeparators.
14975 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14977 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14978 DefineStdCursorBitmap.
14979 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14980 has been created off a standard cursor. This is used to get a
14981 bitmap of the standard cursor when Draw or DrawStretched is called
14982 in order to draw the cursor.
14983 * X11Structs.cs: Added XcursorImage and XcursorImages.
14984 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14985 DefineStdCursorBitmap.
14986 * Cursors.cs: Update all relevant creations of Cursor to use the new
14987 internal constructor.
14989 2007-04-19 Jackson Harper <jackson@ximian.com>
14991 * TextBox.cs: Move the has_been_focused into the base control, so
14992 some of the text adding methods can manipulate it (probably time
14993 for a better name for this flag too).
14994 - Call a new version of selectall that doesn't scroll
14995 * TextBoxBase.cs: When we append text, if the document is empty,
14996 don't scroll. If the document has text already, we scroll to the
14997 end of the appended text.
14998 - When the text is changed, we reset the has_been_focused, so the
14999 next time the control gets focused, all the text is selected.
15001 2007-04-19 Jackson Harper <jackson@ximian.com>
15003 * TextControl.cs: Move the margins to the document, add a method
15004 so the margin sizes can be updated.
15005 * TextBoxBase.cs: When the border style is changed, update the
15008 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
15010 * Control.cs: Respect DefaultPadding.
15011 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
15012 padding into account.
15013 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
15015 2007-04-19 Jackson Harper <jackson@ximian.com>
15017 * TextControl.cs: Oops, we need to use the ClientRect not the
15020 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15022 * ListView.cs: In ItemControl.ItemsMouseDown, take into
15023 account the double clicks when CheckBoxes are used and
15024 the pointer is inside the checkbox. Fixes part of #81191.
15026 2007-04-18 Jackson Harper <jackson@ximian.com>
15028 * TextControl.cs: Pressing the end key shouldn't move the caret
15029 past the line ending.
15030 * TextBoxBase.cs: We can still delete if we are in the line
15031 ending and the combine will just kill the existing line ending.
15033 2007-04-18 Jackson Harper <jackson@ximian.com>
15035 * TextControl.cs: We can't move lines, then invalidate their
15036 bounds, we need to get the old bounds and combine that with the
15038 * TextBoxBase.cs: Before combining two lines for a delete, we need
15039 to invalidate the area of the old line, since that will be moved
15040 in the combine operation.
15042 2007-04-18 Everaldo Canuto <everaldo@simios.org>
15044 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
15045 with transparent background. Fixes #80482.
15047 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
15049 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
15050 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
15053 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15055 * CreateParams.cs: Add a couple of helper methods and do a less string
15056 concatenation in ToString.
15057 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
15058 overload that takes a Control parameter, since this method may be
15059 called before a control is assigned to the hwnd (from
15060 CreateWindow), and update CreateWindow to use the new overload. In
15061 GetMenuOrigin subtract the title bar from the y position if the
15062 form has a window manager (since we're painting it and not X).
15063 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
15064 CreateParams to calculate the origin (since border sizes may vary).
15065 In ScreenToMenu only subtract the title height if we actually have
15067 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
15068 mdi children never have menus of themselves.
15069 * InternalWindowManager.cs: Implement menu handling like form does.
15070 Added GetMenuOrigin to calculate the menu origin, can't use the
15071 CreateParams from the form like normally since it's lying.
15072 * Hwnd.cs: Implement GetBorderSize better (in the sense more
15073 windows-like) and add Inflate and comparison operators to the
15074 Borders type. When calculating MenuOrigin and it's a form with a
15075 window manager, use the window manager to calculate it.
15077 2007-04-17 Chris Toshok <toshok@ximian.com>
15079 * Control.cs (CreateControl): turns out in 2.0 we don't need this
15080 OnBindingContextChanged thing here. It's only generated from
15081 ContainerControl.OnCreateControl. Fixes a newly written unit test
15082 - BindingTest.BindingContextChangedTest4.
15084 2007-04-17 Jackson Harper <jackson@ximian.com>
15086 * ScrollBar.cs: When setting values, make sure the current
15087 position stays within the new values range.
15089 2007-04-17 Chris Toshok <toshok@ximian.com>
15091 * Control.cs (CreateControl): talk about a bizarre corner case.
15092 Don't emit OnBindingContextChanged here if we're a parentless
15093 control (i.e. if we're a form.). Fixes
15094 BindingTest.BindingContextChangedTest2.
15096 2007-04-17 Everaldo Canuto <everaldo@simios.org>
15098 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
15099 from win32. Fixes #81255.
15101 2007-04-17 Everaldo Canuto <everaldo@simios.org>
15103 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
15104 already present in CalculateButtonTextAndImageLayout.
15106 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
15108 * XplatUIX11.cs: When setting min/max size for a window we need to
15109 translate the coordinates to x coordinates. Create an overload of
15110 SetWindowMinMax that takes a CreateParams handling this, and change
15111 SetWMStyles to call this function (can't use Control.FromHandle in
15112 the SetWindowMinMax to get the control/CreateParams from the handle
15113 because the handle might not have been assigned to the control
15114 yet). Fixes #81371.
15116 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15118 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
15119 if StateImageList is non-null and it has less than two items (match MS
15120 behaviour). Also, in HandleNavKeys handle the Space key, calling
15121 the new ToggleItemsCheckState method, which tries to change the
15122 checked state of the selected items. Fixes part of #81191.
15124 2007-04-16 Jackson Harper <jackson@ximian.com>
15126 * RichTextBox.cs: namespace cleanup.
15128 2007-04-16 Everaldo Canuto <everaldo@simios.org>
15130 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
15132 2007-04-16 Everaldo Canuto <everaldo@simios.org>
15135 * Control.cs: Call invalidate in set_Region.
15137 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
15138 it dont works here.
15140 2007-04-16 Jackson Harper <jackson@ximian.com>
15142 * TextBoxBase.cs: When enter is pressed, we need to update all
15143 lines below the current.
15145 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
15147 * MdiClient.cs: Implement implicit menu merging for MDI
15148 children. When a child form is active, if it has a menustrip
15149 and the parent form has a MainMenuStrip, automatically merge
15152 2007-04-15 Andreia Gaita <avidigal@novell.com>
15154 * TabControl.cs: Refactored sizing methods to not repeat
15155 code all over the place. Tab bounds are now calculated
15156 as if alignment is top and single line, and only when
15157 setting the bounds are the positions adjusted according
15158 to alignment. Replaced hardcoded positions, spacings and
15159 paddings by getting the values the ThemeEngine.
15162 * Theme.cs: Change TabControl properties and methods so
15163 that all start with TabControl*. Added more properties
15164 to help remove hardcoded values on tabcontrol.
15165 Add CPDrawBorder3D declaration so the Theming classes
15168 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
15170 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
15171 on the Theming namespace, and call the appropriate methods here.
15172 Change CPDrawBorder3D to public.
15174 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15176 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
15177 the control after firing the OnMouseUp event, instead of sending
15178 the message before the mentioned event. This is so we can match the
15179 MS behaviour. Fixes part of #80385.
15181 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
15183 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
15184 RightToLeft property.
15186 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
15188 * ToolStrip.cs: Add properties and internal methods to support merging.
15189 * ToolStripItem.cs: Add MergeAction and MergeIndex.
15190 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
15191 not trigger reparenting or layouts.
15192 * ToolStripManager.cs: Add Merge and RevertMerge methods.
15193 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
15194 is hosting the overflow menu.
15196 2007-04-13 Jackson Harper <jackson@ximian.com>
15198 * TextControl.cs: Set the line ending correctly for the first
15201 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
15203 * Theme.cs: Update GetMethod to get the new definition for
15204 KnownColors.Update (and fix theme color updates).
15206 2007-04-12 Everaldo Canuto <everaldo@simios.org>
15208 * MessageBox.cs: Fix some test and button position.
15210 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15212 * Form.cs: Consider the implicit controls in
15213 GetRealChildAtPoint. We need it since this method
15214 is called on Form when handling the some messages in
15215 WndProc, and need to consider those implicit ones too.
15218 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
15220 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
15221 if there are no ShortcutKeys set.
15222 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
15223 set, use it when painting.
15225 2007-04-12 Jackson Harper <jackson@ximian.com>
15227 * TextControl.cs: Fix some off-by-one issues in line duplication
15228 and insertion in the undo manager. Also, overwrite the first tag
15229 of a line on insert, if it is just a zero lengthed tag. This
15230 prevents us from getting an extra stranded tag at the beginning of
15233 2007-04-11 Everaldo Canuto <everaldo@simios.org>
15235 * Label.cs: Remove check for handle created in CalcAutoSize, we need
15236 to calculated proper size including when handle was not created yet.
15238 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15240 * MdiWindowManager.cs: When moving a form, allow the form to be moved
15241 when the mouse is outside of it's parent's client rectangle. Fixes
15242 #79982 (take 3, part 2).
15244 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
15246 * X11Structs.cs: Add a few ToString() overrides.
15247 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
15248 the window location in a window-manager independent way. Reworked
15249 FrameExtents, it now actually works. Reworked AddConfigureNotify
15250 and ReparentNotify handling to use GetTopLevelWindowLocation
15251 instead of the earlier, more hacky solution. Reworked SetWMStyles,
15252 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
15253 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
15254 for all other windows (fixes #81281 part 1), a toolwindow is hidden
15255 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
15256 and generally refactored to do as few calculations as possible
15259 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
15261 * Theme.cs: Change "reflective-contract" between MWF and SD to
15262 minimize # of calls, avoid Color serialization and avoid updating
15263 every "known colors" each time a single one is updated.
15265 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
15267 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
15268 when not readonly and the text is explicitly set. Code style updates.
15269 * DataGridTableStyle.cs: Removed extra line.
15270 * DataGrid.cs: Code style updates. Removed extra whitespace.
15271 * DataGridColumnStyle.cs: Code style updates. Removed extra
15274 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15276 * XplatUIX11.cs: Added comment that "fixes" #80021.
15278 2007-04-09 Jackson Harper <jackson@ximian.com>
15280 * TextControl.cs: We don't need this -1 on the line count anymore.
15282 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
15284 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
15285 entered value to underlying type, and convert it back to a string to
15286 apply formatting. Modified GetFormattedValue to use TypeConverter
15289 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
15291 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
15292 Use SubItems property when we want to ensure there's at least one
15293 subitem. Modified SubItems property to ensure there's always at least
15294 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
15295 the NRE's reported by MS.
15297 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
15299 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
15300 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
15301 Spaces to tabs. Removed extra tabs.
15303 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
15305 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15306 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
15308 2007-04-06 Jackson Harper <jackson@ximian.com>
15310 * TextBoxBase.cs: When a delete removes a line, recalculate all
15311 lines below that line (they need to get offsets setup correctly)
15314 2007-04-05 Jackson Harper <jackson@ximian.com>
15316 * TextControl.cs: We need to invalidate across the width of the
15317 document when we are invalidating multiple lines.
15318 * TextBoxBase.cs: Don't delete into the line ending.
15320 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15322 * ListView.cs: Restore the check for the MouseHover event
15323 in ListView. It looks like the ListView fires more than one MouseHover
15324 event when HoverSelection is true _only_ in weird-corner scenarios, but
15325 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
15328 2007-04-05 Mike Kestner <mkestner@novell.com>
15330 * ListView.cs : raise MouseDown before updating selection.
15331 [Fixes #80373 tab 1&3]
15333 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
15335 * ToolStripRenderer.cs: Add static method to mirror image.
15336 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
15337 and RightToLeftAutoMirrorImage.
15338 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
15340 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
15342 * ToolStripSplitStackLayout.cs: Support Alignment property.
15343 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
15345 2007-04-05 Jackson Harper <jackson@ximian.com>
15347 * TextControl.cs: Move around the line endings when crossing line
15349 - When combining lines, strip the ending text off the first line.
15351 2007-04-05 Jackson Harper <jackson@ximian.com>
15354 * TextBoxBase.cs: Try to never move the cursor into the line
15357 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15359 * ToolStripItem.cs: Make sure we aren't firing mouse events when
15360 the item is disabled. Also add a few missing methods.
15362 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15364 * ListView.cs: We don't need the MouseEnter/MouseLeave check
15365 to fire just one MouseHover event when HoverSelection is true, since
15366 .Net does fire more than one MouseHover event in that scenario. Also,
15367 fix the selection in HoverSelection, by invoking UpdateMultiSelect
15368 if MultiSelect is true, instead of only setting ListViewItem.Selected.
15369 Finally, we need to reset the Hover logic in MouseMove, even when we
15370 don't have a selected item.
15372 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15374 * ToolStrip.cs: Add several missing methods, properties, and events.
15376 2007-04-04 Chris Toshok <toshok@ximian.com>
15378 * DataGridTextBoxColumn.cs: set the bounds of the text box to
15379 (0,0,0,0) in Commit, as MS does.
15381 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
15382 make sure we set CurrentRow on a row header click *before* calling
15383 Select. This moves the current cell (and the textbox) to the new
15384 row. The call to Select then hides the textbox, giving us the
15385 correct behavior. Fixes #80362.
15387 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
15388 (ListChangedHandler): reorder the position/current changed events,
15389 and call UpdateIsBinding in the ItemAdded case.
15391 * GridColumnStylesCollection.cs: add some columns events, one of
15392 which raises the CollectionChanged event.
15394 2007-04-04 Jackson Harper <jackson@ximian.com>
15396 * TextControl.cs: When we delete multiple selection lines
15397 invalidate the selection area, don't need to do that for single
15398 lines because the final update view will handle it.
15400 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
15402 * Control.cs: When we CreateControl, we need to also create all of the
15403 control's children. The child's OnLoad must also fire before the parent's
15404 OnLoad. Fixes the toolbox size in PDN.
15406 2007-04-04 Jackson Harper <jackson@ximian.com>
15408 * TextBoxBase.cs: When the user presses enter, insert a line
15409 ending into the text. (Maybe this would be a good spot for
15410 Environment.NewLine).
15411 * TextControl.cs: Remove undo manager hack, line endings get
15412 inserted properly now.
15414 2007-04-04 Everaldo Canuto <everaldo@simios.org>
15417 - Remove unneeded parameters in UpdateCursor.
15418 - Fix UpdateCursor to check if menu is active.
15419 - Call UpdateCursor when menu deactivate my click.
15420 [Fixes remaining issues from #80410]
15422 2007-04-04 Everaldo Canuto <everaldo@simios.org>
15424 * Control.cs: GetRealChildAtPoint method added, it make an
15425 recursive child control search for the point.
15427 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
15430 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
15432 2007-04-03 Everaldo Canuto <everaldo@simios.org>
15434 * Form.cs: Fix mouse position when send back mouse event after closes
15437 2007-04-03 Everaldo Canuto <everaldo@simios.org>
15439 * Form.cs: Simplify the BUTTONDOWN for active tracker.
15441 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
15443 * Control.cs: Fix an issue where if a user resized a control inside
15444 a sizing method like OnResize, we would overwrite their explicit
15445 value. Also, only call DefaultSize once in the constructor instead
15446 of 4 times. Also, do not call SetBoundsCore from SetBounds if
15447 nothing actually changed.
15449 2007-04-03 Jackson Harper <jackson@ximian.com>
15451 * TextControl.cs: Don't attempt to copy text for lines with no
15452 text in them (technically this shouldn't happen, but we aren't
15453 always inserting line endings when we should be).
15455 2007-04-03 Jackson Harper <jackson@ximian.com>
15457 * TextBoxBase.cs: Calculate the scrollbars before calculating the
15458 document, because this sets some of the document size properties
15461 2007-04-03 Jackson Harper <jackson@ximian.com>
15463 * TextBoxBase.cs: We need to calculate maximums even if this is
15464 not a multiline control, because the maxs are used for scrolling.
15465 - Display the caret after doing a page up/down, we need to
15466 manually display it because a proper CaretMoved event isn't
15467 triggered (this is because of the way the math is done to
15468 determine how far to scroll).
15470 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
15472 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
15473 (ToolBar was relying on SetBoundsCore to default the values sent
15474 base off of BoundsSpecified.)
15476 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15478 * DateTimePicker.cs: Change Text so that when a null value or empty
15479 string is assigned to the test we always raise ValueChanged and
15480 TextChanged (earlier implementation would only raise ValueChanged
15481 if the current date value was different from DateTime.Now).
15483 2007-04-03 Andreia Gaita <avidigal@novell.com>
15485 * ButtonBase: Call update after invalidation, fixes #80194
15487 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15489 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
15492 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15494 * XplatUIX11.cs: SetWMStyles: If the control is a form with
15495 FormBorderStyle = None, don't give the window any decorations.
15498 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15500 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15501 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
15502 to check for is a mix of several styles (such as WS_CAPTION for
15504 * Control.cs: Don't paint an area bigger than the client area when
15505 painting the background colour. Add an internal GetCreateParams.
15506 Update calls to XplatUI.CalculateWindowRect due to API change.
15507 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
15508 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
15509 the size if it hasn't been handled by any windows. When creating
15510 and moving windows, X wants the location of the entire window, but
15511 the size of the client window, so add
15512 TranslateClientRectangleToXClientRectangle,
15513 TranslateWindowSizeToXWindowSIze and
15514 TranslatedXWindowSizeToWindowSize to cope with this, and call them
15515 before every window creation and move. Update CalculateWIndowRect
15516 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
15517 In AddConfigureNotify don't do anything if the hwnd is a zombie
15518 (fixes the BadWindow we were getting while running the tests),
15519 always calculate the offsets when it's a parentless window, not
15520 only when reparented, and translate the window size, since we're
15521 getting the client size of the whole window, excluding entire
15523 * Theme.cs: Added BorderSizableSize.
15524 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15525 anymore. Update calls to XplatUI.CalculateWindowRect due to API
15527 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
15528 change. Fake the window styles here instead of in XplatUIWin32 so
15529 that all back-ends get the same window styles (and it's Form that's
15530 deciding when to use wm, not the Win32 backend anyways)
15531 * Hwnd.cs: Completely reworked GetWindowRectangle and
15532 GetClientRectangle - they are now passed a CreateParams and they
15533 only use Style and ExStyle to determine the rectangles (they should
15534 now work just like Win32AdjustWindowRectEx - though quite a few
15535 special cases are probably missing). They should also be 100%
15536 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
15537 == rect), and all numbers (borders, menu sizes) are taken from the
15538 current theme. Added a GetBorders helper function that will return
15539 the borders for any given CreateParams (including captions and
15540 menus), and GetBorderSize that returns the given border size only.
15541 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15542 Hwnd.GetClientRectangle.
15544 2007-04-02 Chris Toshok <toshok@ximian.com>
15546 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
15547 logic between the values we present to the user and the values
15548 which are stored in the column's property. Also, don't call
15549 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
15551 2007-04-02 Jackson Harper <jackson@ximian.com>
15553 * TextBoxBase.cs: Scroll faster!
15555 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
15557 * StatusStrip.cs: Layout fixes for PDN.
15558 * ToolStrip.cs: Set item's available to true, and placement to main when
15560 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
15561 changing in setter before doing any work, add InternalVisible.
15562 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
15563 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15566 2007-04-02 Jackson Harper <jackson@ximian.com>
15568 * TextBox.cs: LBUTTON does not make the textbox select all of it's
15571 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15573 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
15574 Makes ToolStripComboBoxes show up again.
15576 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15578 * ListView.cs: Add a hover_pending field in ListView
15579 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
15580 cycle (we are resetting the MouseHover logic in XplatUI
15581 to handle HoverSelection). Fixes #80429.
15583 2007-04-02 Jackson Harper <jackson@ximian.com>
15585 * TextControl.cs: Make sure the attributes get set on the last
15587 - Still have to do the end tag if we have stepped all the ways to
15590 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
15592 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
15593 on an internal libgdiplus call when the information is already
15594 available via the public API.
15596 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15598 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
15599 control is removed from a control collecftion.
15600 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
15601 Fixes FormPropertyTest (failed on rare occasions).
15602 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
15603 of Win32SetParent (when changing from no parent to a parent it
15604 might add the new parent's location in screen coordinates to this
15605 window's location).
15606 * Form.cs: Rework ChangingParent once again, now the handle is
15607 recreated whenever a FormWindowManager is added or removed (that is
15608 whenever a normal form is parented or abandoned). Also change
15609 CreateParams so that all non-toplevel windows always get the
15610 specified sice (StartupPosition is never considered for
15611 non-TopLevel forms).
15612 * ContainerControl.cs: Add ChildControlRemoved, the container control
15613 needs to be notified when a control is removed from it's
15614 collection, in the case the removed control is the active control.
15616 2007-04-02 Jackson Harper <jackson@ximian.com>
15618 * RichTextBox.cs: Use the new methods for setting the font and
15619 color, these methods set the specified attribute without
15620 overriding the other attributes.
15622 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
15624 * ToolStripPanel.cs: Fixes for better layouts in PDN.
15626 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
15628 * TextBox.cs: Added internal ChangeBackColor method to special-case
15629 Color.Empty. Added check for invalid ScrollBars value.
15630 * TextBoxBase.cs: Added internal ChangeBackColor method.
15631 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
15632 internal ChangeBackColor method to special-case Color.Empty. Added
15633 check for invalid ScrollBars value.
15635 2007-03-30 Everaldo Canuto <everaldo@simios.org>
15637 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
15639 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
15641 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
15642 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
15643 [Based on submitted patch from Olivier Duff.]
15645 2007-03-30 Jackson Harper <jackson@ximian.com>
15647 * TextBox.cs: Only select all on initial focus if the user has not
15648 specified a selection area.
15650 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
15652 * UserControl.cs: Override CreateParams.
15654 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15658 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15659 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
15660 check for is a mix of several styles (such as WS_CAPTION for instance).
15661 * Control.cs: Don't paint an area bigger than the client area when painting
15662 the background colour. Add an internal GetCreateParams. Update calls to
15663 XplatUI.CalculateWindowRect due to API change.
15664 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
15665 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
15666 hasn't been handled by any windows. When creating and moving windows, X
15667 wants the location of the entire window, but the size of the client
15668 window, so add TranslateClientRectangleToXClientRectangle,
15669 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
15670 to cope with this, and call them before every window creation and move.
15671 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
15672 removing DeriveStyles). In AddConfigureNotify don't do anything if the
15673 hwnd is a zombie (fixes the BadWindow we were getting while running the
15674 tests), always calculate the offsets when it's a parentless window, not
15675 only when reparented, and translate the window size, since we're getting
15676 the client size of the whole window, excluding entire window.
15677 * Theme.cs: Added BorderSizableSize.
15678 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15679 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
15680 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
15681 Fake the window styles here instead of in XplatUIWin32 so that all
15682 back-ends get the same window styles (and it's Form that's deciding when
15683 to use wm, not the Win32 backend anyways)
15684 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
15685 they are now passed a CreateParams and they only use Style and ExStyle
15686 to determine the rectangles (they should now work just like
15687 Win32AdjustWindowRectEx - though quite a few special cases are probably
15688 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
15689 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
15690 sizes) are taken from the current theme. Added a GetBorders helper
15691 function that will return the borders for any given CreateParams
15692 (including captions and menus), and GetBorderSize that returns the given
15694 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15695 Hwnd.GetClientRectangle.
15697 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
15699 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
15700 layout of the mdi children is handled by CreateParams. Fixes
15703 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15705 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
15708 * Form.cs: When active tracker mouse down is not processed, send event
15709 back to control inside mouse position. [Fixes #81227]
15711 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
15713 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
15714 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
15715 stealing focus from the active form on Windows. (Control will be made
15716 visible in ShowWindow.)
15718 2007-03-29 Mike Kestner <mkestner@novell.com>
15720 * ImageList.cs : add internal Changed event.
15721 * ListView.cs : hook up to StateImageList.Changed to perform
15722 invalidations when the the state icon list changes. [Fixes #81191]
15724 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
15726 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
15727 to prevent tooltips from stealing focus from the active form on Windows.
15729 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15731 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
15733 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
15735 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15737 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
15740 2007-03-29 Jackson Harper <jackson@ximian.com>
15742 * TextControl.cs: When deleting text from non multiline textboxes,
15743 we need to update the entire document, because line offsets will
15746 2007-03-29 Everaldo Canuto <everaldo@simios.org>
15748 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
15749 added to theme, now we can create themes that uses diferent notify engines
15750 like notification-daemon from galago project or growl for Mac OS.
15752 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15754 * NotifyIcon.cs: Prevent Balloon to show in task bar.
15756 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15758 * XplatUIX11.cs: Prevent system to open more than one balloon.
15760 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15761 some compiler warning messages.
15763 2007-03-28 Everaldo Canuto <everaldo@simios.org>
15767 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15769 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
15770 implemented, this methods is used by NotifyIcon.BalloonWindow class.
15772 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
15775 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15777 * ListViewItem.cs: Forgot to make Invalidate internal.
15779 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15781 * ListView.cs: Add a InvalidateSelection method to
15782 invalidate methods which are currently selected, and call
15783 it when setting FullRowSelect and HideSelection, instead of
15786 2007-03-28 Chris Toshok <toshok@ximian.com>
15788 * XplatUIX11.cs (UnmapWindow): reindent this block.
15790 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15791 the selection_start if we're moving the selection (that is, not
15792 extending it). Fixes bug #80461.
15794 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15796 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15797 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15798 create private ControlCollection.
15800 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15802 * Control.cs: We need to call OnVisibleChanged for our implicit
15803 children as well as our normal children. Fixes scrollbars in
15804 comboboxes not showing up.
15806 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15808 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15809 the check for IsHandleCreated first. The check in CreateHandle is not
15810 good enough because CreateHandle can be overriden, and the override
15811 should not be called if the handle is already created.
15813 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
15815 * ToolStrip.cs: Remove MonoTODO for tooltips.
15816 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15817 * ToolStripContainer.cs: Add custom ControlCollection class.
15818 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15819 * ToolStripDropDown.cs: Add some missing properties/methods.
15820 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15821 * ToolStripItem.cs: Remove MonoTODO for tooltips.
15822 * ToolStripManager.cs: Add IsShortcutDefined.
15823 * ToolStripOverflow.cs: Override LayoutEngine.
15824 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15825 * ToolStripSeparator.cs: Add ImageKey.
15827 2007-03-28 Jackson Harper <jackson@ximian.com>
15829 * TextControl.cs: If a char delete removes a line ending, we need
15830 to update the ending style.
15831 - Make sure the line ending calcs get called.
15833 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15835 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15836 it was making the new code not work. Fixed a typo in the new code
15837 as well. Fixes #79826.
15839 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15842 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15843 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15844 - SystrayBalloon method implemented.
15845 [Add support for notifyicon balloon on win32, #79149]
15847 2007-03-27 Mike Kestner <mkestner@novell.com>
15849 * ThemeWin32Classic.cs : update StateImageList selection to mirror
15850 the ms behavior when only one image is added to the list.
15853 2007-03-27 Jackson Harper <jackson@ximian.com>
15855 * TextControl.cs: Improvements to non multiline line ending
15858 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15860 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
15862 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15865 - Balloon message handling added.
15866 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
15868 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15869 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
15870 to SystrayBalloon to me like other Systray method, also a
15871 handle parameter added.
15873 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15875 * ListView.cs: Show scrollbars even when items.Count == 0
15876 but the columns Width is bigger than the ListView.Width.
15877 Also, when columns.Count == 0 set layout_wd and layout_ht
15878 to the ClientRectangle values, so we don't show any scrollbar
15881 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15883 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15885 2007-03-27 Jackson Harper <jackson@ximian.com>
15887 * RichTextBox.cs: The RTF library decodes the text properly for us
15890 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15892 * ListView.cs: Display HeaderControl even when columns.Count == 0.
15893 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15894 ListView header (HeaderControl), instead of Control.BackColor.
15896 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15898 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15899 Fixes tab control issues where controls would not show up because they
15900 never received their OnVisibleChanged call.
15902 2007-03-27 Everaldo Canuto <everaldo@simios.org>
15904 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15907 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
15909 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15910 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15911 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15912 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
15913 the handle. Fix WindowState by using the internal variable until we are
15914 sure that we've been shown.
15915 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15919 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15921 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15922 (at least borders). Fixes #79386 on Linux (with a small difference
15923 in behaviour: when trying to resize a caption-less window metacity
15924 shows the sysmenu. Resizing is still possible though).
15925 * XplatUIWin32.cs: When setting window styles send request an extra
15926 WM_NCCALCSIZE when it's a form without title (due to no text and no
15927 caption), since Win32 seems to calculate it wrong the first time we
15928 get the message, though the second time things work as they should.
15929 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15930 newly reparented window might show up unparented. Update
15931 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15932 there's no title text. Fixes #79386.
15934 2007-03-27 Mike Kestner <mkestner@novell.com>
15936 * ListBox.cs : don't perform invalidations if the handle hasn't been
15937 created. [Fixes #80753]
15939 2007-03-27 Mike Kestner <mkestner@novell.com>
15941 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15944 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15946 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
15947 needed to implement Balloon.
15949 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15951 * ListViewItem.cs: In the constructors that take
15952 an array of strings, don't use ListViewSubItemCollection.AddRange
15953 method to add items, since we need to have a different behaviour (in
15954 the constructors we add an item for each null string, opposed to
15955 the behaviour of AddRange, which adds nothing).
15957 2007-03-26 Andreia Gaita <avidigal@novell.com>
15959 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15961 2007-03-26 Jackson Harper <jackson@ximian.com>
15963 * TextControl.cs: Draw and measure line endings when in non
15965 - When searching the text, count the end of the last line as a
15968 2007-03-26 Jackson Harper <jackson@ximian.com>
15970 * RichTextBox.cs: The selection_start and selection_end don't
15971 really track the correct tags for the selection. So we'll manually
15972 compute the correct tag here.
15974 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
15976 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15977 and Continuous styles. Fixes #79469.
15979 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15981 * ToolStrip.cs: Implement Tooltips.
15982 * ToolStripItem.cs: Create internal method for determining tooltip.
15984 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
15986 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15988 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15990 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15991 it prevents a problem thak keeps icon visible after application
15994 2007-03-26 Everaldo Canuto <everaldo@simios.org>
15996 * NotifyIcon.cs: Balloon properties and methods created.
15998 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15999 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
16001 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
16003 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
16005 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
16007 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
16008 parameter indicates which aspects were explicit/user-set.
16009 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
16011 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
16013 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
16014 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
16015 SmallChange, and Value (2.0).
16016 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
16018 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16020 * ListView.cs: Always set item_control.Width in LayoutDetails
16021 if View is Details. Setting it later in CalculateScrollBars
16022 in a not-so-corner scenario (the sum of columns width is
16023 not bigger than the ListView width when handle is created, and then
16024 that sum gets bigger by increasing the width of the columns)
16025 causes a very weird recursion path (which shouldn't be happening,
16026 since header_control sets it in CalculateScrollBars too). This bug
16027 appeared after Chris' fixes for handle created issues, so probably
16028 it's related to some handle-creation time.
16030 2007-03-23 Chris Toshok <toshok@ximian.com>
16032 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
16033 case where there's an add row, just so we don't end up in a case
16034 where it's not displayed (this happens when the row is partially
16035 obscured). Fixes bug #79574.
16037 2007-03-23 Jackson Harper <jackson@ximian.com>
16041 * RichTextBox.cs: Preserve line endings in the lines text buffer,
16042 also added an enum that represents the line ending type.
16044 2007-03-23 Andreia Gaita <avidigal@novell.com>
16046 * NumericUpDown.cs: Fix logic so Text and Value properties are not
16047 messed with in every method call, but only from DownButton,
16048 UpButton, UpdateEditText() and ValidateText. Fixes #80346
16050 2007-03-23 Chris Toshok <toshok@ximian.com>
16052 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
16053 format objects if the format spec is "". Fixes bug #80889.
16055 2007-03-22 Miguel de Icaza <miguel@novell.com>
16057 * ToolStripPanel.cs (Join): added stubs to build PDN3
16059 * Control.cs (AutoScrollOffset): Add.
16061 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
16062 property, its only implemented for Win32, on X11 it defaults to
16063 some hardcoded value.
16065 * ToolStripItem.cs (AllowDrop): Add property
16067 2007-03-22 Mike Kestner <mkestner@novell.com>
16069 * ListView.cs : in FullRowSelect Details mode, only enable box
16070 selection if the user clicks over the "item" column outside of the
16071 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
16073 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16075 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
16076 handle is not created yet.
16077 * Form.cs: Select: Don't call CreateHandle if the handle is already
16078 created, avoids a stack overflow on Windows when we are recreating
16080 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
16081 they are made visible, and override AfterTopMostControl to keep
16082 them on top when other controls are brought to front.
16083 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
16084 or force_*scroll_visible is true (old implementation always shows
16085 scrollbars when needed, no matter what auto_scroll was set to).
16086 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
16087 IsHandleCreated check.
16089 2007-03-22 Andreia Gaita <avidigal@novell.com>
16091 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
16092 row or col separator.
16093 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
16095 2007-03-22 Everaldo Canuto <everaldo@simios.org>
16097 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
16099 2007-03-22 Everaldo Canuto <everaldo@simios.org>
16101 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
16102 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
16103 every time. Fixes #80410.
16105 2007-03-22 Chris Toshok <toshok@ximian.com>
16107 * BindingSource.cs (AddNew): partially implement.
16109 remove a couple of NotImplementedException's
16110 to get bug #81148 closed.
16112 2007-03-22 Everaldo Canuto <everaldo@simios.org>
16117 - UpdateCursor method added to update the screen cursor.
16118 - GetAvailableCursor method added to return cursor for enabled tree,
16119 it searches for cursor on control and it's parent's for enabled control.
16120 - Call UpdateCursor method on setter of Cursor property.
16121 - On setter of Enabled call UpdateCursor when it is false, we need to
16122 change cursor to normal (or to this parent cursor) because cursor
16123 setting theres no effect to disabled controls.
16124 - Some minor source changes to follow the coding style guidelines.
16126 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
16129 2007-03-22 Chris Toshok <toshok@ximian.com>
16131 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
16134 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16136 * XplatUIX11.cs: Implement default locations for forms.
16137 * Form.cs: Completely rework startup location for forms. Fixes #79964.
16138 * Hwnd.cs: Add previous_child_startup_location (to track the current
16139 startup location for any child forms of the current form) and
16140 previous_main_startup_location (to track the startup location for
16141 the current toplevel form).
16143 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16145 * Control.cs: Don't trigger a layout if an implicit control is added
16146 that isn't visible. Also, don't notify the owner when an implicit control
16147 is added. (Owners shouldn't even know about their implicit controls.)
16149 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16151 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
16152 to save some re-layouts.
16154 2007-03-21 Everaldo Canuto <everaldo@simios.org>
16156 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
16159 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
16161 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
16162 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
16164 2007-03-21 Mike Kestner <mkestner@novell.com>
16166 * ListView.cs : disable selection update for non-left button clicks
16167 with mods and over selected items. [Fixes #80524]
16169 2007-03-20 Jackson Harper <jackson@ximian.com>
16172 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
16175 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16177 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
16178 very probably a more complicated calculation there. Update the
16179 textbox' ForeColor and BackColor when the ComboBox' colors are
16180 changed. Change the border change in LayoutComboBox to only affect
16181 the textbox, not all the calculations there. Seems to fix most of
16184 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16186 * ComboBox.cs: Handle Home and End keys as well as all combinations of
16187 modifiers + navigation keys as input keys, enables advanced text
16188 selection in the combobox (like Shift+Left Arrow for instance).
16189 ComboTextBox now overrides Focused and returns whatever
16190 ComboBox.Focused returns, since it really should be focused
16191 whenever the ComboBox is. Fixes #80795. Also make the border around
16192 the text box one pixel bigger, as mentioned in #79436.
16194 2007-03-20 Jackson Harper <jackson@ximian.com>
16196 * TreeView.cs: Don't offset the images, this was causing some
16197 artifacts when expanding/collapsing with images that were the
16198 exact height of the treenode.
16200 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16202 * TrackBar.cs: Query the theme for the correct value when the mouse
16203 moves and the thumb is pressed.
16204 * Theme.cs: Added TrackBarValueFromMousePosition
16205 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
16206 implementation was updating the trackbar value when drawing, now
16207 the drawing methods only draw. Fixes #80900. Refactored the
16208 calculations out to TrackBarValueFromMousePosition and
16209 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
16210 according to the mouse position whenever it wants to. Changed the
16211 light coloured pen when drawing the thumb from ControlLight to
16212 ControlLightLight, because the ControlLight is the same colour as
16213 the background so the 3D effect is lost.
16215 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16217 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
16218 defined. Fixes #80784.
16220 2007-03-20 Marek Habersack <mhabersack@novell.com>
16222 * ContextMenuStrip.cs: align with the change introduced in
16225 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16227 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
16228 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
16231 2007-03-19 Chris Toshok <toshok@ximian.com>
16233 * Control.cs (WmPaint): don't make use of the Handle property
16234 after an event is emitted, as the user could have closed the
16235 form/destroyed the control. Store the Handle in a local variable
16236 and make use of that. Fixes bug #80768.
16238 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16240 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
16241 behavior in X11 environments.
16243 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16245 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
16246 because on setter of topmost we dont call SetTopmost when handle is not
16249 2007-03-20 Jackson Harper <jackson@ximian.com>
16251 * TextControl.cs: Need to use SelectionLength () not
16252 selection_length, since that var is reset to -1.
16253 - Draw the caret when we don't have focus.
16254 * TextBox.cs: The selectall actually doesn't occur until the first
16256 * TextBoxBase.cs: Need to update the caret position after a
16259 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16261 * ListView.cs: Enable scrolling when using Tile view.
16263 2007-03-20 Everaldo Canuto <everaldo@simios.org>
16267 * XplatUIDriver.cs: Abstract SetOwner method created.
16269 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
16270 must be implemented and was masked as todo.
16272 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
16275 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
16276 cheking for null owner to remove transient. The SetTopmost will be change
16279 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
16280 SetTopmost. Now owned forms will work properly in win32 and X11.
16282 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16284 * MdiWindowManager.cs: Update function name.
16285 * Form.cs: After closing a form MdiParent is always null.
16286 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
16287 better what it should do: necessary book-keeping when the form is
16288 closed, it should not close the form itself.
16290 2007-03-19 Andreia Gaita <avidigal@novell.com>
16292 * ListViewItem.cs: Fix back and fore color. The subitems only
16293 use their own colors if they are set, otherwise use the listview's
16294 colors. Don't set default colors on constructor for subitem.
16297 2007-03-19 Mike Kestner <mkestner@novell.com>
16299 * ListView.cs : make box selection for Details views with
16300 FullRowSelect conform to MS behavior when clicking in the "item"
16301 column and clicking outside the defined columns.
16302 [Fixes case 5-6 of #80374]
16304 2007-03-19 Chris Toshok <toshok@ximian.com>
16306 * ScrollableControl.cs: create the controls from within the ctor,
16307 but don't actually add them until our handle is created. this
16308 fixes a NRE possibility jpobst found (if you override OnLayout in
16309 a subclass, it's called before your ctor). Also, add a
16310 IsHandleCreated guard to UpdateSizeGripVisibility as well.
16312 2007-03-19 Jackson Harper <jackson@ximian.com>
16314 * TextBox.cs: Reduce the amount of invalidation we do.
16315 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
16316 some of them are true by default on MS.
16317 - Add some functions to reduce the amount of invalidates we do.
16318 * TextControl.cs: Less invalidation.
16320 2007-03-19 Chris Toshok <toshok@ximian.com>
16322 [ Fixes #81773, and *seems* to fix #81553 as well ]
16324 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
16325 AccumulateDestroyedHandles. We need to do it *after* we send
16326 WM_DESTROY, as the user's code can access Control.Handle in
16327 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
16328 move the WM_DESTROY/zombie handling to before the call to
16329 XDestroyWindow. For some reason without this ordering
16330 FormTest.RecreateHandle hangs. This ordering is semantically
16331 equivalent, however, as XDestroyWindow is async anyway.
16333 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
16335 * RichTextBox.cs: Reset backcolor_set after setting default.
16337 2007-03-19 Chris Toshok <toshok@ximian.com>
16339 * ScrollableControl.cs: the scroll position should not effect the
16340 canvas size. commit patch from georgegiolfan@yahoo.com, which
16341 fixes some really bizarre behavior on resizing. Fixes bug #80778.
16343 2007-03-19 Chris Toshok <toshok@ximian.com>
16345 * ScrollableControl.cs: clean this up a bit. create the
16346 scrollbars in the ctor and just show/hide them as needed. Also,
16347 make hscroll_visible/vscroll_visible internal to Recalculate, and
16348 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
16349 everywhere else. This seems to fix the scrollbars appearing
16350 beneath the content for me (i have *no* idea why that is,
16353 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
16355 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
16356 some redundacy for stuff in Anchor and Dock that base will take care of.
16359 2007-03-19 Mike Kestner <mkestner@novell.com>
16361 * ListView.cs : make box selection for Details views without
16362 FullRowSelect dependent on the text bounds, not item bounds.
16363 * ListViewItem.cs : add an internal property to obtain the TextBounds
16364 in Details view. [Fixes case 1-4 of #80374]
16366 2007-03-19 Andreia Gaita <avidigal@novell.com>
16368 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
16369 we're < 2.0. #78448 && #80316
16371 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
16373 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
16374 have the same style available as the previously selected one. Also,
16375 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
16377 2007-03-19 Jackson Harper <jackson@ximian.com>
16379 * TextControl.cs: Add an alignment property that all new lines
16381 - Make sure to use the align shift when calculating the line's X
16383 * TextBox.cs: Set the alignment on the document as well as on all
16384 the document lines.
16386 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16388 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
16389 throw if setting the parent of an mdichild that already has an
16390 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
16391 AssemblyProductAttribute in the assembly, use the type's namespace (as
16392 MS seems to do). CreateControl: don't create the handle if the control
16393 is not visible (according to MS behaviour and spec). SetTopLevel: Only
16394 create handle if the control is not a form. Change FocusInternal to
16395 virtual so that it can be overriden by Form.
16396 * TextBox.cs: Update call to FocusInternal.
16397 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
16398 form is not a toplevel form when it's a mdi child, so update is_toplevel
16399 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
16400 hasn't been created. Show (IWin32Window): Don't allow this overload for
16401 toplevel windows. CenterToParent/CenterToScreen/Select: create the
16402 handle as MS does. SetVisibleCore: if called on a MdiChild and the
16403 parent isn't visible yet, save the visibility and restore it when the
16404 parent is made visible.
16405 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
16406 methods, since the visibility of the scrollbars can be changed from
16407 several places, not only from AutoScroll.
16410 2007-03-19 Jackson Harper <jackson@ximian.com>
16412 * RichTextBox.cs: Enable shortcuts by default.
16413 * TextBoxBase.cs: Add conditional shortcuts.
16415 2007-03-19 Everaldo Canuto <everaldo@simios.org>
16417 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
16419 2007-03-19 Chris Toshok <toshok@ximian.com>
16421 [ Fixes bug #80604]
16423 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
16424 swallow the message we're waiting on, instead of delivering it, as
16425 this is only used for the WM_SHOWWINDOW raised from
16426 MapWindow/UnmapWindow, and the message needs to be generated
16427 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
16428 before doing the Map/Unmap. Also make sure that the Hwnd is still
16429 alive after the message has been handled.
16431 *before* the window is shown.
16433 * Control.cs (CreateControl): guard a few more things inside the
16434 if (!is_created) block, as we might end up being called again -
16436 (WmShowWindow): call CreateControl if we're showing the control.
16438 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16440 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
16441 controls without a handle if they have any parent with a handle. In
16442 Dispose add a check whether the handle is created or not before
16443 calling BeginInvoke, this removes the need of the extra disposing
16444 parameter (which was bogus anyway since it didn't prevent the
16445 invoke from happening, it only skipped the check for an existing
16446 handle, meaning that the invoke would call on an inexistent
16449 2007-03-19 Everaldo Canuto <everaldo@simios.org>
16451 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
16452 appears in taskbar.
16454 2007-03-18 Everaldo Canuto <everaldo@simios.org>
16457 - Fixed a problem that dont show help button for messages with 3 buttons.
16458 - Refactory button size and position calculations, now dont use fixed
16459 values, also fixed button sizes (#80043) and form's border space.
16460 - AddButton method created, now all other AddButton methods call this one.
16461 - Some other source code cosmetic changes.
16463 2007-03-18 Jackson Harper <jackson@ximian.com>
16465 * RichTextBox.cs: Don't do this all fonts must match check if
16466 there is only one char selected.
16468 2007-03-18 Jackson Harper <jackson@ximian.com>
16470 * TreeView.cs: ScrollWindow works properly now, so we don't need
16471 to screw around with the scroll area. This fixes some artifacts
16472 when expanding and collapsing.
16474 2007-03-18 Jackson Harper <jackson@ximian.com>
16476 * TextBoxBase.cs: Allow updating the selection position when the
16477 cursor is outside the textarea, but we have a capture.
16478 * TextControl.cs: A special case for when the cursor is outside
16479 the bounds of the TB.
16481 2007-03-18 Jackson Harper <jackson@ximian.com>
16483 * TextBoxBase.cs: Remove image pasting code for now. There is no
16484 way to get an image on the clipboard right now anyways.
16486 * RichTextBox.cs: Use the new RTF Picture class for pictures.
16488 2007-03-18 Everaldo Canuto <everaldo@simios.org>
16491 - Set window properties in constructor intead of on CreateParams.
16492 - Remove topmost from Window ExStyle.
16493 - Set ShowInTaskbar to false.
16494 - Set form border to FixedDialog.
16495 - Some cosmetic changes and remove unneeded comments.
16496 - It fixes itens 2,3 and 4 of bug #80043.
16498 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
16500 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
16501 none was explicitly set. Fixes part of bug #79949.
16503 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
16505 * ToolStripComboBox.cs: Add AutoComplete*.
16507 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
16509 * ToolStripComboBox.cs: Add FlatStyle.
16511 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
16513 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
16514 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
16516 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16518 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
16519 CheckBox.cs, RadioButton.cs, BindingSource.cs,
16520 DataGridColumnStyle.cs: Remove warnings.
16522 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
16524 * Menu.cs: MergeMenu: Check menu argument for null before looping over
16526 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
16527 visibility of mdi child forms. FormSizeChangedHandler: update the
16528 maximized size if size has changed while maximized.
16529 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
16530 creating the handle.
16531 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
16532 avoid creating the handle if not created.
16533 * XplatUI.cs: Update debug output.
16534 * XplatUIStructs.cs: Added ToString's for a couple of structs.
16536 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
16538 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
16540 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
16541 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
16542 Implement keyboard shortcuts.
16544 2007-03-15 Everaldo Canuto <everaldo@simios.org>
16546 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
16547 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
16548 ColorDialog and all derived classes.
16550 2007-03-15 Everaldo Canuto <everaldo@simios.org>
16552 [ Fixes bug #79828 ]
16555 - Rename ToolBarButtonInfor to ToolBarItem.
16556 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
16557 - Maintain an array of ToolBarItem, used instead of ToolBarButton
16558 collection to be able add same button more than one time on a toolbar.
16559 - Refactory all properties and methods to use ToolBarItem.
16561 * ToolBarButton.cs:
16562 - Remove all propeties and methods that is now in ToolBarItem.
16563 - Rectangle propery now gets the rectangle from first ToolBarItem to
16564 mimic win32 behavior.
16565 - Size calculation and layout methods also removed.
16567 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
16568 ToolBarItem instead of ToolBarButton to right drawing buttons when
16569 same button/separator was added more than one time to ToolBar.
16571 * ThemeNice.cs: Same as above.
16573 2007-03-15 Andreia Gaita <avidigal@novell.com>
16575 * XplatUIX11.cs: Fire extra MouseMove events right after
16576 MouseDown and MouseUp, emulating win32's <censored> behaviour
16577 for apps that rely on it.
16579 2007-03-15 Jackson Harper <jackson@ximian.com>
16582 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
16583 it is drawn on the controls client window and there is no NC
16585 - Set the background color to gray on 2.0 when we are readonly.
16587 2007-03-15 Chris Toshok <toshok@ximian.com>
16589 [ Fixes bug #81144 ]
16591 * XplatUIX11.cs: implement VirtualScreen independently of
16592 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
16595 2007-03-15 Chris Toshok <toshok@ximian.com>
16597 * Hwnd.cs: add an internal field for the cached_window_state.
16599 * XplatUIX11.cs: cache the window state, invalidating the cache
16600 (and thus re-querying the X server) only when we see an update to
16601 the _NET_WM_STATE property.
16603 2007-03-15 Chris Toshok <toshok@ximian.com>
16605 * BindingSource.cs: get a lot of the unit tests working.
16607 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
16609 * Control.cs: Modify UpdateStyles to store distances when bounds >=
16610 0 instead of just bounds > 0. [Fixes bug #80912]
16612 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
16614 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
16617 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
16619 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
16620 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
16621 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
16622 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
16624 2007-03-15 Chris Toshok <toshok@ximian.com>
16628 * Control.cs: add Ivan's fix for 81101, with a slight modification
16629 - you can set control.Target to null.
16631 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
16633 * ToolStripItem.cs: If our OwnerItem is null, we can't use
16634 HideDropDown, use Hide instead to prevent an NRE.
16637 2007-03-14 Jackson Harper <jackson@ximian.com>
16639 * TextBoxBase.cs: Mess with the creation stuff a little. We need
16640 to calculate the document before the handle is created, in some
16641 cases. (Actually just one case).
16643 2007-03-14 Jackson Harper <jackson@ximian.com>
16645 * TextBoxBase.cs: Need to display the caret after letting the base
16646 wndproc handle the focus methods, because the caret display
16647 methods check the focus state.
16648 - Try to display the caret after updating it's position with SelectWord.
16649 - Don't need to do an immediate update on this recalc, since there
16650 will be an invalidate anyways.
16652 2007-03-14 Jackson Harper <jackson@ximian.com>
16654 * TreeView.cs: Some workarounds so that we can match event order a
16657 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
16659 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
16660 #80803. Avoid NullReferenceException when Control does not have
16661 parent. Fixed different blinkstyle issues. Only subscribe to Tick
16662 event a single time. Only draw error icon when control is created and
16663 visible. Fixes failing unit tests.
16665 2007-03-14 Andreia Gaita <avidigal@novell.com>
16667 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
16668 Selecting events. Fire Leave and Enter events when changing tabs.
16670 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
16672 * TreeView.cs: Add TreeViewNodeSorter.
16673 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
16675 2007-03-14 Chris Toshok <toshok@ximian.com>
16677 * Form.cs: go ahead and remove the RecreateHandles that jpobst
16678 removed earlier and I had him add back it. It turns out metacity
16679 *does* in fact handle the MOTIF_WM_HINTS property changing, it
16680 just doesn't redraw the window titlebar until you resize the
16681 window. This also means we aren't recreating the entire window
16682 hierarchy on X when you change this property. And it looks better
16685 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16688 * ListView.cs: Collecting selection information
16689 is now done in SelectedIndexCollection rather than in
16690 SelectedListViewItemCollection. This is done so we can
16691 have the selection information code in one single place
16692 (virtual mode selection information entirely depends on
16693 SelectedIndexCollection).
16695 2007-03-13 Miguel de Icaza <miguel@novell.com>
16697 * ErrorProvider.cs: Add stubs for ISupportInitialize
16699 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16701 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
16702 in the right order with the right values, from the Checked property,
16703 just as MS does (instead of triggering them from ListView).
16705 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
16707 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16709 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
16710 the correct handler in OnItemCheck method (ItemCheckEventHandler
16711 instead of EventHandler). This used to throw an InvalidCastException.
16713 2007-03-13 Jackson Harper <jackson@ximian.com>
16715 * TextBoxBase.cs: Calculate the document before the handle is
16716 created, so there isn't an extra invalidate called.
16718 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
16720 * Form.cs: Don't set owner in ShowDialog until we are sure
16721 that we aren't going to throw an exception. [Fixes bug #80773]
16723 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
16725 * TreeView.cs: Make it compile.
16727 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16729 * Control.cs: Another place we don't call SizeFromClientSize.
16730 * Form.cs: Another place we don't call SizeFromClientSize.
16733 2007-03-12 Jackson Harper <jackson@ximian.com>
16735 * TreeView.cs: Basically emulating some strangness here with
16736 exanding nodes and setting node positions when windows aren't
16738 - Also attempting to walk the node tree less than previously, and
16739 just use visible order calculations for determining offsets.
16740 - oops made scrolling backwards.
16741 * TreeNode.cs: We need to start nodes with a zero visible order,
16742 because the order calcs are based on the first nodes order.
16744 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16746 * Form.cs: Don't exit the program if RecreateHandle is called on
16749 2007-03-12 Chris Toshok <toshok@ximian.com>
16751 * XEventQueue.cs: remove the use of PostQuitState.
16753 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
16754 WM_QUIT message in GetMessage, return false (and if we're in the
16755 nested WaitForHwndMessage, repost the WM_QUIT message).
16757 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16759 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16760 or the MaximizeBox properties. [Part of bug #80640]
16762 2007-03-12 Everaldo Canuto <everaldo@simios.org>
16764 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16767 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16769 * ToolStripItem.cs: Fix some tests I broke by checking Visible
16770 instead of visible.
16772 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
16774 * FileDialog.cs: Use text of File name combobox to determine what
16775 files the user selected. Added tokenizer to parse the file names.
16778 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
16780 * Control.cs: We can't call SizeFromClientSize in the constructor,
16781 but we still need to do the same work, so make an internal version.
16784 2007-03-12 Jackson Harper <jackson@ximian.com>
16788 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16791 2007-03-12 Jackson Harper <jackson@ximian.com>
16793 * TextBoxBase.cs: Now that the handles are being created a little
16794 later, we need to make sure that the document is recalculated when
16795 the handle is created.
16797 2007-03-11 Everaldo Canuto <everaldo@simios.org>
16799 * Theme.cs: GetLinkFont abstract method added.
16802 - Remove CalcTrimRectangle, no longer needed.
16803 - Factor also remove, position issues must be fixed in libgdiplus.
16804 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16805 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
16806 care about font used to draw links.
16807 - Set TabStop to true when control is "Selectable", control is selectable
16808 when have one or more links. Fixes #80501 (test case is also added).
16809 - Set the LinkArea values after links change, LinkArea values must be
16810 based in first link position and size, a test case was created.
16811 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
16812 the attribute must be true LinkArea.Length > 0. The same was applied to
16815 * ThemeWin32Classic.cs:
16816 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
16818 - Use CPDrawStringDisabled to draw disabled text instead of hard code
16820 - Draw focus rectangle for every parts focused, including parts that
16821 is on another line, its because regions returns various rectangles
16822 and not only one. Needed to mimic W32 look.
16823 - Uses Graphics.Clip to delimite region painted, it mean that now
16824 complete text is passed to DrawString, with this we solve layout
16825 issues without create another text renderer.
16826 - Uses Region.Intersect to fix some flickers problems, now only needed
16827 parts will redrawed.
16828 - This changes fixes #79614 and some other unreported issues, on Linux
16829 some layout problems still remain, the problem is under
16830 MeasureCharacterRanges but it is an libgdiplus bug.
16832 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
16834 * TextBox.cs: Set for foreground color.
16835 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16836 this is already done in Control.
16838 2007-03-10 Jackson Harper <jackson@ximian.com>
16840 * TextBox.cs: Set the background color, but reset the
16841 backcolor_set flag which is just for the user setting the
16844 2007-03-09 Chris Toshok <toshok@ximian.com>
16846 * Control.cs: really remove the call to XplatUI.SetVisible from
16847 CreateHandle(), like I said I did when I merged the branch.
16849 * BindingSource.cs: implement some more of this stuff.
16851 2007-03-09 Jackson Harper <jackson@ximian.com>
16853 * TextBox.cs: Don't explicitly set our background colors.
16855 * TextBoxBase.cs: Draw readonly text.
16856 - Need to invalidate when backcolor or readonly are changed.
16858 2007-03-09 Jackson Harper <jackson@ximian.com>
16860 * TextBoxBase.cs: Don't set the forecolor until the handle is
16862 - Do not raise OnPaint, and removed some old debug code.
16864 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
16866 * ScrollableControl.cs: Fix mouse wheel scrolling.
16868 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
16870 * Control.cs: Wire up MouseDoubleClick event.
16872 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
16874 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16876 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16877 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16878 item is added. This logic was moved to ToolStrip.OnItemAdded.
16881 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16883 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16885 2007-03-08 Jackson Harper <jackson@ximian.com>
16887 * TreeView.cs: Show the correct image for selected node (this used
16888 to work, not sure how the code got deleted). Also implemented 2.0 feature
16891 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16894 * ListViewItem.cs: Cache index in items when retrieving them
16897 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16899 * ToolStripItem.cs: Don't return the explicit_size if we are using
16900 AutoSize. Fixes invalidation issue when user has explicitly set a
16901 size and has AutoSize = true.
16903 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16905 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16907 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
16909 * DataGridView.cs: Remove event handler from DataView when a
16910 DataTable is used as DataSource.
16912 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
16914 * Control.cs: Create internal setter for client_size to allow it to be
16915 set without triggering resizing code.
16916 * Form.cs: Calculate client_size in constructor, only change client_size
16917 in FormBorderStyle property if Handle has been created.
16918 [Fixes #80574, #80791]
16920 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
16922 * SystemInformation.cs: Add TerminalServerSession.
16924 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16926 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16929 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
16931 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16932 Handle before we were supposed to. Now checks ActivateOnShow property
16934 * Control.cs: Add internal ActivateOnShow property.
16935 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16936 for ActivateOnShow.
16937 * Hwnd.cs Remove no longer needed no_activate field.
16939 2007-03-07 Jackson Harper <jackson@ximian.com>
16941 * TreeView.cs: Implement owner draw tree nodes. And a couple more
16943 * DrawTreeNodeEventHandler.cs: Add
16944 * DrawTreeNodeEventArgs.cs: Correct default value.
16946 2007-03-07 Chris Toshok <toshok@ximian.com>
16948 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16949 to be called before NativeWindow.WndProc. Put the HwndCreating
16950 magic there to hook up our Hwnd's to handles.
16952 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
16954 * DataGridView.cs: Comment out debug code.
16956 2007-03-07 Chris Toshok <toshok@ximian.com>
16958 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16959 to make the rest of the world happy]
16961 * Control.cs (CreateHandle): there's no need to call
16962 XplatUI.SetVisible here, it's effectively done by
16963 XplatUI.CreateWindow on X now, and always was on windows.
16965 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16966 shortcircuit out of the loop if we have a message loop running on
16969 [Changelog from merge]
16971 2007-03-05 Chris Toshok <toshok@ximian.com>
16973 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16974 causes handle creation.
16976 2007-02-28 Chris Toshok <toshok@ximian.com>
16978 * ApplicationContext.cs: Add a flag to make sure we only raise the
16979 ThreadExit event once (ExitThreadCore can be indirectly called
16980 from a few places.) I don't like the additional flag, but it
16981 makes the event ordering/count correct.
16983 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16984 without locking the collection. An enumerator doesn't give us any
16985 protection from modification anyway. Lock the thread hash and
16986 replace the complicated enumerator loop with a foreach.
16987 (Application.CloseForms): make internal so it can be called from
16988 ApplicationContext. This should probably be moved to MWFThread.
16989 (Application.ExitThread): don't call MWFThread.Current.Exit()
16990 here. just call XplatUI.PostQuitMessage. We'll exit the thread
16991 when the runloop exits (in response to WM_QUIT.)
16992 (Application.RunLoop): add a comment (and check) for
16993 context.MainForm being null after setting context.MainForm.Visible
16994 = true. This is because you're perfectly free to dispose of a
16995 form in VisibilityChanged. Chalk this up to another case where we
16996 need to synchronously generate WM_ACTIVATE from Control.Show.
16997 Also, add handling for WM_QUIT here so we'll exit the loop.
16999 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
17000 fact that we don't wait if we're only unmapping the whole_window
17001 makes me a bit nervous, but it doesn't seem to cause any problems
17004 also, add a comment about the stupid, broken and wrong resetting
17005 of PostQuitState to false in GetMessage().
17007 In PostQuitMessage, we need to add a WM_QUIT message to the
17008 thread's queue. We use the FosterParent to get the right
17011 Lastly, in SetVisible, we need to unmap both windows, since the
17012 waiting only happens when we're unmapping the client window. So
17013 now, the *only* time we unmap just the whole_window is in the hack
17014 for resizing a control to 0,0.
17016 2007-02-21 Chris Toshok <toshok@ximian.com>
17018 * Application.cs (CloseForms): rewrite this so that we don't
17019 modify the list while we're traversing it.
17021 2007-02-20 Chris Toshok <toshok@ximian.com>
17023 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
17024 of OnHandleCreated.
17025 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
17026 handle is created. otherwise we'll create it here.
17027 (VerticalScrollEvent): same here.
17029 * Application.cs (CloseForms): call Form.Dispose, don't post
17032 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
17033 here. Application should Dispose() of the Form's.
17035 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
17036 WM_DESTROY as well.
17037 (MapWindow,UnmapWindow): only actually do the waiting for
17038 SHOWWINDOW if the control we're dealing with is a Form.
17039 (CreateWindow): if the control isn't a form, SendMessage
17040 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
17042 * Control.cs (SetVisibleCore): always use is_visible here, not
17043 value. If we use value, we can end up re-setting something
17044 visible if, for instance, you do Control.Hide() in a delegate
17045 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
17047 2007-02-20 Chris Toshok <toshok@ximian.com>
17049 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
17050 the message we need. PeekMessage returning false should not be a
17051 condition under which we exit the loop.
17053 2007-02-15 Chris Toshok <toshok@ximian.com>
17055 * Control.cs (Refresh): only refresh if we've got a handle and are
17057 (CreateAccessibilityInstance): CreateControl() here.
17058 (UpdateChildrenZOrder): complicate the code loop even more by
17059 taking into account controls that haven't had their handle
17060 created, and those that aren't visible. But on the flip side,
17061 simplify the code by splitting it into two loops. one which
17062 builds up the list of child controls we're interested in, and the
17063 other that sets the z order of those children.
17065 2007-02-14 Chris Toshok <toshok@ximian.com>
17067 * Control.cs: Control.AccessibilityObject causes the control to be
17068 created, not just the handle.
17070 2007-02-14 Chris Toshok <toshok@ximian.com>
17072 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
17073 problem on X where a window might have its handle created (and be
17074 visible) while the window is unmapped. calling XConfigureWindow
17075 on an unmapped window is bad, and generates X errors.
17077 2007-02-13 Chris Toshok <toshok@ximian.com>
17079 * Control.cs (CreateHandle): don't loop over our children setting
17080 their parent here. do it when in WndProc when we're shown.
17081 (UpdateChildrenZOrder): make this internal so we can call it from
17083 (WndProc): for WM_SHOWWINDOW, reparent the child control after
17084 creating its handle. Also, remove the calls to PerformLayout from
17085 here. they're done in ScrollableControl.OnVisibleChanged. Also,
17086 OnVisibleChanged only seems to be called directly here for the
17087 toplevel control. It's propagated down the window hierarchy by
17088 calls to child.OnParentVisibleChanged.
17089 (OnVisibleChanged): don't do layout here - it's done (oddly
17090 enough, according to a glance at stack traces on ms.net..) in
17093 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
17094 z order of our children before calling PerformLayout.
17096 2007-02-12 Chris Toshok <toshok@ximian.com>
17098 [big change, fixes #80020]
17100 * AccessibleObject.cs: we need to make owner internal again to fix
17101 some of ControlAccessibleObject.
17103 * Control.cs: lots of changes here. add support for WM_CREATE,
17104 for which we generate OnHandleCreated. Remove the OnHandleCreated
17105 call from CreateHandle. Also add support for WM_SHOWWINDOW where
17106 we create child controls. leave the MonoTODO's for the
17107 accessibility calls, but fix the exceptions so the tests pass.
17109 Add the InvalidOperationExceptions to Invoke methods, and remove a
17110 couple of InvokeInternal methods we aren't using.
17112 Also, add a couple of CreateHandle calls in places where we know
17113 the handles are being created but our code doesn't reference
17116 Make SetVisibleCore call OnVisibleChange if the handle isn't
17117 created. If the handle is created, we rely on XplatUI.SetVisible
17118 generating the event synchronously.
17120 Lastly, make sure we don't use this.Handle inside CreateHandle,
17121 because we can call back into client (and that code can dispose of
17124 * XplatUIStructs.cs: misc/cleanup.
17126 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
17127 although we don't populate the wParam properly.
17128 (CreateWindow): generate WM_CREATE.
17129 (MapWindow,UnmapWindow): make these calls synchronous, at great
17130 performance expense (particularly in the unmap case), to match
17133 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
17135 (set_MdiParent): don't recreate the handle unless it's been
17138 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
17141 * NativeWindow.cs: this is probably the weirdest part of the
17142 patch. We need a way to link up the window being created to the
17143 WM_CREATE message. Since we can only be creating one window at a
17144 time on a given thread, we keep track of a per-thread reference so
17145 we can dispatch it properly. We also need to keep track of the
17146 Hwnd currently being created so that the win32 backend doesn't
17149 * XplatUIWin32.cs: a similar change to the one we made in
17152 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
17154 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
17155 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
17156 to draw the menu shortcut string.
17158 2007-03-07 Jackson Harper <jackson@ximian.com>
17160 * TreeNode.cs: Add the 2.0 collapse method.
17162 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17164 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
17166 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17168 * DataGridView.cs: Change DataSource will clear column and row
17169 lists. Call Invalidate() to reflect DataSource change.
17171 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17173 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
17174 and a new row is added to it.
17176 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
17178 * DataGridView.cs: Add columns when DataSource is en empty list but
17179 is a System.Data.DataView (from a System.Data.DataTable).
17181 2007-03-06 Andreia Gaita <avidigal@novell.com>
17183 * Label.cs: Implement AutoEllipsis (2.0)
17185 2007-03-06 Jackson Harper <jackson@ximian.com>
17187 * TreeView.cs: Implement 2.0 TopNode setter property.
17188 - Use a local var instead of the skipped_nodes field for computing
17189 how many nodes to skip. Otherwise we won't scroll because the
17190 valuechanged handler checks if skipped_nodes is equal to the new
17192 - Implement 2.0 Sort method.
17193 - Add useless 2.0 DoubleBuffer property
17194 - Implement 2.0 LineColors property. Lets you change the color of
17195 the lines in the tree. Terribly useful for creating non cohesive
17197 - Implement 2.0 image key feature.
17199 2007-03-06 Jackson Harper <jackson@ximian.com>
17201 * TreeView.cs: We can't get the bounds of the nodes before raising
17202 the AfterSelect event, because that event could change the node's
17203 bounds (scrolling, font change, etc).
17205 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17207 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
17208 * Form.cs: Don't recreate handle when creating FormWindowManager, just
17209 update window styles. In CreateParams us VisibleInternal instead of
17210 VIsible to get the actual visible flag set for this form.
17211 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
17212 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
17213 handle the case when the form is already maximized, in which case
17214 it should be restored. Fixes #81043.
17216 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17218 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
17220 2007-03-05 Jackson Harper <jackson@ximian.com>
17222 * TreeViewHitTestInfo.cs: implement.
17224 2007-03-05 Jackson Harper <jackson@ximian.com>
17226 * InternalWindowManager.cs: class status fix.
17228 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17230 * InternalWindowManager.cs: All windows that have a parent
17231 are confined to their parent when they're being moved.
17234 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
17236 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
17237 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
17239 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17241 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
17242 buttons invisible before deciding which ones should be visible
17243 (fixes minimize/maximize buttons showing up in toolwindows). Remove
17244 an unused variable.
17245 * InternalWindowManager.cs: Remove warning.
17247 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17249 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
17250 to throw an InvalidOperationException is virtual mode is being used.
17252 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
17254 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
17255 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
17256 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
17257 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
17258 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
17259 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
17261 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17263 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
17264 driver.KeyboardDelay from XplatUI.KeyboardDelay
17265 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
17266 (patch by Sergey Volk)
17268 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17270 * ToolWindowManager.cs: Added, contains logic for
17272 * CreateParams.cs: Add a few helper methods and an
17273 internal variable to know which control the CreateParams belongs
17275 * Control.cs: Call Form.ChangingParent when the
17276 parent is about to be changed.
17277 * XplatUIX11.cs: DeriveStyles (): Set
17278 caption_height for all windows that have captions and are children.
17279 Update to use ToolWindowManager instead of InternalWindowManager
17281 * XplatUIWin32.cs: Set fake window styles for all
17282 windows that have window managers.
17283 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
17284 now duplicated for mdi windows when they are
17285 maximized, first for the buttons the window itself has, then for
17286 the buttons that appear in the menu bar. Makes things a little
17287 easier). Updated UpdateWindowDecorations, SetWindowState and the
17288 mouse eventhandlers accordingly.
17289 * Form.cs: Add ChangingParent (), contains the
17290 logic of what should happen when the parent changes. In MdiParent
17291 don't set things that ChangingParent () is doing. When handling
17292 WM_CLOSE, we can close the form if there are any other modal forms
17293 and the current form is a descendent of the modal form.
17294 * InternalWindowManager.cs: A lot of refactoring,
17295 the title buttons are now extracted to a separate container class
17296 that takes care of all button code (clicks, tooltips, etc). Moved
17297 Iconic|Maximized|Normal Bounds properties to this class from
17298 MdiWindowManager, so that the window state logic can succeed for
17299 other than mdi wm's. Implemented general window state change logic.
17300 Moved CreateButtons to ThemeWin32Classic, since the theme might
17301 override which buttons are available when as well as the exact
17303 * FormWindowManager.cs: Added, contains logic for
17305 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
17306 which buttons go where (and if they are at all visible).
17307 Removed special handling of maximized windows, since they aren't special.
17308 In DrawManagedWindowDecorations don't try to draw the text if it is
17310 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
17311 use whatever the wm gives us.
17313 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
17315 * ButtonBase.cs: Add 2.0 properties.
17316 * Button.cs: Override Draw for 2.0.
17317 * Control.cs: Add Entered and Selected properties.
17318 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
17319 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
17320 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
17322 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
17324 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
17326 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
17328 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
17330 * XplatUIWin32.cs: Register a new class with Windows each time we get
17331 a new ClassStyle. [Fixes bugs #79432, #80817]
17332 * Controls.cs: Set the correct ClassStyle in CreateParams.
17333 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
17335 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
17337 * ListView.cs: Add fireEvent argument to ReorderColumn since the
17338 ColumnReordered event must not be signaled when modifying DisplayIndex
17339 of a ColumnHeader. Added internal ReorderColumns method which takes
17340 care of drawing, and updating the internal DisplayIndex of the
17341 ColumnHeader. Added AddColumn method which is invoked from
17342 ColumnHeaderCollection when adding or inserting columns, and which
17343 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
17344 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
17345 Recalculated dispay indices after removing a ColumnHeader.
17346 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
17347 match MS. Allows last display index to be returned after ListView
17348 is disposed. Update actual location of ColumnHeader when DisplayIndex
17351 2007-03-01 Everaldo Canuto <everaldo@simios.org>
17353 * LinkLabel.cs: Improve CalcTrimRectangle.
17355 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
17357 2007-02-28 Everaldo Canuto <everaldo@simios.org>
17359 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
17360 get rectangle as a result value.
17362 2007-02-28 Everaldo Canuto <everaldo@simios.org>
17364 * LinkLabel.cs: Theres some diferences between rectangle return from
17365 MeasureCharacterRanges and the area used for DrawString to fix this
17366 CalcMeasurementFactor method was created, it calcules the diferences
17367 to be use later to adjust rectangle in draw operations. Fixes #80473.
17369 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
17370 to adjust draw rectangle.
17372 2007-02-27 Everaldo Canuto <everaldo@simios.org>
17374 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
17375 text and some other changes to reduce and optimize source code.
17377 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
17379 * RadioButton.cs: Implement 2.0 event.
17380 * RelatedImageListAttribute.cs: Implement new class.
17382 2007-02-27 Everaldo Canuto <everaldo@simios.org>
17384 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
17386 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
17388 * CheckBox.cs: Implement 2.0 functionality.
17390 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17392 * ListView.cs: Refactor Add and AddRange methods of
17393 ListViewItemCollection, to not update the ListView
17394 everytime an item is added in AddRange. Also move the update
17395 code to a new CollectionChanged method, and call it
17396 from other methods that need it as well (this should also fix some
17397 bugs when Sorting is used).
17399 2007-02-27 Jackson Harper <jackson@ximian.com>
17401 * TextControl.cs: Try to never let the caret stay in a non-text
17403 * TextBoxBase.cs: Update the caret.
17405 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
17407 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
17408 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
17409 delete POINT structure, duplicate of one in XplatUIStructs.
17410 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
17412 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
17414 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
17415 edit box since otherwise the Label would immediately be set (even if
17416 the user did not modify the label). In OnKeyDown set Handled to true
17417 if Return or Escape was pressed. In ColumnHeaderCollection unlink
17418 columns that are to be removed. In ListViewItemCollection unlink items
17419 that are to be removed.
17421 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
17423 * TextRenderer.cs: If we set a GDI clip region, we need to clear
17424 it when we are done. [Fixes bug #80949]
17426 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17428 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
17430 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17432 * ListView.cs: I forgot to commit the changes for ListView
17433 in my previous patch.
17435 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17437 * Clipboard.cs: Partially implement an overload of SetDataObject.
17438 * Form.cs: Implement ShowWithoutActivation.
17439 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
17441 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17443 This is a first set of changes to make the Virtual mode works,
17444 by avoiding the retrieval of ListViewItem instances until
17447 * ListView.cs: Store item position in the ListView instead of the
17448 ListViewItem, this way we don't request the Bounds property of
17449 ListViewItem inside the ListView calculations, as well as cache the item
17450 size in item_size field. Store indexes instead of ListViewItem
17451 instances in the matrix used by icon view. Add a ItemMatrixLocation
17452 struct to hold the row and col info of the matrix info.
17454 * ListViewItem.cs: Don't store the location anymore, and only cache
17455 the rectangles for GetBounds. Use the ListView.GetItemLocation
17456 method to retrieve the actual location.
17458 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17460 * TextRenderer.cs: Add clipping support, thanks to George.
17463 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17465 * ListViewItem.cs: Cancel label edit when item is removed from
17467 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
17468 event before the edit textbox is displayed. Added CancelEdit method
17469 which is used end to editing while ignoring the value set by the
17470 user. In EndEdit, set focus to ListView to avoid losing focus to
17471 other controls. In ListViewItemCollection.Clear, cancel editing of
17472 any of the items. In Remove, cancel editing of item being removed.
17473 Avoid udplicate code by modifing RemoveAt to invoke Remove.
17475 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17477 * FileDialog.cs: Update FSEntry when move is successful. Fixes
17480 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17482 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
17483 compatible with non X11 systems. Fixes #80901.
17485 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
17487 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
17488 whether the item should be unselected and reselect. We do no want this
17489 when we're starting to edit the label. Do not fire the
17490 SelectedIndexChanged event from ListView when its already been fired
17491 by modifying ListViewItem.Selected. Fixes bug #80943.
17493 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17495 * TextRenderer.cs: Previos commit logic was backwards.
17497 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
17499 * TextRenderer.cs: Don't add padding on MeasureText if we were
17500 sent the NoPadding flag.
17502 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17504 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
17505 after DrawButton. To prevent image overlaps button borders SetClip and
17506 ResetClip added before and after draw image. Fixes #79129.
17508 2007-02-23 Everaldo Canuto <everaldo@simios.org>
17510 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
17511 window size, it fix problem when you run under win32 that theres
17512 Size diferent than ClientSize. Also fix controls size and positions
17513 to mimic Win32. Fixes #80837.
17515 2007-02-22 Everaldo Canuto <everaldo@simios.org>
17517 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
17518 menu area to fix some problems for non X11 systems. Fixes #80613.
17520 2007-02-22 Jackson Harper <jackson@ximian.com>
17522 * TreeNode.cs: When a node is expanded, set its is_expanded flag
17523 even if it doesn't have any children.
17525 2007-02-22 Jackson Harper <jackson@ximian.com>
17527 * TreeView.cs: Calculate the top node 'on the fly', this
17528 eliminates issues where you need to click on the tree before
17529 scrolling it to get the top node computed correctly.
17530 * TreeNodeCollection.cs: We don't need to mess with the top node
17533 2007-02-22 Jackson Harper <jackson@ximian.com>
17535 * DataGridViewRow.cs: Fix typo so height can actually be set.
17536 Patch by Peter Grimm.
17538 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17540 * FileDialog.cs: Fixed support for renaming files and directories.
17541 * ListView.cs: Do not lose focus when edit is canceled. Process
17542 Escape as regular key (to prevent closing of dialogs).
17544 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17546 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
17547 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
17549 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
17551 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
17552 did not modify label.
17553 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
17554 modified the text. Reset Label when user presses Escape in edit mode.
17555 Move focus to ListView after having cancelled or finished editing the
17558 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
17560 * ComboBox.cs: Removed unnecessary initializations. Marked items field
17561 private. Clear textbox when Text is set to null and SelectedIndex is
17563 * FileDialog.cs: Removed unnecessary initializations. Removed
17564 workarounds for ComboBox bugs that are now fixed. Modified
17565 DefaultExt, InitialDirectory and Title property to change null to
17566 zero-length string in getters. Avoid directly accessing fields.
17568 2007-02-20 Jackson Harper <jackson@ximian.com>
17570 * TextControl.cs: Remove RecalAlignments call, that was some
17571 debugging leftovers.
17572 - Don't use the line indent when we shouldn't.
17573 * RichTextBox.cs: Add support for paragraph left indents.
17575 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17577 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
17578 Seems like the class status pages doesn't catch params differences.
17580 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
17582 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
17584 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
17586 * ComboBox.cs: Setting Text should have no effect if item text of
17587 selected item exactly matches value. First lookup text using
17588 case-sensitive comparison, and fallback to case-insensitive comparison.
17589 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
17590 allow startIndex to be last index. Changed ArgumentOutOfRangeException
17591 paramname to match MS. Restart from first item if string is not found
17592 after startIndex. Fixed paramname of ArgumentNullException that is
17593 thrown for null value in ObjectCollection.Contains.
17595 2007-02-19 Everaldo Canuto <everaldo@simios.org>
17597 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
17599 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17601 * ListControl.cs: In SelectedValue use value.Equals to compare for
17602 equality instead of ==, otherwise it will fail for strings.
17605 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17607 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
17608 since the caret won't show up unless ShowSelection is true.
17611 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
17613 * Application.cs: When disabling all forms but the main form, do not
17614 disable any descendants of the main form (such as mdi children or
17615 other parented forms). Fixes #80822 on Windows.
17616 * Form.cs: If we have a parent, set the WS_CHILD style.
17617 * Control.cs: Update the window styles if the control whose parent has
17618 changed is a form (the WS_CHILD style has to be switched).
17620 2007-02-19 Everaldo Canuto <everaldo@simios.org>
17622 * XplatUIStructs.cs: MsgUIState structure added.
17624 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
17626 * FileDialog.cs: Removed need for separate fileName field. On 2.0
17627 profile, do not check filename(s) for illegal character if filename(s)
17628 were set non-interactively but always check on 1.0 profile. Fixed NRE
17629 in DefaultExt and only strip off first leading dot. Improve exception
17630 message when invalid Filter is set. Do not ignore InitialDirectory if
17631 it does no exist. Store specified Title, and if empty use default
17632 title (depending on type of dialog). Added an internal DialogTitle
17633 property for retrieving dialog title. Fixed logic of displayed dir to
17634 more closely match MS. Avoid setting ComboBox.Text to a zero-length
17635 string as its buggy.
17636 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
17637 FileName is a zero-length string (it can never be null). Override
17638 DialogTitle property to set default title of dialog box.
17639 * SaveFileDialog.cs: Override DialogTitle property to set default
17640 title of dialog box.
17642 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
17644 * FileDialog.cs: Modify default text of filename and filetype labels
17645 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
17646 after we've updated the SelectedIndex. Fixes part of bug #80887.
17647 * SaveFileDialog.cs: Set text of filetype label.
17649 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17651 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
17652 label field. Needed by latest Jackson's fixes for ListView.
17654 2007-02-16 Andreia Gaita <avidigal@novell.com>
17656 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
17657 print preview images.
17659 2007-02-16 Jackson Harper <jackson@ximian.com>
17661 * ListView.cs: Make AfterLabelEdit work correctly.
17662 * FileDialog.cs: After changing the name of the folder, we have to
17663 make sure that it is created, or that we pop up an error because
17666 2007-02-16 Jackson Harper <jackson@ximian.com>
17668 * X11Dnd.cs: Implement aliases on mime handlers, so things like
17669 System.String are mapped to text.
17670 - Handle dataobjects, getting all the possible formats out of them
17671 - We dont need the drag event args before we give feedback. This
17672 allows feedback cursors to be immediate before selections have
17675 2007-02-16 Jackson Harper <jackson@ximian.com>
17677 * TextBoxBase.cs: Modified the method for inserting images to
17678 taking a line and position instead of tag and position.
17679 * RichTextBox.cs: Handle PngBlip data by inserting the png image
17681 * TextControl.cs: Allow images to be inserted as the first tag of
17683 - Fix some off by one issues when we assume the first tag is a
17684 text tag, not an image tag.
17686 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17688 * ListView.cs: Set focus to ListView when ItemControl gets a
17689 WM_RBUTTONDOWN message, to mimic .Net behaviour.
17690 Fixes part of #80467.
17692 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
17694 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
17695 validate Text input (if null or empty string reset Value to default
17696 value). Fixes #80830.
17698 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17700 * ListView.cs: Set owner as null for columns and items when
17701 Dispose is invoked. Fixes #80607.
17703 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
17705 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
17706 showing DropDowns, don't show a Grip when doing Flow layout.
17707 [This fixes the toolbox in PDN 2.72.]
17708 * ToolStripItem.cs: Add Anchor property and some internal properties to
17709 reduces needed changes to FlowLayout.
17710 * ToolStripOverflow.cs: Remove unused variable.
17711 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
17712 use it in the layout calculations.
17714 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17716 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
17717 reported in #79640.
17719 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
17722 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17724 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
17725 MeasureString format, it can make button very large in some cases, it is
17726 strange but is what win32 do.
17728 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17730 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
17733 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
17734 rendering, the value is based on MenuAccessKeysUnderlined.
17736 2007-02-13 Everaldo Canuto <everaldo@simios.org>
17738 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
17741 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
17743 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
17744 and use MenuAccessKeysUnderlined instead.
17746 2007-02-13 Andreia Gaita <avidigal@novell.com>
17748 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
17749 A selected control would not get a Focus call if:
17750 - the default active control of the container is the same as
17751 the one that was selected
17752 - we are switching from one container to another
17753 Under these conditions, the container being selected already has
17754 an active_control, which is the same as the one being activated,
17755 so set_ActiveControl would always return and not send the Focus
17756 call. Fix to check if the currently active control of the container
17757 is actually focused.
17759 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
17761 * StatusStrip.cs: Implement the spring layout.
17762 * ToolStripControlHost.cs: Make sure the hosted control's visibility
17763 always matches the host.
17764 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17765 and TextAfterImage.
17767 2007-02-13 Andreia Gaita <avidigal@novell.com>
17769 * Control.cs: Code reorganization only.
17770 - Reorganize the WndProc cases so that each case has it's own handling method,
17771 to help with the no-line-numbering stack traces.
17772 - Formatting changes (it's vstudio's fault, really :p)
17774 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17776 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17777 Thread.CurrentUICulture to match DateTimePicker's (and MS)
17780 2007-02-12 Jackson Harper <jackson@ximian.com>
17783 * TextBox.cs: By default we have a non multiline document
17784 - use the multiline property instead of the internal variable
17785 * TextBoxBase.cs: Treat multiline and non multiline the same in
17787 - Use the documents multiline flag instead of tracking it ourself
17788 * TextControl.cs: Attempt at getting multiline to match MS
17789 behavior. Lines now track an offset, which is either their X or Y
17790 offset depending on whether or not we are in multiline mode.
17791 - Update all the methods to understand that lines have an X value.
17792 - Fix crash in Undo::Duplicate when empty lines are deleted.
17794 2007-02-12 Everaldo Canuto <everaldo@simios.org>
17796 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
17797 code moved to properties PreferredHeight and PreferredWidth. It solve the
17798 all problems when preferred sizes must be recalculated. Fixes #80801.
17800 2007-02-12 Everaldo Canuto <everaldo@simios.org>
17802 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17803 font height when compatible_text_rendering is false. Partially fix #80801.
17805 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17807 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17809 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17811 * Form.cs: Improved exception messages in ShowDialog.
17813 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
17815 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17816 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17817 if not set. Fixes bug #80764. Avoid accessing current_settings field
17820 2007-02-08 Everaldo Canuto <everaldo@simios.org>
17822 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17825 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17826 public in 2.0 and for easy maintenance and dont break compatibility it is
17829 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17831 * ToolStripItem.cs: Implement using images from ImageList.
17833 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17835 * DateTimePicker.cs: Change default date-formatting culture from
17836 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17837 seems to be the way MS does it.
17839 2007-02-08 Andreia Gaita <avidigal@novell.com>
17841 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
17842 (the 6 was cut off on the right side)
17844 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17846 * Form.cs: Tell MenuStrips to close when the form is clicked.
17847 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
17848 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17849 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17850 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
17851 support for Overflow, where items that do not fit are automatically
17852 reparented to a drop down menu.
17853 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17854 Also: fixes bug #80747.
17856 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17858 * ComboBox.cs: Remove warning (unused code).
17859 * ScrollableControl.cs: Remove warning for 1.1 profile.
17861 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17863 * Form.cs: Remove a warning.
17865 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
17867 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17868 'g' specifier, not documented anywhere, but seems to always show up
17869 as a single space (might have something to do with the DateTime 'g'
17870 specifier, which is the era format, but since DateTimePicker can't
17871 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17872 won't crash if the format has an unmatched quote. Now shows
17873 single-character formats correctly. Fixes #80744.
17875 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
17877 * StatusStrip.cs: Stretch property needs to call base.Stretch,
17878 not this.Stretch to fix stack overflow. [Fixes bug #80760]
17880 2007-02-07 Chris Toshok <toshok@ximian.com>
17882 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17883 background color. it overwrites the background image we've
17884 already painted. Fixes #80599.
17886 2007-02-07 Chris Toshok <toshok@ximian.com>
17888 * DataGrid.cs: return immediately from Edit() when there are no
17889 columns. Fixes #80662.
17891 2007-02-07 Chris Toshok <toshok@ximian.com>
17893 * MessageBox.cs: fix #80625. don't always show the Help button in
17894 2.0. use the displayHelpButton parameter to determine if we
17895 should show it. Also, make the internal show_help field private.
17897 2007-02-07 Chris Toshok <toshok@ximian.com>
17899 * Control.cs (SetVisibleCore): check in the proposed patch for
17900 80604, and set is_visible before calling CreateControl.
17902 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
17904 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
17905 MonoInternalNote. This is added automagically by VS2005, so let's not crash
17908 2007-02-06 Everaldo Canuto <everaldo@simios.org>
17910 * MenuAPI.cs: hotkey_active internal field added, it is required because
17911 we need to know when hotkeys must be draw, before this change a keystate
17912 Navigating was used but we can have menu in navigating state without
17913 hotkeys. Fixes #80694.
17915 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17917 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17919 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17920 corresponding events and methods to be internal for 1.1 profile and
17921 public for 2.0 profile (required by SizeGrip).
17922 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17923 implicit control list). Don't set the size nor the location of the
17924 SizeGrip anymore as it's not needed.
17925 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17926 draw directly on the captured control (fixes #80656). Removed
17927 ShowGrip (it wasn't used anywhere), redraw (always true), added
17928 GetDefaultSize and GetDefaultRectangle to calculate defaults.
17929 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17930 be called from SizeGrip.
17932 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
17934 * Timer.cs: Throw ArgumentException if Interval <= 0.
17936 2007-02-05 Jackson Harper <jackson@ximian.com>
17938 * TreeView.cs: We need to check scrollbar visibility when window
17939 visibility is updated, because non visible trees don't ever add
17941 * Cursor.cs: We want the override cursor to be reset to NULL when
17942 we set current cursor to the default cursor.
17944 2007-02-05 Jackson Harper <jackson@ximian.com>
17946 * TextControl.cs: Don't have crlfs when we are non multiline.
17947 - Consolidate the line position.
17949 2007-02-05 Jackson Harper <jackson@ximian.com>
17951 * X11Keyboard.cs: BACK+CTRL gets a special char code.
17953 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
17955 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17956 handling LeaveNotify->NotifyUngrab in order to send
17957 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17958 after calling XUngrabPointer, so we call WindowUngrabbed directly
17959 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17960 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17961 MouseCaptureChanged correctly. Also create handles if changing
17962 Capture (matches MS behaviour).
17964 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17966 * SizeGrip.cs: Make the last change 2.0 only.
17968 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17970 * SizeGrip.cs: If resizing and the capture is lost, revert any size
17971 changes to initial size (fixes #80597).
17973 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17975 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17977 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17979 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17980 background) and only allow dragging if enabled. This way the
17981 sizegrip can be used to fill the open square that otherwise would
17982 have been shown in the bottom right corner of ScrollableControl
17983 when ScrollableControl is not suppose to support sizing.
17984 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17985 sizegrip is shown and enabled, and hook up with necessary events.
17987 2007-02-01 Chris Toshok <toshok@ximian.com>
17989 * DataGridTextBoxColumn.cs: clean up the
17990 GetFormattedString/GetColumnValueAtRow combination of functions.
17991 Also fix UpdateUI, and the initial state of
17992 IsInEditOrNavigateMode.
17994 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17995 aren't supposed to scroll the textbox here, we're supposed to
17996 scroll the datagrid.
17998 2007-02-01 Chris Toshok <toshok@ximian.com>
18000 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
18001 setting the position.
18003 2007-02-01 Chris Toshok <toshok@ximian.com>
18005 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
18006 here, since the most recent focus fixes keep us from generating
18007 the Leave event when our textbox gets focus.
18008 (Edit): we should be passing null for the column style's
18009 instantText parameter.
18011 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
18013 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
18014 raised. Fixes menu text/icons not showing up in PDN.
18016 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
18018 * Control.cs: Remove code in constructor that makes every
18019 control with WS_CHILD set have initial location -1, -1.
18021 2007-01-31 Jackson Harper <jackson@ximian.com>
18023 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
18025 * XplatUIX11.cs: Give teh keyboard to teh dnd.
18027 2007-01-31 Jackson Harper <jackson@ximian.com>
18029 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
18030 - Remove some debug code.
18032 2007-01-31 Jackson Harper <jackson@ximian.com>
18034 * XplatUIX11.cs: If you set the override cursor during a grab, it
18035 should actually override the grab cursor. This comes into play
18036 when you are setting custom cursors in a DND feedback method.
18038 2007-01-31 Jackson Harper <jackson@ximian.com>
18040 * X11Dnd.cs: Add support for handling the QueryContinue and
18041 GiveFeedback events.
18042 - Cancel drag and drop actions when the escape key is clicked.
18043 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
18044 can handle the ESCAPE key.
18045 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
18046 done when dnd events are continued after the button is released.
18047 - Add a new helper method so that dnd can translate key events.
18049 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
18051 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
18052 make it more obvious what is happening.
18054 2007-01-30 Jackson Harper <jackson@ximian.com>
18056 * XplatUIX11.cs: Don't break when handling button release in drag
18057 and drop operations. We need that BUTTONUP message to get through
18058 so capture is released.
18059 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
18060 this is handled automatically when the mouse is down.
18062 2007-01-30 Jackson Harper <jackson@ximian.com>
18064 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
18065 is closed, so we need to make sure that we aren't changing the
18066 dialog result when the OK (Open or Save) button has been clicked
18067 and we are closing the window ourselves. Note we don't need to
18068 worry about the cache being written in this case, because it was
18069 already done in the previous FilOk call.
18071 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
18073 * DateTimePicker.cs: Remove a warning.
18074 * ComboBox.cs: Remove a couple of warnings.
18076 2007-01-29 Chris Toshok <toshok@ximian.com>
18078 * XplatUIX11.cs: don't crash, and remove the icon if the user has
18079 set one, if SetIcon is passed a null icon.
18081 2007-01-29 Andreia Gaita <avidigal@novell.com>
18083 * TextBox.cs: Redraw when the password characters changes
18084 * TextControl.cs: Check if textbox has a password char and draw
18085 a line of password chars instead of the text in the line. LineTag gets
18086 an extra Draw() method which allows document.Draw to override the text
18087 that will be drawn. Removes 1024 char limitation on length of passworded
18090 2007-01-29 Jackson Harper <jackson@ximian.com>
18092 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
18093 single chars is not.
18095 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
18097 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
18098 one pixel. Fix a StackOverflowException caused by an overload wrongly
18101 2007-01-26 Everaldo Canuto <everaldo@simios.org>
18103 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
18104 also remove ProcessArrowKey and put the code inside ProcessKeys.
18106 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
18108 * PaddingConverter.cs: Added.
18110 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
18112 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
18113 ShowPanels is false (fixes #80600). Only draw up to 127 characters
18114 of text (fixes #80601). For panels clip the text to draw to the
18115 panel (fixes #80603).
18117 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
18119 * ComboBox.cs: Fixed implementation of ResetText.
18121 2007-01-25 Jackson Harper <jackson@ximian.com>
18123 * TextControl.cs: For the last char of a line we need to use the
18124 line size, not that chars width, since it won't actually be
18125 computed since the right side of a char is based on the start of
18126 the left side of the next char, and the next char does not exist.
18128 2007-01-25 Chris Toshok <toshok@ximian.com>
18130 * Splitter.cs: fix the new unit tests, and reindent some switch
18133 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18135 * ComboBox.cs: Implemented 2.0 methods and events.
18136 * TextBoxBase.cs: Added OnTextUpdate, so that
18137 ComboBox.ComboTextBox can inform ComboBox of it.
18139 2007-01-25 Jackson Harper <jackson@ximian.com>
18141 * TextControl.cs: Respect ShowSelection when deciding whether or
18142 not to display the caret, this allows comboboxes to have carets
18143 when the combotextbox does not have focus.
18145 2007-01-25 Jackson Harper <jackson@ximian.com>
18147 * TextControl.cs: Add a Suspend/Resume for updating, basically the
18148 same as the Suspend/Resume for recalc, except this will do actual
18150 - New Undo manager, works much like the MS version.
18152 * TextBoxBase.cs: The Cut operation is undoable.
18154 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18156 * TextBoxBase.cs: Don't antialias text. Makes it look way better
18157 on Windows (no difference on Linux).
18159 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18161 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
18162 we don't want to activate any windows. Fixes #79433.
18164 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
18166 - ButtonBase.cs: Fix capitalization of parameter: disposing.
18169 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
18172 - Move to using System.ComponentModel.EventHandlerList
18173 - Replace Refresh with Invalidate
18174 - Clear the mime filecache on closing
18175 - Some other memory reducing work. After beeing closed FD now uses
18176 only about 300 KB for the fdo mime stuff plus the memory of the
18178 * Mime.cs: Changed coding style and removed unnecessary commented
18179 code. Some more memory memory reducing work.
18181 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
18183 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
18184 a few other missing 2.0 properties.
18185 * Theme.cs: Added DrawFlatStyleComboBox.
18186 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
18188 2007-01-24 Chris Toshok <toshok@ximian.com>
18190 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
18191 wake_waiting flag, not just when there's data to be read. if we
18192 don't, then future wakeup's won't reach us and we'll be doomed to
18193 wait for the entire 1 second timeout forever (unless there are X
18196 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
18198 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
18199 until you pass Items.Count, not Items.Count - 1 like 1.1.
18201 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
18203 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
18205 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
18207 * ToolStripContainer.cs: The recent Dock fix exposed that I was
18208 adding the panels in the wrong order.
18210 2007-01-24 Jackson Harper <jackson@ximian.com>
18212 * TextBoxBase.cs: When we move the caret we also need to move the
18213 selection, this fixes some random crashing after doing select
18214 text, unselect, delete a char, paste.
18216 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
18218 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
18220 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18222 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
18223 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
18224 * ToolBar.cs: Force redraw in BackgroundImageChanged.
18226 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18229 - Implement support for vertical toolbars. Fixes #80539;
18230 - Call LayoutToolBar when resize, it fix some other problems in layout.
18231 - Rename requested_height to requested_size, as we can have width on it
18232 when toolbar is vertical.
18233 - Create a private property "Vertical" that uses Dock to verify when
18234 toolbar is vertical or not.
18235 - Set ControlStyles when change Dock property.
18236 - Refactory in LayoutToolBar to have better variables names and to support
18238 - Fixes default value for ButtonSize when button count is equal zero, size
18239 must be (39, 36) test case writed.
18241 2007-01-23 Chris Toshok <toshok@ximian.com>
18243 * Control.cs: fix the checks so that they work correctly for mdi
18246 2007-01-23 Chris Toshok <toshok@ximian.com>
18248 * Control.cs: ControlCollection seems to have super-secret
18249 abstraction breaking knowledge of Mdi containers. allow MdiClient
18250 to add toplevel controls.
18252 2007-01-23 Chris Toshok <toshok@ximian.com>
18254 * Control.cs: throw an ArgumentException if a toplevel control is
18255 added to our control collection from ControlCollection.Add, as
18256 well as from ControlCollection.IList.Add. This fixes the
18257 ControlSetTopLevelTest.TestTopLevelAdd unit test.
18259 Also, in ControlCollection.IList.Add, don't through an
18260 ArgumentNullException, throw an ArgumentException, when value ==
18261 null. This matches MS.
18263 2007-01-23 Chris Toshok <toshok@ximian.com>
18265 * BindingSource.cs: initial, incomplete, implementation of
18268 2007-01-23 Jackson Harper <jackson@ximian.com>
18271 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
18272 that I can fix a broken unit test (TextBoxTest::ClearUndo)
18274 2007-01-23 Everaldo Canuto <everaldo@simios.org>
18276 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
18278 2007-01-23 Andreia Gaita <avidigal@novell.com>
18280 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
18281 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
18282 IndexOfKey() for 2.0
18284 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
18286 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
18287 to prevent it from changing z-order.
18288 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
18289 leave UI updates in MdiWindowManager.
18290 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
18291 1 sized (NC handling goes weird on Linux otherwise).
18292 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
18293 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
18294 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
18295 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
18296 and SetWindowState(s) to allow for changing the size of an activated child
18297 before activating it (reduces a lot of flicker).
18299 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
18301 * Form.cs: Changing FormBorderStyle has different semantics based
18302 on whether the Form is visible or not. If not visible, don't change
18303 the Size. But InvalidateNC needs to be called to force the window
18304 to pick up the changes and redraw itself. [Fixes bug #80574]
18306 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
18309 * ContainerControl.cs: ProcessCmdKey.
18310 * ErrorProvider.cs: new constructor.
18311 * Form.cs: fix AutoValidateEvent compiler warning.
18312 * Label.cs: fix OnAutoSizeChanged compiler warning.
18313 * MenuStrip.cs: fix CanOverflow compiler warning.
18314 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
18315 * TextBox.cs: Dispose.
18316 * ToolStrip.cs: CanOverflow, re-enable double buffering.
18317 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
18318 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
18319 * ToolStripItem.cs: Overflow, RightToLeft properties.
18321 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
18323 * Form.cs: Move the layout of the main form to MdiWindowManager.
18324 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
18325 do a layout of the main window to update MdiClient's client area to
18326 the right area. Fixes #80533. Remove the calculation of nc size,
18327 it was just wrong and the correct one is the same as for
18328 InternalWindowManager.
18330 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
18332 * Control.cs: Setting Anchor or Dock needs to reset the other
18333 to its default. [Fixes bug #80556]
18335 2007-01-20 Chris Toshok <toshok@ximian.com>
18337 * CheckedListBox.cs: class status changes.
18339 * ScrollableControl.cs: same.
18341 * RichTextBox.cs: same.
18343 * ContainerControl.cs: same.
18345 * ListView.cs: same.
18347 * NotifyIcon.cs: same.
18349 * MenuStrip.cs: same.
18351 * RadioButton.cs: same.
18353 * CheckBox.cs: same.
18355 * PrintPreviewDialog.cs: same.
18359 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
18361 * TreeNode.cs: Apply Alan's patch for Name property.
18363 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
18365 * Form.cs: Implemented SizeGripStyle.
18366 * SizeGrip.cs: Check for minimum and maximum size for the
18367 control being resized and only resize if size has actually
18370 2007-01-19 Chris Toshok <toshok@ximian.com>
18372 * DataGridColumnStyle.cs: stop setting _readonly in the
18373 PropertyDescriptor setter. fixes a unit test failure.
18375 also, rename ParentReadOnly to TableStyleReadOnly, and have it
18376 just consult our table style (if we have one). We don't need to
18377 consult the datagrid readonly attribute because that's passed in
18378 as the _ro arg to Edit. this simplifies things a little.
18380 * DataGrid.cs: use CurrentColumn instead of
18381 current_cell.ColumnNumber just to simplify some of the code.
18383 switch the order of some things in the CurrentCell setter to keep
18384 the previous cell from getting a textbox again -
18385 EnsureCellVisibility causes scrolling to happen, which calls Edit.
18386 So we need to set the new cell before calling it.
18388 call Edit in OnEnter, as does Microsoft.
18390 also, make sure the current table style isn't the one we create
18391 initially when checking to see if it's different than the one
18392 we're setting it to in BindColumns (this fixes #80421).
18394 * GridTableStylesCollection.cs: table styles can have "" for a
18395 mapping name. part of the fix for #80421.
18397 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
18398 Edit significantly.
18400 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18402 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
18403 and less GDI object leaky-er.
18405 2007-01-18 Andreia Gaita <avidigal@novell.com>
18407 * LinkLabel.cs: Add opaque control style
18409 2007-01-18 Jackson Harper <jackson@ximian.com>
18411 * TextControl.cs: Calculate width properly.
18412 - Don't store the tag's X offset, this can be figured out very
18414 - When getting the caret tag make sure to get the last empty tag.
18416 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18418 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
18421 * Control.cs: Color.Empty shouldn't count for previous transparent
18424 2007-01-18 Jackson Harper <jackson@ximian.com>
18428 * TextControl.cs: Starting to merge in some pieces of my older
18429 undo work. Basically just some slight cleanup of the undo API.
18431 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
18433 * TrackBar.cs: Fix signature of RightToLeftLayout.
18434 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
18435 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
18436 * Application.cs: Implemented UseWaitCursor.
18438 2007-01-18 Jackson Harper <jackson@ximian.com>
18440 * TextControl.cs: We can't skip tags if any part of the tag is
18443 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18445 * ContainerControl.cs: Override OnLayout.
18447 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18449 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
18451 * ContextMenuStrip.cs: Make sure context menu is shown on top of
18454 2007-01-18 Chris Toshok <toshok@ximian.com>
18456 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
18457 (leftover from the container_selected days, I'd wager). fixes bug
18460 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18462 * Control.cs: Apply patch from George to fix the new testcase on
18463 bug #80451. We can't just check for Color.Transparent, we need
18464 to check if the back color's alpha channel is < 255.
18466 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
18468 * Form.cs: Move setting show_icon = true to before the constructor
18469 so that the base constructor has that information when it calculates
18470 the form's size. Was causing forms to be (6, 6) bigger than they
18471 were supposed to be. Thanks for catching this Rolf!
18473 2007-01-18 Jackson Harper <jackson@ximian.com>
18475 * TextControl.cs: When replacing a selection we need to invalidate
18476 from the initial selection start, because selection start is moved
18477 to the end of the replacement.
18479 2007-01-18 Andreia Gaita <avidigal@novell.com>
18481 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
18483 2007-01-18 Chris Toshok <toshok@ximian.com>
18485 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
18488 2007-01-17 Everaldo Canuto <everaldo@simios.org>
18490 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
18491 layout methods and properties from ToolBarButton must be available
18492 into ToolBarButtonInfo.
18494 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18496 * Control.cs: If the control has a transparent background, we
18497 need to refresh it when it moves and when it's parent's background
18498 image changes. [Fixes bug #80451]
18500 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18502 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
18504 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
18506 * XplatUIWin32.cs: Implement proper double buffering for Windows.
18507 [Fixes bug #80447, and probably speeds up things as well]
18509 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18511 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
18512 * XplatUIWin32.cs: We need to recalculate NC size after changing
18513 window style to toolwindow (otherwise the client rectangle will be
18514 3 pixels to small for some reason).
18515 * MdiWindowManager.cs: Revert NC size calculations to match how
18516 they are calculated only based on window styles (to match
18517 Win32AdjustWindowRectEx, since otherwise when setting size or
18518 location, Control will call Win32AdjustWindowRectEx to update client
18519 size, which would provoke a paint, then we'd get a NCCALCSIZE and
18520 calculate a different value of client size causing another paint
18522 * InternalWindowManager.cs: When moving or resizing a window only
18523 update size or location if they actually changed.
18524 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
18525 (seems to match Windows behaviour better). Cleaned up
18526 ManagedWindowDecorations to draw what's needed and nothing else
18527 (was drawing borders and lines where they shouldn't be)
18528 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
18529 (style = 0xFFFF) and takes into account caption height when
18530 calculating window rectangle.
18532 2007-01-16 Everaldo Canuto <everaldo@simios.org>
18534 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
18535 can be added to toolbar multiple times, we need to maintain a list of
18536 button information for each positions.
18538 2007-01-16 Everaldo Canuto <everaldo@simios.org>
18540 * ToolBar.cs: Some small stetic changes.
18542 2007-01-16 Jackson Harper <jackson@ximian.com>
18544 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
18545 that allow us to have nested recalc = false blocks.
18546 - Add paste support for images in the RichTextBox
18547 * RichTextBox.cs: flush the text after the color is changed, so
18548 the change takes effect.
18549 - Use SuspendRecalc
18550 - Some extra debugging info
18551 * TextControl.cs: Tags no longer track their length, it is just
18552 computed from the next tags length, this makes things a little
18553 simpler and reduces places that we have to track length changes.
18554 - Refactored the linetag class a little so we could make it
18555 a base class for different kinds of tags
18556 - Created a image tag, a tag that can have a single image inserted
18558 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
18559 that we can call suspend multiple times.
18560 - Add some debugging methods
18562 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18564 * MdiClient.cs: Add ActivatePreviousChild for
18565 mdi child window navigation.
18566 * Form.cs: Use MdiClient.ActivateNextChild/
18567 ActivatePreviousChild instead of Form.SelectNextControl
18568 to select the next/previous child since
18569 SelectNextControl doesn't do it in the same order
18570 as mdi children should do it.
18572 2007-01-16 Chris Toshok <toshok@ximian.com>
18574 * Control.cs: remove container_selected field.
18576 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18578 * MdiClient.cs: Update main form's ActiveChild when
18579 updating keyboard focus for the mdi child.
18581 2007-01-16 Jonathan Pobst <jpobst@novell.com>
18583 * Control.cs: PreferredSize fix.
18585 * Form.cs: Add several 2.0 events, properties, and methods.
18587 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
18589 * Form.cs: Provide meaningful message when MdiParent is assigned a
18590 Form that is not an MdiContainer.
18592 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18594 * MdiClient.cs: Update main form's ActiveChild when
18595 activating a mdi child.
18597 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
18599 * MdiWindowManager.cs: Fix NRE when merging menus and main form
18600 doesn't have a menu.
18602 * Form.cs: Request NCRecalc after creating a mdi child window.
18603 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
18604 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
18606 * MdiClient.cs: Add new method SendFocusToActiveChild that either
18607 sends keyboard focus to the active child, or to the MdiClient
18608 if there are no child forms.
18610 2007-01-15 Chris Toshok <toshok@ximian.com>
18612 * ListView.cs: drop the *Internal overrides, just do our work in
18613 ItemControl's WndProc instead.
18615 * UpDownBase.cs: a few large changes. Fix up the Selectable state
18616 of the various controls, and forward the events properly (in the
18617 same manner as MS) from the textbox to the UpDown. Also the
18618 ActiveControl of the UpDownBase gets set properly now. Finally,
18619 we don't call UpdateEditText from the ctor. Fixes bug #79957.
18621 * NumericUpDown.cs: set Text in the ctor.
18623 * DomainUpDown.cs: call UpdateEditText in the ctor.
18625 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
18626 so even a Selectable = false textbox can be focused if you click
18629 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
18630 just add their handling in their respective WndProc's. Also add
18631 an explicit FocusInternal method that doesn't consult CanFocus
18632 before calling Select(this).
18634 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
18635 do our work in WndProc instead.
18637 * TabControl.cs: same.
18639 * ComboBox.cs: same.
18641 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18643 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
18646 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18649 * ThemeWin32Classic.cs: Don't draw the item text outside
18650 item bounds in Details view, as well as use trimming.
18653 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18655 * Form.cs: Implement Form.ShowIcon.
18657 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
18658 null, which when combined with the DlgModalFrame window style removes
18659 the icon from the title bar.
18661 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18663 * Control.cs: Call OnMouseClick after OnClick. (2.0)
18665 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18667 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
18668 menu when mdi child windows theres a menu, uses insert to get icon
18669 at first position. Partially fix #80006.
18671 2007-01-15 Jonathan Pobst <jpobst@novell.com>
18673 * Clipboard.cs: Implement 2.0 methods.
18675 2007-01-15 Everaldo Canuto <everaldo@simios.org>
18677 * Menu.cs: Implement Insert method of MenuItemCollection class
18680 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18682 * ListView.cs: Implement 2.0 FindItemWithText method.
18684 2007-01-11 Everaldo Canuto <everaldo@simios.org>
18686 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
18687 to calculate menu bar size. Fixes #80290.
18689 2007-01-11 Everaldo Canuto <everaldo@simios.org>
18691 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
18693 2007-01-11 Chris Toshok <toshok@ximian.com>
18695 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
18698 2007-01-11 Chris Toshok <toshok@ximian.com>
18700 * LinkLabel.cs: make sure to call base.Select in our Select method
18701 if it turns out we're going to be selected (i.e. if we have a link
18702 that is going to receive focus). That way our container's
18703 ActiveControl is updated properly.
18705 2007-01-11 Chris Toshok <toshok@ximian.com>
18707 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
18708 they have 1 or more links. this fixes the crash gert reported.
18710 2007-01-11 Andreia Gaita <avidigal@novell.com>
18712 * ContainerControl.cs: Remove ContainerSelected flag, not needed
18715 * Control.cs (Controls.Add): Check if control to be added to the collection
18716 is a top level control, and throw an ArgumentException if it is.
18717 Remove ContainerSelectedFlag, not needed anymore.
18719 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
18720 top most control doesn't activate the form. This fixes a problem in the
18721 MessageBox, where the default button wouldn't get focus because the form
18722 was activated before being Loaded - when the Owner is set, SetTopMost is
18723 called, and it would activate it.
18725 2007-01-11 Jonathan Pobst <jpobst@novell.com>
18727 * Button.cs: When clicked and setting the parent form's DialogResult,
18728 use FindForm instead of Parent, since parent could be a container
18729 control and not the Form. Fixes bug #80495.
18731 2007-01-10 Chris Toshok <toshok@ximian.com>
18733 * Form.cs: move the call to SendControlFocus into the same
18736 2007-01-10 Chris Toshok <toshok@ximian.com>
18738 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
18739 It breaks in the face of the new ActiveControl stuff, and should
18742 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
18743 activecontrol's focus if it's not already set, after we set
18744 ActiveControl, but before we call OnActivated. Re-fixes #79667
18745 after the previous focus/active control fixes regressed it.
18747 * Control.cs: reindent some code.
18749 2007-01-10 Chris Toshok <toshok@ximian.com>
18751 * Splitter.cs: clearing some outstanding changes from my tree.
18752 Replace all accesses (not writes) to the internal dock_style field
18753 with the Dock property.
18755 2007-01-10 Chris Toshok <toshok@ximian.com>
18757 * Control.cs: make FireEnter, FireLeave, FireValidating, and
18758 FireValidated virtual.
18760 * Form.cs: override and don't chain up calls to FireEnter and
18763 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18765 * ListView.cs: Add more text padding space when using
18766 auto resize for columns (the previous value didn't work fine).
18768 * ThemeWin32Classic.cs: Update text position inside columns,
18769 to match the appeareance of .Net.
18771 * ColumnHeader.cs: When using auto resize, only the Width should
18772 depend on the sub items, not the Height. Also, set width after
18773 auto resizing (the value of Width should never remain as -1 or -2).
18775 2007-01-10 Chris Toshok <toshok@ximian.com>
18777 * Application.cs: fix compilation errors when debug is enabled.
18779 2007-01-10 Chris Toshok <toshok@ximian.com>
18781 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18782 add some nice ascii art pictures and explanation of the process).
18783 (GetMostDeeplyNestedActiveControl): new utility function we need
18784 because our ActiveControl can refer to a child container with its
18787 * Form.cs (OnActivated): remove the call to SelectActiveControl
18788 from here, since you can override this method and not chain up,
18789 and winforms still sets the active control.
18790 (OnCreateControl): also remove the unnecessary SelectActiveControl
18792 (WndProc): it's actually called from the WM_ACTIVATE block, just
18793 before calling OnActivated.
18795 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18796 inside the else. the ActiveControl setter will end up setting
18797 focus on @control. This keeps us from setting it again (and
18798 generating an extra LostFocus/GotFocus pair).
18799 (Select (bool, bool)): reindent.
18801 2007-01-10 Jonathan Pobst <jpobst@novell.com>
18803 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18804 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18805 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18806 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18807 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18808 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18809 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18810 ToolStripTextBox.cs: Another wave of corcompare work.
18812 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18814 * ColumnHeader.cs: Implement 2.0 AutoResize method using
18815 the Width property.
18817 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18818 methods by callling Column.AutoResize method on columns.
18820 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
18822 * Control.cs: Provide proper implementations of PreferredSize
18823 and GetPreferredSize (2.0).
18825 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
18827 * Form.cs: Remove one character (!) to make my previous OnClosing
18828 stuff work for modal windows like MessageBox.
18830 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18833 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18834 ListView.Columns to get the last displayed column. Fixes #80452.
18836 2007-01-09 Everaldo Canuto <everaldo@simios.org>
18838 * Label.cs, LinkLabel.cs: Source code identation fixes.
18840 2007-01-08 Everaldo Canuto <everaldo@simios.org>
18842 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18843 we dont need to invalidate only borders because when we invalidate four
18844 border lines the invalidate's generates a complete redraw of button,
18845 because it now invalidate a complete rect some other redraws operations
18846 are fixed. Fixes #80196.
18848 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18849 Remove ToolBarInvalidateEntireButton as it is not used.
18851 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
18853 * Form.cs: Make sure that both OnClosing and OnFormClosing are
18854 called for 2.0 profile.
18855 * CloseReason.cs: Make class internal for 1.1.
18857 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
18859 * ToolStripManager.cs: Implement FindToolStrip functionality.
18860 * ToolStrip.cs: Register and unregister with ToolStripManager.
18862 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
18864 * Control.cs: This was messy. 2.0 moves much of ControlCollection
18865 to ArrangedElementCollection. Implemented this with as few #if's as
18866 possible (which is still too many).
18868 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
18870 * Control.cs: Implement SizeFromClientSize() [2.0].
18872 2007-01-07 Everaldo Canuto <everaldo@simios.org>
18874 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18875 use Theme.BorderSize to calculate area instead of static value 1,
18876 by the way use new BorderStaticSize instead Border3DSize when
18877 border_static is true. Fixes #79537.
18879 * XplatUIOSX.cs: Fix call to GetClientRectangle.
18881 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18884 2007-01-06 Everaldo Canuto <everaldo@simios.org>
18886 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18888 2007-01-06 Everaldo Canuto <everaldo@simios.org>
18890 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18891 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18894 - border_static field added, it will used to define when a control
18895 theres 3D border but it must be static (thin).
18896 - In GetWindowRectangle use Theme.BorderSize to calculate area
18897 instead of static value 1, by the way use new BorderStaticSize instead
18898 Border3DSize when border_static is true.
18900 * XplatUIX11.cs, XplatUIOSX.cs:
18901 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18903 * Theme.cs: BorderStaticSize field added.
18905 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18907 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18909 2007-01-05 Everaldo Canuto <everaldo@simios.org>
18911 * Control.cs: Under InternalBorderStyle call RecreateHangle to
18912 mimic same behavior than win32 that set border only in CreateParams,
18913 it fix problems under CreateParams overrides. Fix #79442 and partial
18916 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18917 of thi control you must call recreate handle.
18919 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18920 need to do anything as RecreateHangle will take care about borders.
18922 2007-01-05 Mike Kestner <mkestner@novell.com>
18924 * ListView.cs: hack to eliminate Lost/Got focus notifications on
18925 cycles between the ItemControl and parent. Fixes #80388.
18927 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
18929 * Control.cs: Lazy init layout engine. Do not directly use
18930 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18932 2007-01-05 Chris Toshok <toshok@ximian.com>
18934 * DataGrid.cs: don't forceably rebind columns in SetDataSource
18935 unless our list manager has changed (i.e. unless we have reason to
18936 believe our columns have changed). Fixes #80422.
18938 also, disable the call do BindColumns in
18939 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
18940 1.1 the event isn't raised in response to a column addition on a
18943 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18945 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18946 that inheritors can not call it if they choose. Fixes bug #80456.
18948 2007-01-05 Andreia Gaita <avidigal@novell.com>
18950 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
18951 doesn't blow up with a null exception on marshalling.
18953 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
18955 * Control.cs: Implement several 2.0 protected properties and methods.
18956 Ensure that all necessary events are being called when properties
18959 2007-01-05 Mike Kestner <mkestner@novell.com>
18961 * ListView.cs: implement PgUp/PgDn for Details view. Also
18962 fixes First/LastVisibleIndex to use the item_control.ClientRect
18963 instead of the parent control. Fixes #80378.
18965 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
18967 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18968 determine whether to use yard-pound or not (bug #78399).
18970 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
18972 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18973 problems. So it is time to bring back the old popupbutton colors.
18975 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18978 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18979 property by using the internal information of the
18980 columns order in ListView.
18982 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
18984 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18985 Add 2.0 Tag properties.
18987 * LinkArea.cs: Add 2.0 ToString method.
18989 2007-01-03 Chris Toshok <toshok@ximian.com>
18991 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18992 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
18993 when we're editing, which fixes #80047.
18995 2007-01-03 Chris Toshok <toshok@ximian.com>
18997 * Form.cs: apply patch contributed by Dominik Seichter. fixes
19000 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
19002 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
19003 property and implementation.
19005 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
19006 for MdiWindowListItem property.
19008 * ToolStripDropDown.cs: Don't consider hidden menu items while
19009 laying out the menu.
19011 2007-01-03 Andreia Gaita <avidigal@novell.com>
19013 * SendKeys.cs: window handle is not needed in win32, so just
19014 get the active window for X after parsing keys and don't use
19015 it when building the message; it is passed by parameter to the
19016 Xplat method and used there to build the message instead. Also,
19017 wait for events to be processed on SendWait, as opposed to Send,
19018 which doesn't wait :) Playing with threads and Send() completely
19019 hangs on ms.net, only SendWait() works.
19022 X11Display.cs: Check for valid window handle.
19024 2007-01-03 Jackson Harper <jackson@ximian.com>
19026 * TextControl.cs: Need to prevent wrap calculations when replacing
19027 text (this was there before i removed it accidently).
19028 - Don't update the cursor during the positioning, just set it to
19029 selection_start at the end of the operaion.
19031 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
19034 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
19036 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
19038 * MonthCalendar.cs: Added Click and DoubleClick events again,
19039 but this time they only hide Control's Click and DoubleClick.
19041 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
19043 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
19044 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
19046 2007-01-02 Jackson Harper <jackson@ximian.com>
19048 * TextBoxBase.cs: We move the caret with the split now, so we
19049 don't need to explicitly move the caret after splitting. This
19050 fixes the caret bumping down an extra line on Enter.
19052 2007-01-02 Miguel de Icaza <miguel@novell.com>
19054 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
19057 * ScrollableControl.cs: Add Scroll event.
19059 2007-01-02 Mike Kestner <mkestner@novell.com>
19061 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
19062 to fix all hdr height padding codepaths. Fixes #80207.
19064 2007-01-02 Chris Toshok <toshok@ximian.com>
19066 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
19067 setting it to the Control defaults anyway, and it being after the
19068 Dock set was screwing up layout.
19069 (set_Dock): don't short circuit out of setting base.Dock. Also,
19070 no need to call UpdateStatusBar here, as it'll be re-layed out if
19073 2007-01-02 Mike Kestner <mkestner@novell.com>
19075 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
19076 to header height for width == -1. Fixes the rest of #80207.
19078 2007-01-02 Mike Kestner <mkestner@novell.com>
19080 * ListView.cs: rework the mouse event forwarding everaldo added
19081 to translate the coordinates to the parent control not
19082 raise the parent events until after we've done our work. Hover
19083 needs more work, in the case where HoverSelection is on, because
19084 the item control receives more than one MouseHover per Enter
19085 event, so we need to ensure only the "first" hover gets forwarded.
19086 Opening a minor bug for that.
19088 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
19090 * CheckedListBox.cs: Fixed SelectionMode to match MS.
19091 * ListControl.cs: Implemented AllowSelection property. Removed extra
19093 * ListBox.cs: Implemented AllowSelection property.
19095 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19097 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
19098 SelectedItem, it prevent for errors when you must disable item
19099 before perform click. Fixes #80409.
19101 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19103 * MenuAPI.cs: Prevent second level and beyond submenus to close
19104 until first level when move out side of popup.
19106 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19109 - Down submenu positin in three pixels.
19110 - Closes sub menu when mouse leaves from menu. Fixes #80402.
19112 2007-01-02 Everaldo Canuto <everaldo@simios.org>
19114 * ThemeWin32Classic.cs:
19115 - Fix popup menu size adding one pixel on the top.
19116 - Down menu item border from two to one to mimic Win32.
19117 - Some source identation fixes.
19119 2007-01-01 Everaldo Canuto <everaldo@simios.org>
19121 * ThemeWin32Classic.cs: Use float numbers to calculate size and
19122 position of menu arrows, it fix wrong arrow size.
19124 2007-01-01 Everaldo Canuto <everaldo@simios.org>
19126 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
19127 instead of line, it simplify draw operation and fix it using 3D
19128 borders to mimic Win32.
19130 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
19132 * StatusStrip.cs: Add implementation of the sizing grip.
19134 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
19135 StatusStrip rendering.
19137 2006-12-31 Chris Toshok <toshok@ximian.com>
19139 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
19140 override the layout style (anchor/dock) of the control. assign to
19141 Dock instead. Fixes bug #80416.
19143 * ToolStrip.cs: same.
19145 2006-12-31 Andreia Gaita <avidigal@novell.com>
19147 * ContainerControl.cs: Use ContainerSelected flag to check if
19148 a Container is directly selected, or if Select is called on a
19149 non-container. If a container is directly selected, focus events
19150 should not be raised.
19151 Apply #80411 patch to throw exception on set_ActiveControl if
19152 control is the same as the current one.
19154 * Control.cs: Use ContainerSelected flag (see above).
19155 Add invalidation check to raise event but not invalidate if
19157 Apply #80411 patch.
19160 2006-12-31 Everaldo Canuto <everaldo@simios.org>
19162 * MenuAPI.cs: After click, dont close popup menu when menu is
19163 ContextMenu. Fixes #80399.
19165 2006-12-30 Chris Toshok <toshok@ximian.com>
19167 * ContainerControl.cs: make sure we throw the exception if the
19168 container control doesn't contain the control we're setting
19171 2006-12-30 Chris Toshok <toshok@ximian.com>
19173 * Control.cs (SetTopLevel): fix the exception raised by
19174 SetTopLevel for child controls.
19175 (set_Anchor): call UpdateDistances when setting the anchor type.
19176 This fixes bug #80336.
19178 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19180 * Theme.cs: For now, revert back to 8pt font.
19182 2006-12-29 Everaldo Canuto <everaldo@simios.org>
19184 * MenuAPI.cs: Set popup as active when open a ContextMenu.
19187 2006-12-29 Chris Toshok <toshok@ximian.com>
19189 * Control.cs: reorder the code in OnResize to give the same event
19192 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
19194 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
19195 TileHorizontally and TileVertically.
19197 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
19199 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
19200 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
19201 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
19202 Corrected copyright and email adress.
19204 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19206 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
19207 of Exception in FullPath property if no TreeView is associated with
19210 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
19212 * Theme.cs: Marked default_font as private, and initialize it in ctor
19213 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
19215 * ThemeGtk.cs: Removed default_font intialization.
19216 * ThemeWin32Classic.cs: Removed default_font initialization.
19218 2006-12-28 Chris Toshok <toshok@ximian.com>
19220 * Control.cs: fix a couple of place where we were creating handles
19221 more aggressively than we should be. Fixes ControlRefresh unit
19224 2006-12-28 Chris Toshok <toshok@ximian.com>
19226 * Control.cs: contrary to what the comment said, Control.Dock does
19227 not supercede Control.Anchor - the last one you assign to decides
19228 the layout behavior. so we need to keep track of which was the
19229 last set. Also, fix some of the affected property arguments in
19230 PerformLayout calls, and remove an redundant parent.PerformLayout
19233 Add a VisibleInternal property, which returns is_visible. We
19234 can/should get rid of all the usage of this field elsewhere.
19236 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19238 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
19239 control style, not DoubleBuffer. Added UseDoubleBuffering property
19240 that indicates whether doublebuffering is enabled and supported.
19241 (comment from and code based on Gert Driesen's patch in #80324).
19244 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19246 * Control.cs: Fixed a NRE.
19248 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19250 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
19253 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
19255 * Control.cs: Rewrote double buffering, now a seperate
19256 class handles all the buffering, no Graphics is disposed of
19257 until the painting is finished (earlier implementation
19258 would crash if the control was resized in the OnPaint,
19259 since it would cause the double buffer to be recreated
19260 and the old one disposed), a separate Graphics is
19261 created for every paint (MS behaviour and anyways the state
19262 of the Graphics would have to be saved and restored otherwise)
19264 * XplatUIDriver.cs:
19266 * XplatUI.cs: Added and implemented GetOffscreenGraphics
19267 so that we can get the graphics for the back buffer without
19268 having to create a new one and remove the offscreen_dc parameter
19269 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
19271 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19273 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
19274 Also make virtual all the key-related methods.
19276 * ListViewItem.cs: Make virtual the key related methods for
19277 ListViewSubItemCollection.
19279 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19283 * ThemeWin32Classic.cs:
19284 * Theme.cs: Initial support for Tile view in ListView,
19285 as well as the implementation of the required bits for it (Item
19288 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19290 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
19291 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
19292 Provide useful exception messages.
19294 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
19296 * TrackBar.cs: Remove a warning.
19297 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
19298 when used by DateTimePicker, fixes #80287. This also requires that
19299 MonthCalendar implements it's own drawing for the yearly updown control,
19300 otherwise the Capture tracking would be too complicated. Removed the Click
19301 and DoubleClick events (according to comments they were hiding the base class
19302 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
19303 raise these events, not that they cannot be raised. It is possible to raise
19304 them by calling OnClick and OnDoubleClick). Added two internal fields in
19305 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
19306 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
19307 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
19308 event, no longer needed.
19310 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19312 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
19313 true if new value differs from current value.
19315 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19317 * Control.cs: ControlCollection.Count must be public. Fixed build of
19320 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19322 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
19324 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
19326 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
19328 2006-12-26 Everaldo Canuto <everaldo@simios.org>
19330 * Control.cs: Invalidates control including when Width and Height is
19331 equal zero or is not visible, only Paint event must be care about
19332 this. Fixes #79913.
19334 2006-12-26 Chris Toshok <toshok@ximian.com>
19336 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
19337 more corcompare work.
19339 * DataGridView.cs: fix compiler warning.
19341 * ColumnHeader.cs: some corcompare work, and also take the
19342 opportunity to make the internal fields private.
19344 * ListView.cs: fix the fallout from the above field change.
19346 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
19348 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
19349 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
19350 ToolStripTextBox.cs: Fixes to events and corcompare.
19352 2006-12-26 Everaldo Canuto <everaldo@simios.org>
19354 * ListView.cs: Call owner.OnMousexx event to propagate events from
19355 item to ListView. Fixes #80367.
19357 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19359 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
19360 if value is less than one. ItemHeight should not be set to a value
19361 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
19362 Removed extra tabs.
19364 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
19366 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
19367 * ToolStripStatusLabel.cs: Add Spring for Moma.
19369 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19371 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
19372 Fixed code formatting. Removed debug code.
19373 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
19375 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
19377 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
19378 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
19379 ArgumentOutOfRangeException if ColumnCount is negative. In
19380 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
19381 less than 4 or higher than 32768.
19382 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
19383 Fixed FormatProvider to return CurrentCulture unless explicitly set.
19384 Fixed IsFormatProviderDefault to return true if FormatProvider has
19385 not been explicitly set.
19387 2006-12-25 Chris Toshok <toshok@ximian.com>
19389 * Application.cs: add a couple of 2.0 events.
19391 2006-12-25 Chris Toshok <toshok@ximian.com>
19393 * Control.cs: fix compiler warning.
19395 * AxHost.cs: corcompare fixes.
19397 * ApplicationContext.cs: corcompare fixes.
19399 2006-12-25 Chris Toshok <toshok@ximian.com>
19401 * Control.cs: only update dist_right/dist_bottom if the
19402 width/height is > 0. this fixes anchored controls being resized
19403 smaller until they disappear and then resized larger again.
19405 2006-12-25 Chris Toshok <toshok@ximian.com>
19407 * Control.cs: a couple of changes. Remove dist_left and dist_top,
19408 since they're nothing more than X/Left and Y/Top, respectively.
19410 Also, move back to a per-control Bitmap/Graphics for
19411 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
19412 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
19415 2006-12-25 Miguel de Icaza <miguel@novell.com>
19417 * MessageBox.cs: Implemented overload that takes a new "bool
19418 displayHelpButton" by adding a new internal field "show_help".
19419 When clicked this will raise the HelpRequested on the owner or the
19422 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
19423 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
19425 * ListView.cs: Add support ColumnWidthChanged and
19426 ColumnWidthChanging.
19428 Add support for ColumnReordered event.
19429 (ReorderColumn): Add NET_2_0 specific support for cancelling the
19432 Very nice codebase!
19434 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
19436 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
19438 2006-12-24 Chris Toshok <toshok@ximian.com>
19440 * GridTablesFactory.cs: 2.0 corcompare work.
19442 * ToolStripContainer.cs: add "override" to
19443 ContextMenuStripChanged, and remove the local event object.
19445 * ToolStripDropDown.cs: same with a couple properties.
19447 * ToolStripPanel.cs: same with AutoSizeChanged event.
19449 * TextBoxBase.cs: add "override" to AutoSizeChanged.
19451 * Form.cs: add the remaining 2.0 events, and do some corcompare
19454 * DateTimePicker.cs: add "new" to padding.
19456 * ButtonBase.cs: use Control's use_compatible_text_rendering.
19458 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
19460 * DataGridView.cs: PaddingChanged is overridden.
19462 2006-12-24 Chris Toshok <toshok@ximian.com>
19464 * Control.cs: corecompare work here too.
19466 * DataGridViewElement.cs, DataGridView.cs,
19467 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
19468 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
19469 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
19470 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
19473 2006-12-24 Miguel de Icaza <miguel@novell.com>
19475 * Control.cs: Switched the error message on the console for a
19476 todo. A review of the code will have to cope with this anyways
19477 (since its a large feature, it is in our radar) and it was
19478 producing too much output when running PDN.
19480 * ToolStripComboBox.cs: Set the text when the SelectedIndex
19481 changes. Applications depend on this (PDN 2.72)
19483 2006-12-23 Chris Toshok <toshok@ximian.com>
19485 * TableLayoutSettings.cs: finish up the corcompare work for this
19488 2006-12-23 Chris Toshok <toshok@ximian.com>
19490 * Control.cs: make SetImplicitBounds internal, do some futzing
19491 with LayoutEngine so that it's available in 1.1, and remove the
19492 entire duplicated code mess from PerformLayout. Use
19493 System.Windows.Forms.Layout.DefaultLayout instead.
19495 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
19497 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
19499 * Form.cs: Add MainMenuStrip property.
19501 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
19503 * Control.cs: Add ContextMenuStrip property and implementation.
19504 Fix ContextMenu implementation to show menu centered on control when
19505 activated using the keyboard instead of showing at screen (0,0).
19507 * ToolStripDropDown.cs: Fix needed overload of Show ().
19509 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19511 * Menu.cs: Name property added for 2.0 profile.
19513 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19515 * Menu.cs: Update information about FindMenuItem, method to be
19518 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19520 * MenuAPI.cs: When deselect items deselect also selected subitems.
19522 2006-12-23 Everaldo Canuto <everaldo@simios.org>
19524 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
19525 FindSubItemByCoord to found itens that is not active, also an
19526 cheking added to FindSubItemByCoord to search for items only
19527 in visible popup windows. Fixes #80274.
19529 2006-12-22 Everaldo Canuto <everaldo@simios.org>
19531 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
19532 internal property, it be care about change ExStyle.
19534 2006-12-22 Andreia Gaita <avidigal@novell.com>
19536 * ContainerControl.cs: set activeControl for parent forms up the
19537 tree when the new activecontrol is a container.
19538 When validating the active control, if it is a container, also
19539 raise up the validation for it's active control. Fixes #80280
19541 * Control.cs: Add internal property flag and check to prevent
19542 Focus events from getting raised when Select() is called for
19543 a ContainerControl. There are still too many focus events being
19544 raised at the moment though.
19545 Cleaned up the code a bit.
19547 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
19549 * Control.cs: Added all missing 2.0 events.and
19550 fixed a couple of corcompare issues.
19551 * TrackBar.cs: Implemented missing 2.0 bits.
19552 * MonthCalendar.cs,
19553 * DateTimePicker.cs,
19554 * MdiClient.cs: Fixed some corcompare issues.
19556 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19558 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
19559 SplitterPanel.cs: corecompare work.
19561 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19563 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
19564 Clean up warnings for BackgroundImageChanged and PaddingChanged
19565 events now that they are implemented in Control.cs.
19567 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
19569 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
19571 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
19572 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
19573 of TableLayoutPanel and supporting cast.
19575 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
19578 - GrabWindow now confines the mouse pointer to the confine window.
19579 - Added Win32ClipCursor and Win32GetClipCursor.
19582 - Added CaptureWithConfine to be able to capture and confine
19585 * InternalWindowManager.cs:
19586 - Call CaptureWithConfine instead of Capture if we're an
19587 MdiChild (fixes #79982).
19589 2006-12-21 Chris Toshok <toshok@ximian.com>
19591 * DataGrid.cs: guard against the initial state of selection, where
19592 selection_start == -1. make sure we only select from index >= 0.
19595 2006-12-21 Chris Toshok <toshok@ximian.com>
19597 * Control.cs: we don't need to be so draconian with
19598 UpdateDistances, and we thusly don't need to call it before
19599 calling PerformLayout in ResumeLayout. Fixes bug #80289.
19601 2006-12-21 Daniel Nauck <dna@mono-project.de>
19604 TextBox.cs: Implemented AutoComplete properties.
19606 2006-12-20 Chris Toshok <toshok@ximian.com>
19608 * DataGridView*.cs: some corecompare work.
19610 2006-12-20 Jackson Harper <jackson@ximian.com>
19612 * XplatUIX11.cs: We need to hide the caret when deleting it,
19613 otherwise you get carets left lying around everywhere.
19614 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
19615 prevents getting some weird half drawn caret tracers when
19617 * TextControl.cs: Attempt to reduce the number of times we need to
19618 recreate the caret.
19620 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
19622 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
19624 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19626 * DateTimePicker.cs:
19627 - Implemented missing 2.0 bits.
19628 - Changed some default values to match MS.
19630 2006-12-20 Jackson Harper <jackson@ximian.com>
19632 * TextBoxBase.cs: When changing the font across the document we
19633 can't recalculate after changing each line, since that will cahnge
19635 - PreferredHeight is a little different than i thought.
19636 - When backspacing, move the caret before we do the actual char
19637 delete, because when that delete crosses a wrap boundary the
19638 positional information will change.
19640 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
19642 * Control.cs: Added some missing 2.0 bits:
19643 BackgroundImageLayout, BackgroundImageLayoutChanged,
19644 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
19645 add IBindableComponent and IDropTarget implementation.
19647 * MonthCalendar.cs:
19648 - Added all missing 2.0 features:
19649 BackgroundImageLayout, RightToLeftLayout,
19650 OnHandleDestroyed, RightToLeftLayoutChanged,
19651 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
19653 - Rewrote all the BoldDate code, it was completely broken.
19654 - Fixed all the tests (the tests can now be re-enabled, the
19655 problems were not with the tests, but with the control, it was
19658 * DateTimePicker.cs: Changed the location where the
19659 MonthCalendar is shown.
19661 2006-12-19 Chris Toshok <toshok@ximian.com>
19663 * DataGridView.cs: add IDropTarget implementation.
19665 * ToolStripPanel.cs: add IDropTarget implementation.
19667 2006-12-19 Jackson Harper <jackson@ximian.com>
19669 * TextControl.cs: soft now means something different than what it
19670 used to mean, we want to move the caret regardless of whether or
19671 not this break was soft (would we really have wanted the caret
19672 to not move with the break in the old context?)
19673 * TreeView.cs: Make sure we factor in the vert scrollbar when
19674 calculating the horizontal scrollbar's maximum.
19676 2006-12-19 Andreia Gaita <avidigal@novell.org>
19678 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
19679 check for keywords in alternate casing, close bug #80049.
19681 2006-12-19 Chris Toshok <toshok@ximian.com>
19683 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
19684 methods (which all do nothing).
19686 * IDropTarget.cs: add the 4 missing methods.
19688 2006-12-19 Chris Toshok <toshok@ximian.com>
19690 * TableLayoutRowStyleCollection.cs: corcompare work.
19692 * TableLayoutSettings.cs: same.
19694 * TableLayoutStyle.cs: same.
19696 * TableLayoutColumnStyleCollection.cs: same.
19698 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
19700 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
19701 TableLayoutPanel I've had in my local tree for way too long.
19703 2006-12-19 Miguel de Icaza <miguel@novell.com>
19705 * TableLayoutSettings.cs: Finish the public API (still needs all
19706 the logic to update on changes).
19708 * TableLayoutPanelCellPosition.cs: new file.
19710 * TableLayoutRowStyleCollection.cs,
19711 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
19712 TableLayoutSettings.cs: Track the final 2.0 table api.
19714 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19716 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
19717 and Image List 2.0 members for ColummnHeader.
19718 * ListView.cs: Add key-related 2.0 methods for
19719 ColumnHeaderCollection.
19721 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
19723 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
19724 ArgumentNullException if items argument is null. Ignore null item in
19725 arrays. Removed extra tabs.
19727 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
19729 * MonthCalendar.cs: Fixed InvalidCastException.
19731 2006-12-19 Jackson Harper <jackson@ximian.com>
19733 * TextControl.cs: Don't increment the position here.
19734 - When calculating char positions only add in the line break size
19735 for hard line breaks.
19737 2006-12-19 Andreia Gaita <avidigal@novell.org>
19739 * SendKeys.cs: Changed some things to match ms.net behaviour
19740 when parsing shifted capital letters.
19742 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
19743 Add window handle as parameter to SendInput. X11 needs the
19744 window handle, and the handle being passed to it in the keys
19745 queue is the active control handle (which windows needs), not
19748 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
19749 to support SendKeys on X.
19751 * X11Keyboard: Implement helper method to lookup a linux keycode
19752 given the virtual keycode. Added table of keycode-2-virtualkey
19753 values to support this.
19755 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19757 * ListView.cs: Add support for SelectedIndexCollection
19758 and SelectedItemCollection 2.0 methods. Implement support
19760 * ListViewItem.cs: Add support for ListViewSubItemCollection
19761 2.0 methods. Also, fix an incorrect behavior of AddRange method
19762 (it shouldn't call Clear).
19763 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19765 2006-12-19 Jackson Harper <jackson@ximian.com>
19768 * TextBoxBase.cs: New args for FormatText
19769 * TextControl.cs: Rewrote the main drawing method, this version
19770 feels a little easier to understand and debug to me. Hopefully it
19771 does to others also
19772 - Fix FormatText to OR in the new formating values. Added
19773 FormatSpecified param, basically this works in the same way as
19774 BoundsSpecified in Control.
19775 - Set the caret properties when the caret is positioned.
19776 - When wrapping text make sure that we calculate the width of the
19778 - when calculating alignments we might have wrapped down to the
19779 next line, so don't search for an individual tag, search for the
19781 - We need to invalidate the selection area when we replace the
19784 2006-12-19 Daniel Nauck <dna@mono-project.de>
19786 * Application.cs: add Restart () 2.0 support
19788 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19790 * MenuItem.cs: Invalidate menu item rectangle after change Enable
19791 property. Fixes #80268.
19793 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19795 * MenuAPI.cs: Dont trigger select event when closes top menu
19796 item. Fixes #80270.
19798 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19800 * MenuAPI.cs: When you click on menuitem only trigger onselect
19801 event for top menu itens. Fixes #80271.
19803 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19805 * MdiWindowManager.cs: Make IconicBounds depend on
19806 the bottom of MdiClient, not the top (fixes #80267)
19808 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
19810 * MdiClient.cs: Added missing 2.0 attribute
19812 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19814 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19815 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19817 2006-12-18 Everaldo Canuto <everaldo@simios.org>
19819 * MenuAPI.cs: Fix click when menuitem is not popup,
19820 this regression was caused by last commit (#80272).
19822 2006-12-17 Everaldo Canuto <everaldo@simios.org>
19824 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19825 fire click event or close menu. Fixes #80272.
19827 2006-12-17 Daniel Nauck <dna@mono-project.de>
19829 * ListViewHitTestInfo.cs: add
19831 2006-12-17 Daniel Nauck <dna@mono-project.de>
19833 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19834 * FlatButtonAppearance.cs: add
19835 * DockingAttribute.cs: add
19837 2006-12-17 Chris Toshok <toshok@ximian.com>
19839 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19840 and rebind our columns when it does - this way, if you make
19841 changes to the DataTable (or set the Table attribute on a DataView
19842 after setting it as the DataGrid's DataSource, the changes are
19843 made visible.) Fixes bug #80107.
19845 2006-12-17 Daniel Nauck <dna@mono-project.de>
19847 * ListViewGroup.cs: add internal Location property for layouting.
19848 * Theme.cs: add abstract ListViewGroupHeight function.
19849 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19851 2006-12-16 Andreia Gaita <avidigal@novell.com>
19853 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19854 Added reset of selected index to 0 when adding first tab page.
19857 * NumericUpDown.cs: Fix NET_2_0 check
19859 2006-12-16 Daniel Nauck <dna@mono-project.de>
19861 * ListViewGroup.cs: fixed DefaultValueAttribute value
19863 2006-12-16 Daniel Nauck <dna@mono-project.de>
19865 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19867 2006-12-15 Miguel de Icaza <miguel@novell.com>
19869 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19870 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19871 ScrollableControl.cs: Add a handful of methods that are
19874 2006-12-15 Chris Toshok <toshok@ximian.com>
19876 * XplatUIWin32.cs: initial implementation of the Reversible
19877 drawing functions. there are some problems. DrawReversibleFrame
19878 doesn't seem to work at all for Dashed FrameStyle, and in the
19879 Thick case there are drawing errors at the corners (we probably
19880 need to bind Rectangle instead of doing moveto/lineto's.)
19882 2006-12-16 Andreia Gaita <avidigal@novell.com>
19884 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
19885 to send blocks of key messages. Send accumulates keys to send with Flush,
19886 while SendWait sends all keys immediately.
19888 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19889 XplatUIX11.cs, XplatUIX11-new.cs:
19890 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19891 to Win32 SendInput.
19892 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19894 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
19895 testing for ms.net on this class is very tricky, as the tests run too fast
19896 to allow the hook to release, essentially freezing the keyboard and the
19897 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
19900 2006-12-16 Daniel Nauck <dna@mono-project.de>
19902 * Padding.cs: fixed serialization compability to MS ("_var" field names),
19903 added missing attributes.
19905 2006-12-15 Daniel Nauck <dna@mono-project.de>
19907 * ListViewGroup.cs: Added missing attributes.
19908 * ListViewGroupCollection.cs: Added missing attributes.
19910 2006-12-15 Daniel Nauck <dna@mono-project.de>
19912 * ListViewItem.cs: fixed ListViewSubItem text property.
19914 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19916 * Control.cs: Added missing 2.0 attributes
19918 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19920 * MdiClient.cs: Added missing 2.0 attribute.
19921 * MonthCalendar.cs: Added some missing 2.0 attributes
19924 2006-12-15 Daniel Nauck <dna@mono-project.de>
19926 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19928 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
19930 * MainMenu.cs: Add the new 2.0 constructor to help out people
19931 using the MainMenu in VS2005.
19933 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19935 * MdiChildContext.cs: Removed it, no longer used.
19936 * MdiClient.cs: Added missing 2.0 attributes.
19938 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19940 * InternalWindowManager.cs: Fix a NullRef with previous
19941 changes for toolwindows.
19943 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
19946 - Added AfterTopMostControl to allow for certain controls
19947 to always stay on top when normal controls are brought to
19951 - (DrawInversibleRectangle): Get window rectangle from Win32
19952 in stead of from control, since Win32 doesn't calculate
19953 screen coords correctly from control's Location if it
19954 have docked siblings.
19956 * MdiWindowManager.cs:
19957 - Correct the control menu popup location when clicked on
19958 the maximized form icon. (fixes #80223.1)
19959 - Don't show moving rectangle if mouse hasn't moved from
19960 the original clicked point.
19961 - Removed FormGotFocus handler (not used).
19962 - Calculate the control buttons location from the main
19963 window's size and not client size (fixes #79770).
19964 - Form is now closed when the form icon is double-clicked
19966 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19968 * InternalWindowManager.cs:
19969 - Moved some MDI-only methods to MdiWindowManager.
19970 - Removed unused properties and methods.
19971 - Unified method naming for methods handling wm messages.
19972 - Moved all message handling to seperate methods for
19975 * ThemeWin32Classic.cs:
19976 - DrawManagedWindowDecorations now draws the title bar
19977 with a gradient brush.
19978 - Add a CPDrawButtonInternal that allows us to specify
19979 light, normal and dark colors for the buttons (control
19980 buttons for MDI children were drawn with the same light
19981 color as the background, therefore loosing the 3D effect).
19984 - Add a CapturedControl property that is used to
19985 determine the control to resize (defaults to parent).
19986 Needed for MdiClient, since its SizeGrip's parent is
19987 MdiClient, but the control to resize is the main form.
19990 - Set SizeGrip's CapturedControl to the main form in order
19991 to resize the main form and not the MdiClient.
19992 - Override AfterTopMostControl to leave the scrollbars
19995 2006-12-15 Daniel Nauck <dna@mono-project.de>
19997 * ListView.cs: fixed ListViewItemCollection AddRange and
19998 implemented ListViewItemCollection AddRange 2.0 support.
20000 2006-12-15 Daniel Nauck <dna@mono-project.de>
20002 * ListViewGroup.cs: Add.
20003 * ListViewGroupCollection.cs: Add
20004 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
20005 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
20006 stub for ImageKey 2.0 support.
20008 2006-12-14 Mike Kestner <mkestner@novell.com>
20010 * ListView.cs: add text padding to the autocalculation for columns
20011 of width -2. Fixes #80207.
20013 2006-12-14 Mike Kestner <mkestner@novell.com>
20015 * ListView.cs: add some index guarding for partial row navigation
20016 logic. Fixes #80250.
20018 2006-12-14 Mike Kestner <mkestner@novell.com>
20020 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
20021 are added or inserted to the collection. Fixes #81099.
20023 2006-12-13 Everaldo Canuto <everaldo@simios.org>
20025 * MenuAPI.cs: Closes menu when right click out side of popup
20026 it fix problem in ContextMenu and MainMenu. Fixes #80252.
20028 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20030 * ListViewItem.cs: Fix dumb error.
20032 * ListView.cs: Add Find and ContainsKey methods in
20033 ListViewItemCollection, and also return true for IsReadOnly
20034 and IsFixedSize (changes for 2.0).
20036 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
20038 * Control.cs: Allow Region to be set to null.
20040 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
20042 * MdiWindowManager.cs: Remove unused (commented out) code.
20043 * Form.cs: When the MdiChild is maximized, the form needs
20044 WM_NCMOUSELEAVE, so request it.
20045 * InternalWindowManager.cs:
20046 - Added tooltips to control buttons.
20047 - Removed duplicated control button handling code.
20048 - Removed unused (commented out) code.
20050 2006-12-12 Everaldo Canuto <everaldo@simios.org>
20052 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
20053 was used because we must set cursor without trigger ChangeCursor event
20054 and without change Cursor control property. Fixes #79963.
20056 2006-12-12 Andreia Gaita <avidigal@novell.com>
20058 * Control.cs: Check if Region setter value is null, and ignore
20060 2006-12-12 Jackson Harper <jackson@ximian.com>
20062 * TextControl.cs: We were almost always drawing one more line then
20063 needed, since the GetLineByPixel will return the last line found
20064 at that pixel. In most cases though, we were invalidating up to
20065 the junction between two lines.
20066 - Improve debug code.
20068 2006-12-12 Chris Toshok <toshok@ximian.com>
20070 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
20071 and FillReversibleRectangle.
20073 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
20074 and FillReversibleRectangle.
20076 * XplatUIWin32.cs: add stubs which do nothing for
20077 DrawReversibleFrame, DrawReversibleLine, and
20078 FillReversibleRectangle.
20080 * XplatUIOSX.cs: add stubs which raise NIE for
20081 DrawReversibleFrame, DrawReversibleLine, and
20082 FillReversibleRectangle.
20084 * XplatUIX11.cs: add working implementation for
20085 DrawReversibleFrame, DrawReversibleLine, and
20086 FillReversibleRectangle.
20088 * ControlPaint.cs: implement DrawReversibleFrame,
20089 DrawReversibleLine, and FillReversibleRectangle, by calling into
20090 the appropriate XplatUI method.
20092 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20094 * Form.cs: Make MdiClient have the focus even if it's
20095 not selectable, since it should receive WM_KEY* and WM_MOUSE
20096 messages. Fixes #79907.
20098 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20100 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
20101 queried after the window is created.
20103 * XplatUIX11.cs: Added SendParentNotify to implement
20104 WM_PARENTNOTIFY logic. Fixes #79965.
20106 * Control.cs: Added MakeParam.
20108 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20110 * MdiClient.cs: Resume Layout before setting window
20111 states (fixes #80201).
20113 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
20115 * MenuAPI.cs: Deselect a menu item after performing
20116 the click (fixes #80197).
20118 2006-12-11 Jackson Harper <jackson@ximian.com>
20120 * TextBoxBase.cs: We need to cap this value, since Maximum -
20121 ViewPortHeight can be less than zero.
20122 - Only do selection with the left mouse button.
20123 * TextBox.cs: Don't tell the world that we have a context menu.
20124 * Control.cs: New method so that we can control whether or not the
20125 context menu is visible outside MWF.
20127 2006-12-11 Everaldo Canuto <everaldo@simios.org>
20129 * ToolBarButton.cs: Fix text positon.
20131 2006-12-11 Miguel de Icaza <miguel@novell.com>
20133 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
20135 * Control.cs (DoubleBuffered): Add implementation.
20137 * Application.cs (OpenForms): Add.
20139 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
20141 * Form.cs: Use opacity instead of Opactiy to determine if we need
20142 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
20144 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
20146 * Control.cs: Fix NRE if Control.Site was set to null.
20148 2006-12-11 Chris Toshok <toshok@ximian.com>
20150 * Control.cs: ControlCollection.Remove should return if the arg is
20151 null, and ControlCollection.SetChildIndex should raise a ANE.
20153 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
20155 * Control.cs: Verify value set for Dock property. Code formatting
20158 2006-12-11 Jackson Harper <jackson@ximian.com>
20160 * TextControl.cs: Draw the caret and the selection when a flag is
20162 * TextBoxBase.cs: We want to draw the caret and the selection for
20163 TextBox but not for TextBoxBase.
20164 - If the window is resized and scrolling is no longer needed (the
20165 whole doc is visible) set the scroll position to zero.
20166 - The default SelectWord (the one TextBox uses) should move the
20167 caret to the end of the word.
20168 - SelectAll moves the caret to the end of the selection.
20169 * TextBox.cs: We don't selectall on focus, we just do it when the
20170 control is created.
20172 2006-12-11 Mike Kestner <mkestner@novell.com>
20174 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
20176 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20178 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
20180 * ListViewItem.cs: Add Name 2.0 property.
20182 2006-12-11 Andreia Gaita <avidigal@novell.com>
20184 * TabControl.cs: Set visibility on selected or default tab
20185 when tabcontrol handle is created, so that it's contents
20186 actually show up (duh). Fixes #80193
20187 Don't redraw the control if there is no handle created, as
20188 the selected index might be completely invalid. Added some tests
20191 2006-12-11 Everaldo Canuto <everaldo@simios.org>
20193 * ToolBar.cs: Uses maximun width and height of all buttons as
20194 button rectangle when ButtonSize specified, it looks strange but
20195 is what happens in Win32. Fixes #80189.
20197 2006-12-11 Jackson Harper <jackson@ximian.com>
20199 * TextControl.cs: Need to track undo levels ourself, since
20200 compound actions will mess them up.
20202 2006-12-10 Andreia Gaita <avidigal@novell.com>
20204 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
20205 SelectedIndex value is changed (even if it's not valid).
20206 Reset SelectedIndex to 0 when the handle is created and if
20207 the current index is invalid.
20208 Fixes SelectdeIndex unit tests and #80128
20210 2006-12-08 Chris Toshok <toshok@ximian.com>
20212 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
20213 calls EndEdit, it needs to be called before we set current_cell to
20214 its new value. Otherwise, we end up committing the value in the
20215 textbox to the new cell as well. Fixes bug #80160.
20217 2006-12-08 Chris Toshok <toshok@ximian.com>
20219 * Form.cs (set_CancelButton): if the button's DialogResult is
20220 None, set it to Cancel. Fixes bug 80180.
20222 2006-12-08 Jackson Harper <jackson@ximian.com>
20224 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
20225 to watch ourselves when setting the canvas size and setting the
20228 2006-12-08 Chris Toshok <toshok@ximian.com>
20230 * DataGrid.cs: comment out the two MakeTransparent calls for the
20231 time being so people using trunk (and not 1.2.2) on windows can
20232 actually use the datagrid. This deals with bug #80151.
20234 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
20236 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
20237 Graphics.DrawImage (image, int, int, int, int) overload instead
20238 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
20239 the dpi difference and was blurring images it drew.
20242 2006-12-08 Chris Toshok <toshok@ximian.com>
20244 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
20245 rowcnt is 0 (such as with an empty datasource), and make sure we
20246 initialize not_usedarea.Y to cells.Y, so we don't draw over the
20247 other areas (caption, parent row, etc, etc). Fixes bug #80095.
20249 2006-12-08 Chris Toshok <toshok@ximian.com>
20251 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
20254 2006-12-08 Chris Toshok <toshok@ximian.com>
20256 [ Fixes bug #80167 ]
20258 * ThemeWin32Classic.cs: don't draw the image if the button's flat
20259 style is FlatStyle.System.
20261 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
20262 ButtonBase.flat_style private, and switch uses of it to the public
20265 2006-12-08 Chris Toshok <toshok@ximian.com>
20267 [ Fixes bug #80121 ]
20269 * ThemeWin32Classic.cs: center the caption text in the datagrid
20272 * DataGrid.cs: lessen the amount we add to the caption height from
20273 6 to 2. 6 was making it huge.
20275 2006-12-08 Andreia Gaita <avidigal@novell.com>
20277 * UpDownBase: Handle MouseWheel call directly instead of capturing
20278 the inner textbox's OnMouseWheel. Fixes #80166
20280 2006-12-08 Jackson Harper <jackson@ximian.com>
20282 * TextControl.cs: We need to invalidate the textbox when we empty
20283 it (how had this not been discovered before?)
20285 2006-12-08 Jackson Harper <jackson@ximian.com>
20287 * TextBoxBase.cs: Reworked the mouse down code so I could get it
20288 to behave like MS, we now ignore the eventargs.Click and just
20289 track state ourself, which we were already doing anyways.
20290 - Constrain the double click handler to the double click size.
20292 2006-12-08 Chris Toshok <toshok@ximian.com>
20294 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
20295 direction if that scrollbar isn't shown. fixes bug #80158.
20297 2006-12-08 Andreia Gaita <avidigal@novell.com>
20299 * NumericUpDown.cs: Update value on getter. Fixes #79950
20301 2006-12-08 Chris Toshok <toshok@ximian.com>
20303 * MenuItem.cs: add back in the event cloning code. I didn't know
20304 how to do it in the face of the EventHandlerList work i'd done
20305 last week. Fixes bug #80183.
20307 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
20309 * Control.cs: Add an invalidate to the BackgroundImage setter.
20312 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
20314 * ToolStrip*: Add some small properties reported by MoMA, fix event
20315 firing and default properties based off of unit tests, and add some
20316 attributes based off of the class status page.
20318 2006-12-07 Jackson Harper <jackson@ximian.com>
20320 * TextBoxBase.cs: Take HideSelection into account when determining
20321 whether or not to show the selection.
20322 * RichTextBox.cs: After inserting the RTF into the document move
20323 the cursor to the beginning of the document.
20325 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
20327 * Control.cs: Remove static ArrayList "controls" which maintained
20328 a reference to every control created.
20329 * Application.cs: Create a static FormCollection to maintain a reference
20330 to every form created. Use it in places that formerly enumerated through
20331 the controls one looking for forms.
20332 * Form.cs: Add and remove self from above FormCollection.
20334 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
20336 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
20337 not libgdk (though it makes me wonder why I didn't have any
20340 2006-12-07 Chris Toshok <toshok@ximian.com>
20342 [ you had to know this was coming after that last commit...]
20344 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
20345 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
20346 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
20349 2006-12-07 Chris Toshok <toshok@ximian.com>
20351 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
20352 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
20353 all the behavior we need for double buffering.
20355 * XplatUIDriver.cs: implement the 3 double buffer methods using a
20356 client side Bitmap, just like the old Control-based double buffer
20357 code did. The methods are virtual, so each XplatUI driver
20358 subclass can replace the implementation to use a faster, platform
20361 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
20362 double buffer code, and clean things up a bit in the process.
20364 2006-12-06 Chris Toshok <toshok@ximian.com>
20366 * Control.cs: reindent WndProc.
20368 2006-12-06 Chris Toshok <toshok@ximian.com>
20370 [ I wanna be like BenM when I grow up ]
20372 * Hwnd.cs: create a single static Graphics object on the static
20373 Bitmap we create. use this for our text measurements.
20375 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
20376 This was causing us to allocate a backbuffer for every control,
20377 even when it wasn't flagged as double buffered. Instead use the
20378 single graphics instance. This might have implications for
20379 multithreaded applications. If we run into problems we can switch
20380 to creating 1 Graphics per control, on the static Hwnd bitmap.
20382 this change nets us a 7M savings in private dirty mappings when
20383 running FormsTest.exe.
20385 2006-12-06 Chris Toshok <toshok@ximian.com>
20387 * ListView.cs: the BackgroundImage override is just to set
20388 attributes. chain up to base.BackgroundImage.
20390 * RichTextBox.cs: same.
20392 * ToolBar.cs: same, but we need to also redraw the toolbar when it
20393 changes, so instead a handler for BackgroundImageChanged.
20395 * Control.cs: make background_image private.
20397 2006-12-06 Chris Toshok <toshok@ximian.com>
20399 * ScrollBar.cs: change the assignment of cursor to Cursor. not
20400 sure we even need this assignment, but roll with it for now.
20402 * Control.cs: make the cursor field private.
20404 2006-12-06 Chris Toshok <toshok@ximian.com>
20406 * Form.cs: we don't need to explicitly set ImeMode to
20407 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
20408 behavior in the face of ImeMode.Inherit.
20410 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
20411 change the ctor's assignment to use ImeMode instead of ime_mode.
20413 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
20414 ImeModeInherit. Only check for the parent's imemode (and return
20415 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
20416 This fixes the button unit test, which sets both ImeMode and
20417 DefaultImeMode to ImeMode.Disable.
20419 also make the ime_mode field private.
20421 2006-12-06 Chris Toshok <toshok@ximian.com>
20423 * Control.cs: make control_style private.
20425 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
20426 setting the styles to true, then setting them to false instead of
20427 reverting to their previous values.
20429 also, call SetStyle on the scrollbars instead of using
20430 control_style directly.
20432 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
20434 * FormCollection.cs: Implement. [2.0]
20436 2006-12-06 Chris Toshok <toshok@ximian.com>
20438 * Control.cs: make tab_stop private.
20440 * Label.cs: set TabStop, not tab_stop. reformat some event
20441 add/remove methods to make them more compact.
20443 2006-12-06 Chris Toshok <toshok@ximian.com>
20445 * RadioButton.cs: fix TabStop handling.
20447 2006-12-06 Chris Toshok <toshok@ximian.com>
20449 * TextBox.cs: remove the explicit assignments to has_focus.
20452 * ButtonBase.cs: remove the assignment to has_focus. Control will
20455 2006-12-06 Chris Toshok <toshok@ximian.com>
20457 * ButtonBase.cs: remove all uses of is_enabled from this code.
20458 it's always true when any of the code containing the checks is
20461 2006-12-06 Chris Toshok <toshok@ximian.com>
20463 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
20464 with different semantics (some are present in both 1.1 and 2.0
20465 profiles) so that we match MS's behavior in our unit tests.
20467 2006-12-06 Jackson Harper <jackson@ximian.com>
20469 * TextControl.cs: Make this operation undoable.
20470 * TextBoxBase.cs: Factor the border width into the preferred
20472 - implement Modified as per the spec.
20474 2006-12-06 Chris Toshok <toshok@ximian.com>
20476 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
20478 2006-12-06 Chris Toshok <toshok@ximian.com>
20480 * Control.cs: make right_to_left and context_menu fields private.
20482 2006-12-06 Chris Toshok <toshok@ximian.com>
20484 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
20485 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
20486 Control.child_controls private. switch all uses over to
20489 2006-12-06 Chris Toshok <toshok@ximian.com>
20491 * System.Windows.Forms/GroupBox.cs,
20492 System.Windows.Forms/AccessibleObject.cs,
20493 System.Windows.Forms/ErrorProvider.cs,
20494 System.Windows.Forms/Control.cs,
20495 System.Windows.Forms/UpDownBase.cs,
20496 System.Windows.Forms/ScrollBar.cs,
20497 System.Windows.Forms/DateTimePicker.cs,
20498 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
20499 System.Windows.Forms/ToolTip.cs,
20500 System.Windows.Forms/RadioButton.cs,
20501 System.Windows.Forms/LinkLabel.cs,
20502 System.Windows.Forms/Splitter.cs,
20503 System.Windows.Forms/TextBoxBase.cs,
20504 System.Windows.Forms/ToolStripTextBox.cs,
20505 System.Windows.Forms/ContainerControl.cs,
20506 System.Windows.Forms/ThemeWin32Classic.cs,
20507 System.Windows.Forms/SizeGrip.cs,
20508 System.Windows.Forms/ToolStripDropDown.cs,
20509 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
20510 private. switch all uses over to Control.Parent.
20512 2006-12-06 Chris Toshok <toshok@ximian.com>
20514 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
20515 Control does this before calling emitting these events.
20517 * TabControl.cs: same.
20519 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
20520 Control.client_rect.
20522 * ButtonBase.cs: use the ClientSize property instead of the
20525 * ScrollableControl.cs: same.
20527 * Control.cs: another pass at making properties private. also,
20528 move the initialization of tab_stop to the ctor.
20530 2006-12-05 Andreia Gaita <avidigal@novell.com>
20532 * TabControl.cs: Let the selected index be set freely if the
20533 control handle is not yet created.
20535 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
20537 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
20538 internal until I can rewrite DefaultLayout.
20539 * ToolStrip.cs: Fix build error and some general cleaning.
20540 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
20541 Fix build errors caused by making some of Control's fields private.
20543 2006-12-05 Jackson Harper <jackson@ximian.com>
20545 * TextControl.cs: Redo Insert a little so that it use IndexOf
20546 instead of Split, this prevents it from messing up on things like
20547 \n\n\n. Also more effecient since the split array doesn't need to
20549 * TextBoxBase.cs: AppendText doesnt handle multiline and non
20550 multiline text differently, this is the first of many fixes that
20551 will make multiline/non-multiline the same thing as far as the
20552 TextBoxBase is concerned.
20553 - Don't split the text and insert lines, this can lose some line
20554 endings (like is the last line a soft or hard break). Instead use
20556 - Fix an off by one when combining all the lines in the Text
20558 - Remove separate multiline handling from the Text getter/setter.
20560 2006-12-05 Chris Toshok <toshok@ximian.com>
20562 * ButtonBase.cs: a few changes:
20564 - don't reinitialize internal Control fields in the ctor when they
20565 have the same values as Control sets them.
20567 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
20568 this before calling those methods.
20570 - we don't need to call Refresh for anything. use Invalidate
20573 - OnEnabledChanged doesn't need to redraw at all - Control.cs
20574 calls Refresh in its OnEnabledChanged.
20576 - several of the events we were registered for in the ctor to
20577 redraw ourselves already include calls to Invalidate in the
20578 property setters that raise the events. remove the extra
20581 - reformat a switch statement that was 83274658 columns wide.
20583 2006-12-05 Mike Kestner <mkestner@novell.com>
20585 * ComboBox.cs: fix a unit test regression from a TextBox
20586 SelectionLength return of -1 when there's no selection.
20588 2006-12-05 Chris Toshok <toshok@ximian.com>
20590 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
20591 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
20592 cleaning up some of the internal Control fields being used by
20595 2006-12-05 Mike Kestner <mkestner@novell.com>
20597 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
20598 listbox after AddImplicit calls since it defaults to hidden. Add a
20599 hack to preserve requested heights across DropDownStyle changes.
20601 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
20603 * PropertyGrid.cs: Hide FindFirstItem method from public API.
20605 2006-12-05 Chris Toshok <toshok@ximian.com>
20607 * DataGridView.cs: fix compiler warnings.
20609 * PrintControllerWithStatusDialog.cs: same.
20611 * ToolBar.cs: same.
20613 * FolderBrowserDialog.cs: same.
20615 * Splitter.cs: same.
20617 * DataGridViewComboBoxCell.cs: same.
20619 * XplatUIWin32.cs: same.
20621 * PictureBox.cs: same.
20623 * Win32DnD.cs: same.
20625 * PageSetupDialog.cs: same.
20627 * FileDialog.cs: same.
20629 * PrintDialog.cs: same.
20631 * DataGridTextBoxColumn.cs: same.
20633 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
20635 2006-12-05 Chris Toshok <toshok@ximian.com>
20637 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
20638 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
20639 System.ComponentModel.EventHandlerList work.
20641 2006-12-05 Jonathan Chambers <joncham@gmail.com>
20643 * DrawTreeNodeEventArgs.cs: Added.
20645 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20647 * InternalWindowManager.cs: Remove an unused field.
20649 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20651 * InternalWindowManager.cs:
20652 - Save the point where the title bar is clicked.
20654 * MdiWindowManager.cs:
20655 - Only allow moving of the window as long as the
20656 clicked point on the title bar does not get out of
20657 MdiClient's rectangle. Fixes #79982.
20660 - Added Horizontal/VerticalScrollbarVisible.
20661 - Simplified the scrollbar sizing algorithm.
20662 - Cache the difference in scrolled value in
20663 H/VBarValueChanged and move the calculation out
20666 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
20668 * Control.cs: Make the Console.WriteLine in WndProc
20671 2006-12-05 Chris Toshok <toshok@ximian.com>
20673 * ToolStripManager.cs, ToolStripButton.cs,
20674 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
20675 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
20676 ToolStripSplitButton.cs, ToolStripSeparator.cs,
20677 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
20678 ToolStripProgressBar.cs, ToolStripContainer.cs,
20679 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
20680 to using System.ComponentModel.EventHandlerList.
20682 2006-12-04 Chris Toshok <toshok@ximian.com>
20684 * LinkLabel.cs: fix up compiler warnings.
20686 * TableLayoutSettings.cs: same.
20688 * TreeView.cs: same.
20690 * ToolBar.cs: same.
20692 * TabControl.cs: same.
20694 * RichTextBox.cs: same.
20696 * ListViewItem.cs: same.
20698 * PropertyGrid.cs: same.
20700 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
20704 * TextRenderer.cs: fix up compiler warnings.
20708 * Form.cs: corcompare fixes.
20710 * PictureBox.cs: fix up compiler warnings.
20712 * ImageListStreamer.cs: same.
20714 * TrackBar.cs: corcompare fix.
20716 * Control.cs: fix up compiler warnings.
20718 * SplitterPanel.cs: same.
20720 * NumericTextBox.cs: same.
20722 * ImageList.cs: same.
20724 * StatusStrip.cs: same.
20726 * ProgressBar.cs: corcompare fix.
20728 * ToolStripButton.cs: fix up compiler warnings.
20730 * ToolStripStatusLabel.cs: same.
20732 * ToolStripSplitButton.cs: same.
20734 * ToolStripSeparator.cs: same.
20736 * ToolStripProgressBar.cs: same.
20738 * ToolStripDropDownMenu.cs: same
20740 * ToolStripDropDown.cs: same.
20742 * ToolStripDropDownButton.cs: same.
20744 * ToolStrip.cs: same.
20746 * ToolStripControlHost.cs: same.
20748 * ToolStripContentPanel.cs: same.
20750 * ToolStripDropDown.cs: same.
20752 * ToolStripContainer.cs: same.
20754 * ToolStripPanel.cs: same, and add "new" where we need it to work
20755 with the new ArrangedElementCollection.
20757 * ToolStripItemCollection.cs: add "new" where we need it to work
20758 with the new ArrangedElementCollection.
20760 2006-12-04 Andreia Gaita <avidigal@novell.com>
20762 * TabControl.cs: Fix default tab selection to after TabControl
20763 gets focus and not before. Fixes #80128
20765 2006-12-04 Chris Toshok <toshok@ximian.com>
20767 * DataGridTableStyle.cs: remove the gross calling of
20768 datagrid.Refresh from here. It's a broken idea and it doesn't
20771 * DataGrid.cs: instead, just register/unregister from the
20772 DataGridTableStyle events in CurrentTableStyle. we play it
20773 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20774 even though some would most likely not require it. Fixes bug
20775 #80115 (and one portion of #80117 as a side effect).
20777 2006-12-04 Chris Toshok <toshok@ximian.com>
20779 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20780 so the textbox (if any) goes away. Fixes bug #80117.
20782 2006-12-04 Chris Toshok <toshok@ximian.com>
20784 * DataGridColumnStyle.cs: set the column's readonly property
20785 initially based on the property descriptor's IsReadOnly. Fixes
20788 2006-12-04 Chris Toshok <toshok@ximian.com>
20790 * ComboBox.cs: wrap the dropdown style changing work in
20791 SuspendLayout/ResumeLayout. Fixes bug #79968.
20793 2006-12-04 Jackson Harper <jackson@ximian.com>
20795 * TextBoxBase.cs: Fix off by one, since these are one-based.
20796 * TextBox.cs: Select all the text when we get focus. The TextBox
20797 does this but the RTB does not.
20799 2006-12-04 Chris Toshok <toshok@ximian.com>
20801 * DataGridTextBoxColumn.cs: remove some spew.
20803 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20804 but some part of me is saying "it shouldn't be here.." At any
20805 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
20808 2006-12-04 Chris Toshok <toshok@ximian.com>
20810 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20811 to reassign the propertydescriptor.
20813 2006-12-04 Jackson Harper <jackson@ximian.com>
20816 * TextControl.cs: Remove some unused variables. Maybe this will
20817 patch things up between mike and I.
20818 - don't split lines less then one char wide, if the viewport is
20819 that small text won't be visible anyways.
20821 2006-12-04 Jackson Harper <jackson@ximian.com>
20823 * TextBoxBase.cs: Default selection length is -1, need to do some
20824 more testing on windows to see when this is used for the property.
20825 - Redid the Lines [] property to that we properly remove soft line
20827 - added support for preserving carriage returns
20828 - CanUndo is not a variable like 'is undo enabled' it just returns
20829 true if there is undo operations available.
20830 - AppendText doesn't need to grab the last tag itself anymore,
20831 this happens automatically when we move the cursor.
20832 * TextControl.cs: Add CompoundActions to the undo class. This
20833 allows combining the other operations into one big option. ie a
20834 paste will combine { delete old, insert new, move cursor }
20835 - Add InsertString undo operation
20836 - New method for deleting multiline text
20837 - Add carriage returns to lines. So we can preserve carriage
20838 returns when text is 'roundtripped'
20840 2006-12-04 Chris Toshok <toshok@ximian.com>
20842 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20843 minimum 0. Fixes the scrollbar exception in bug #80136.
20845 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20848 * MdiWindowManager: Removed unused fields and methods.
20850 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20852 * StatusBar.cs: Update all panels when a AutoSize=Contents
20853 panel needs updating.
20855 * StatusBarPanel.cs: Remove twidth and only use initialize.
20858 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
20860 * Form.cs: When a form's MdiParent is set add it directly
20861 on top of the z-order in stead of relying on MdiClient's
20862 ActivateChild to do it. Fixes #80135.
20865 - Remove original_order, mdi_child_list is already doing
20867 - Create mdi_child_list on construction in
20868 stead of first use (avoids a few null checks).
20870 * MenuItem.cs: Use an already existing list of mdi children
20871 to get the correct order of children and remove the other
20874 2006-12-04 Chris Toshok <toshok@ximian.com>
20876 * PropertyGridView.cs: cached_splitter_location is only used in
20877 !DOUBLEBUFFER code.
20879 * PropertyGrid.cs: implement the ComComponentNameChanged event
20880 using Events, hoping that would fix the warning. Looks like a
20881 compiler bug instead (#80144).
20883 * PropertyManager.cs: remove unused method.
20885 2006-11-04 Everaldo Canuto <everaldo@simios.org>
20887 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
20888 include parentesis to fix expression evaluation. Fixes #79634.
20890 2006-11-02 Everaldo Canuto <everaldo@simios.org>
20893 - Changes to fix behavior in Menu control, some reported in #80097
20894 and other detected during behavior refactory like a select event
20896 - Remove unneded "if's" conditions.
20897 - Created an internal to flag when popup is active in control, we need
20898 it because in .NET you can have menu active but without popup active
20899 when you active menu using popup without visible items.
20900 - Mimic win32 behavior for Select and Popup events.
20901 - Dont open popup menu when you dont have visible subitems.
20902 - Do nothing when click on disabled menu item.
20903 - Some small changes to follow the coding style guidelines.
20904 - Unselect menu only when another control gives focus. Fixes #80097.
20905 - Remove unused code.
20907 * MenuItem.cs: internal VisibleItems method to check if menu
20908 theres visible subitems, it will be usefull to fix some
20909 behavior in Menu control.
20911 2006-11-01 Everaldo Canuto <everaldo@simios.org>
20913 * Timer.cs: Tag property for 2.0 profile.
20915 2006-12-01 Chris Toshok <toshok@ximian.com>
20917 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20919 * Win32DnD.cs: comment out some unused fields.
20921 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20922 some unused properties/methods.
20924 * XplatUIX11.cs: fix MousePosition so we override the base class's
20925 property instead of conflicting with it.
20927 * PictureBox.cs: comment out some unused fields
20929 * OSXStructs.cs: make some struct fields public.
20931 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20932 MousePosition so we override the base class's property instead of
20933 conflicting with it.
20935 * X11Dnd.cs: comment out some unused fields
20937 * X11DesktopColors.cs: fix some struct field visibility to quiet
20940 * X11Dnd.cs: remove some debug code.
20942 * ThemeClearlooks.cs: comment out unused field.
20944 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20946 * ThemeGtk.cs: comment out some unused pinvokes.
20948 * Timer.cs: remove some unused fields.
20950 * ThemeClearlooks.cs: comment out unused field.
20952 * UpDownBase.cs: comment out unused field.
20954 * DataObject.cs: comment out unused field.
20956 * DataGridBoolColumn.cs: reomve unused field.
20958 * DataGrid.cs: remove unused field.
20960 * Cursor.cs: remove old ToBitmap code.
20962 * ControlPaint.cs: remove unused method.
20964 * ScrollBar.cs: remove unused fields.
20966 * ComboBox.cs: remove unused field, and chain up to
20967 AccessibleObject ctor.
20969 * ListBox.cs: remove unused field.
20971 * ButtonBase.cs: wrap a couple fields in NET_2_0.
20973 * GridEntry.cs: remove unused fields.
20975 * Binding.cs: remove unused fields.
20977 * AxHost.cs: remove unused method.
20979 * ContainerControl.cs: remove unused field.
20981 * ScrollableControl.cs: remove unused fields.
20983 2006-12-01 Chris Toshok <toshok@ximian.com>
20985 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20986 the Where/WhereString stuff. it's easy enough to CWL
20987 Environment.StackTrace.
20989 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20990 unused private fields.
20992 2006-12-01 Jackson Harper <jackson@ximian.com>
20994 * TextControl.cs: Do not update the view while inserting multiline
20995 text. If we update the view we might wrap lines, before entering
20996 the new lines, which causes the new line insertion calculations to
20997 be totally fubared.
20998 - Remove an old TODO
20999 - Make debug output a little nicer
21001 2006-12-01 Chris Toshok <toshok@ximian.com>
21003 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
21005 2006-12-01 Chris Toshok <toshok@ximian.com>
21007 [ fix the majority of the CS0108 warnings we've been suppressing ]
21009 * TreeView.cs: mark BackgroundImageChanged as 'new'.
21011 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
21012 to "LayoutToolBar" to quiet mcs.
21014 * TabControl.cs: mark our ControlCollection class as 'new'.
21016 * TextBoxBase.cs: mark some events as 'new'.
21018 * Splitter.cs: TabStop is 'new'.
21020 * ControlBindingsCollection.cs: mark a few methods as new since
21021 they change the visibility from protected to public.
21023 * RadioButton.cs: DoubleClick -> base class, and remove unused
21026 * MonthCalendar.cs: ImeMode property -> base class, and mark many
21029 * NumericUpDown.cs: TextChanged -> base class.
21031 * CheckedListBox.cs: mark our ObjectCollection class as new to
21034 * FolderBrowserDialog.cs: make HelpRequest event new and have it
21035 muck with the base class.
21037 * StatusBar.cs: fix some mcs warnings about Update being the same
21038 name as a base class method.
21040 * RichTextBox.cs: mark some events as new, and make them do things
21041 to the base class impl.
21043 * UserControl.cs: mark TextChanged as new, and have it manipulate
21046 * UpDownBase.cs: mark some things new.
21048 * CheckBox.cs: mark DoubleClick "new", and add some text about
21049 what we need to look at.
21051 * Panel.cs: make the events "new", and manipulate the base
21052 version. these are just here for attributes.
21054 * AccessibleObject.cs: make owner private.
21056 * Control.cs: deal with AccessibleObject.owner being private.
21057 cache our own copy if we need it.
21059 * Button.cs: add "new" to the DoubleClickEvent.
21061 * ListBox.cs: no need to track our own has_focus here. let
21062 Control.has_focus do it for us. Also some other work to clear up
21063 warnings about not overriding base class methods of the same name.
21065 * ComboBox.cs: clear up some warnings about not override base
21066 class methods of the same name.
21068 2006-12-01 Chris Toshok <toshok@ximian.com>
21070 * Form.cs: flag a few things as "new" to quiet some of the mcs
21075 * PrintPreviewDialog.cs: same.
21077 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
21078 now DGV isn't so horrible on the class status page. also, move
21079 all events to using System.ComponentModel.EventHandlerList. my
21082 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
21084 * MdiWindowManager.cs:
21085 - Set form to active mdi child if shown,
21086 and update the active mdi child to the next
21087 remaining child in the z-order if the form is hidden.
21090 - Track if the form has been visible and if its
21091 visibility is beeing changed, so that the MdiClient
21092 can properly decide the ActiveMdiChild. The MdiClient
21093 cannot track this since the form can change visibility
21094 before MdiClient is created.
21097 - Don't activate anything of the parent form is changing
21099 - Rework ActiveMdiChild to only return visible mdi
21100 children and take into account several other corner
21103 2006-12-01 Chris Toshok <toshok@ximian.com>
21105 * IBindableComponent.cs: new 2.0 interface.
21107 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
21109 * DataGrid.cs: Font for caption area is bold by default.
21111 2006-12-01 Everaldo Canuto <everaldo@simios.org>
21113 * Menu.cs: Tag property for 2.0.
21115 2006-11-01 Everaldo Canuto <everaldo@simios.org>
21117 * ThemeWin32Classic.cs: Adjust menu separator drawing.
21119 2006-12-01 Chris Toshok <toshok@ximian.com>
21121 * TreeView.cs: doh, the Begin* events should be
21122 TreeViewCancelEventHandler.
21124 2006-12-01 Chris Toshok <toshok@ximian.com>
21126 * Form.cs: Form.ControlCollection already stores off the
21127 form_owner field. don't access the base class's internal "owner"
21130 * Control.cs: make all the fields in Control.ControlCollection
21131 private. there's no need for any internal fields here.
21133 2006-12-01 Chris Toshok <toshok@ximian.com>
21135 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
21136 OnHandleCreated. Fixes bug #80109.
21138 2006-12-01 Chris Toshok <toshok@ximian.com>
21140 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
21141 SplitContainer.cs, Control.cs, StatusStrip.cs,
21142 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
21143 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
21144 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
21145 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
21146 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
21147 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
21148 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
21149 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
21150 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
21151 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
21153 do most of the work to convert our code over to use
21154 System.ComponentModel.Component.Events for
21155 adding/removing/dispatching events.
21158 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
21160 * DataGridView.cs: Fix an ArgumentNullException reported
21161 twice today in IRC.
21163 2006-11-30 Mike Kestner <mkestner@novell.com>
21165 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
21166 grabbed listbox. Fixes #80036 and #80101.
21168 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
21170 * Message.cs: Changed ToString() to match MS.
21172 2006-11-30 Jackson Harper <jackson@ximian.com>
21174 * TextBoxBase.cs: You can still change the selected text on a read
21176 * TextControl.cs: Lower magic number for wrap calculations. This
21177 lets text get closer to the right (far) edge.
21179 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
21181 * Control.cs: Tweak 2.0 layout properties.
21182 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
21183 * TextRenderer.cs: Add a new overload.
21184 * ToolStrip*: Huge amount of changes and new features.
21186 2006-11-30 Mike Kestner <mkestner@novell.com>
21188 * ComboBox.cs: fixes for LargeChange and Maximum to get the
21189 scroll range correct. Fixes #79994.
21191 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
21193 * MdiWindowManager.cs: Update main form's text when
21194 a form is closed. (fixes #80038)
21196 2006-11-30 Everaldo Canuto <everaldo@simios.org>
21199 - Fix an regression in ButtonSize.
21200 - Get ImeMode default value change to "Disable".
21201 - Get ShowTooltips default value change to true, default value is
21202 "false" but after make a test in .NET we get "true" result as default.
21204 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
21206 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
21208 2006-11-29 Chris Toshok <toshok@ximian.com>
21210 * XplatUIWin32.cs (GetWindowTransparency): check return value of
21211 GetLayeredWindowAttributes. if it's 0, return 1.0, as
21212 SetWindowTransparency hasn't been called.
21214 2006-11-29 Chris Toshok <toshok@ximian.com>
21216 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
21218 (set_AllowTransparency): reorder things a little so that the
21219 WS_EX_LAYERED style is removed properly.
21221 2006-11-29 Chris Toshok <toshok@ximian.com>
21223 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
21225 * Form.cs: only call the XplatUI transparency method (get/set) if
21226 SupportsTransparency says it's supported. Otherwise fallback to
21227 doing nothing (in the set case) or returning the instance field we
21228 cache (in the get case).
21230 * XplatUIStructs.cs: add TransparencySupport flag enum.
21232 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
21233 change to SupportsTransparency.
21235 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
21236 TransparencySupport.None from SupportsTransparency.
21238 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
21239 TransparencySupport.Set from SupportsTransparency.
21241 * XplatUIWin32.cs: implement GetWindowTransparency calling
21242 GetLayeredWindowAttributes, and implement SupportsTransparency by
21243 checking whether or not both
21244 GetWindowTransparency/SetWindowTransparency are available
21245 entrypoints. We need to do this since SetWindowTransparency is
21246 available as of win2k, but GetWindowTransparency requires winxp.
21249 * XplatUI.cs: Add GetWindowTransparency, and change
21250 SupportsTransparency to allow for either/both Get/Set.
21252 2006-11-29 Chris Toshok <toshok@ximian.com>
21254 * DataGrid.cs: keep from going into an infinite loop redrawing a
21255 datagrid that has no datasource. Fixes bug #80033.
21257 2006-11-29 Chris Toshok <toshok@ximian.com>
21259 * MenuItem.cs: fix the NRE when we assign text (and therefore call
21260 Invalidate) before the mainmenu has been assigned to a control.
21262 2006-11-29 Chris Toshok <toshok@ximian.com>
21264 * DataGrid.cs: detect when we should be double the double click
21265 row/column autosize stuff, although that codepath has yet to be
21266 written. part of the work for bug #79891.
21268 2006-11-29 Chris Toshok <toshok@ximian.com>
21270 * Binding.cs (SetControl): fix unit test.
21272 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21274 * PageSetupDialog.cs: Validate the margins and set them in
21276 * NumericTextBox.cs: New class to mimic the behavior of the
21277 textboxes used in the printing dialogs.
21279 2006-11-29 Andreia Gaita <avidigal@novell.com>
21281 * Form.cs: Revert previous change (remove call UpdateBounds
21282 from form constructor), because it messes with the handle creation
21283 order, and that one needs lots and lots of love.
21284 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
21285 for valid printer and throw InvalidPrinterException if document
21286 is set but printer not valid), adding a MonoTODO. Once
21287 handle creation is done properly, we can put this back in.
21289 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21291 * MenuItem.cs: Create a invalidate method for menu item, to be
21292 calling from set text, it make text changes to imadiate update
21293 on screen. Fixes #80013.
21295 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21297 * ToolBar.cs: Fixes and simplify toolbar button layout, it
21298 fixes bug #80070 and some other problem on toolbar buttons
21301 2006-11-28 Everaldo Canuto <everaldo@simios.org>
21303 * ThemeWin32Classic.cs: Paint toolbar toggle button background
21304 with dotted brush. Fixes #79564
21306 2006-11-28 Andreia Gaita <avidigal@novell.com>
21308 * Form.cs: Removed call to UpdateBounds on Form
21309 constructor, it was causing a call to CreateHandle
21310 before it was supposed to.
21311 * PrintControllerWithStatusDialog: Applied patch
21312 by Chris Toshok to hide controller when there are
21313 no printers available.
21314 PrintDialog.cs: initialize printer settings to
21315 null - correct DefaultValues test #5
21316 * PrintPreviewControl.cs: Move PrintController
21317 initialization to GeneratePreview
21318 * PrintPreviewDialog.cs:
21319 - Remove Preview generation from Document_set(). It is
21321 - Throw InvalidPrinterException on CreateHandle if
21322 a Document is set but there are no printers or
21323 printer is not valid.
21324 * ThemeWin32Classic: don't paint PrintPreviewControl
21325 if there is nothing to paint
21327 2006-11-28 Miguel de Icaza <miguel@novell.com>
21329 * Form.cs: Add another popular method.
21331 * TabPage.cs: ditto.
21333 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21335 * MenuItem.cs: Fixed a warning.
21336 * InternalWindowManager: Fixed a warning.
21338 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21341 - When cloning a menu also clone MdiList and clone the
21342 window menu items properly (as the forms and menuitems
21343 are kept in an internal hashtable, these need updating
21345 - Rewrote the window menu code, menu items are added in the
21346 order the forms were added to their parent, and they are
21347 updated every time the window menu is shown (before the
21348 list was only generated once, in the current order of the
21349 forms, and would never be updated). A checkmark is shown
21350 next to the item corresponding to the active mdi child.
21352 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21354 * XplatUIStructs.cs:
21355 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
21358 - Added TME_NONCLIENT to TMEFlags.
21359 - Handles WM_NCMOUSEMOVE in GetMessage to
21360 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
21362 * MdiWindowManager:
21363 - Now merges mdi child menu to parent menu when maximized.
21364 - Recalculate NC areas of both mdi child and mdi parent.
21366 on window state and size changes.Fixes #79844 (3).
21367 - Handle WM_NCCALCSIZE to properly calculate borders.
21370 - Add/remove to the mdi containers list of mdi children
21371 in the order they are added.
21372 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
21373 to the maximized mdi child.
21375 * InternalWindowManager.cs:
21376 - Only execute a click on the control buttons on the mouse up,
21377 not on the mouse down. Show the state of the button
21378 (was only showing Normal state, never Pressed state). The
21379 pressed button now follows the mouse (if you click the Close
21380 button and move the mouse over the Maximize button, the
21381 Maximize button will be shown as pressed). Since Win32 does
21382 not generate WM_NCLBUTTONUP if you release the button outside
21383 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
21386 * ThemeWin32Classic.cs:
21387 - Draw a missing border around mdi child forms. Fixes #79844 (2).
21390 - Added a list of forms which contains the order the forms are
21391 added to the mdi parent.
21392 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
21393 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
21394 - If the active form changes set the scrollbars to the top
21395 of the Z order, otherwise the form could hide them.
21396 - Scrollbars are now sized according to ClientSize, not
21397 to Size, and they take into account the other scrollbar
21398 to determine maximum.
21400 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
21403 * XplatUIDriver.cs:
21407 - Added RequestAdditionalWM_NCMessages for windows to
21408 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
21409 Currently only implemented in XplatUIWin32.
21411 2006-11-27 Chris Toshok <toshok@ximian.com>
21413 * Hwnd.cs: only add the hwnd to the windows hash in
21414 set_WholeWindow and set_ClientWindow if whole_window/client_window
21415 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
21417 2006-11-27 Mike Kestner <mkestner@novell.com>
21419 * ComboBox.cs: remove redundant OnDropDown call. It is called
21420 from the ComboListBox.ShowWindow code. Fixes #79969.
21422 2006-11-27 Chris Toshok <toshok@ximian.com>
21424 * Hwnd.cs: remove the setters for ExposePending and
21425 NCExposePending - noone uses them.
21427 2006-11-27 Jackson Harper <jackson@ximian.com>
21429 * TextControl.cs: new param for ReplaceSelection which determines
21430 whether we select the new selection, or set the cursor to the end
21431 of the new selection.
21432 * TextBoxBase.cs: Use new param for ReplaceSelection. When
21433 pasting, select the new text.
21434 * RichTextBox.cs: Use new param for ReplaceSelection.
21436 2006-11-27 Jackson Harper <jackson@ximian.com>
21438 * TextBoxBase.cs: Set the selection to the caret after the caret
21439 is moved, otherwise they get out of sync.
21441 2006-11-26 Everaldo Canuto <everaldo@simios.org>
21443 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
21446 2006-11-26 Everaldo Canuto <everaldo@simios.org>
21448 * ThemeWin32Classic.cs:
21449 - Fix toolbar drop down arrow position.
21450 - Fix drop down appearance when ToolBar.Appearance is normal,
21453 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
21455 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
21456 * Control.cs: Same.
21457 * UpDownBase.cs: Same.
21458 * ButtonBase.cs: Same.
21459 * ScrollBar.cs: Same.
21460 * TrackBar.cs: Same.
21461 * PictureBox.cs: Same.
21462 * UserControl.cs: Same.
21464 * ListControl.cs: Same.
21465 * TextBoxBase.cs: Same.
21466 * ListView.cs: Same.
21467 * RichTextBox.cs: Same.
21468 * TreeView.cs: Same.
21470 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
21473 - Text label for where
21474 - Text label comment was not shown
21476 2006-11-23 Everaldo Canuto <everaldo@simios.org>
21478 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
21480 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21482 * InternalWindowManager.cs:
21483 - Handle WM_PARENTNOTIFY to activate the form
21484 if any child control is clicked.
21485 - The form is only sizable if not minimized.
21487 * MdiWindowManager.cs:
21488 - Save the IconicBounds if the form is moved.
21489 - Rework SetWindowState, now the window bounds
21490 are stored only if the old window state is Normal.
21493 - In SetWindowStates store the old window state if
21494 the window is maximized and restore window state if
21495 the window looses focus.
21496 - Don't handle any scrollbar value changes if
21497 initializing the scroll bars. Fixes #79771.
21498 - Reworked ArrangeIconicWindows. Current algorithm
21499 tests bounds agains all other minimized windows, if
21500 any intersections create new bounds (going left to
21501 right, bottom to top) and then test again. When
21502 successful the bounds are saved and never computed
21503 again. Fixes #79774.
21505 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21507 * InternalWindowManager.cs: Added HandleTitleBarUp.
21509 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21511 * NumericUpDown.cs: In .NET 1.1, user entered text is still
21512 hexadecimal in ParseUserEdit.
21515 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
21517 * MdiWindowManager.cs:
21518 - Handle a click on the form's icon to show the
21519 system menu (when maximized). Fixes #79775.
21520 - Change the existing click handler for the form's
21521 icon when not maximized to show on MouseUp.
21524 * Form.cs: In OnResize only layout the mdi child's
21525 parent if it actually has a parent. Might not if
21526 the window is closing.
21529 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21531 * MdiClient.cs: Ignore active MDI client for text of parent, if
21532 child has no text set.
21534 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
21536 * ToolBar.cs: Fixed ToString to match MS.
21538 2006-11-22 Andreia Gaita <avidigal@novell.com>
21541 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
21542 update inner values on set. Fixes #79966.
21543 - Override OnLostFocus to update value on NET 2. Fixes #79950.
21544 - Fix hexadecimal parsing.
21546 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
21547 parent. Fixes #79957
21549 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
21551 * Control.cs: After calling SetWindowsPos in SetBoundsCore
21552 the actual size has to be queried, since if height /
21553 width is negative Win32 changes it to 0.
21554 Fixes #79999 on Windows.
21556 * XplatUIX11.cs: Set height / width to 0 if negative
21557 in SetWindowPos. Fixes #79999 on Linux.
21559 2006-11-22 Everaldo Canuto <everaldo@simios.org>
21561 * ThemeWin32Classic.cs: Fix text redenring when button is
21564 2006-11-22 Everaldo Canuto <everaldo@simios.org>
21566 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
21567 and later navigate by mouse. Fixes #79528.
21569 2006-11-21 Everaldo Canuto <everaldo@simios.org>
21571 * ToolBar.cs: Set default value for TabStop to false in
21572 constructor, it fixes remaining behavior of bug #79863.
21574 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
21576 * MdiWindowManager.cs:
21577 * InternalWindowManager.cs:
21578 - Moved a few methods specific to Mdi from
21579 InternalWindowManager to MdiWindowManager.
21582 2006-11-21 Chris Toshok <toshok@ximian.com>
21584 * XplatUIOSX.cs: stub out InvalidateNC.
21586 * XplatUIWin32.cs: implement InvalidateNC using the call I found
21587 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
21589 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
21591 * XplatUIDriver.cs: add InvalidateNC abstract method.
21593 * XplatUI.cs: add InvalidateNC.
21595 2006-11-21 Everaldo Canuto <everaldo@simios.org>
21597 * ToolBar.cs: Invalidate complete button area when pressed status
21599 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
21600 * ThemeWin32Classic.cs: Increase vertical and horizontal position
21601 by 1 when button is pressed.
21603 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21605 * ToolButton.cs: Invalidate middle of DropDown button when
21606 ToolBar theres DropDownArrows.
21607 * ThemeWin32Classic.cs: Change position of DropDown arrow and
21608 fix DropDown drawing operations.
21610 2006-11-20 Chris Toshok <toshok@ximian.com>
21612 * NativeWindow.cs: fix the formatting of functions ('{' on the
21613 following line), and enable the thread exception dialog.
21615 * Application.cs: remove the duplicate exception catching from
21618 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21620 * Toolbar.cs: Triggers button click event when click on icon
21621 of dropdown ToolBarButton. Fixes #79912.
21623 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
21626 * ThemeWin32Classic.cs:
21627 - Added a property WindowBorderFont to enable themeing
21628 of mdi child windows' Text.
21630 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
21632 * InternalWindowManager.cs:
21635 * MdiWindowManager.cs:
21636 - If mdi child is maximized, set mdi parent's
21637 text to "Parent - [Child]". Fixes #79770.
21638 - If there is any maximized mdi child windows, only the active
21639 window (and any new windows) is maximized, the rest are normal.
21640 - On a WindowState change only save mdi child's window bounds
21641 if the old window state was normal. Fixes #79774.
21642 - The scroll bars are now calculated on hopefully all
21643 necessary events. Fixed #79771 / #79844->6 / #79906.
21644 - MdiClient.SizeScrollBars() now takes into account docked
21645 controls in the parent when calculating available space.
21646 - InternalWindowManager now always repaints the entire title
21647 area. Fixes #79844->1/4/5.
21648 - Added RequestNCRecalc on mdi child windowstate changes.
21651 2006-11-20 Mike Kestner <mkestner@novell.com>
21653 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
21654 in the MouseUp handler of the listbox and move the return handling
21655 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
21657 2006-11-20 Everaldo Canuto <everaldo@simios.org>
21659 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
21661 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
21663 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
21664 working in 1.2.x anymore. So, updated.
21666 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
21668 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
21669 NumberGroupSeparator of current culture instead of assuming en-US.
21672 2006-11-17 Mike Kestner <mkestner@novell.com>
21674 * Control.cs: Add the concept of implicit bounds setting so that
21675 dock/undock round trips preserve explicitly set size/locations.
21678 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
21680 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
21681 can't handle those filters. (Fixes bug #79961)
21683 2006-11-17 Chris Toshok <toshok@ximian.com>
21685 [ fixes the exit/crashes associated with #79835. it's clearly
21686 suboptimal though, we need to figure out a better way to solve
21689 * PrintPreviewControl.cs: deal with the new invalid printer
21692 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
21693 and return false (so CommonDialog.ShowDialog doesn't actually show
21696 * PrintDialog.cs: enable/disable the Ok button depending on
21697 whether or not the printer is valid.
21699 * CommonDialog.cs (ShowDialog): only actually show the form if
21700 RunDialog returns true.
21702 2006-11-17 Jackson Harper <jackson@ximian.com>
21704 * TextControl.cs: When soft splitting a line, mark it as a soft
21705 split line. Also carry over the current line break to the next
21708 2006-11-17 Chris Toshok <toshok@ximian.com>
21710 * XplatUIX11.cs: when scrolling a window with an invalid area, we
21711 only want to shift the part of the invalid area that overlaps the
21712 area we're scrolling. we also don't want to clear the invalid
21713 area unless the invalid area was entirely contained within the
21716 2006-11-16 Chris Toshok <toshok@ximian.com>
21718 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
21719 also make sure to free the memory returned by XGetWindowProperty
21722 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
21724 2006-11-16 Chris Toshok <toshok@ximian.com>
21726 * XplatUI.cs: add a new super secret way to get at the totally
21727 unsupported X11 backend.
21729 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
21731 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
21733 2006-11-16 Jackson Harper <jackson@ximian.com>
21735 * TreeView.cs: Allow more explicit setting of top node position
21736 for scrollbars. Slower algo, but more accurate.
21737 - CollapseAll should maintain the current top node.
21738 * TextBoxBase.cs: When positioning the caret, use the line, pos
21739 method, since the x, y method does not grab the correct tag, and
21740 the caret height never gets set correctly. (Maybe I should just do
21741 away with the caret having its own height, and always use the
21742 carets current tag for height).
21744 2006-11-16 Jonathan Pobst <monkey@jpobst.com
21746 [Fixes 79778, 79923]
21748 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
21749 Parent to the FosterParent instead.
21751 2006-11-16 Jackson Harper <jackson@ximian.com>
21753 * TreeView.cs: Need to recalc the topnode when we expand or
21754 collapse. The scrolling methods can't handle this on their own,
21755 since they use differences between the last scroll position, and
21756 those difference get completely messed up since we are expanding
21757 nodes. This problem should probably be fixed in the scrolling
21758 methods, so they can figure out exactly where they are, but this
21759 will slow things down a little.
21760 * ThemeWin32Classic.cs: Special case for groupboxes with empty
21761 strings, makes nunit-gui look a lot nicer.
21763 2006-11-16 Chris Toshok <toshok@ximian.com>
21765 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21766 the broken multithreaded event handling we have in here. File
21767 this entry under "Why we should move to the new X11 backend".
21769 Any thread can make it into UpdateMessageQueue, which gets events
21770 from the X socket - some of which could belong to hwnds being
21771 managed by a different thread. We can also have multiple threads
21772 in UpdateMessageQueue at the same time, with each one reading from
21773 the X socket. This leads to many problems, with the following
21776 We can't use hwnd.Queue.Enqueue anywhere in here and must use
21779 The MotionNotify compression we do can't work across threads
21780 (without locking the entire queue, perhaps) since we call
21781 hwnd.Queue.Peek, so we just punt and don't compress motion events
21782 unless the owning thread is the one which got the X event.
21784 ConfigureNotify is another fun one, since it modifies the hwnd's
21785 bounds and then enqueues the event. We add a lock to Hwnd which
21786 is held when setting configure_pending to true (and enqueuing the
21789 There is a race wrt the wake socket. we need to make sure that
21790 only 1 thread is waiting on that socket, or else a thread could
21791 sleep waiting for data that never comes. It's difficult (but not
21792 impossible) to make happen, because it seems to require something
21793 like the following:
21795 1. Thread 1 polls on wake_receive
21797 2. poll returns saying there's data to be read on
21800 3. Thread 2 polls on wake_receive and immediately returns
21801 saying there's data to be read.
21803 4. Thread 2 reads the wakeup byte from wake_receive
21805 5. Thread 1 attempts to read the wakeup byte from
21808 6. Thread 2 exits (due to a form closing, perhaps).
21810 7. Thread 1 blocks forever.
21814 Fixing the Expose handling isn't done yet, and the races inherent
21815 in that piece of code are responsible for the drawing mistakes you
21816 see when generating expose events in a MT app (like NPlot). This
21817 one is the likely to be the hardest to bandaid, and it doesn't
21818 appear to cause anything but drawing problems. The other issues
21819 caused apps to exit or hang.
21821 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21822 called from a different thread than the one that should be calling
21825 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21827 2006-11-15 Chris Toshok <toshok@ximian.com>
21829 * Application.cs: null out the context's MainForm when we exit
21830 RunLoop. Fixes a newly checked in unit test as well as the last
21831 ODE from bug #79933.
21833 2006-11-15 Chris Toshok <toshok@ximian.com>
21835 * Form.cs (set_Owner): allow a null value so we can clear the
21837 (Dispose): set all our owned_form's Owner properties to null, and
21838 clear the owned_forms collection.
21839 (WM_CLOSE): clean up this a little bit.. still not right though.
21841 * ApplicationContext.cs: OnMainFormClosed should only call
21842 ExitThreadCore if the main form isn't recreating. Fixes unit
21845 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21849 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21851 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21855 * Hwnd.cs: Add a flag to show a window, but not activate it, to
21856 keep popup window types from stealing focus from the main form
21859 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21861 * MenuAPI.cs: Set above flag to true.
21863 2006-11-15 Chris Toshok <toshok@ximian.com>
21865 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21866 the button being released is not in wParam.
21868 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
21870 * Form.cs: Add the released button to MouseEventArgs.Button
21871 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
21874 2006-11-15 Chris Toshok <toshok@ximian.com>
21876 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21877 GetText(). untested because it's unused in our implementation.
21878 Control.Text always caches the text, even if
21879 ControlStyles.CacheText is not set.
21883 2006-11-15 Chris Toshok <toshok@ximian.com>
21887 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21888 message. no hiding, no disposing.
21890 in the WM_CLOSE handler, hide the form if it's modal.
21892 2006-11-15 Chris Toshok <toshok@ximian.com>
21894 * XplatUIX11.cs: use AddExpose instead of sending a message.
21895 fixes textbox border drawing.
21897 2006-11-15 Chris Toshok <toshok@ximian.com>
21899 * PropertyGridView.cs: keep from crashing on mouse move/down when
21900 the property grid is empty.
21902 2006-11-14 Jackson Harper <jackson@ximian.com>
21904 * TextControl.cs: Make PageUp and PageDown more like the MS
21906 * TextBoxBase.cs: When we set the text property position the
21907 cursor at the beginning of the document.
21909 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21911 * Form.cs: if a mdi child's WindowState has changed
21912 before it's creation, it would display wrong control
21915 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
21917 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21920 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
21922 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
21923 the window gets to paint its borders even if the window is
21926 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
21927 otherwise the old control buttons would still be painted
21928 if the window gets bigger.
21930 * PaintEventArgs.cs: add an internal method so that the clip
21931 rectangle can be changed.
21933 2006-11-13 Chris Toshok <toshok@ximian.com>
21935 [ fixes bug #79745 ]
21937 * NotifyIcon.cs: lots of cleanup.
21939 * X11Structs.cs: add an enum for XEMBED messages.
21941 * XplatUIX11.cs: reindent one of the giant switch statements, it
21942 was taking up an additional tab stop, and this file is already way
21943 too wide for my laptop's screen.
21945 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
21946 we get it, resize the hwnd to the WMNormalHints max_width/height.
21948 2006-11-13 Jackson Harper <jackson@ximian.com>
21950 * TextBoxBase.cs: Compute the value changes for the mouse wheel
21953 2006-11-13 Chris Toshok <toshok@ximian.com>
21955 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21956 #79898. force a reference to the Region to stick around so the
21957 unmanaged object isn't collected (rendering our handle in the MSG
21960 2006-11-13 Chris Toshok <toshok@ximian.com>
21962 * XplatUIX11.cs: fix #79917 for window managers which support
21964 using XStoreName on the raw utf8, and we need to convert to
21965 COMPOUND_TEXT if it's non-latin1.
21967 2006-11-13 Chris Toshok <toshok@ximian.com>
21969 * Form.cs (set_DialogResult): we need to set closing to false if
21970 we're setting our result to None. fixes bug #79908.
21972 2006-11-13 Jackson Harper <jackson@ximian.com>
21974 * TextControl.cs: When formatting text, compute the adjusted tag
21975 lengths correctly, using FindTag for the end tag instead of trying
21976 to figure it out outselves.
21977 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21978 the item, ItemHeight doesn't work, because trees with large
21979 imagelists use those for their height
21980 * TreeView.cs: ActualItemHeight factors in the image height
21981 - compute left edge of checkboxes correctly
21982 - when expanding/collapsing move the bottom down one pixel, so we
21983 aren't moving part of the node
21985 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
21987 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21988 stack in PaintEventStart so that it won't get disposed by the gc
21989 before reaching PaintEventEnd.
21991 2006-11-13 Jackson Harper <jackson@ximian.com>
21993 * TextBoxBase.cs: Don't select the word if we are on a line with
21995 - We don't need to position the caret on mouse up, since the mouse
21996 move handler should be doing this
21997 - When double clicking a blank line, the caret is advanced to the
22000 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
22002 * TreeNodeCollection.cs: Avoid duplicating indexer code.
22004 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
22006 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
22007 Fixes part of bug #79910.
22009 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
22011 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
22012 (bug #79903). Some minor string updates to match ms.
22014 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
22016 * FileDialog.cs: Don't add an extension if the filename
22017 already ends with that extension.
22019 2006-11-10 Jackson Harper <jackson@ximian.com>
22021 * TreeView.cs: Use the currently highlighted node for the
22022 BeforeSelect event.
22023 * TextBoxBase.cs: There is no need to expand selection on
22025 - CanUndo means 'is there any undo operations', not 'is undo
22026 allowed on this textcontrol. Fixed ClearUndo unit test.
22028 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
22030 * Button.cs: only perform click when button is Selectable (so as
22031 not to activate default buttons when they're disabled)
22033 * Control.cs: Rewrite of the SelectNextControl and related
22034 methods. HandleClick now selects next control if the current one
22037 * Form.cs: OnActivated selects next active control only if Load
22038 has already occurred. If Load hasn't run, there's no point in
22039 selecting here, Load might change the state of controls.
22041 * FocusTest.cs: Tests marked as working again for these fixes
22043 2006-11-10 Chris Toshok <toshok@ximian.com>
22045 * XplatUIX11.cs: a couple of fixes.
22047 - use XInternAtoms with almost all the atoms we need to register,
22048 instead of many, many calls to XInternAtom. should help a bit on
22049 startup time, at the expense of making the code look a little
22052 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
22053 isn't reparented (which seems to be a clue that we're running fon
22054 compiz) and they have an Owner form. This fixes the tool windows
22055 in paint.net when running under compiz.
22057 - when setting the opacity of a window, support both the case
22058 where the window has been reparented and also when it hasn't been.
22059 Since compiz/beryl doesn't seem to reparent windows, and these are
22060 the only window managers which support translucency, I'm not sure
22061 why we need the hwnd.reparented case at all.. but leave it in.
22062 now we get translucent windows in paint.net under compiz/beryl.
22064 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
22066 * FileDialog.cs: Always return the value for FilterIndex that
22067 was set. Internally convert it to values that make sense.
22069 2006-11-10 Everaldo Canuto <everaldo@simios.org>
22071 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
22073 2006-11-10 Everaldo Canuto <everaldo@simios.org>
22075 * Toolbar.cs: Change default value of DropDownArrows to true, the
22076 signature still using false to make it compatible with MS but the
22077 initial value is true. Fixes #79855.
22079 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
22081 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
22082 only available on Linux.
22084 2006-11-09 Everaldo Canuto <everaldo@simios.org>
22086 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
22087 reduce number of calls to redraw method during toolbar creation.
22089 2006-11-09 Mike Kestner <mkestner@novell.com>
22091 * ListView.cs : raise SelectedIndexChanged when an item is selected
22092 programmatically via the Item.Selected property. Gert's nice
22093 ListViewSelectedIndexChanged test fixture now runs clean.
22095 2006-11-09 Mike Kestner <mkestner@novell.com>
22097 * ListView.cs : raise SelectedIndexChanged when a selected item is
22098 removed from the item collection using Remove or RemoveAt.
22100 2006-11-09 Mike Kestner <mkestner@novell.com>
22102 * ListView.cs : raise SelectedIndexChanged once per selected item
22103 for compat with MS. Fixes #79849+.
22105 2006-11-09 Chris Toshok <toshok@ximian.com>
22107 * TabControl.cs: initialize row_count to 0, and set it to 1 when
22108 we need to (if we have any tab pages). Fixes unit test.
22110 2006-11-09 Chris Toshok <toshok@ximian.com>
22112 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
22113 width is 0, not 3. Fixes a unit test.
22115 2006-11-09 Mike Kestner <mkestner@novell.com>
22117 * ListView.cs : use Implicit scrollbars so that focus isn't
22118 stolen from the listview when they are clicked. Fixes #79850.
22120 2006-11-09 Chris Toshok <toshok@ximian.com>
22122 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
22123 have a root item. Fixes #79879.
22125 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
22129 - An ArgumentException is now thrown if a wrong filter
22130 is applied (matches ms). The previous filter doesn't change
22131 anymore if an exception is thrown.
22132 - Changing the FileName property also affects FileNames
22133 * ColorDialog.cs: The length of the CustomColors array is always
22134 16. It doesn't matter if we use a smaller array or null to update
22135 or change the custom colors property.
22136 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
22137 for RootFolder if we get a undefined value.
22139 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
22141 * StatusBarPanel.cs:
22142 - Width is set to MinWidth if Width is smaller than
22143 MinWidth. Fixes #79842.
22144 - MinWidth now always overrides Width (MSDN says MinWidth
22145 is set to Width when AutoSize = None, but they do not
22147 - Style has now the the correct default value.
22149 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
22152 - The control is completely invalidated on
22153 Got/LostFocus to draw the focus rectangle correctly.
22154 - When AutoSize then height is always 45 (width for
22155 vertical controls).
22157 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
22158 on the mouse when moved and it doesn't move when grabbed
22159 until the mouse moves as well. Also fixed some wrong
22160 calculations when clicking on the thumb (control thought
22161 click was outside of thumb and didn't grab it).
22162 Fixes some of the issues in #79718.
22164 2006-11-08 Everaldo Canuto <everaldo@simios.org>
22166 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
22168 2006-11-08 Chris Toshok <toshok@ximian.com>
22170 * PropertyGridView.cs: only call ToggleValue if the item is not
22173 2006-11-08 Jackson Harper <jackson@ximian.com>
22175 * TextBoxBase.cs: The RichTextBox and textbox have very different
22176 word selection methods. Implement the textbox's simple word
22177 selection here, and let the RichTextBox override and provide it's
22179 - Don't do extra selection on mouseup
22180 * RichTextBox.cs: Use the documents word selection algorithm, I
22181 think ideally, this function will be pulled into the
22182 RichTextBox.cs code someday.
22184 2006-11-08 Chris Toshok <toshok@ximian.com>
22186 * RootGridEntry.cs: new class to represent GridItemType.Root.
22188 * CategoryGridEntry.cs: reformat, and add boilerplate.
22190 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
22191 returns the UI parent anyway, and we need special handling to
22192 implement the GetTarget method in the face of it. Also, implement
22195 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
22196 a root grid item, and use that instead of PropertyGrid.grid_items.
22197 Also, make use of TypeConverters (and add limitted support for
22198 ICustomTypeDescriptors) when initially populating the grid.
22199 Arrays now show up more or less properly.
22201 2006-11-08 Chris Toshok <toshok@ximian.com>
22203 * Application.cs: set the modal dialog to non modal after we close
22204 it. Fixes bug #79866.
22206 2006-11-08 Jackson Harper <jackson@ximian.com>
22208 * TextControl.cs: When combining lines carry over the line end
22209 style from the end line.
22210 - Invalidate the selected area when setting it, if it is visible.
22211 * TextBoxBase.cs: Only rich text box can do full line selects.
22212 - Make sure to set the cursor position when there is a click,
22213 otherwise two clicks in separate areas could cause a large chunk
22216 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22218 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
22221 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22223 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
22224 time. Remove tooltips when ToolButton click events. Fixes #79856.
22226 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22228 * MenuAPI.cs: Ignore right click for menu actions and fixes
22229 menu border when clicked. Fixes #79846.
22231 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22233 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
22234 MouseState after create wParam for message, this fixes mouse button
22235 equal none in mouse up events.
22237 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
22239 * Control.cs : Focus() now calls Select to set the Container's
22240 Active Control and to give it focus. To avoid infinite recursion
22241 (because ActiveControl also calls Focus at one point), a check
22242 is made in Focus with the help of a new internal variable
22245 2006-11-07 Mike Kestner <mkestner@novell.com>
22247 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
22248 if there's a selection. Fixes #79849.
22250 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
22252 * PropertyGrid.cs: Avoid fixed height of help description label.
22253 Fixes part of bug #79829.
22255 2006-11-07 Chris Toshok <toshok@ximian.com>
22257 * XplatUIX11.cs: fix #79790 again, by using the
22258 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
22260 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22262 * ToolBar.cs: Fix left click checking.
22264 2006-11-07 Chris Toshok <toshok@ximian.com>
22266 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
22268 2006-11-07 Chris Toshok <toshok@ximian.com>
22270 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
22271 PropertyManager unit tests.
22273 * PropertyManager.cs: make property_name internal.
22275 2006-11-07 Chris Toshok <toshok@ximian.com>
22277 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
22278 pass a unit test. Also, don't set image_index to anything in
22279 response to setting the ImageList property.
22281 2006-11-07 Everaldo Canuto <everaldo@simios.org>
22283 * ToolBar.cs: Ignore click events when mouse button is not a
22284 left button, only accepts other button for dropdown menus.
22287 2006-11-07 Chris Toshok <toshok@ximian.com>
22289 * DataGrid.cs: make the back and parent row buttons a little less
22292 2006-11-07 Jackson Harper <jackson@ximian.com>
22294 * TextBoxBase.cs: When converting to Text don't put line breaks in
22295 for soft line breaks.
22296 * TextControl.cs: There is an initial "fake" line in the document,
22297 this is now a soft break line, so that an extra line feed doesn't
22298 get added to the end of documents.
22300 2006-11-07 Chris Toshok <toshok@ximian.com>
22304 * CurrencyManager.cs: if the list is readonly, don't bother
22305 checking if IBindingList.AllowNew is true.
22307 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
22308 for non-DataRowView datasources.. or rather, make it not crash.
22309 (DataGridPaintRelationRow): make sure we limit the row painting to
22310 the area not covered by the row header, and make our cell width at
22311 least large enough to cover the relation area. This allows grids
22312 that have relations but no rows to render correctly.
22313 (DataGridPaintRowContents): same type of changes here.
22314 (SetDataSource): move back to always calling
22315 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
22316 navigating back through relations.
22317 (HitTest): handle the case where we have no cells but have
22318 relations. Right now we generate a hit in cell 0 of whatever the
22319 row is, not sure if this is strictly correct, but it works for our
22322 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
22323 bother doing anything.
22325 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
22327 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
22328 early version of StatusStrip. Not responsible for eaten
22329 application or firstborn children.
22331 2006-11-06 Chris Toshok <toshok@ximian.com>
22333 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
22334 call GetTabRect with a -1 index. Fixes #79847.
22336 2006-11-06 Jackson Harper <jackson@ximian.com>
22338 * TreeNodeCollection.cs: Update scrollbars after clearing.
22340 2006-11-06 Chris Toshok <toshok@ximian.com>
22342 * NumericUpDown.cs: fix the ToString method for some unit test
22345 2006-11-06 Chris Toshok <toshok@ximian.com>
22348 - set the initial SelectedGridItem if we can.
22350 - Exclude non-mergable properties only if we're merging > 1
22351 object. Merging 1 object isn't really merging, obviously.
22353 - Handle PropertySort.NoSort just like Alphabetical, which is
22354 wrong of course, but at least gets things on the screen.
22356 * PropertyGridView.cs:
22357 - Add method "FindFirstItem" which finds the first property grid
22358 item, so we can select it by default.
22360 - make use of GridEntry.CanResetValue.
22362 - Don't call RedrawBelowItemOnExpansion here anymore, the
22363 individual GridEntry's will do that.
22365 - Remove the ITypeDescriptorContextImpl internal class.
22368 - this class needs to implement ITypeDescriptorContext, as it's
22369 what MS's PropertyDescriptorGridEntry does, which means we can
22370 remove the ITypeDescriptorContextImpl internal class from
22371 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
22373 - keep a reference to our PropertyGridView, and move the call to
22374 RedrawBelowItemOnExpansion here from PGV. This means
22375 programmaticly setting Expanded actually does something visible.
22377 - add a CanResetValue() function which takes into account our
22378 possibly multiple "selected_objects" in the merged case. Shifting
22379 PropertyGridView to use this method fixes another unreported
22380 crasher found running the test for #79829.
22382 - when Top or Bounds is updated, make sure the PropertyGridTextBox
22383 is updated to reflect this.
22385 * CategoryGridEntry.cs: the ctor takes the PGV now.
22387 2006-11-06 Jackson Harper <jackson@ximian.com>
22389 * TextControl.cs: These are 1 based.
22390 * TextBoxBase.cs: When setting the selected text, don't change the
22391 selected text tags, this is done by ReplaceText, just position the
22392 cursor at the end of the new text.
22394 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
22396 * ListView.cs: Allow label edit only when, when LabelEdit is
22399 2006-11-06 Jackson Harper <jackson@ximian.com>
22401 * TextControl.cs: If a suitable wrapping position isn't found,
22402 just wrap right in the middle of a word.
22404 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
22406 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
22409 2006-11-06 Jackson Harper <jackson@ximian.com>
22411 * TreeView.cs: Can't use the VisibleCount property when setting
22412 scrollbar heights, because this doesn't take into account whether
22413 or not the horz scrollbar just came visible.
22415 2006-11-05 Everaldo Canuto <everaldo@simios.org>
22417 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
22418 activated. Fixes #79369, #79832.
22420 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
22422 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
22423 had to remove support for links that point to a directory. FileInfo
22424 returns no usefull information (means, the directory they point to)
22425 for such links. Replaced some empty string ("") with String.Empty.
22427 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
22429 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
22430 NullReferenceException when attempting to remove node that is not in
22431 collection. Throw NullReferenceException when null is passed to
22432 Remove. Allow first element of the collection to be removed. Fixes
22433 bug #79831. In GetEnumerator ().Current return null if positioned
22434 before the first element of the collection. In GetEnumerator ().Reset,
22435 position before first element of the collection.
22437 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
22439 * PropertyGrid.cs: To match MS, remove default title and description
22440 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
22443 2006-11-04 Chris Toshok <toshok@ximian.com>
22445 * Theme.cs: add a Clamp method, just for kicks.
22447 * ThemeWin32Classic.cs: clamp all color components to [0..255].
22449 2006-11-04 Chris Toshok <toshok@ximian.com>
22451 * Form.cs: if the form isn't visible, Close() does nothing.
22453 2006-11-03 Chris Toshok <toshok@ximian.com>
22455 * Form.cs (Close): if the form is modal, don't Dispose of it, only
22457 (WndProc): don't Dispose after handling the WM_CLOSE message.
22459 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
22460 them as such, instead of using casts from Control to Form. Also,
22461 don't Dispose of the modal dialog when we fall out of the loop -
22462 Close() it instead.
22466 2006-11-03 Chris Toshok <toshok@ximian.com>
22468 * Control.cs (Dispose): only go through the dispose thing if we're
22469 @disposing, and we haven't already been disposed. Fixes bug
22472 * Form.cs: no reason to call "base.Dispose()" here instead of
22475 2006-11-03 Mike Kestner <mkestner@novell.com>
22477 * ComboBox.cs : use ToString instead of casts in AddItem for
22478 sorting functionality. Fixes #79812.
22480 2006-11-03 Chris Toshok <toshok@ximian.com>
22482 * Application.cs: pave the way for actually using the thread
22483 exception dialog. it's ifdefed out at the moment.
22485 2006-11-03 Chris Toshok <toshok@ximian.com>
22487 * ThreadExceptionDialog.cs: until we get a better layout, actually
22488 hide the details textbox and label when we shouldn't see them.
22490 2006-11-03 Jackson Harper <jackson@ximian.com>
22492 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
22493 multiline textboxes anymore. This method also determines the
22494 width/height of a textboxes canvas area.
22495 - Sorta a revert of the last patch. For multiline just position
22496 the controls, then bail. This way the scrollbar width won't be
22499 2006-11-03 Everaldo Canuto <everaldo@simios.org>
22501 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
22502 it dont need. Fixes #79537.
22504 2006-11-02 Jackson Harper <jackson@ximian.com>
22506 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
22507 send the status after firing the DndOver event.
22509 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22511 * TrackBar.cs: Now orientation only switches height / width if
22512 the control's handle is created (Win32 does it like this). Also
22513 fixed a typo in ToString() for a test to pass, changed the
22514 exception thrown in set_LargeChange and set_SmallChange to
22515 match Win32 behaviour, and added TrackBar tests to the unit
22518 2006-11-02 Chris Toshok <toshok@ximian.com>
22520 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
22521 not _NET_WM_STATE_NO_TASKBAR.
22523 2006-11-02 Jackson Harper <jackson@ximian.com>
22525 * TextControl.cs: Increment count by one, since in the update view
22528 2006-11-02 Jackson Harper <jackson@ximian.com>
22530 * TextBoxBase.cs: Use client rectangle not bounds for checking if
22531 the mouse is in the client rectangle (duh).
22533 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
22535 * TrackBar.cs: Fixed trackbar jumping around when clicking
22536 on it - the trackbar was not detecting correctly at which
22537 side of the thumb the click was done. (fixes #79718)
22539 2006-11-02 Everaldo Canuto <everaldo@simios.org>
22541 * ListBox.cs: scroll visible area when change SelectedIndex to
22542 a non visible area. Fixes #79481.
22544 2006-11-01 Jackson Harper <jackson@ximian.com>
22546 * TextControl.cs: When replacing the selection move the selection
22547 start/end/anchor to the end of the new text.
22549 2006-11-01 Jackson Harper <jackson@ximian.com>
22551 * XplatUIWin32.cs: When setting the parent change the controls
22552 visibility to it's visibility flag, not to it's old parents
22553 visibility (.Visible walks the parent chain).
22555 2006-11-01 Chris Toshok <toshok@ximian.com>
22557 * XplatUIX11.cs: revert the #79790 fix, as the simple.
22558 XSetTransientForHint fix breaks paint .net's tool windows. more
22559 work needed for that one.
22561 2006-11-01 Chris Toshok <toshok@ximian.com>
22563 * ScrollBar.cs: throw ArgumentException instead of Exception in
22564 LargeChange/SmallChange setters. fixes unit tests.
22566 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
22568 * ContainerControl.cs: reverted rev.67183 (which was itself
22569 a reversion of rev.66853... eh).
22571 * Control.cs: Fixes Reflector hang by changing Focus() call
22572 to what it was before rev.66643 (calling Select() here sets
22573 ActiveControl, which in some situations calls back Focus and
22574 eventually does a stack overflow). Temp fix.
22575 Changes to GetNextControl() to not look for children to select when
22576 parent cannot be selectable (so it looks for siblings instead)
22578 2006-10-31 Mike Kestner <mkestner@novell.com>
22580 * CheckedListBox.cs : off by one error in returned index from
22581 ObjectCollection.Add. Fixes #79758.
22583 2006-10-31 Chris Toshok <toshok@ximian.com>
22585 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
22586 calls for the textbox/spinner, to keep from recursing to the point
22587 where we crash. Fixes #79760.
22589 2006-10-31 Chris Toshok <toshok@ximian.com>
22591 * ListControl.cs (set_SelectedValue): don't throw exceptions on
22592 null/"" value, just return. matches ms's behavior and fixes some
22595 2006-10-31 Chris Toshok <toshok@ximian.com>
22597 * Control.cs (set_Capture): make a logic a little easier to
22600 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
22601 if it's being destroyed. A necessary fix surely, but a bandaid
22602 also, to fix the stuck capture problem in bug #78413.
22604 2006-10-31 Chris Toshok <toshok@ximian.com>
22606 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
22607 convention of clearing hwnd.ClientRect when we set the
22608 width/height (so it'll be recalculated by Hwnd).
22610 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
22612 * ContainerControl.cs: reversed Contains check from
22613 ActiveControl due to hanging problems. This fix
22614 partly regresses #79667 (button does not have
22615 initial focus), so this might be a symptom for
22616 a larger parenting problem (set_ActiveControl
22617 is being called but the child control does
22618 not have the parent set yet?)
22620 2006-10-31 Mike Kestner <mkestner@novell.com>
22622 * MenuAPI.cs : fix keynav when menu is click activated.
22624 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
22626 * ToolStrip*: Version 0.2.
22628 * MenuStrip.cs: Version 0.1.
22630 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
22632 2006-10-30 Chris Toshok <toshok@ximian.com>
22634 [ fixes the oversized notify icon issue in bug #79745 ]
22636 * NotifyIcon.cs: scale the icon down to the size we're given by
22637 the XplatUI layer (this would be faster if we did it once instead
22638 of whenever we paint..) Also, remove the WM_NCPAINT handling,
22639 since it's never invoked.
22641 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
22642 pixels high by default, so let's hardcode our systray icon to that
22643 size. The SYSTEM_TRAY protocol should really have a way for
22644 client apps to query for the correct icon size.. but oh well. A
22645 couple of patches to deal with the screwy client_window ==
22646 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
22647 instance, and also make sure we don't XSelectInput twice).
22649 2006-10-30 Chris Toshok <toshok@ximian.com>
22651 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
22652 recreating forms. Control recreation is the bane of my existence.
22653 Fix it in a way that keeps everyone happy.
22655 2006-10-30 Chris Toshok <toshok@ximian.com>
22657 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
22658 just non-CHILD ones. otherwise sometimes scrollbars end up with
22659 client_windows not being resized to the proper size (ReportBuilder
22660 shows this extremely well).
22662 2006-10-30 Chris Toshok <toshok@ximian.com>
22664 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
22665 for non-WS_EX_APPWINDOW windows. This is what keeps them from
22666 showing up in the gnome taskbar. Fixes bug #79790.
22668 2006-10-30 Chris Toshok <toshok@ximian.com>
22670 * ApplicationContext.cs: guard against a NRE.
22672 * Application.cs: null out the old MainForm for the context, so we
22673 don't try to use it again once it's disposed. Fixes bug #79783.
22675 2006-10-30 Chris Toshok <toshok@ximian.com>
22677 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
22678 BindingContext, set the data source directly, otherwise do the
22679 lazy approach - the actual ListManager will be created when we get
22680 a BindingContext. Fixes bug #79700.
22682 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
22684 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22685 XplatUIX11.cs: Remove old 2 parameter SetVisible.
22687 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
22689 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
22691 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
22692 of SetVisible that allows a window to be shown, but not activated.
22693 This is needed on Windows for MenuStrip, and can probably be used
22694 with MainMenu and ComboBox to fix the focus stealing issues on
22697 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
22699 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
22701 * PictureBox.cs: Fix the output of the ToString method.
22703 2006-10-29 Chris Toshok <toshok@ximian.com>
22705 * Control.cs (get_TopLevelControl): fix bug #79781.
22707 2006-10-29 Chris Toshok <toshok@ximian.com>
22709 * ListControl.cs (set_DataSource): throw Exception here, not
22710 ArgumentException, to match MS behavior.
22712 2006-10-29 Chris Toshok <toshok@ximian.com>
22714 * Form.cs: remove the try-catch's around calls to GetWindowState.
22715 We can just check the return value.
22717 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
22720 * XplatUI.cs: Add note about additional return value for
22723 2006-10-29 Chris Toshok <toshok@ximian.com>
22725 * Control.cs (CreateHandle): when we create our handle, we also
22726 create the handles of our child controls. Fixes one of the
22727 Control unit tests (CH11).
22729 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
22731 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
22733 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
22735 * ThemeClearlooks.cs: A little speedup.
22737 2006-10-27 Chris Toshok <toshok@ximian.com>
22739 * Control.cs: implement Control.FromChildHandle in a way that
22740 matches the docs (and fixes the failed test.)
22742 2006-10-27 Chris Toshok <toshok@ximian.com>
22744 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
22747 * DataGrid.cs: implement ResetForeColor such that the tests
22750 2006-10-27 Chris Toshok <toshok@ximian.com>
22752 * ToolBarButton.cs: setting text/tooltiptext to null results in it
22753 being set to "". Fixes bug #79759.
22755 2006-10-27 Jackson Harper <jackson@ximian.com>
22757 * TextControl.cs: We need to clear the entire selection area when
22758 setting the start, otherwise multiline selections are still
22761 2006-10-26 Chris Toshok <toshok@ximian.com>
22763 * PropertyGridView.cs:
22765 - ifdef all the code specific to the double
22766 buffer case, and provide some alternatives in the non-doublebuffer
22767 code, which makes heavy use of XplatUI.ScrollWindow to move things
22768 around without having to invalidate (and cause flicker). There
22769 are still some drawing problems in the non-doublebuffered case, so
22770 DOUBLEBUFFER is defined by default.
22772 - Fix the way dropdowns are handled. now we explicitly watch for
22773 the events which might cause the dropdown to close, and break out
22774 of the nested event loop there. This gets rid of all Capture
22775 code, at the expense of the Msg special casing. Seems to work,
22776 though, and fixes bug #79743.
22778 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
22779 * Control.cs: SetIsRecreating now recreates implicitly added
22780 child controls as well. Finally fixes #79629. The flag passed to
22781 SetIsRecreating has also been removed since it wasn't used.
22783 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22785 * PageSetupDialog.cs: Clean some code, fix some bits,
22786 add some checks, and add a printer sub-dialog.
22788 2006-10-26 Chris Toshok <toshok@ximian.com>
22790 * PropertyGrid.cs: make set_SelectedObject call
22791 set_SelectedObjects, and move the duplicate logic to the
22792 SelectedObjects setter. Also, raise SelectedObjectsChanged.
22794 * PropertyGridView.cs: hide the textbox when we get a
22795 SelectedObjectsChanged event.
22799 2006-10-26 Chris Toshok <toshok@ximian.com>
22801 * PropertyGridView.cs: deal with the type converter not supporting
22802 GetStandardValues() or GetStandardValues() returning null, which
22803 is does in the default case. Fixes #79742.
22805 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
22807 * CheckedListBox.cs: nunit no longer crashes when selecting
22808 Project/Edit menu option
22810 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
22812 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22813 is no menu selected. fixes #79739
22815 2006-10-25 Chris Toshok <toshok@ximian.com>
22817 * PropertyGridView.cs: factor out the splitter invalidation code
22818 into the SplitterPercent setter, and for kicks implement the
22819 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22820 amount in either direction.
22822 2006-10-25 Chris Toshok <toshok@ximian.com>
22824 * PropertyGridView.cs: do some cleanup of the brush used to draw
22825 text - read only fields should be grayed out. not sure how to do
22826 this with the textbox, though. but the textbox's should also be
22827 readonly now at least. Also, hide/show the textbox when resizing
22830 * CursorConverter.cs: use System.Reflection when getting the
22831 properties of Cursors, as TypeDescriptor.GetProperties isn't
22832 returning static properties.
22834 2006-10-25 Chris Toshok <toshok@ximian.com>
22836 * PropertyGridView.cs: factor out the up/down handling, and reuse
22837 it for page up/down. also add End/Home support.
22839 2006-10-25 Chris Toshok <toshok@ximian.com>
22841 * PropertyGridView.cs:
22843 - ensure the selected grid item is visible in the scrolled area,
22846 - fix Keys.Down handling when you're on the last item in the
22849 2006-10-25 Mike Kestner <mkestner@novell.com>
22851 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
22852 clicks too. Fixes #79725.
22854 2006-10-24 Chris Toshok <toshok@ximian.com>
22856 * PropertyGrid.cs: use property.Converter instead of
22857 TypeDescriptor.GetConverter(property.PropertyType), so we catch
22858 TypeConverters declared on the property as well as on the
22859 PropertyType. Fixes bug #79678.
22861 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
22863 * MimeIcon.cs, Mime.cs:
22864 Fallback to the default platform handler if no shared mime info
22865 stuff exists (fixes #79693).
22867 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22868 * ContainerControl.cs: Incorrect contains check in ActiveControl
22869 from previous fix (duh).
22871 2006-10-20 Chris Toshok <toshok@ximian.com>
22873 * PropertyGridView.cs: the dropdown should be MIN(number of items
22874 in list, 15). Fixes #79551.
22876 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22877 Fixes #79384, #79394, #79652, #79667
22880 - Modal windows are now destroyed in the proper order for windows
22882 * ContainerControl.cs:
22884 - ActiveControl setter has more conditions on when to return:
22885 - if we're reselecting the active control, but it actually
22886 didn't have focus (window hidden or some such), it runs
22887 - if the active control being selected doesn't actually
22888 exist in the container, it returns
22892 - The ShowDialog now gets the current form as the owner when
22893 invoking without parameters, and correctly activates the owner
22898 - MessageBox now catches the Escape key to exit
22900 2006-10-20 Chris Toshok <toshok@ximian.com>
22902 * PropertyGridView.cs: fix a number of issues (bug #78565, and
22903 most of bug #79676):
22905 - you can navigate around the property grid with the arrow keys.
22907 - the dropdown is sized properly when the pg has a vertical
22910 - fix the indentation for subentries, and properly select the
22913 - fix the gray bar's drawing (only draw it to the last element,
22914 not for the height of the control. Also make sure we draw that
22915 last horizontal grid line.
22917 - use the same mechanism the datagrid uses wrt the editing textbox
22918 when scrolling/resizing/etc. Namely, we hide it first, do the
22919 operation, then show it again (if it's still visible).
22921 - aggressively remove a lot of unnecessary refreshes (and also
22922 calls to Invalidate(). call more limited variants, and only redraw
22927 - when we're populating the merged collection, fill in the UI
22928 parent with either the passed in item, or the category item we
22931 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22933 * GridItem.cs: drop some fully qualified names.
22935 * GridEntry.cs: add a "UIParent", which is basically the parent
22938 * GridItemCollection.cs: add an IndexOf method.
22940 2006-10-20 Mike Kestner <mkestner@novell.com>
22942 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
22943 a working win32 NC invalidation mechanism, we can't invalidate
22944 menus. [Fixes #79705]
22946 2006-10-20 Mike Kestner <mkestner@novell.com>
22948 * ListBox.cs : don't update the VScrollbar if the list is empty,
22949 just hide it. [Fixes #79692]
22951 2006-10-20 Jackson Harper <jackson@ximian.com>
22953 * RichTextBox.cs: Handle some special chars better, and don't skip
22954 the entire group when we encounter a special char that we don't
22957 2006-10-18 Chris Toshok <toshok@ximian.com>
22959 * PropertyGridView.cs: address a number of issues from bug #79676,
22960 mostly of the cosmetic variety.
22962 - The highlight rectangle for indented items not extends all the
22965 - Indented items aren't indented so much.
22967 - the dropdown is properly sized width-wise if the pg has a
22968 vertical scrollbar.
22970 2006-10-18 Chris Toshok <toshok@ximian.com>
22972 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22973 systray stuff is rather convoluted to begin with.
22975 systray icons are a single window for some reason (that I haven't
22976 figured out yet), and for them, client_window == whole_window.
22977 Given the way the tests are structured elsewhere to determine
22978 which paints are pending (client vs. nc), that situation will
22979 always yield PAINT, not NCPAINT. So, if we have a pending
22980 nc_expose and no pending expose, remove the hwnd from the paint
22981 queue, and also set nc_expose_pending to false, to keep us from
22982 blocking further expose's adding the hwnd to the paint queue.
22984 phew. like i said, a rather convoluted change. Fixes the
22985 notifyicon repaint issues in bug #79645.
22987 2006-10-18 Chris Toshok <toshok@ximian.com>
22989 * Form.cs: when getting the backcolor of the form, don't get
22990 base.BackColor, as this allows parents to influence the background
22991 color. This breaks mdi forms. Instead, if the background_color
22992 is empty, return the default.
22994 2006-10-18 Chris Toshok <toshok@ximian.com>
22996 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22997 to being private instead of internal static.
22999 * Control.cs: remove all the stupid ParentWaitingOnRecreation
23000 crap, it wasn't working for more deeply nested controls anyway,
23001 and we already have the is_recreating flag - use that instead.
23002 Before calling DestroyHandle in RecreateHandle, recurse through
23003 the control tree setting it to true. this returns the recreate
23004 code to much of its original simplicity, while now guaranteeing we
23005 actually recreate everything we're supposed to. This change gets
23006 fyireporting actually showing mdi children.
23008 2006-10-17 Chris Toshok <toshok@ximian.com>
23010 * Form.cs: remove some debug spew, and collapse some duplicate
23011 code at the end of SetClientSizeCore.
23014 - add some more debug spew here too wrt Destroy handling.
23015 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
23016 in Control's handling of WM_DESTROY.
23017 - Remove the handling of zombie window DestroyNotifies from the
23018 event loop - we don't need it. Now the only DestroyNotifies we
23019 actually handle are ones generated by X.
23020 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
23021 match gtk's (functioning) handling of this. This keep metacity
23022 from leaving droppings in the form of wm borders with no window
23023 contents all over the place.
23026 - add a bunch of debug spew wrt control recreation.
23027 - fix a bug where we weren't tracking Visible properly on
23029 - fixed the WM_PAINT double buffer handling to support re-entrant
23030 calls (yes, i know it's gross, but it's happening to us).
23032 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23033 * ThemeWin32Classic.cs: changed drawing of selected days
23034 to make them look better.
23036 2006-10-16 Chris Toshok <toshok@ximian.com>
23038 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
23039 drawing_stack. Nuke the ClientDC/NonClientDC properties.
23041 * XplatUIX11.cs: move away from using hwnd.client_dc and
23042 hwnd.non_client_dc and on to a stack of dc's (and in window's
23043 case, PAINTSTRUCT's), so we can deal with nested Paint calls
23044 without puking or not disposing of Graphics objects.
23046 * XplatUIOSX.cs: same.
23048 * XplatUIWin32.cs: same.
23050 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
23052 * FileDialog.cs: Don't call on_directory_changed inside
23053 OnSelectedIndexChanged (it changes the SelectedIndex too).
23054 Instead move it to OnSelectionChangeCommitted.
23056 2006-10-13 Chris Toshok <toshok@ximian.com>
23058 * XplatUIX11.cs: more Destroy work. the current code does the
23059 following things, in order:
23061 1. Enumerates all handles of all controls at or below the one
23062 being destroyed, in pre-order. As it is doing this, it marks the
23063 handles as zombie and clears all references to them.
23065 2. calls XDestroyWindow on the window passed in.
23067 3. SendMessage's WM_DESTROY to all he handles in the accumulated
23070 2006-10-13 Chris Toshok <toshok@ximian.com>
23072 * XplatUIX11.cs: set hwnd.zombie to true before calling
23073 SendMessage (WM_DESTROY). this keeps us from marking the new
23074 window a zombie, and also keeps us from calling sendmessage at
23077 2006-10-13 Jackson Harper <jackson@ximian.com>
23079 * TextControl.cs: Do not show the caret and selection at the same
23080 time. Reduces ugliness by 35%.
23082 2006-10-13 Chris Toshok <toshok@ximian.com>
23084 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
23085 zombie after we do the recursive call, so we actually do call
23086 SendMessage on the children controls.
23087 (GetMessage): if we find a pending paint event for a zombie hwnd,
23088 remove the hwnd from the paint queue, or else it will always be
23089 there (and we'll effectively loop infinitely)
23091 2006-10-13 Mike Kestner <mkestner@novell.com>
23093 * MenuItem.cs : add Selected format under keynav too.
23096 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
23098 * PropertyGrid.cs: Fixed some NRE's and small difference between our
23099 implementation and that of MS.
23101 2006-10-13 Chris Toshok <toshok@ximian.com>
23103 * Control.cs (OnInvalidated) only futz with the invalid_region if
23104 the control is double buffered. this fixes the apparent hang in
23105 the ListView unit tests. Someone needs to make the
23106 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
23108 2006-10-13 Chris Toshok <toshok@ximian.com>
23110 * PropertyGridView.cs:
23112 - do a little refactoring so that only one place calls
23113 dropdown_form.Hide, and that is CloseDropDown. make everywhere
23114 else call that. Also make it Refresh, since there are redraw bugs
23115 otherwise (we should take a look at that...)
23117 - do a little more refactoring work to share the body of code
23118 involved with the drop down. it was duplicated in the code
23119 dealing with the listbox handling and in the code dealing with the
23122 - add a Capture to the dropdown form's control once it's
23123 displayed, and add a MouseDown handler that checks to make sure
23124 the position is inside the control. If it's not, close the
23125 dropdown. This fixes #78190.
23127 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
23128 if the value is different than the initial value.
23130 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
23132 * Control.cs: see #78650
23133 - Fixed GetNextControl for several cases:
23134 - Changed FindFlatForward to return
23135 correct sibling control when more than one
23136 control has same TabIndex as the currently
23138 - Changed FindFlatBackward to loop children
23139 from last to first and apply same logic as in
23141 - Changed FindControlForward to search for
23142 children when control is not a container
23143 but has children, or search for siblings if
23144 control is a container...
23145 - Changed FindControlBackward to continue
23146 searching for child controls when hitting
23149 - Fixed Focus method to update ActiveControl
23150 (FocusTest.FocusSetsActive failure)
23153 - Focus rectangle now refreshes when gaining
23155 - Removed grab for Tab key on IsInputKey that
23156 was keeping tab navigation from working (#78650)
23158 2006-10-13 Chris Toshok <toshok@ximian.com>
23160 * PropertyGridView.cs:
23161 - Rewrite SetPropertyValue to loop over SelectedGridItem's
23164 - Deal with GridItem.Value == null a few places.
23167 - replace the PopulateGridItemCollection with a pair of methods
23168 which compute the intersection of all the properties in the
23169 SelectedObjects array. Fixes #79615.
23171 - Throw ArgumentException from set_SelectedObjects if there's a
23174 - Add GetTarget method which can be used to traverse up the
23175 GridItem.Parent chain. It depends on the assumption that
23176 selected_objects for different GridEntries are always in the same
23177 order (a safe assumption). Use this method and loop over all the
23178 selected objects in the entry when calling RemoveValueChanged and
23181 * GridEntry.cs: Make this handle multiple selected objects.
23182 .Value returns null if not all the selected objects share the same
23185 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
23186 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
23187 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
23188 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
23189 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
23190 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
23191 add additional functionality.
23193 2006-10-12 Mike Kestner <mkestner@novell.com>
23195 * ErrorProvider.cs : new ToolTipWindow ctor sig.
23196 * HelpProvider.cs : new ToolTipWindow ctor sig.
23197 * ToolTip.cs : remove ToolTip param from Window sig since it is
23199 * ToolBar.cs : add tooltip support. Fixes #79565.
23201 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23203 * ComboBox.cs: move the events in set_SelectedIndex to
23204 after the call to HighlightIndex in order to avoid
23205 possible recursion and subsequent problems with the call
23206 to HighlightIndex and include a range check in
23207 set_HighlightIndex. Fixes #79588
23209 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23211 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
23212 to ui thread's settings instead of sunday.
23213 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
23215 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
23217 * DateTimePicker.cs
23219 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
23220 and implement missing functionality (selecting different parts
23221 of the date and edit them individually with the keyboard).
23223 2006-10-11 Chris Toshok <toshok@ximian.com>
23225 * Control.cs (OnInvalidated): fix NRE relating to last change.
23227 2006-10-11 Chris Toshok <toshok@ximian.com>
23229 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
23230 atoms in _NET_WM_STATE here if the window is maximized. We need
23231 to do this because we're *replacing* the existing _NET_WM_STATE
23232 property, so those atoms will be lost otherwise, and any further
23233 call to GetWindowState will return Normal for a window which is
23234 actually maximized. Fixes #79338.
23236 2006-10-11 Jackson Harper <jackson@ximian.com>
23238 * TextControl.cs: Special case for setting selection end to
23239 selection start, we basically kill the anchor.
23240 - some todo comments.
23242 2006-10-11 Chris Toshok <toshok@ximian.com>
23244 * Control.cs: switch to using an "invalid_region" to track which
23245 parts of the image buffer need updating. This is more code than
23246 the simple fix from r66532. That version just attempted to always
23247 fill the entire buffer on redraw, which turns out to be
23248 inefficient when invalidating small rectangles. This version
23249 simply adds the invalid rectangle to the invalid region. When we
23250 get any WM_PAINT message we see if it can be filled using the
23251 image buffer, and if it can't (if the paint event's clip rectangle
23252 is visible in the invalid region) we first fill the image buffer.
23253 So, the image buffer is still a cache, we just fill it lazily.
23255 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
23256 need it any longer.
23258 2006-10-11 Chris Toshok <toshok@ximian.com>
23260 * XplatUIX11.cs (SetWindowPos): we need to update both position as
23261 well as size after calling XMoveResizeWindow. This keeps us from
23262 ignoring future SetWindowPos calls. Fixes the disappearing
23263 DateTimePicker in the ToolBarDockExample from bug #72499.
23265 2006-10-11 Chris Toshok <toshok@ximian.com>
23267 * TextBoxBase.cs: reorder things a bit when it comes to
23268 resizing-causing-recalculation. we were recalculating the
23269 document when our position was changed, which shouldn't happen.
23270 We only care about size changes. Clear up some more redundant
23271 recalculation calls while I'm at it. This makes the toolbar dock
23272 example snappy when you're just dragging toolbars around (since it
23273 causes a relayout whenever you move one.)
23275 2006-10-11 Chris Toshok <toshok@ximian.com>
23277 * ToolBarButton.cs (get_Rectangle): this only returns
23278 Rectangle.Empty if Visible == false, or Parent == null.
23279 Parent.Visible doesn't matter.
23281 2006-10-10 Chris Toshok <toshok@ximian.com>
23283 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
23284 by .net 1.1, so switch to an internal method instead.
23286 2006-10-10 Chris Toshok <toshok@ximian.com>
23288 * Control.cs (WM_PAINT): when a control is double buffered we draw
23289 initially to the ImageBuffer and then copy from there. But when a
23290 parent control which has child controls is double buffered, the
23291 initial drawing doesn't encompass the entire ClientRectangle of
23292 the parent control, so we end up with uninitialized bits (this is
23293 easily seen by dragging the top toolbar in
23294 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
23295 manually set the ClipRectangle of the paint_event (only the one we
23296 use to populate the ImageBuffer) to ClientRectangle. Fixes more
23297 of the nastiness in bug #72499.
23299 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
23300 which we use in Control.cs's WM_PAINT handling.
23302 2006-10-10 Jackson Harper <jackson@ximian.com>
23304 * TextBoxBase.cs: Finish off the autoscrolling stuff.
23306 2006-10-10 Chris Toshok <toshok@ximian.com>
23308 * Cursor.cs: Apply a slightly different patch to the one suggested
23311 2006-10-10 Jackson Harper <jackson@ximian.com>
23313 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
23314 not the parent form.
23315 * TextControl.cs: use difference in old line count vs new count to
23316 calculate how many lines were added, this takes into account soft
23317 line breaks properly.
23319 2006-10-10 Chris Toshok <toshok@ximian.com>
23321 * LinkLabel.cs: don't call MeasureCharacterRanges against a
23322 rectangle located at 0,0 and the size of the text. Use
23323 ClientRectangle instead. This fixes rendering of non-left aligned
23326 2006-10-10 Jackson Harper <jackson@ximian.com>
23328 * TextBoxBase.cs: When we set the selection start position the
23330 * TextControl.cs: Need to update the caret when we decrement it to
23332 - Make sure that the selection_visible flag gets reset to false if
23333 the selection isn't visible. Before this you could get it set to
23334 visible by changing the selection start, then changing the end to
23337 2006-10-09 Jackson Harper <jackson@ximian.com>
23339 * TreeView.cs: Don't update scrollbars when we aren't visible.
23340 * TreeNodeCollection.cs: Only need to update scrollbars if being
23341 added to an expanded visible node or the root node.
23343 2006-10-09 Chris Toshok <toshok@ximian.com>
23345 * XplatUIX11.cs (SendMessage): fix NRE.
23347 2006-10-09 Jackson Harper <jackson@ximian.com>
23349 * TextBoxBase.cs: Implement horizontal autoscrolling.
23350 * TextControl.cs: Add a movement types that allows moving forward
23351 and backwards without wrapping.
23353 2006-10-09 Mike Kestner <mkestner@novell.com>
23355 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
23356 with focus "expansion" of labels. Fixes #79532 and then some.
23357 * ThemeWin32Classic.cs : add LineLimit to ListView label format
23360 2006-10-09 Jackson Harper <jackson@ximian.com>
23362 * TextBoxBase.cs: Set the default max values to MaxValue since
23363 we use the scrollbar for autoscrolling and the default value is
23364 100. If we don't do this the caret won't keep up with typing
23365 after about 18 characters.
23366 * TextControl.cs: Make sure the selection is offset by the
23367 viewport x. This fixes selection when using auto scrolling.
23369 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
23371 * Form.cs: The active control should be selected after the
23372 OnLoad so that any child control initialization that affects
23373 the selection is done. Fixes #79406
23375 2006-10-06 Chris Toshok <toshok@ximian.com>
23377 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
23378 to have no evil effects.
23380 - Stop selecting StructureNotifyMask on non-toplevel windows.
23382 The only way children should be resized is by using the SWF api,
23383 and we already send WM_WINDOWPOSCHANGED messages in those cases.
23384 Toplevel windows can be interacted with via the window manager,
23385 and so we keep the input mask there.
23387 The other event StructureNotifyMask gives us (that we care
23388 about) is DestroyNotify. The code is already structured such
23389 that it assumes we won't be getting a DestroyNotify event for
23390 the window we pass to XDestroyWindow (which is what
23391 StructureNotifyMask is supposed to guarantee.) So, that code
23392 shouldn't be affected by this either.
23394 - Stop selecting VisibilityChangeMask altogether.
23396 We weren't doing anything with the resulting events anyway.
23398 This vastly reduces the number of X requests and events we see
23399 when resizing/laying out a large ui.
23401 2006-10-06 Chris Toshok <toshok@ximian.com>
23403 * ScrollableControl.cs (DisplayRectangle): we need to take into
23404 account the DockPadding regardless of whether or not auto_scroll
23405 == true. rework this slightly to this effect, and fix bug #79606,
23406 and part of #72499 (you can now see the drag handles and drag
23409 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
23411 * ListViewItem.cs: Collections of selected and checked items are now
23412 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
23413 we mark the collection "dirty".
23414 * ListView.cs: Marked collections readonly. Modified UpdateSelection
23415 to only clear SelectedItems when a new item is selected and MultiSelect
23416 is enabled. CheckedItems and SelectedItems now subscribe to Changed
23417 event of ListViewItemCollection, and mark its list dirty whenever
23418 that event is fire. This allows us to return selected/checked items
23419 in the same order as they are in the Items collection. This matches
23422 2006-10-06 Chris Toshok <toshok@ximian.com>
23424 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
23425 right mouse clicks. Fixes bug #79593.
23427 2006-10-06 Chris Toshok <toshok@ximian.com>
23429 * Splitter.cs: doh, fix splitters that don't want to cancel the
23430 movement when you drag them. Also, impose the limits on the
23431 values we send to the SplitterMovingEvent. Fixes #79598.
23433 2006-10-06 Jackson Harper <jackson@ximian.com>
23435 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
23436 since we use this for auto scrolling also.
23438 2006-10-05 Chris Toshok <toshok@ximian.com>
23440 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
23441 beginning to think that most datagrid column types don't need this
23442 method. Fixes bug #79392.
23444 2006-10-05 Chris Toshok <toshok@ximian.com>
23446 * DataGrid.cs: move back to a more lazy scheme for creating the
23447 CurrencyManager, so we aren't updating it every time you set
23448 either DataSource or DataMember. Also, don't call
23449 RecreateDataGridRows if the currency manager hasn't changed.
23451 2006-10-05 Chris Toshok <toshok@ximian.com>
23453 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
23454 emitted, SelectedIndex should already be updated. Fixes bug
23457 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
23459 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
23460 ToolStripTextBox.cs: Initial commit.
23461 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
23463 2006-10-05 Jackson Harper <jackson@ximian.com>
23465 * TabControl.cs: We need to invalidate the tab control area when
23466 new ones are added (duh).
23468 2006-10-03 Chris Toshok <toshok@ximian.com>
23470 * Form.cs (ProcessDialogKey): if the focused control is in this
23471 form and is a button, call its PerformClick method here. Fixes
23474 2006-10-04 Jackson Harper <jackson@ximian.com>
23476 * TabPage.cs: Ignore setting of Visible, and add an internal
23477 method for setting the controls visibility. TabPage's Visible
23478 property is a little strange on MS, this seems to make us
23479 compatible, and fixes cases where people set all the tab pages to
23481 * TabControl.cs: Use the new internal setting on tab pages
23484 2006-10-03 Mike Kestner <mkestner@novell.com>
23486 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
23488 2006-10-03 Mike Kestner <mkestner@novell.com>
23490 * ListView.cs : use is_visible instead of Visible to check if
23491 scrollbars should be placed/sized. Also some max_wrap_width
23492 love for LargeIcon view. [Fixes #79533]
23494 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
23497 Make set_TextAlign() do actually update the align. Fixed #78403.
23499 2006-10-03 Chris Toshok <toshok@ximian.com>
23501 * DataGrid.cs: fix a crash when switching datasources if the
23502 vertical scrollbar is at someplace other than Value = 0. Also,
23503 reduce the number of recalculation passes we do in SetDataSource
23506 2006-10-03 Jackson Harper <jackson@ximian.com>
23508 * TextBoxBase.cs: Move the if value the same bail check up, we
23509 don't want to empty the document if it is already empty, this
23510 seems to severly mess up the caret. TODO: I should probably fix
23511 the empty statement to update teh caret somehow.
23513 2006-10-03 Chris Toshok <toshok@ximian.com>
23515 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
23516 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
23517 reflection, an internal row type, properties on said type, etc.)
23518 will work with our datagrid. Fixes #79531.
23520 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
23522 * FileDialog.cs: Don't crash if a path is not accessible
23523 (System.UnauthorizedAccessException). Fixes #79569.
23524 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
23525 a ':' too. Return unknown icon for those paths/files.
23527 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
23529 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
23530 GetContainerControl returns null.
23532 2006-10-02 Chris Toshok <toshok@ximian.com>
23534 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
23535 call to XGetWindowAttributes instead of "handle". fixes an X
23536 error using notifyicon after the NotifyIconWindow to Form base
23539 2006-10-02 Chris Toshok <toshok@ximian.com>
23541 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
23542 server grab and looping we need to do to get down to the most
23543 deeply nested child window.
23544 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
23545 QueryPointer again after the WarpPointer so we can generate a
23546 proper (fake) MotionNotify event to be enqueued in the destination
23548 (GetCursorPos): call QueryPointer.
23552 2006-10-02 Jackson Harper <jackson@ximian.com>
23554 * NotifyIcon.cs: Derive the notify icon from a form, so things
23555 like FindForm work on it.
23556 - Swallow the WM_CONTEXTMENU message, since that is generated on
23557 mouse down, and context menu is a mouse up kinda guy. I believe
23558 the correct fix here is probably to make the notify icon entirely
23559 NC area, but this seems to work fine for anyone not manipulating
23562 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
23564 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
23565 ToolStripItemCollection.cs, ToolStripLabel.cs,
23566 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
23567 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
23568 Initial implementation.
23569 * TextRenderer.cs: Provide padding to MeasureText.
23571 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
23573 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
23574 of ButtonBaseAccessibleObject. Fix bug #79552.
23576 2006-10-02 Jackson Harper <jackson@ximian.com>
23578 * MdiWindowManager.cs: When maximizing use the containers client
23579 rect, not it's bounds, so nc area is accounted correctly.
23580 - Use the parent form's size for the menu position, since the
23581 client isn't always the full form size.
23583 2006-10-01 Chris Toshok <toshok@ximian.com>
23585 * ScrollableControl.cs: make sure neither right_edge or
23586 bottom_edge are < 0, since they're used as LargeChange for the
23587 horiz/vert scrollbars respectively. Fixes #79539.
23589 2006-10-01 Chris Toshok <toshok@ximian.com>
23591 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
23592 the xplatuix11 code can cause us to destroy/recreate our handle.
23596 - this code can be invoked many times for the same Hwnd. Make
23597 sure we only destroy the client window once (the first time this
23598 method is called). This fixes bug #79544.
23599 - Remove the call to the improperly bound XSync. why we had two
23600 bindings to this, I will never know, but this call resulted in
23601 events being discarded from the queue(!).
23602 - correct a misunderstanding of _XEMBED_INFO - the second atom is
23603 not our current state but the state we wish to be in. So, 0 if
23604 we don't want to be mapped. Change it to 1.
23605 (SystrayRemove): The XEMBED spec makes mention of the fact that
23606 gtk doesn't support the reparent of client windows away from the
23607 embedder. Looking at gtksocket-x11.c seems to agree with this.
23608 The only avenue we have for removing systray icons is to destroy
23609 them. We don't want the handle to go away for good, though, so
23610 call InternalRecreateHandle on the NotifyIconWindow. Fixes
23613 2006-10-01 Chris Toshok <toshok@ximian.com>
23615 * Form.cs (WndProc): inline the native_enabled variable usage into
23616 the cases in which it's used. Fixes #79536.
23618 2006-09-29 Mike Kestner <mkestner@novell.com>
23620 * ListView.cs : toggle the selection state for ctrl clicks in
23621 multiselect mode. [Fixes #79417]
23623 2006-09-29 Mike Kestner <mkestner@novell.com>
23625 * ListView.cs : kill CanMultiSelect and refactor the selection
23626 code to support multiselection in the absence of mod keys. Steal
23627 arrow/home/end keys by overriding InternalPreProcessMessage to
23628 restore regressed keynav behavior.
23631 2006-09-29 Jackson Harper <jackson@ximian.com>
23633 * MdiClient.cs: Repaint the titlebars when the active window is
23636 2006-09-29 Chris Toshok <toshok@ximian.com>
23638 * Application.cs: when entering a runloop with a modal, make sure
23639 the hwnd is enabled. Fixes #79480.
23641 2006-09-29 Chris Toshok <toshok@ximian.com>
23643 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
23644 when ListManager.CanAddRows == false, bump us back one.
23646 * DataGridColumnStyle.cs (ParentReadOnly): remove the
23647 listmanager.CanAddRows check. This makes ArrayLists uneditable
23648 using a datagrid, which is not right.
23649 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
23650 is an IEditable, but call property_descriptor.SetValue regardless.
23653 2006-09-29 Chris Toshok <toshok@ximian.com>
23655 * DataGridBoolColumn.cs: we need to test equality in the face of
23656 possible null values (as is the case with the default NullValue).
23657 This patch keeps us from crashing in that case.
23659 2006-09-29 Jackson Harper <jackson@ximian.com>
23661 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
23662 here, since it will get called for every node collection in the
23663 tree. This is now done in the treeview once the sorting is
23665 * TreeView.cs: Recalculate the visible order, and update the
23666 scrollbars after sorting, set the top nope to the root so that the
23667 recalc actually works.
23669 2006-09-29 Chris Toshok <toshok@ximian.com>
23671 * LinkLabel.cs: more handling of the default link collection in
23672 the face of LinkArea manipulation. The default link collection
23673 contains 1 element (start=0,length=-1). If the user sets LinkArea
23674 to anything and the links collection is the default, clear it.
23675 Then only add the link if its nonempty. Fixes #79518.
23677 2006-09-29 Chris Toshok <toshok@ximian.com>
23679 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
23680 piece correctly when we hit a '\n'. Fixes #79517.
23682 2006-09-29 Chris Toshok <toshok@ximian.com>
23684 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
23685 change the binding of gdk_init_check to take two IntPtr's, and
23686 pass IntPtr.Zero for both of them. Fixes #79520.
23688 2006-09-29 Mike Kestner <mkestner@novell.com>
23690 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
23693 2006-09-28 Jackson Harper <jackson@ximian.com>
23695 * XplatUIX11.cs: When translating NC messages make sure we go from
23696 whole window to screen, not client window to screen.
23697 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
23698 method doesn't exist
23699 - Skip over controls that aren't forms when arranging.
23701 2006-09-28 Jackson Harper <jackson@ximian.com>
23703 * XplatUIWin32.cs: Clip the rect to the parent window.
23704 * XplatUIStructs.cs: Add clipping modes struct.
23705 * InternalWindowManager.cs: New private method that factors title
23706 bar heights in when calculating the pos of an NC mouse message.
23707 - Use SendMessage to force a paint when the form's size is changed
23708 instead of painting the decorations immediately.
23709 - Don't let the NC button click messages get to DefWndProc,
23710 because they will attempt to handle windowing themself, and this
23711 messes up z-order (it will put them in front of the scrollbars).
23712 * XplatUIX11.cs: Make sure that we don't reset window managers if
23713 we already have one (ie the window is an MDI window).
23715 2006-09-28 Chris Toshok <toshok@ximian.com>
23717 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
23718 menu code really needs going over.
23720 2006-09-27 Chris Toshok <toshok@ximian.com>
23722 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
23723 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
23724 window is maximizable. So, we need to make sure that even if we
23725 clear the border/wm frame of those functions, they're still
23726 available (basically, we remove the decoration without removing
23727 the function). Half the fix for #79338.
23729 2006-09-27 Chris Toshok <toshok@ximian.com>
23731 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
23734 2006-09-27 Chris Toshok <toshok@ximian.com>
23736 * Splitter.cs: reorder things a bit so that we don't actually
23737 draw/move the splitter until after calling OnSplitterMoving. This
23738 lets users cancel/disallow the movement by explicitly setting
23739 event.SplitX/SplitY. Fixes #79372.
23741 2006-09-27 Jackson Harper <jackson@ximian.com>
23743 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
23744 because it is most likely on a window being destroyed, and that
23745 will give us an X11 error.
23747 2006-09-27 Chris Toshok <toshok@ximian.com>
23749 * PropertyGridView.cs: half of the fix for #78190. Clicking on
23750 the dropdown button now toggles between showing and hiding the
23751 dropdown. Also, get rid of dropdown_form_showing and just use
23752 dropdown_form.Visible. We still don't do a grab, but I'll leave
23753 that part to someone who has handled Capture-fu before.
23755 2006-09-27 Chris Toshok <toshok@ximian.com>
23757 * DataGrid.cs: return false if alt isn't pressed when '0' is
23758 pressed. this keeps the '0' key from being swallowed, and fixes
23761 2006-09-27 Chris Toshok <toshok@ximian.com>
23763 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23764 Calling Refresh (in response to a scrollbar event) screws up the
23765 scrollbar painting. Fixes bug #78923.
23767 2006-09-27 Chris Toshok <toshok@ximian.com>
23769 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23770 then insert into hashtable" blocks threadsafe.
23772 2006-09-27 Chris Toshok <toshok@ximian.com>
23774 * MessageBox.cs (CreateParams): the styles should be |'ed with our
23775 baseclass's, since otherwise the
23776 ControlBox/MinimizeBox/MaximizeBox assignments above have no
23777 effect. This gets the close button back in messageboxes.
23779 2006-09-27 Chris Toshok <toshok@ximian.com>
23781 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23782 flag, not just != 0. this makes flags that are actually multiple
23783 bits (like WS_CAPTION) work. fixes bug #79508.
23785 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
23787 * PageSetupDialog.cs: add support for getting and settings the
23788 paper size, source and orientation.
23790 2006-09-26 Chris Toshok <toshok@ximian.com>
23792 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23793 and caption == "", we need to remove the resize handles as well as
23796 * Control.cs (set_Text): turns out that setting Text on a form
23797 should change the WM styles on the window, since if ControlBox ==
23798 false, the only way to get a window border is to have a non-""
23799 Text property. check winforms/forms/text.cs for an example. so,
23800 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23801 update both window styles and title. This fixes a lot of dialogs
23802 (including the preferences dialog in MonoCalendar.)
23804 2006-09-26 Chris Toshok <toshok@ximian.com>
23806 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23807 control isn't a Form), call Win32ShowWindow to hide the window,
23808 but don't update the control Visible property. When we reparent
23809 back to a parent control, call SetVisible in order for the
23810 window's visibility to be reinstated.
23812 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23815 * Control.cs (ControlCollection.Remove): remove that value.Hide()
23816 call for good, since it breaks MonoCalendar (and other things I'm
23817 sure.) Also, set all_controls to null *after* the owner calls,
23818 which end up regenerating it.
23819 (ChangeParent): allow new_parent to be == null, passing
23820 IntPtr.Zero down to XplatUI.
23822 this fixes #79294 the right way.
23824 2006-09-26 Mike Kestner <mkestner@novell.com>
23826 * GridEntry.cs : internal SetParent method.
23827 * PropertyGrid.cs : attach to property changed on the proper
23828 target if we have a hierarchical grid with subobjects. Setup
23829 GridItem.Parent for hierarchical items.
23830 * PropertyGridView.cs : Set value on the correct target for
23831 hierarchical grids. [Fixes #78903]
23833 2006-09-26 Chris Toshok <toshok@ximian.com>
23835 * Control.cs (ChildNeedsRecreating): this should return true if
23836 either we're being recreated and the child is in our list, or our
23837 parent is waiting for our recreation.
23839 2006-09-26 Chris Toshok <toshok@ximian.com>
23841 * Control.cs (ControlCollection.Remove): reinstate the
23842 value.Hide() call as suggested in bug #79294.
23844 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
23846 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23847 coordinates (versus a relative move).
23849 2006-09-26 Chris Toshok <toshok@ximian.com>
23851 * Control.cs: rework child recreation a little bit. It turns out
23852 that we race between the DestroyNotify the WM_DESTROY message. If
23853 the parent gets its DestroyNotify before the child gets the
23854 WM_DESTROY message, the child ends up not recreating (since the
23855 parent finishes its recreation on DestroyNotify, and the child
23856 checks ParentIsRecreating.)
23858 So, instead we store off a list of all the child controls which
23859 need to be recreated when the parent control starts to recreate
23860 itself. Then, when child controls get their WM_DESTROY message we
23861 check to see if they're in the parent's pending recreation list,
23862 and if so, we recreate. This removes all dependency on ordering
23863 from the code and fixes the initial MonoCalendar upgrade dialog.
23865 2006-09-26 Jackson Harper <jackson@ximian.com>
23867 * TextControl.cs: Use the Line to get the length of the line,
23868 since soft line breaks can change the end line.
23870 2006-09-26 Chris Toshok <toshok@ximian.com>
23872 * Control.cs (ControlCollection.AddImplicit): don't add the
23873 control again if it's already in one of our lists. This keeps us
23874 from adding controls over and over again for comboboxes when their
23875 handle gets recreated (as the combobox adds implicit controls in
23876 OnHandleCreated). Fixes the X11 errors in bug #79480.
23878 2006-09-26 Jackson Harper <jackson@ximian.com>
23880 * TextControl.cs: When deleting characters make sure that any
23881 orphaned zero lengthed tags get deleted.
23882 - Fix ToString for zero lengthed tags.
23884 2006-09-25 Jackson Harper <jackson@ximian.com>
23886 * TextControl.cs: When getting a tag at the location there can be
23887 multiple tags at the same spot, these are 0-lengthed tags that
23888 appear when extra formatting has been stuck in a location. We
23889 need to pull out the last of these 0 lengthed tags.
23891 2006-09-25 Jackson Harper <jackson@ximian.com>
23893 * TextControl.cs: Fix print out in debug method.
23894 * TextBoxBase.cs: When text is set bail if we are setting to the
23897 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
23899 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23900 It is now possible to change the selected index in a FontXXXListBox
23901 with the up and down arrow keys from the FontXXXTextBoxes.
23902 Also, send the FontXXXTextBox mouse wheel event to the corresponding
23903 FontXXXListBoxes to match ms.
23905 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
23907 * SystemInformation.cs: Return a clone of the theme's MenuFont because
23908 anyone can dispose it, anytime. All other properties returns enums,
23909 structs or basic types so they don't need such tricks.
23911 2006-09-22 Jackson Harper <jackson@ximian.com>
23918 * XplatUIDriver.cs: Update interface to add a primary selection
23919 flag, so the driver can use the primary selection buffer if
23921 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23923 * RichTextBox.cs: We need to supply the data object to paste now
23924 (so we can choose to supply CLIPBOARD or PRIMARY).
23925 * TextBoxBase.cs: Supply data object to paste (see above).
23926 - Middle click uses the primary selection data object.
23928 2006-09-21 Chris Toshok <toshok@ximian.com>
23930 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23931 of SetWMStyles. It's still a rat's nest and is largely
23932 order-dependent which I dislike immensely. This also fixes the X
23933 button disappearing from toplevel forms.
23935 2006-09-21 Mike Kestner <mkestner@novell.com>
23937 * ListBox.cs: move Jordi's click/dblclick raising code to the
23940 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23942 * ListBox.cs: Fixes 79450
23944 2006-09-21 Mike Kestner <mkestner@novell.com>
23946 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23947 to deal with people updating the TreeNodeCollection after the tree
23948 is disposed. "Fixes" 79330.
23950 2006-09-20 Jackson Harper <jackson@ximian.com>
23952 * TextControl.cs: Push the cursor record onto the undo stack
23953 before the delete action. This fixes 78651.
23955 2006-09-20 Jonathan Chambers <joncham@gmail.com>
23957 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23958 CreateParams. Fixes 79329.
23960 2006-09-19 Chris Toshok <toshok@ximian.com>
23962 * XplatUIX11.cs: a couple of blanket code massage passes to clean
23963 things up a bit. First, get rid of the NetAtoms array (and the NA
23964 enum), and just embed the atoms as static fields. Also, add a
23965 couple of functions (StyleSet and ExStyleSet) to clean up all the
23966 bitmask testing of styles.
23968 * X11Structs.cs: remove the NA enum, not needed anymore.
23970 2006-09-19 Chris Toshok <toshok@ximian.com>
23972 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23973 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
23974 added cleanup to get MessageBox titles appearing again, which were
23975 broken by my earlier fix for caption-less/ControlBox-less windows.
23977 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
23979 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23980 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23981 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23982 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23983 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23984 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23985 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23986 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23987 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23988 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23989 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23991 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23992 ToolStripButton.cs: Stubs needed for above.
23993 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23995 2006-09-15 Chris Toshok <toshok@ximian.com>
23998 - make the MessageQueues hashtable Synchronized.
24000 - SendMessage: if the Hwnd is owned by a different thread, use the
24001 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
24002 thread. Fixes bug #79201.
24004 2006-09-15 Chris Toshok <toshok@ximian.com>
24006 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
24007 ControlBox == false, we disallow maximize/minimize/close. If the
24008 form Caption is "" we also disallow move (and get rid of the Title
24009 decoration). Unfortunately, regardless of how things are set,
24010 we're stuck with the Title and WM menu.
24012 2006-09-15 Chris Toshok <toshok@ximian.com>
24014 * Application.cs: add locking around the static message_filters
24015 ArrayList, part of #79196.
24017 2006-09-15 Chris Toshok <toshok@ximian.com>
24019 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
24020 Form.ControlBox == false, the window has no titlebar nor resize
24021 handles. fixes bug #79368.
24023 2006-09-15 Chris Toshok <toshok@ximian.com>
24025 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
24026 >= 0. Fixes bug #79370.
24028 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
24029 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
24031 Add properties: LayoutEngine, Margin, DefaultMargin.
24032 Add method: GetPreferredSize.
24033 Move layout logic from PerformLayout to layout engines.
24035 2006-09-13 Chris Toshok <toshok@ximian.com>
24037 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
24038 fix for #79326 broke #78718, so this change addresses that.
24040 - in SendWMDestroyMessages remove the call to
24041 CleanupCachedWindows, since we might be recreating the control and
24042 need to maintain the references to right Hwnd handles. Also, set
24043 the zombie flag to true for each of the children in the hierarchy
24044 instead of calling hwnd.Dispose. This will cause GetMessage to
24045 ignore all events for the window except for DestroyNotify.
24047 - In GetMessage, ignore messages except for DestroyNotify for
24050 * Control.cs: revert the is_recreating fix from the last
24051 ChangeLog. It's definitely "right", but it breaks switching from
24052 an MDI form to a non-MDI form. Will need to revisit that.
24054 * Hwnd.cs: add a zombie flag, which means "the
24055 client_window/whole_window handles are invalid, but we're waiting
24056 for the DestroyNotify event to come in for them". Set the flag to
24057 false explicitly if setting WholeWindow/ClientWindow, and also
24060 2006-09-13 Chris Toshok <toshok@ximian.com>
24062 * XplatUIX11.cs: rework window destruction slightly.
24064 - when destroying the windows associated with a control, we don't
24065 need 2 separate XDestroyWindow calls. Just the one for the
24066 whole_window (or for client_window if whole_window is somehow
24067 IntPtr.Zero -- can this happen?) is enough.
24069 - reworked SendWMDestroyMessages slightly, so we always dispose
24070 the child control hwnd's after sending the messages.
24072 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
24073 the two places it was used (one was even using hwnd.Handle and the
24074 other hwnd.client_window. ugh), adding another call in
24075 SendWMDestroyMessages. We need this new call because now the
24076 DestroyNotify events in the queue will be ignored for the child
24077 controls (as their hwnd's were disposed, and the window id's
24078 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
24080 - this fixes bug #79326.
24082 2006-09-13 Chris Toshok <toshok@ximian.com>
24084 * Control.cs: don't always set is_recreating to false at the end
24085 of RecreateHandle, since sometimes we're not done (and won't be
24086 until WndProc handles the WM_DESTROY message). Also, set
24087 is_recreating to false in the WM_DESTROY handling code. Part of
24088 the fix for bug #79326.
24090 2006-09-13 Miguel de Icaza <miguel@novell.com>
24092 * X11DesktopColors.cs: Start the droppage of debugging messages.
24094 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
24096 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
24098 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
24100 2006-09-12 Chris Toshok <toshok@ximian.com>
24102 * DataGrid.cs (get_ListManager): if the list_manager is null, try
24103 to create it using SetDataSource. Fixes bug #79151.
24105 2006-09-11 Chris Toshok <toshok@ximian.com>
24107 * XEventQueue.cs: add a DispatchIdle property.
24109 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
24110 either the queue is null, or the queue has DispatchIdle set to
24112 (DoEvents): set queue.DispatchIdle to false around the
24113 peek/translate/dispatch message loop in this method. This keeps
24114 Application.Doevents from emitting idle events. Part of the fix
24117 2006-09-11 Chris Toshok <toshok@ximian.com>
24119 * DataGrid.cs (set_DataSource): make this work for both the
24120 winforms/datagrid test and ReportBuilder. It seems as though when
24121 we've created a ListManager (or maybe it's if we have a
24122 BindingContext?), when we set the DataSource it clears the
24123 DataMember to "". otherwise we reuse the datamember. Fixes bug
24126 2006-09-11 Chris Toshok <toshok@ximian.com>
24128 * XplatUIX11.cs: deal with queue being null, which happens in all
24129 the Clipboard functions. Fixes one of the two problems mentioned
24132 2006-09-11 Chris Toshok <toshok@ximian.com>
24134 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
24135 button on various spots (including outside the menu) works closer
24136 to MS, and doesn't crash. Fixes #79343.
24138 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
24140 * ListView.cs: Do not initialize item_sorter in init. To match MS,
24141 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
24142 and the internal comparer is set. When a new ListViewItemSorter is set,
24143 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
24144 was specified. No further processing is necessary if SortOrder is set
24145 to it's current value. If Sorting is modified to None, and View is
24146 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
24147 (either custom or our internal ItemComparer) to null, on 1.0 profile
24148 only set item_sorter to null if its our internal IComparer. If Sorting
24149 is modified to Ascending or Descending, then use our internal IComparer
24150 if none is set, and if the current IComparer is our internal one then:
24151 on 2.0 profile always replace it with one for new Sorting, and on 1.0
24152 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
24153 Enum.IsDefined to verify whether a valid View value is specified in
24154 its setter. Automatically sort listview items when listview is
24155 created. In Sort, do nothing if ListView is not yet created, or if
24156 no item_sorter is set (no Sorting was set, Sorting was explicitly set
24157 to None or ListViewItemSorter was set to null). Added Sort overload
24158 taking a bool to indicate whether the ListView should be redrawn when
24159 items are sorted (we use this in ListViewItemCollection to avoid double
24160 redraws). Modified our internal IComparer to take the sort order into
24161 account. In Add and AddRange methods of ListViewItemCollection, also
24162 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
24163 view), but use overload with noredraw option to avoid double redraw.
24164 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
24165 true when View is Tile, and do the same when attempting to set View to
24166 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
24167 for selected/checked indices, as it involves overhead when sorting is
24168 done while these collections are not used all that often. Instead
24169 we'll build the indices on demand. Modified IList implementation of
24170 CheckedIndexCollection to use public methods if object is int.
24171 Modified CheckedListViewItemCollection to hide checked items if
24172 ListView.CheckBoxes is false. Removed LAMESPEC remark in
24173 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
24174 IList implementation in SelectedIndexCollection to use public methods
24175 if object is int. Modified SelectedListViewItemCollection to hide
24176 selected items if listview is not yet created.
24177 * ListViewItem.cs: CheckedIndices list no longer needs to be
24178 maintained separately (see ListView changes). Also clone font, fixes
24181 2006-09-11 Mike Kestner <mkestner@novell.com>
24183 * ComboBox.cs: if we are updating the contents of the currently
24184 selected index, refresh the control or the textbox selection.
24187 2006-09-11 Mike Kestner <mkestner@novell.com>
24189 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
24190 the 'specified' logic has been moved there. This seems like a bug
24191 in Control.cs, since our current SetBoundsCore completely ignores
24192 the specified parameter. Peter's commit seems to indicate that is
24193 the way the MS control implementation works. [Fixes #79325]
24195 2006-09-10 Jonathan Chambers <joncham@gmail.com>
24197 * XplatUI.cs: Set default_class_name to be composed
24198 of current domain id. This allows MWF to be loaded in multiple
24201 2006-09-09 Miguel de Icaza <miguel@novell.com>
24203 * X11Keyboard.cs: If we are unable to obtain the input method, do
24204 not call CreateXic to create the input context. Should fix
24207 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
24209 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
24210 Simplified gnome support by adding more pinvokes to get the
24211 icon for a file or mime type.
24213 2006-09-08 Jackson Harper <jackson@ximian.com>
24215 * MenuAPI.cs: Deslect popup context menu items before closing the
24216 window, so that you don't see the previously selected item
24217 selected when you reopen the menu.
24218 * TextControl.cs: Update the cursor position even if we don't have
24219 focus. This fixes typing in things like the ComboBox. I'm not
24220 totally sure we should always set the visibility if we don't have
24221 focus, but couldn't find any corner cases where the cursor showed
24222 up when it shouldn't.
24224 2006-09-08 Chris Toshok <toshok@ximian.com>
24226 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
24227 our arrays are length 256. & 0xff before indexing. Fixes the
24228 crash in bug #78077.
24230 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24232 * ThemeWin32Classic.cs:
24233 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
24234 is true. Handle that check box too.
24236 2006-09-07 Chris Toshok <toshok@ximian.com>
24238 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
24241 2006-09-07 Chris Toshok <toshok@ximian.com>
24243 * Control.cs: in set_BackColor only do the work if
24244 background_color != value.
24246 * XplatUIX11.cs: move the clearing of invalid areas (both client
24247 and nc) to the same block of code where we set (nc_)expose_pending
24248 to false. That is, move it from PaintEventEnd to PaintEventStart,
24249 so things that cause invalidates from within OnPaint will trigger
24250 another call to OnPaint. Fixes bug #79262.
24252 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
24254 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
24255 * FileDialog.cs: Fix typo
24257 2006-09-07 Jackson Harper <jackson@ximian.com>
24259 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
24260 for tab pages if they have any.
24262 2006-09-06 Mike Kestner <mkestner@novell.com>
24264 * Splitter.cs: use the "current" rect when finishing drag handle
24265 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
24267 2006-09-06 Mike Kestner <mkestner@novell.com>
24269 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
24270 support offset splitters. [Fixes #79298]
24272 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
24274 * Mime.cs: Fixed a bug that could override the global mime type
24277 2006-09-05 Jackson Harper <jackson@ximian.com>
24279 * TabControl.cs: Better calculation method for setting the slider
24280 pos. Prevents crashes on really wide tabs.
24281 - Draw Image on tab pages if an image list is used.
24283 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24285 * MonthCalendar.cs: When Font changes, the Size should be
24286 updated to fit the new font's space requirements.
24288 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
24290 * ListBox.cs: If the items are cleared with Items.Clear set
24293 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24295 * MonthCalendar.cs: Handle arrow keys as input keys. Also
24296 fire DateChanged event instead of DateSelected event when
24297 the date was changed by keyboard interaction.
24299 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24301 * DateTimePicker.cs: Handle DateChanged for the associated
24302 month_calendar control, and set month_calendar.Font from
24303 OnFontChanged method, as well as resize the height of the
24304 control when needed. Make PreferredHeight proportional.
24306 2006-09-01 Chris Toshok <toshok@ximian.com>
24308 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
24311 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
24313 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
24315 * FileDialog.cs: Set ClientSize instead of window size, to allow space
24316 for decorations (Fixes #79219)
24318 2006-09-01 Mike Kestner <mkestner@novell.com>
24320 * ComboBox.cs: first stab at sorting plus some selection handling
24321 fixes to bring us more in line with MS behavior. Also switches back
24322 to index based selection. Alternative patches for index-based
24323 selection were provided by Jackson Harper, Carlos Alberto Cortez,
24324 and latency@gmx.de on bug 78848. I assume they were similar to this
24325 code I've had simmering in my tree forever.
24328 2006-09-01 Chris Toshok <toshok@ximian.com>
24330 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
24331 when setting list position guard against ending up with a -1 index
24332 (the other part of the fix for #78812). Should probably make sure
24333 we don't need the analogous fix in the ItemDeleted case.
24336 - in SetDataSource, work around the fact that the way
24337 OnBindingContextChanged is invoked will cause us to re-enter this
24338 method. I'll remove the hack once I investigate
24339 OnBindingContextChanged.
24341 - fix the logic in set_DataSource and set_DataMember (basically
24342 what to do if the other of the two is null.)
24344 - in OnListManagerItemChanged, we need to take into account the
24345 edit row when deciding whether or not to call RecreateDataGridRows
24346 (part of the fix for #78812).
24348 2006-09-01 Jackson Harper <jackson@ximian.com>
24350 * Splitter.cs: Don't do anything if there is no control to affect
24351 (prevents us from crashing in weird tet cases).
24352 * TreeView.cs: Bounding box for the mouse movement reverting
24353 focus/selection back to previously selected node. This matches
24354 MS, and makes the tree a lot more useable.
24355 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
24356 use clipping so they are not drawn. This fixes when the control
24357 is set to have a transparent background, or if it was over an
24360 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
24362 * MimeIcon.cs: Improved handling for reading default icons when
24363 using gnome (2.16 made it necessary). Check and read svg icons
24364 first, then 48x48 and then 32x32 icons.
24366 2006-08-31 Chris Toshok <toshok@ximian.com>
24368 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
24371 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
24372 ProcessKeyPreview. Fixes part of #77806.
24374 * DataGrid.cs: big patch.
24376 - revert the queueing up of DataSource/DataMember if inside
24377 BeginInit/EndInit calls. That's not the way the datagrid achieves
24378 its delayed databinding. Instead, call SetDataSource in
24379 OnBindingContextChanged. This mimic's MS's behavior, and fixes
24382 - Also, it wasn't mentioned in #78811, but the test case exhibits
24383 behavior that was lacking in our datagrid implementation - Columns
24384 that have mapping names that don't exist in the datasource's
24385 properties aren't shown. Yuck. To fix this I added the bound
24386 field to the column style, and basically any calculation to figure
24387 out anything about columns uses a loop to find the bound columns.
24388 still need to investigate if I can cache an array of the bound
24389 columns or if the indices must be the same.
24391 - When setting CurrentCell, we no longer abort if the cell being
24392 edited was in the add row. This fixes the other part of #77806.
24394 - The new code also fixes #78807.
24396 * ThemeWin32Classic.cs: perpetrate the same disgusting
24397 column.bound field hack, and only render bound fields.
24399 2006-08-31 Chris Toshok <toshok@ximian.com>
24401 * DataGridColumnStyle.cs: add bound field. this field is true if
24402 the datasource has a property corresponding to the mapping name.
24404 * DataGridTableStyle.cs: set the bound field on the column styles
24405 depending on whether or not we have a column for that property.
24407 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
24409 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
24410 splitter control (fixes #79228)
24412 2006-08-31 Chris Toshok <toshok@ximian.com>
24414 * DataGridColumnStyle.cs: we need to delay the assignment of
24415 property descriptor until the last possible moment due to the lazy
24416 databinding stuff in the datagrid. Also, fix the exceptions
24417 thrown by CheckValidDataSource to match MS.
24419 2006-08-31 Jackson Harper <jackson@ximian.com>
24421 * Form.cs: When activated select the active control, if there is
24422 no active control, we select the first control.
24423 * XplatUIX11.cs: If there is no focus control when we get a
24424 FocusIn event, find the toplevel form and activate it. This
24425 occurs when you popup a window, it becomes the focus window, then
24426 you close that window, giving focus back to the main window.
24428 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24430 * MonthCalendar.cs:
24431 * ThemeWin32Classic.cs: Cache Font in bold style, as well
24432 as StringFormat with Center alignments in MonthCalendar,
24433 instead of creating new ones when drawing the control.
24434 Also, draw the month name in bold style.
24436 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
24439 - PerformLayout(): It would seem MS performs the fill even if the
24440 control is not visible (part of #79218 fix)
24441 - ResetBackColor(): Use the setter to reset the color, to allow
24442 overriders to catch the change.
24444 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
24445 - CreateHandle(): dito (part of $79218 fix)
24446 - Don't set an icon if we have a dialog
24447 * ScrollableControl.cs:
24448 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
24449 - ScrollIntoView(): No need to scroll if control is already visible
24450 (resolves fixme and fixes #79218)
24452 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24454 * MonthCalendar.cs: Change proportions in SingleMonthSize
24455 to match the aspect of the original control.
24457 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
24459 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
24460 get updated when they get maximized.
24462 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
24464 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
24466 2006-08-29 Chris Toshok <toshok@ximian.com>
24468 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
24470 2006-08-29 Jackson Harper <jackson@ximian.com>
24472 * TreeView.cs: Need to track selected node and highlighted node,
24473 they aren't always the same thing, when the mouse is down on a
24474 node it is hilighted, but not selected yet.
24475 - Do the HideSelection stuff right
24476 - Need to focus on rbutton mouse down. And redraw selection when
24477 right click is mouse upped.
24479 2006-08-29 Mike Kestner <mkestner@novell.com>
24481 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
24482 when SubItems.Count < Columns.Count. [Fixes #79167]
24484 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
24486 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
24488 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
24490 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
24491 from X. Only send based on ConfigureNotify if we don't have the
24492 correct location in hwnd (if the window manager moved us)
24494 2006-08-28 Mike Kestner <mkestner@novell.com>
24496 * ListView.cs: remove a TODO.
24497 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
24498 [Fixes ListView part of #79166]
24500 2006-08-28 Mike Kestner <mkestner@novell.com>
24502 * ListView.cs: move wheel handler to parent since it is focused
24503 instead of the item_control now. [Fixes #79177]
24505 2006-08-28 Mike Kestner <mkestner@novell.com>
24507 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
24508 when the control is focused. [Fixes #79171]
24510 2006-08-28 Mike Kestner <mkestner@novell.com>
24512 * ListView.cs: size the item and header controls for empty and
24513 unscrollable views.
24514 * ThemeWin32Classic.cs: draw disabled backgrounds.
24517 2006-08-28 Chris Toshok <toshok@ximian.com>
24519 * Form.cs: remove unused "active_form" static field.
24521 * Hwnd.cs: lock around accesses to static windows collection.
24523 * Application.cs: lock threads in Exit ().
24525 2006-08-28 Chris Toshok <toshok@ximian.com>
24527 * NativeWindow.cs: lock around accesses to window_collection.
24529 2006-08-28 Chris Toshok <toshok@ximian.com>
24531 * Control.cs: err, fix this the right way, by locking on controls
24532 when using it. not by making it synchronized.
24534 2006-08-28 Chris Toshok <toshok@ximian.com>
24536 * Control.cs: make the static "controls" field synchronized, as it
24537 gets updated from multiple threads.
24539 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24541 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
24542 Prevent other threads from exiting when calling thread sets quit state.
24543 * XEventQueue.cs: Added PostQuitState property
24545 2006-08-27 Chris Toshok <toshok@ximian.com>
24547 * AsyncMethodData.cs: add a slot for the window handle.
24549 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
24550 window (the destination control's window, not the foster window).
24552 * Control.cs (BeginInvokeInternal): store the window's handle in
24553 the AsyncMethodData.
24556 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24559 - PostQuitMessage: Removed resetting S.D display handle, we might have
24560 another loop started after calling PostQuitMessage (Fixes #79119)
24561 - Created destructor to reset S.D handle
24563 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
24565 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
24567 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24569 * TextControl.cs (Insert): Update the caret position even if we don't
24570 have a handle yet, just don't call the driver in that case.
24571 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
24572 to the end of the new selection text (Fixes #79184)
24574 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24576 * Form.cs (Activate): Only activate if the handle is created)
24578 - Mark window as invisible when it's disposed
24579 - Check if window handle is created when setting window visible,
24580 instead of relying just on the is_created variable
24581 - Check if object is disposed when creating the control (Fixes #79155)
24583 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24585 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
24586 when allowing layout again. Otherwise we re-generate the anchoring
24587 distance to the border again and actually alter what the user wanted
24588 This is ugly, it'd be better if we used DisplayRectangle instead of
24589 ClientRectangle for Control.UpdateDistances, but that causes us to
24590 have other problems (initial anchoring positons would be wrong)
24593 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24596 - The size and location setters shouldn't go directly to
24597 SetBoundsCore, but to SetBounds, which triggers layout on the
24598 parent, then calls SetBoundsCore. (Related to fix for #78835)
24599 - SetBounds: Moved actual location update code into this function
24600 from SetBoundsCore, to match MS. Added call to PerformLayout if
24601 we have a parent (to trigger resizing of anchored parents if the
24602 child size has changed (see testcase for #78835)
24603 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
24605 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
24607 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24609 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
24610 System.Drawing when a toplevel window gets closed; there might
24611 be other toplevel windows belonging to the same app (Fixes #78052)
24613 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
24615 * FileDialog.cs: After reading FileDialog settings from mwf_config
24616 use Desktop prefix only if a real folder doesn't exist anymore.
24617 * FontDialog.cs: Added char sets.
24618 It is now possible to select the font, size or style with the
24621 2006-08-25 Kornél Pál <kornelpal@gmail.com>
24623 * PrintPreviewDialog.cs: Use assembly name constants.
24625 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24627 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
24628 scrollbar from whacking it's buttons)
24630 2006-08-24 Chris Toshok <toshok@ximian.com>
24632 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
24633 in this patch (aggregating setting Left/Top/Width/Height to
24634 setting Bounds on the scrollbars), but the crux of the fix is in
24635 Recalculate, where we scroll by the remaining scroll_position if
24636 we're hiding a scrollbar. The 2*$5 reward in the comment is
24639 2006-08-24 Jackson Harper <jackson@ximian.com>
24642 * MdiWindowManager.cs: If the form is made a non-mdi window we
24643 need to remove the form closed event so that closing forms works
24646 2006-08-24 Jackson Harper <jackson@ximian.com>
24648 * Control.cs: Make IsRecreating internal so that the driver can
24650 - Temporarily remove the Hide when controls are removed, its
24651 making a whole bunch of things not work because visibility isn't
24652 getting reset elsewhere correctly
24653 * Form.cs: Need to do a full handle recreation when the mdi parent
24655 * XplatUIX11.cs: If we are recreating handles don't dispose the
24656 HWNDs. What was happening is the handles were being recreated in
24657 SendWMDestroyMessages, but then flow continued on in that method
24658 and destroyed the new handles.
24660 2006-08-23 Jackson Harper <jackson@ximian.com>
24662 * Form.cs: MdiClient is always at the back of the bus
24663 * Control.cs: When the order of items in the collection is changed
24664 we need to reset the all_controls array
24665 - do the same sorta setup thats done when adding a control when a
24666 control is set on the collection.
24668 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24670 * TextBoxBase.cs (get_Text): Return an empty array if our document
24671 is empty (fixes #79052)
24673 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24675 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
24676 on WM_SYSCHAR messages (fixes #79053)
24678 2006-08-23 Chris Toshok <toshok@ximian.com>
24680 * DataGrid.cs: fix flickering when scrolling vertically.
24682 2006-08-23 Chris Toshok <toshok@ximian.com>
24684 * DataGrid.cs (EndEdit): only invalidate the row header when we
24687 2006-08-23 Chris Toshok <toshok@ximian.com>
24689 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
24690 methods. fixes the flicker when scrolling around.
24692 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24694 * FileDialog.cs: Making sure the control is created before we get a
24695 chance to use it with BeginInvoke (Fixes #79096)
24697 2006-08-23 Chris Toshok <toshok@ximian.com>
24699 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
24700 width to use when painting the rows.
24702 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
24705 - Throw ArgumentException if a negative value is passed to SelectionLength
24706 - Update the selection end if start is moved. end needs to be always
24707 after start. (Fixes #79095)
24708 - Track selection length; MS keeps the selection length even if start
24709 is changed; reset on all other operations affection selection
24711 2006-08-22 Jackson Harper <jackson@ximian.com>
24713 * TreeView.cs: Make sure both scrollbars get displayed and sized
24714 correctly when the other bar is visible.
24715 - Use the original clip rectangle for checking if the area between
24716 the two scrollbars is visible, not the viewport adjusted clipping
24719 2006-08-22 Jackson Harper <jackson@ximian.com>
24721 * Binding.cs: We don't use IsBinding because it requires the
24722 control to be created, which really shouldn't be necessary just to
24723 set a property on the control.
24725 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24727 * ComboBox.cs: Some CB.ObjectCollection methods must throw
24728 ArgumentNullReferenceException when the argument is null.
24730 2006-08-21 Jackson Harper <jackson@ximian.com>
24732 * Timer.cs: Track the thread that the timer is started in (NOT
24733 CREATED), this way messages for it will only be triggered on its
24735 * XEventQueue.cs: Track the timers here, this makes timers per
24737 * XplatUIX11.cs: The timers are moved to the XEventQueue.
24739 2006-08-19 Chris Toshok <toshok@ximian.com>
24741 * XplatUIX11.cs: after further communication with pdb, we get the
24742 best of both worlds. SetZOrder working for un-Mapped windows, and
24743 no X errors for un-mapped windows.
24745 2006-08-19 Chris Toshok <toshok@ximian.com>
24747 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
24748 as it was causing pdn toolbars to not have the correct stacking.
24750 2006-08-18 Mike Kestner <mkestner@novell.com>
24752 * ListView.cs : guard against negative ClientArea.Width in scrollbar
24753 calculation. Not sure why control should ever be setting a negative
24754 width though. Fixes #78931.
24756 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24758 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24759 null items in ObjectCollection class.
24760 * ListBox.cs.: Likewise.
24762 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
24764 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24765 as the base method in ThemeWin32Classic should work fine.
24768 2006-08-18 Jackson Harper <jackson@ximian.com>
24770 * Binding.cs: When validating if the value entered doesn't convert
24771 properly reset to the old value.
24772 * RadioButton.cs: Don't fire click when we get focus.
24774 2006-08-18 Jackson Harper <jackson@ximian.com>
24776 * FileDialog.cs: Paint the selection on the directory combobox the
24779 2006-08-17 Jackson Harper <jackson@ximian.com>
24781 * ErrorProvider.cs: Don't allow the error control to be selected.
24782 * Control.cs: Don't send the SetFocus messages, the control
24783 activation will do this, and if we do it blindly here validation
24786 2006-08-17 Jackson Harper <jackson@ximian.com>
24789 * ContainerControl.cs: Make validation events fire in the correct
24790 order. TODO: For some reason the first validation event is not
24793 2006-08-17 Mike Kestner <mkestner@novell.com>
24795 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24797 2006-08-17 Mike Kestner <mkestner@novell.com>
24799 * ComboBox.cs : implement scroll wheel support for popped-down
24800 state. Fixes #78945.
24802 2006-08-17 Jackson Harper <jackson@ximian.com>
24804 * TreeView.cs: Specify treeview actions (old patch that didn't get
24805 committed for some reason).
24806 - Don't let the mouse wheel scroll us too far. Just want to make
24807 the bottom node visible, not scroll it all the ways to the top.
24809 2006-08-17 Jackson Harper <jackson@ximian.com>
24811 * XplatUIX11.cs: Mouse wheel events go to the focused window.
24813 2006-08-17 Mike Kestner <mkestner@novell.com>
24815 * ComboBox.cs : don't do mouseover selection in simple mode.
24817 2006-08-16 Jackson Harper <jackson@ximian.com>
24819 * Form.cs: Fire the closing events for all the mdi child windows
24820 when a window is closed. If the cancel args are set to true, the
24821 main window still gets the event fired, but it doesn't not close.
24822 * MdiWindowManager.cs: Do this closing cleanup in a Closed
24823 handler, instead of when the button is clicked, so cancelling the
24824 close works correctly.
24825 * ComboBox.cs: Send the mouse down to the scrollbar.
24827 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24829 * ListBox.cs: When passing 'null' to SelectedItem,
24830 set SelectedIndex to -1, to unselect items. This is the
24831 observed behaviour in .Net.
24833 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
24835 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24836 MS flags saying there won't be any. (fixes #78800)
24837 * Control.cs (HandleClick): Made virtual
24839 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
24841 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24842 cultures. Fixed bug #78399.
24844 2006-08-16 Jackson Harper <jackson@ximian.com>
24846 * Form.cs: Use the MdiClients MdiChildren property to access
24847 MdiChildren instead of creating the array from the child controls.
24848 * MdiClient.cs: Maintain a separate array of the mdi children, so
24849 that insertion order is maintained when the Z-order is changed.
24851 2006-08-16 Mike Kestner <mkestner@novell.com>
24853 * ListView.cs : add an ItemComparer and default to it for sorting.
24854 Fixes #79076, but sorting needs a complete overhaul to be compat with
24857 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24859 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24861 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24863 * Hwnd.cs (Mapped): Properly traverse the tree
24865 2006-08-15 Chris Toshok <toshok@ximian.com>
24867 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
24868 pass manager.Current.GetType() to ParseData. It has to be the
24869 property type. So, hold off doing the ParseData until we're in
24870 SetPropertyValue where we know the type. This fixes the crash in
24871 #78821 but the textbox is still empty.
24873 2006-08-15 Chris Toshok <toshok@ximian.com>
24876 - when we're scrolling, only call Edit() again if the
24877 current cell is still unobscured. Fixes bug #78927.
24878 - when handling mousedown on a cell, ensure the cell is visible
24879 before calling Edit.
24880 - remove the properties from DataGridRow, and remove the
24881 DataGridParentRow class altogether.
24884 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24886 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24887 fire OnTextChanged by ourselves. There's no point calling base,
24888 we don't set the base value anywhere else. Fixes #78773.
24890 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24892 * ListBox.cs: Call CollectionChanged when modifying
24893 an item from Items indexer, to update the actual items
24896 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
24898 * PrintDialog.cs: Small fixes for focus and a pair of checks,
24899 to match .Net behaviour.
24901 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24903 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24905 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24907 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24909 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
24911 * MessageBox.cs: Prevent potential NRE exception.
24912 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24914 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24916 * MessageBox.cs: Calculate the owner of a messagebox, also make
24917 it topmost. Fixes #78753
24919 2006-08-14 Chris Toshok <toshok@ximian.com>
24921 * XplatUIX11.cs: A couple of fixes so that metacity will let us
24922 programmatically move windows. first, set the PPosition hint as
24923 well as the USPosition hint. Second include some code from pdb
24924 that sets the window type to NORMAL when we set the transient for
24925 hint. This is because, in the absence of a window type, metacity
24926 thinks any window with TransientFor set is a dialog, and refuses
24927 to let us move it programmatically. fascists.
24929 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
24931 * XplatUIX11.cs: When setting normal hints, take into consideration
24932 an different hints previously set so we don't delete them (fixes #78866)
24934 2006-08-12 Chris Toshok <toshok@ximian.com>
24936 * ToolBarButton.cs: make Layout return a boolean, if something to
24937 do with the button's layout changed.
24940 - add another parameter to Redraw, @force, which all existing
24942 - make the Layout function return a boolean which is true if the
24943 layout has actually changed. Redraw now uses this (and @force)
24944 to determine when to invalidate. At present the only place
24945 where @force can be false is the call from OnResize, when
24946 background_image == null. So, resizing a toolbar when the
24947 layout doesn't change results in no drawing.
24949 2006-08-12 Chris Toshok <toshok@ximian.com>
24951 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
24952 the VScrollBar and HScrollbar reversed. oops.
24954 * DataGrid.cs: fix the logic that assigns sizes to the implicit
24955 scrollbars. we were assigning them twice (once in
24956 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24957 therefore causing two scrollbar resizes (and redraws?) to happen
24960 2006-08-12 Chris Toshok <toshok@ximian.com>
24962 * ToolBarButton.cs: redraw the entire button if the theme tells us
24965 * Theme.cs: add ToolBarInvalidateEntireButton.
24967 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24968 buttons, just the border.
24970 * ThemeNice.cs: redraw the entire toolbar button since we need to
24971 draw the highlight image.
24973 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24974 we need to redraw the entire button (not just the border).
24976 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24978 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24979 for vertical bars. Fixes the mismatches shown by #78513
24981 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
24983 * FileDialog.cs: If a saved/remembered path doesn't exist
24984 anymore, fall back to "Desktop".
24986 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
24988 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24989 parent. It's apparently legal to not have one
24991 - SetZOrder: Don't try to set Z-Order on an unmapped window
24992 - CreateWindow: 0,0 are legal coordinates for a window. don't move
24993 it unless the coordinates are negative
24995 2006-08-10 Mike Kestner <mkestner@novell.com>
24997 * ListControl.cs: allow null for DataSource. Clear DisplayMember
24998 when setting to null per msdn docs. Fixes #78854.
25000 2006-08-10 Chris Toshok <toshok@ximian.com>
25002 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
25003 flickering by setting a clip rectangle on the Graphics when we
25004 need to redraw just a particular menuitem. Also, rename "OnClick"
25005 to "OnMouseDown" to reflect what it actually is.
25007 * Form.cs: track the OnMouseDown change.
25009 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
25011 * CommonDialog.cs: Properly inherit the CreateParams from the form
25012 and only change what we need. Fixes #78865
25014 2006-08-10 Chris Toshok <toshok@ximian.com>
25016 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
25017 flickering in flat mode (and most of the flickering in general) by
25018 only invalidating the button border (and not the entire rectangle)
25019 when the state changes. A couple of cases still flicker:
25020 ToggleButtons, and the dropdown arrow case when the user mouse
25023 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
25025 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
25026 for german keyboards. Numlock state shouldn't affect the behaviour
25027 of the Del key. Fixes bug #78291.
25029 2006-08-10 Chris Toshok <toshok@ximian.com>
25031 * ListControl.cs: remove the items.Clear line from BindDataItems,
25032 as this is the first thing done by both subclasses in their
25033 SetItemsCore overrides. Also, add a ItemChanged handler, and when
25034 passed -1, refresh the list. This gets databinding working when
25035 the datasource is set on the list before the datasource is
25036 populated (as in wf-apps/ReportBuilder.)
25038 * ComboBox.cs: remove the argument to BindDataItems. This call
25039 should really go away, and be initiated by the ListControl code.
25041 * ListBox.cs: same.
25043 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
25045 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
25046 if no data is in the document when the control is displayed
25048 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
25050 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
25053 - PositionCaret: Allow positioning of caret but don't call methods
25054 requiring a handle if the window isn't created yet
25055 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
25056 - owner_HandleCreated: Don't position the caret, just update it's
25057 location. User might have already set a different position
25059 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
25061 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
25062 windows. Screws up the returned coordinates for child windows.
25063 Fixes #78825. I'm hoping this doesn't break something, since the
25064 code was explicitly put in 8 months ago, but no bug was attached.
25065 Menus still seem to work properly.
25067 2006-08-08 Chris Toshok <toshok@ximian.com>
25069 * DataGrid.cs: make BeginInit/EndInit actually do what they're
25070 supposed to do - delay data binding until the EndInit call. Also,
25071 make the table style collection's CollectionChangeAction.Refresh
25074 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
25075 (with action = Refresh) when a consituent table's MappingName is
25078 2006-08-08 Chris Toshok <toshok@ximian.com>
25080 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
25081 Invalidate, since changing the text can change the size of the all
25084 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
25086 * Form.cs (AddOwnedForm): Still need to add the form to our listif
25087 we don't have it yet
25089 2006-08-08 Chris Toshok <toshok@ximian.com>
25091 * PrintControllerWithStatusDialog.cs: don't .Close() the status
25092 dialog, as this causes X errors later on, since we actually
25093 destroy the window. Instead, .Hide() it.
25095 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
25097 * ComboBox.cs: Added focus reflection for popup window
25099 - Removed transient setting for non-app windows for now, not sure it
25101 - Fixed logic checking if we have captions when deciding
25102 override_redirect, WS_CAPTION is two bits and a 0 check was not
25104 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
25107 - AddOwnedForm: Don't just add the form to the list, call the property
25108 to ensure the driver is informed about the ownership as well
25109 - CreateHandle: Set the TopMost status in the driver if we have an owner
25110 * XplatUI.cs: Fixed debug statement
25112 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
25113 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
25114 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
25115 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
25116 TrackBarRenderer.cs: Make constructor private.
25117 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
25118 * ProfessionalColorTable.cs: Make properties virtual.
25120 2006-08-06 Duncan Mak <duncan@novell.com>
25122 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
25125 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
25126 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
25127 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
25128 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
25129 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
25130 Initial import of new 2.0 classes.
25132 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
25133 * Application.cs: Add 2.0 VisualStyles properties.
25135 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
25136 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25137 XplatUIX11.cs: Create property to allow access to existing private
25138 variable "themes_enabled"
25140 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25142 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
25143 file size, as otherwise our class libraries fail using windows. Fixes
25146 2006-08-04 Jackson Harper <jackson@ximian.com>
25149 * XplatUIX11.cs: Move the toolwindow window manager creation into
25150 the X11 driver, this way on win32 we can let windows create/handle
25153 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25155 * PrintDialog.cs: Remove some redundant checks, add some others,
25156 clean some code, and move the focus to the text boxes when the
25157 values are incorrect.
25159 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
25161 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
25163 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
25165 * NumericUpDown.cs: Setting the Minimum and Maximum is now
25166 handled correctly. Fixes bug #79001.
25168 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25170 * PrintDialog.cs: The "Copies" numeric up down must have
25171 set the Minimum property to 1; only if the value is bigger
25172 than 1, activate "Collate" check box. This is the behaviour of .Net.
25173 Also modify the Document elements only if it is not null.
25175 2006-08-03 Jackson Harper <jackson@ximian.com>
25177 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
25178 length. (We have a larger array then actual node count).
25180 2006-08-03 Jackson Harper <jackson@ximian.com>
25182 * ComboBox.cs: Don't show selection by default.
25183 - The SelectAll isn't needed here, since the focus code should do
25185 - DDL style lists to manual selection drawing, so when they
25186 get/lose focus they have to invalidate.
25188 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
25190 * TextBoxBase.cs: Don't always show all selections by default.
25192 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
25193 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
25194 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
25195 Fixed various typos.
25197 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
25199 * Control.cs: Removing the controls in a ControlCollection with
25200 Clear now hides the controls as expected. Fixes bug #78804.
25202 2006-08-03 Jackson Harper <jackson@ximian.com>
25204 * Control.cs: Revert previous focus patch, it breaks reflector.
25206 2006-08-03 Jackson Harper <jackson@ximian.com>
25208 * ComboBox.cs: Cleanup selection and focus with the combobox.
25209 This also eliminates some duplicated keyboard code, since now
25210 everything is handled by the main class.
25211 - Make list selection work on mouse up instead of down, to match
25214 2006-08-02 Jackson Harper <jackson@ximian.com>
25216 * Control.cs: Setting focus needs to go through the whole
25217 selection mechanism.
25219 2006-08-02 Chris Toshok <toshok@ximian.com>
25221 * PrintPreviewDialog.cs: change MinimumSize to use
25222 base.MinimumSize so it works.
25224 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
25227 - UpdateCaret: Added sanity check in case caret isn't defined yet
25228 - Line.Delete: Now updating selection and caret markers if we're
25229 transfering a node (Properly fixes #78323)
25230 - SetSelectionEnd: Added sanity check
25231 * TextBoxBase.cs: Removed broken attempt to fix #78323
25233 2006-08-01 Chris Toshok <toshok@ximian.com>
25235 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
25236 Close() call is handled in Form, not here.
25238 2006-08-01 Chris Toshok <toshok@ximian.com>
25240 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
25243 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
25244 for sizes < 100% zoom. The code now aggressively attempts to keep
25245 from calling document.Print (), and tries not to use the scaling
25246 g.DrawImage whenever possible (it still does if you scale to >
25247 100%, since usually that involves huge images).
25249 * PrintPreviewControl.cs: hook up the close button.
25251 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
25252 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
25253 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
25254 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
25255 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
25256 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
25257 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
25258 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
25259 Removed [Serializable] for 2.0 Event Handlers.
25261 2006-07-31 Jackson Harper <jackson@ximian.com>
25263 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
25264 * TextControl.cs: Uncomment out the body of this method.
25266 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
25268 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
25271 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25273 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
25274 that embed TextBox and need selections visible even if textbox is not
25275 focused to enforce that behaviour.
25276 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
25279 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25282 - Added new SetSelectionStart/SetSelectionEnd overloads
25283 - Fixed viewport width assignment to be accurate
25284 - Adjusted alignment line shift calculations to allow cursor on right
25285 aligned lines to be always visible at the right border (like MS)
25287 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
25288 - TextBoxBase_SizeChanged: recalculating canvas on size changes
25289 - CalculateScrollBars: Use ViewPort size instead of window size, to
25290 properly consider space occupied by the border and scrollbars
25292 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
25293 calculations; no longer leaves artifacts
25294 - CaretMoved: Adjusted window scrolling to match MS and fixed several
25295 calculation bugs (Still missing right/center align calculations)
25297 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25299 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
25300 use of both scroll rect and clip rect, as they do the same.
25302 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
25304 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
25305 in the event handler (fixes #78912)
25307 2006-07-31 Chris Toshok <toshok@ximian.com>
25309 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
25310 grid.ListManager.Count, since grid.ListManager might be null.
25311 This of course begs the question "why are we drawing rows for a
25312 grid with no list manager (and therefor no rows)?" Fixes the
25313 crash in bug #78929.
25315 2006-07-31 Chris Toshok <toshok@ximian.com>
25317 * RelatedPropertyManager.cs: Don't always chain up to the parent
25318 ctor. instead, call SetDataSource if the parent's position is !=
25319 -1. Fixes the crash in #78822.
25321 2006-07-31 Chris Toshok <toshok@ximian.com>
25323 * DataGrid.cs (get_ListManager): use field instead of property
25324 accessors for datasource and datamember.
25325 (RowsCount): make internal again.
25326 (OnMouseDown): end edits before resizing columns/rows.
25327 (OnMouseUp): restart edits after resizing columns/rows.
25329 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
25331 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
25332 This fixes the situation where the last set cursor is displayed
25333 whenever the mouse is over scrollbars.
25335 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25337 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
25338 Document properties, as well as initial values.
25340 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
25342 * XplatUIWin32.cs (SetBorderStyle): Setting both border
25343 and ClientEdge results in a 3-pixel border, which is
25346 2006-07-28 Jackson Harper <jackson@ximian.com>
25348 * TreeNodeCollection.cs: Fix the clear method.
25349 - Fix the Shrink also
25351 2006-07-27 Jackson Harper <jackson@ximian.com>
25353 * TreeView.cs: Make sure the visible order is computed when we
25354 attempt to size the scrollbars (for trees that mess with the
25355 scrolling when they shouldn't.
25356 - Make sure to give the scrollbars valid values.
25358 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
25360 * XplatUIX11.cs: Move motion compression code to where it
25361 has less performance impact
25363 2006-07-26 Jackson Harper <jackson@ximian.com>
25365 * UpDownBase.cs: When the control is selected make the child
25366 controls non selectable, so that a click on them won't do a
25367 focus/unfocus cycle.
25368 - Don't give focus to the text box when the spinner is selected.
25369 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
25371 2006-07-26 Chris Toshok <toshok@ximian.com>
25373 * ThemeWin32Classic.cs: add print preview rendering. I'm not
25374 satisfied with this solution. If the bitmaps are small, we should
25375 just cache them in the PrintPreviewDialog and draw them here.
25376 Also, the layout is broken for the 2-up and 3-up cases.
25378 * Theme.cs: add PrintPReviewControlPaint.
25380 * PrintPreviewDialog.cs: first pass implementation.
25382 * PrintPreviewControl.cs: first pass implementation. No
25385 * PrintDialog.cs: only validate fields if that particular portion
25386 of the UI is enabled. Also, set the document's controller to a
25387 PrintControllerWithStatusDialog wrapping the document's print
25390 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
25391 bring up a SaveFileDialog (i hope we don't want to match the
25392 behavior of the crappy windows file entry) and set the
25393 PrinterSettings.PrintFileName accordingly.
25395 2006-07-26 Jackson Harper <jackson@ximian.com>
25397 * ContainerControl.cs: Add a field that disables auto selecting
25398 the next control in a container when the container is activated.
25399 * UpDownBase.cs: Don't select the text box when the up down is
25402 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
25404 * XEventQueue.cs: Added methods for peeking (used for compression
25405 of successive events)
25406 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
25407 mouse move events (fixes #78732)
25409 2006-07-25 Jackson Harper <jackson@ximian.com>
25411 * UpDownBase.cs: Use an internal class for the textbox so that we
25412 can control focus. the updown control should always have focus,
25413 if either the text area or the buttons are clicked.
25414 - Send the key messages to the textbox, since it never actually
25416 - Activate and decativate the textbox caret.
25418 2006-07-24 Jackson Harper <jackson@ximian.com>
25420 * Control.cs: Use the directed select when selecting a control,
25421 this way the container controls override will get called and the
25422 whole ActiveControl chain will get triggered. TODO: probably need
25423 to make sure this gets done everywhere instead of the old
25425 * ContainerControl.cs: Implement the directed Select method to
25426 find and activate the correct child control.
25428 2006-07-22 Mike Kestner <mkestner@novell.com>
25430 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
25431 menu handling code so that clicks without a grab work too.
25434 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
25436 * FileDialog.cs: Enable the BackButton when dirstack has one element.
25437 Added some small optimizations.
25439 2006-07-21 Matt Hargett <matt@use.net>
25441 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
25443 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
25445 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
25446 tests pass and match MS in some strange border cases.
25448 2006-07-21 Chris Toshok <toshok@ximian.com>
25450 * ThemeWin32Classic.cs: handle drawing of the relation links and
25451 parent row buttons.
25453 * Theme.cs: change args to DataGridPaintParentRow.
25455 * DataGrid.cs: Don't use controls for the relation links and
25456 parent buttons, so we have to handle all their interactions in
25457 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
25458 when we're navigating through child tables, so we can reinstate
25459 selection, expanded state, current cell, etc.
25461 2006-07-20 Chris Toshok <toshok@ximian.com>
25463 * ToolBar.cs: When we redraw a button, for whatever reason,
25464 there's no reason to redraw the entire toolbar. Also, don't call
25465 Control.Refresh from within Redraw, as it's much heavier than
25466 Invalidate (which is really what we want).
25468 2006-07-20 Chris Toshok <toshok@ximian.com>
25470 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
25471 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
25472 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
25473 traces from within a debug IBindingList datasource
25474 (in mono/winforms/datagrid) for *days*, I've finally gotten things
25475 to work in a similar fashion.
25477 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25479 * ListBox.cs: Don't call Sort () when setting
25480 the Sorted property to false (avoid an unnecessary sort).
25482 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25484 * ListControl.cs: DataSource should throw an ArgumentException
25485 instead of a normal exception when the argument is not of the
25488 2006-07-20 Mike Kestner <mkestner@novell.com>
25490 * Control.cs: add InternalPreProcessMessage to allow us to steal
25491 key events before MWF gets its paws on them. Adapted from a
25493 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
25494 up/down/left/right navigation. Override the new internal control
25495 method to steal the events since they never make it to WndProc.
25496 * ToolBarButton.cs: don't worry about pushed when setting hilight
25497 since the drawing code prefers pushed to hilight. Invalidate on
25498 Hilight changes. Fixes #78547 and #78525.
25500 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25502 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
25503 the canvas size. Fixes #78868
25505 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25507 * Splitter.cs: Track requested split position until first layout
25508 is performed. Fixes #78871
25510 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
25512 * Application.cs: Removed code that forces 1.x for the version
25513 number if the version started with 0. Not sure why that code was
25514 there and I couldn't find any bugs that indicated we needed it.
25517 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
25519 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
25520 ResetDefaults(), just write some output to the console until it's
25521 implemented. Fixes bug #78907 for now. Eliminated two warnings.
25523 2006-07-19 Jonathan Chambers <joncham@gmail.com>
25525 * PropertyGridView.cs: set StartPosition of drop down forms
25526 so they appear in correct initial spot. Fixes #78190.
25528 2006-07-19 Mike Kestner <mkestner@novell.com>
25530 * ThemeWin32Classic.cs: use parent background color when drawing
25531 flat toolbars. Restructure the conditionals to make sure non-flat
25532 non-Divider toolbars are filled too. Fixes #78837.
25534 2006-07-19 Mike Kestner <mkestner@novell.com>
25536 * ListBox.cs: Sort on collection changes even if the handle
25537 isn't created yet. Fixes #78813.
25539 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
25541 * ListControl.cs: DisplayMember should never be null,
25542 and now we assign String.Empty when null is passed to it (this
25545 2006-07-17 Mike Kestner <mkestner@novell.com>
25547 * ListViewItem.cs: restructure Font and subitem Font handling
25548 to hold a specific font and refer back to owner on null.
25551 2006-07-17 Mike Kestner <mkestner@novell.com>
25553 * ToolBar.cs: bandaid for side-effect of previous patch which was
25554 discarding explicit heights for non-AutoSize toolbars. Need to
25555 extend my format tester to deal with AutoSize=false. Fixes #78864.
25557 2006-07-15 Jackson Harper <jackson@ximian.com>
25559 * LabelEditTextBox.cs:
25560 * TreeView.cs: Use a new LabelEdit class for node editing, this
25561 class automatically 'closes' itself when it gets the enter key or
25563 - Use the client rectangle when setting the trees scrollbars, so
25564 border style is taken into account.
25566 2006-07-14 Jackson Harper <jackson@ximian.com>
25569 * TreeView.cs: Make the editing work similar to MSs, firing the
25570 events correctly and ending edits correctly.
25572 2006-07-14 Mike Kestner <mkestner@novell.com>
25574 * ToolBarButton.cs:
25575 * ToolBar.cs: layout restructuring and redraw enhancements to support
25576 formatting changes gracefully, like setting TextAlign, ImageList,
25577 ButtonSize, and Appearance. Handles explicit button sizing quirks
25578 of the MS controls. Things like flat toolbars ignoring button size
25579 but becoming constant sized at the largest button's size. Normal
25580 toolbars with an image set cannot be shrunk smaller than the image,
25581 but text can be clipped/ignored.
25582 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
25583 is zero. Seems like DrawString should be smart enough to not put
25584 anything on screen though. Also trim labels and ellipsize at the char
25585 boundary, not word.
25586 Fixes #78711 and #78483.
25588 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25590 * FolderBrowserDialog.cs: Disable "New Folder" button and
25591 "New Folder" contextmenu menuitem if a folder like "My Computer"
25594 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25596 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
25597 * FolderBrowserDialog.cs:
25598 - Use MWFConfig to store and read size and position settings
25599 - Added code to create a new folder (button or context menu).
25600 Use TreeView labeledit to change the name of the new folder.
25602 2006-07-14 Jackson Harper <jackson@ximian.com>
25604 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
25605 when the tree is scrolled we end editing.
25607 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
25609 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
25612 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
25614 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
25615 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
25616 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
25617 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
25618 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
25619 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
25620 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
25621 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
25622 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
25623 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
25624 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
25625 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
25626 ListViewItemSelectionChangedEventHandler.cs,
25627 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
25628 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
25629 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
25630 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
25631 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
25632 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
25633 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
25634 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
25635 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
25636 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
25637 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
25638 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
25639 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
25640 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
25641 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
25642 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
25643 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
25644 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
25645 WebBrowserNavigatingEventHandler.cs,
25646 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
25648 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
25650 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
25651 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
25652 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
25653 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
25654 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
25655 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
25656 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
25657 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
25658 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
25659 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
25660 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
25661 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
25662 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
25663 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
25664 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
25665 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
25666 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
25667 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
25668 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
25669 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
25670 ListViewItemStates.cs, MaskFormat.cs: Added
25672 2006-07-13 Jonathan Chambers <joncham@gmail.com>
25674 * PropertyGridView.cs: Fix keyboard navigation of drop down.
25675 Patch from eno for bug 78558.
25677 2006-07-13 Jackson Harper <jackson@ximian.com>
25679 * TreeView.cs: When an edit is finished make sure that the
25680 selected node is visible.
25681 - When setting the top/bottom use the scrollbars is_visible, so
25682 everything will be set correctly even if the tree isn't visible
25685 2006-07-13 Jackson Harper <jackson@ximian.com>
25687 * ComboBox.cs: Revert the item->index part of my previous patch.
25688 * TreeView.cs: Use LostFocus instead of Leave for detecting when
25689 the edit box has lost focus (duh).
25690 - Just make the edit box not visible when we get return, that will
25691 take the focus, which will call EndEdit
25692 * TreeNode.cs When we start editing, notify the treeview.
25694 2006-07-12 Jackson Harper <jackson@ximian.com>
25696 * ComboBox.cs: Clear out old items before setting the item list.
25697 This prevents databound controls from having their items added
25699 - Switch the combobox to use indices whereever possible instead of
25700 using Item's. This allows usto navigate through lists that have
25701 more then one item with the same string value (ie a, b, b, a).
25702 - Scroll the listboxes scrollbar when a non visible item is
25704 - Allow keypress to cycle through all the possible values. For
25705 example if you have b1, b2, b3 and hold down the B key all the
25706 values will be cycled through.
25708 2006-07-12 Jackson Harper <jackson@ximian.com>
25711 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
25712 this using the internal methods.
25713 * Control.cs: Add OnGotFocusInternal. A new method that allows
25714 controls to "override" OnGotFocus and change focus behavior if
25716 - Same thing for LostFocus
25717 * ComboBox.cs: Pass off focus to the text control properly.
25719 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
25721 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
25722 * FolderBrowserDialog.cs: Almost a complete rewrite.
25723 - Better support for Environment.Specialfolders
25724 - Added support for MWFVFS
25725 - Made setting SelectedPath work
25727 2006-07-12 Jackson Harper <jackson@ximian.com>
25729 * Control.cs: Optimze getting all the controls.
25731 2006-07-11 Jackson Harper <jackson@ximian.com>
25733 * ContainerControl.cs: Override SETFOCUS in the container control,
25734 so that it is not selected on mouse click.
25736 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
25738 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
25739 Hopefully we will have a better way once all of focus is complete.
25741 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
25743 * ThemeWin32Classic.cs: Commented out some debug code and fixed
25744 a compile error with csc.
25746 2006-07-11 Jackson Harper <jackson@ximian.com>
25748 * Control.cs: When hiding a control only select the next control
25749 if the current control was focused.
25750 - Don't handle enter/leave when setting/killing focus, this is
25751 done by the container control.
25752 - Remove is_selected, it's not needed anymore.
25753 - Add utility methods for selecting a child control, and for
25754 firing the Enter/Leave events.
25755 * ContainerControl.cs: When a control is activated fire the
25756 enter/leave events.
25757 - Don't wrap when processing the tab key, so that focus can be
25758 moved outside of the container.
25759 - Use the correct active control
25761 2006-07-11 Jackson Harper <jackson@ximian.com>
25763 * ComboBox.cs: Remove some debug code that was blinding me.
25764 * UpDownBase.cs: These controls actually aren't implicit, they are
25765 visible to the user.
25767 2006-07-10 Chris Toshok <toshok@ximian.com>
25769 * DataGrid.cs: move back to the is_adding boolean field. god i
25770 hate this is_editing/is_adding/is_changing stuff.
25772 2006-07-10 Chris Toshok <toshok@ximian.com>
25774 * DataGridTableStyle.cs: just check if the property type is bool.
25775 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25776 Don't use CanRenderType.
25778 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25779 if our text == NullText. Remove CanRenderType.
25781 * DataGridBoolColumn.cs: nuke CanRenderType.
25783 * DataGrid.cs: reenable some code to end the current edit inside
25784 of set_CurrentCell. This fixes the other 1.1.16 regression.
25785 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25786 Also, remove the visible_row_count arg from CalcRowHeaders, since
25787 we don't need to worry about the actual height of the area.
25789 2006-07-10 Chris Toshok <toshok@ximian.com>
25791 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25794 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25795 the real sense of the IsInEditOrNavigateMode property (true =
25796 navigate, false = edit). Also, update OnKeyPress to reflect this.
25798 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25799 column style exists, we still need to set its property descriptor
25800 to match up with our list manager.
25802 2006-07-10 Chris Toshok <toshok@ximian.com>
25804 * ThemeWin32Classic.cs: implement the new row/header painting
25805 approach. The parent row painting will likely go away and
25806 replaced with label controls, but the rest seems to work ok (and
25809 * Theme.cs: change the way we draw datagrid rows. we don't draw
25810 the row headers as a block now. Instead we draw them in the
25811 normal draw-row loop. Add some calls for drawing parent rows and
25814 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25815 a default table style. Set the defaults from ThemeEngine.Current,
25816 not SystemColors. Fix lots of misc issues with property setters.
25818 * DataGrid.cs: move loads of style information out of this class
25819 as it's being duplicated with DataGridTableStyle. keep track of a
25820 special DataGridTableStyle for the properties we used to mirror
25821 here. Switch all the style properties to access this table style
25822 instead of instance fields of this class. Also add a internal
25823 class to represent parent rows (more needs to be stored here, like
25824 the selection state from the parent table, as well as the
25825 expansion state.) Also, for datasources with relations, do the
25826 right thing for collapse/expand, and add support for the
25827 navigation/parent row buttons.
25829 Lastly, fix the crash in the 1.1.16 build.
25831 * GridTableStylesCollection.cs: make the explicit interface
25832 implementations call the class's methods as opposed to duplicating
25835 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25836 0 so the text doesn't jump around when we move the cursor.
25838 2006-07-10 Jackson Harper <jackson@ximian.com>
25841 * ListBox.cs: Match MS's ToString (this makes debugging focus
25842 stuff infinitely easier).
25844 2006-07-10 Jackson Harper <jackson@ximian.com>
25846 * Control.cs (SelectNextControl): When checking the control's
25847 parent use this instead of ctrl.parent so that null can be passed
25848 to SelectNextControl. (I have unit tests for this).
25849 - Remove unused var.
25851 2006-07-10 Chris Toshok <toshok@ximian.com>
25853 * CurrencyManager.cs: correct one regression, the removal of the
25854 finalType field. Also, add a MonoTODO on CanAddRows, implement
25855 Refresh() correctly, and fix some event emission in
25856 ListChangedHandler.
25858 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
25860 * FileDialog.cs: Don't use brackets for new folders if they exist
25861 under *nix. Instead use -(number of existing folders +1).
25863 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
25866 - Fixed really nasty bug #78771
25867 - Don't block the whole GUI when reading directories with a lot of
25868 entries. Use an other thread instead and call BeginInvoke to
25869 update the ListView in MWFFileView
25871 2006-07-07 Chris Toshok <toshok@ximian.com>
25873 * Control.cs (Dispose): release any Capture when disposing.
25875 2006-07-07 Chris Toshok <toshok@ximian.com>
25877 * LinkLabel.cs (Select): if we chain up to the parent, set
25878 focused_index to -1 so we'll search for the first available link
25879 the next time the user tabs into us. Also, if the direction is
25880 backward and focused_index == -1, start the search from the last
25883 2006-07-07 Chris Toshok <toshok@ximian.com>
25885 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25886 is beyond the end of the text, don't do anything.
25887 (CreateLinkPieces): set our ControlStyles.Selectable based on
25888 whether or not we have any links.
25889 (Link.Invalidate): use a loop instead of foreach.
25890 (Link.set_Start): null out owner.sorted_links so it'll be
25891 recreated by CreateLinkPieces.
25893 2006-07-06 Chris Toshok <toshok@ximian.com>
25895 * LinkLabel.cs: revert the SetStyle change.
25897 2006-07-06 Chris Toshok <toshok@ximian.com>
25899 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25900 (OnEnableChanged): s/Refresh/Invalidate
25901 (OnGotFocus): if we have a focused index already, refocus it (so
25902 if we mouse out/in to the window it'll focus the right link).
25903 (OnKeyDown): move the tab handling out of here.
25904 (OnLostFocus): don't set focused_index to -1, so we can refocus it
25905 when we lose focus.
25906 (OnMouseDown): don't Capture here - Control handles it. Also,
25907 focus the active link.
25908 (OnMouseUp): don't deal with Capture.
25909 (OnPaintBackgroundInternal): remove.
25910 (OnTextAlignChanged): CreateLinkPieces before calling the
25911 superclass's method.
25912 (OnTextChanged): call CreateLinkPieces before calling superclass's
25914 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25916 (Select): implement this, moving the selection between different
25917 links, and call parent.SelectNextControl if we don't have another
25918 link to focus in the given direction.
25919 (CreateLinkPieces): call Invalidate instead of Refresh.
25921 2006-07-06 Chris Toshok <toshok@ximian.com>
25923 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25924 new LinkLabel internals.
25926 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
25927 over pieces looking for active/focused/etc links. also, deal with
25928 runs of text (and links) with embedded \n's in them, and use
25929 MeasureCharacterRanges instead of MeasureString to figure out the
25930 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
25933 2006-07-04 Jackson Harper <jackson@ximian.com>
25935 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25936 XKB or key auto repeat, do it manually. Without key auto repeat,
25937 when a key is held down we get key press, key release, key press,
25938 key release, ... with auto repeat we get key press, key press, key
25939 press ..., and then a release when the key is actually released.
25941 2006-07-03 Jackson Harper <jackson@ximian.com>
25944 * ThemeWin32Classic.cs: Tabs do not obey normal background color
25945 rules, they are always control color regardless of the background
25948 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
25950 * FileDialog.cs: Added internal class MWFConfig.
25951 Removed Registry support and replaced it with support for the new
25952 MWFConfig class. See MWFConfig comments for more information.
25954 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
25956 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25957 rectangle. Added some patches from eno from bug #78490 and fixed
25958 the arrow position for small up and down CPDrawScrollButtons.
25960 2006-06-30 Jackson Harper <jackson@ximian.com>
25962 * InternalWindowManager.cs: Remove some debug code.
25963 * Form.cs: When an MdiParent is set to null, the window is
25964 "detatched" and becomes a normal window.
25965 * MdiClient.cs: Don't bring the new child form to the front until
25966 it is activated (setting it as active does this), this makes the
25967 previously active forms titlebar get redrawn as inactive.
25969 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
25971 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25972 with later controls
25974 2006-06-29 Mike Kestner <mkestner@novell.com>
25976 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25977 arrow in keynav state. Fixes #78682.
25979 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
25981 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
25982 order (fixes #78393)
25984 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
25986 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
25987 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25988 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25989 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25990 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25991 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
25992 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25993 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25994 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25995 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25996 enumerations (FlagsAttribute, SerializableAttribute, added/removed
25999 2006-06-28 Mike Kestner <mkestner@novell.com>
26001 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
26003 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
26006 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
26007 item lines from other area (It also makes BackColor consistent and
26008 compatible with .NET). Fixed bug #78564.
26010 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
26012 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
26013 Patch from Eno for #78555.
26015 2006-06-27 Chris Toshok <toshok@ximian.com>
26017 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
26019 * DataGridColumnStyle.cs: same.
26021 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
26023 * DataGridDrawingLogic.cs: nuke.
26025 2006-06-27 Chris Toshok <toshok@ximian.com>
26027 * DataGridTableStyle.cs: clean up the constructors, and build the
26028 list of child relations for this table. I have no idea if this is
26029 where we should be doing it (it probably isn't), but since we're
26030 already iterating over the properties..
26032 * DataGrid.cs: add row resizing. for now we add a DataGridRow
26033 struct and array for keeping track of row information, similar to
26034 what's shown in a hack on
26035 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
26037 * Theme.cs: be consistent about the naming of DataGrid methods,
26038 prefering ColumnWidths and RowHeights over columnsWidths and
26041 * ThemeWin32Classic.cs: same, and also add support for variable
26042 sized rows (and the +/- expansion icons for related rows).
26044 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
26046 * TextBoxBase.cs: Applied Eno's patch from #78660
26048 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
26050 * Form.cs (ScaleCore): We don't want to scale our form if it's
26051 state is minimized or maximized, but we still need to scale our
26052 child windows. Also, added try/finally block to ensure layout
26053 gets reset (Fixes #78697)
26055 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
26057 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
26059 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
26061 * Form.cs: Fixed c+p error and added check to resize form if minimum
26062 size is bigger than current size (Fixes #78709)
26064 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
26066 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
26068 2006-06-26 Mike Kestner <mkestner@novell.com>
26070 * ComboBox.cs: only do Keypress handling in the combo when there
26071 are items in the collection. Fixes #78710.
26073 2006-06-26 Chris Toshok <toshok@ximian.com>
26075 * Binding.cs: make this work bi-directionally. also, clear up
26076 other mixups between Push/Pull Data (e.g. we're supposed to pull
26077 data when validating).
26079 * BindingManagerBase.cs: trim some fully qualified collection
26082 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
26084 2006-06-23 Chris Toshok <toshok@ximian.com>
26086 * PropertyManager.cs: It appears (according to the unit tests)
26087 that PropertyManager doesn't use
26088 PropertyDescriptor.AddValueChanged to track propery value changes
26089 in its datasource, but uses the same scheme as Binding, where it
26090 looks for a <Property>Changed event and binds to it.
26092 Also, according to the docs, IsSuspended always returns false for
26093 a property manager with a non-null datasource.
26095 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
26097 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
26098 need to update the actual DialogResult. (Fixes #78613)
26100 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
26102 * Form.cs (ShowDialog): Release any captures before running the
26103 new message pump (fixes #78680)
26105 2006-06-22 Mike Kestner <mkestner@novell.com>
26107 * ListView.cs: Layout column widths properly in details mode even
26108 if HeaderStyle.None is set. Fixes #78691.
26110 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
26112 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
26114 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
26116 * Control.cs (ContainsFocus): Using new driver method to get focused
26117 window, instead of trying to use internal tracking var, which can
26118 recursion issues (Fixes #78685)
26119 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26120 XplatUIWin32.cs: Added GetFocus method to return focused window
26122 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26124 * ColorDialog.cs: when the mouse button is pressed inside the color
26125 matrix, don't let the cursor move out of it until the button is
26126 released, which is the behavior on windows. Changed 'colours' by
26127 'colors' to use the same word consistently.
26129 2006-06-21 Chris Toshok <toshok@ximian.com>
26131 * DataGrid.cs: add in some basic navigation stuff (navigating to a
26132 child relation and back, using a stack). Also, remove
26133 GetDataSource and the code that calls it - it's not needed. Also,
26134 track CurrencyManager.ListName's removal.
26136 2006-06-21 Chris Toshok <toshok@ximian.com>
26138 * CurrencyManager.cs: push some of the original type checking from
26139 BindingContext.CreateBindingManager to here, and remove some of
26140 the finalType stuff. Need more tests to make sure I've got the
26141 ListName part right, and we might need more in SetDataSource.
26143 * PropertyManager.cs: add a ctor that takes just the datasource,
26144 and no property name. Make SetDataSource work with a null
26145 property_name, and make Current return the data_source if the
26146 property descriptor is null. this makes 'string foo = "hi";
26147 BindingContext[foo].Current' return "hi" as it should.
26149 * RelatedCurrencyManager.cs: make this code more generic - there's
26150 no reason the parent manager has to be CurrencyManager, and
26151 there's no reason to pass the DataRelation. It suffices to use a
26152 BindingManagerBase and PropetyDescriptor.
26154 * RelatedPropertyManager.cs: make a similar change here.
26156 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
26157 flower I knew it could be.
26159 2006-06-20 Chris Toshok <toshok@ximian.com>
26161 * PropertyManager.cs: the PropertyChangedHandler is invoked when
26162 data in the source has changed and we need to update the control,
26163 so s/PullData/PushData.
26165 * CurrencyManager.cs: Refresh is meant to update the control from
26166 data in the datasource. So, s/PullData/PushData.
26168 * BindingContext.cs: add more ugliness (we weren't handling the
26169 case where data_source = DataTable and data_member = column_name).
26171 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
26172 from the perspective of the datasource. PullData pulls from the
26173 control, PushData pushes to the control.
26175 2006-06-20 Chris Toshok <toshok@ximian.com>
26177 * BindingContext.cs: rewrite the CreateBindingManager code to
26178 handle navigation paths more or less properly. This could
26179 definitely stand some more work, in particular to push the
26180 recursion up to the toplevel. But that relies on fixes in other
26181 places (System.Data comes to mind).
26183 Also, move to a flat hashtable (and encode the twolevel nature of
26184 the dictionary into the hash key). This lets us implement the
26185 IEnumerable.GetEnumerator method.
26187 * RelatedCurrencyManager.cs: new class. Update our view based on
26188 our relation and our parent CurrencyManager's position.
26190 * CurrencyManager.cs: split out some logic from the ctor into
26191 SetView, so it can be called from the new RelatedCurrencyManager
26194 * RelatedPropertyManager.cs: new class. Update our datasource
26195 based on the position of our parent CurrencyManager.
26197 * PropertyManager.cs: split out some logic from the ctor into
26198 SetDataSource, so it can be called from the new RelatedDataSource
26199 subclass. Also, make the Current getter return the value
26200 of the PropertyDescriptor, not the data_source.
26202 * Binding.cs: no need to duplicate the string splitting code here.
26204 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
26207 - set_Enabled: OnEnabledChanged is not called if the inherited state
26208 of the control is not altered, even though we might be changing the
26209 internal state of the control (#78458)
26210 - set_Enabled: (Re)Moved the enabling/disabling of the window to
26211 OnEnabledChanged, to allow easy altering of any child window state
26212 - OnEnabledChanged: Added code to enable/disable driver window state
26213 - OnParentEnabledChanged: Instead of firing the event, call
26214 OnEnabledChanged, which will fire the event and also a) set driver
26215 window state and pass the enabled state to any grandchildren (#78458)
26217 2006-06-19 Jackson Harper <jackson@ximian.com>
26219 * InternalWindowManager.cs: We don't set the cursor explicitly
26220 thats done via the response to NCHITTESTs.
26221 - Don't need to adjust for titlebar heights anymore, the
26222 coordinates are coming in the correct coordinates now (see peters
26226 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
26228 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
26229 being translated relative to whole window, instead of client window.
26230 That caused broken offsets on mouseclick (and caused gas for our
26231 InternalWindowManager)
26233 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
26236 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
26237 - Undo(): Added replay of cursor move on DeleteChars action; added
26238 calling Undo() again if a recorded cursor move is invalid (to
26239 ensure that some action is performed on Undo)
26240 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
26242 2006-06-16 Jackson Harper <jackson@ximian.com>
26244 * MdiClient.cs: Instead of just sizing maximized windows when
26245 there is a resize we also have to adjust the Y of minimized
26246 windows, so they stay pinned to the bottom of the mdi container.
26247 - Eliminate separate tracking of the active control, we can just
26248 get this from the controls collection.
26249 - Paint the decorations for the newly activated titlebar so we get
26251 * InternalWindowManager.cs:
26252 * ThemeWin32Classic.cs: Minimized windows get all three buttons
26253 even if they are a tool window.
26255 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
26257 * TextControl.cs (Undo): Handle non-existent cursor locations in the
26258 undo buffer, these can happen when text was deleted and the cursor
26259 was recorded first. Since we will also have a recorded cursor
26260 after the delete this is not an issue. (Fixes #78651)
26262 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
26264 * AccessibleObject.cs: Remove dependence on Control.is_selected;
26265 instead properly track control states internally (allows us to
26266 remove is_selected from Control)
26268 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26270 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
26271 whose width is not a multiple of 8.
26273 2006-06-13 Jackson Harper <jackson@ximian.com>
26275 * MdiClient.cs: Only maximize the next child if the current one
26278 2006-06-13 Chris Toshok <toshok@ximian.com>
26280 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
26281 modified. Also, guard against grid or grid_drawing being null in
26284 * DataGrid.cs: Reformat tons of getters/setters. In the
26285 DataMember setter, just call SetNewDataSource instead of
26286 duplicating some of its functionality. In SetNewDataSource, don't
26287 check ListManager for null, since the property getter creates the
26290 * DataGridTableStyle.cs: don't set TableStyle or call
26291 SetDataGridInternal on the column here, it's done in
26292 GridColumnStylesCollection.Add.
26294 * GridColumnStylesCollection.cs: fix all the explicit interface
26295 implementations to just call our methods. Nuke AddInternal() and
26296 move the body of it to Add(). Also, add a call to
26297 column.SetDataGridInternal to Add().
26299 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
26300 base()+duplicate code. Also, use the Format property instead of
26301 format to generate an Invalidate ala MS. Lastly, create the
26302 textbox here, unconditionally.
26303 (set_Format): call Invalidate.
26304 (get_TextBox): no need to call EnsureTextBox.
26305 (Commit): remove the message box.
26306 (Edit) remove the call to EnsureTextBox.
26307 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
26308 (EnterNullValue): no need to check textbox for null.
26309 (HideEditBox): no need to check textbox for null.
26310 (SetDataGridInColumn): add the textbox to the grid's controls.
26311 (EnsureTextBox): nuke.
26313 2006-06-13 Jackson Harper <jackson@ximian.com>
26315 * MdiWindowManager.cs: Hook up to the maximized menus paint event
26316 and redraw the buttons when needed. Unhook when the window is
26318 * MainMenu.cs: Add an internal Paint event, the mdi window manager
26319 needs this so that it can redraw its buttons when the menu is
26321 * InternalWindowManager.cs:
26322 * Form.cs: The method order has changed for DrawMaximizedButtons,
26323 so that it can be a PaintEventHandler.
26325 2006-06-13 Jackson Harper <jackson@ximian.com>
26327 * MdiClient.cs: When we close a maximized mdi window, the next mdi
26328 window is activated and maximized, even if it wasn't before.
26329 - When a new window is activated repaint the decorations of the
26330 old one, so that it no longer has the Active "look" (the blue
26332 * InternalWindowManager.cs: Open up CreateButtons to base classes
26333 so they can recreate the buttons on state changes.
26334 - If a window is maximized give it all three buttons
26335 * MdiWindowManager.cs: Create the titlebar buttons when the state
26336 is changed, this is needed because a toolwindow will not have all
26337 three buttons until it is maximized.
26339 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
26341 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
26344 2006-06-12 Jackson Harper <jackson@ximian.com>
26346 * KeysConverter.cs: Make sure we handle the Ctrl special case
26347 if its the only key.
26349 2006-06-12 Jackson Harper <jackson@ximian.com>
26351 * Theme.cs: Add a method to get the size of a managed window
26353 * InternalWindowManager.cs: Remove the ButtonSize property, this
26354 should be retrieved from the theme.
26355 * MdiWindowManager.cs: Get the button size from the theme
26356 * ThemeWin32Classic.cs: Make the method to get the managed window
26357 titlebar button size public.
26358 - Handle the different button sizes of maximized toolwindows
26359 (should match any maximized window).
26360 - Get the titlebar height from the theme, not the WM (which gets
26361 it from the theme).
26363 2006-06-12 Jackson Harper <jackson@ximian.com>
26365 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
26366 event down to the mdi window manager.
26367 - Expose some extra stuff to base classes
26368 - Make sure to end the Capture on an NC Mouse up, so that we can
26369 get double clicks properly, and the sizing doens't stick.
26370 - When doing PointToClient contain it in the workable desktop
26371 area, this prevents windows from changing size when the cursor is
26372 pulled outside of the working area while sizing.
26373 * MdiWindowManager.cs: When we get a double click maximize the
26375 - Reset the cursor after handling mode changes.
26377 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
26379 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
26380 current desktop, instead of just assuming a 0, 0 origin. This
26381 is needed for our internal window manager, to know the top
26382 margin of the desktop
26384 2006-06-12 Chris Toshok <toshok@ximian.com>
26386 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
26387 we need this to get rid of the selected background in the bool
26389 (CancelEditing): move the ConcedeFocus call to above the Abort
26390 call. Also, set is_changing to false and invalidate the row
26391 header if we were changing before.
26392 (ProcessKeyPreviewInternal): remove, since noone outside this
26393 class calls it anymore. Roll the code into ProcessKeyPreview.
26394 (EndEdit): remove the internal version.
26395 (InvalidateCurrentRowHeader): make private.
26397 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
26398 Keys.Escape handling (and with it the last call to
26399 DataGrid.EndEdit from outside the class.)
26402 2006-06-12 Chris Toshok <toshok@ximian.com>
26404 * DataGridTextBox.cs (.ctor): isedit defaults to false.
26405 (OnKeyPress): set isedit to true.
26406 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
26407 already handled by the grid.
26409 * DataGrid.cs (set_CurrentCell): more work here. it's still not
26411 (set_DataSource): SetDataSource always returns true, so stop
26412 putting it in an if statement.
26413 (EndEdit): get rid of some {}'s
26414 (ProcessGridKey): return true in case Keys.Escape.
26415 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
26416 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
26417 PositionChanged, stopped connecting to CurrentChanged.
26418 (GetDataSource): simplify this a bunch.
26419 (SetDataSource): change return type from bool to void.
26420 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
26421 to this, and make sure we don't set ListManager.Position inside
26423 (OnListManagerItemChanged): if we're passed an actual index,
26426 * CurrencyManager.cs (set_Position): don't call PullData here.
26428 2006-06-09 Jackson Harper <jackson@ximian.com>
26430 * TreeNode.cs: Recalculate the visible order before doing the
26431 Expand/Collapse Below calls, because those calls generate an
26433 - Reduce calls to the TreeView property, which is mildly expensive
26434 by using a local var.
26435 * Form.cs: Layout the MDI child windows when creating the parent
26437 - Don't use the internal constructor anymore
26438 * MdiClient.cs: use the parent form width/height (if available)
26439 when laying out the child windows, we do this because the
26440 mdiclient isn't docked yet when the initial layout is done.
26441 - Don't need an internal constructor anymore.
26443 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26445 * FileDialog.cs: handle access errors when trying to create a folder
26446 or changing to a directory. No need to initialize out parameters.
26448 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26450 * FileDialog.cs: Append a number when creating a new folder if the
26451 folder already exists (use parenthesis instead of square brackets)
26453 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26456 - Disabled registry support for windows and added better registry
26457 error checking for other systems (need to investigate why it
26458 works perfectly on my system)
26459 - If a folder already exist show an error MessageBox instead of
26460 trying to create an indexed name.
26461 - Fixed a non intentional typo.
26463 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26465 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
26467 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26469 * FileDialog.cs: When creating a new folder don't crash if the
26470 folder already exists.
26472 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26474 * FileDialog.cs: Allmost a complete rewrite.
26475 - added a "virtual" file system that handles the differences
26476 between unix and windows file systems (especially the directory
26477 structure). Moved most of the directory and file handling code
26479 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
26480 UnixFileSystem and FSEntry.
26481 - Recently used folder/directory, size, location and used file names
26482 (file name ComboBox) are now stored in the registry and get read
26483 before the dialog shows up (fixes part 6 of bug #78446).
26484 - Creation of new folders/directories is now possible (context menu
26485 or ToolBar). Added TextEntryDialog for this that fills in the gap
26486 until ListView.LabelEdit works.
26487 - Fixed cursor handling (bug #78527) and focus handling for
26489 - Various "Search in" ComboBox enhancements. The content of the
26490 dropdown listbox now almost matches ms.
26491 - Changed the behaviour when the user switches to SpecialFolder
26492 Recent to show the ListView in View.Details.
26493 - Beside using the ToolBar to change the View property of the
26494 file ListView it is now possible to use the context menu too.
26496 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
26498 * ComboBox.cs: Don't create a new ObjectCollection when an item
26499 gets inserted. Just insert the item in the existing object_items
26502 2006-06-08 Jackson Harper <jackson@ximian.com>
26504 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
26505 that the treeview and root node checks are done also, this fixes a
26506 regression i caused in the unit tests.
26508 2006-06-07 Wade Berrier <wberrier@novell.com>
26510 * RichTextBox.cs: More ISO8859-1 -> unicode
26512 2006-06-07 Mike Kestner <mkestner@novell.com>
26514 * ComboBox.cs : use items to hold highlight/selection so that
26515 collection insertions don't require synchronization.
26517 2006-06-07 Jackson Harper <jackson@ximian.com>
26519 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
26520 routine. We now always keep the sized edge at the cursor instead
26521 of computing movement and adjusting rects. There is one buglet
26522 with this method though when the cursor is moved over area that
26523 the window can not expand too (such as the toolbars on the desktop).
26525 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26527 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
26528 here. Fixes crash on startup in AlbumSurfer.
26530 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
26532 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
26535 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26537 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
26538 statement to avoid calling XNextEvent which will block if another thread
26539 took the event that we were expecting. Fixes bug #78605.
26541 2006-06-07 Mike Kestner <mkestner@novell.com>
26543 * ListView.cs : isolated checkbox clicking from the selection logic.
26544 Toggle check state on item doubleclicks. Really fixes #78454 part2.
26546 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
26548 * Form.cs: Check that the value passed to Form.DialogResult
26549 is a valid enum value.
26551 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26553 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
26554 Computer'. Clicking it in the network view goes to 'My Computer'.
26555 Added CIFS filesystem type. Display the mount point of filesystems.
26556 Avoid duplicate mount points (happens for me with CIFS);
26558 2006-06-06 Jackson Harper <jackson@ximian.com>
26560 * InternalWindowManager.cs: Draw the maximized windows buttons
26563 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26565 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
26566 all other dialogs. Fixes bug #78585.
26568 2006-06-06 Mike Kestner <mkestner@novell.com>
26570 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
26571 Only invalidate checkbox on checkstate changes to avoid flicker.
26572 * ListBox.cs : avoid unselect/select when clicking selected item.
26573 avoid reselection flicker for already multiselected items.
26576 2006-06-06 Jackson Harper <jackson@ximian.com>
26578 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
26579 the parent form so that the menu is removed if needed.
26581 2006-06-06 Mike Kestner <mkestner@novell.com>
26583 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
26584 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
26586 2006-06-06 Mike Kestner <mkestner@novell.com>
26588 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
26591 2006-06-06 Jackson Harper <jackson@ximian.com>
26593 * Control.cs: Use the property (instead of the field) to get the
26594 default cursor so it is instantiated correctly.
26595 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
26596 resizes so we need to manually repaint the window decorations here.
26597 - Set the titlebar button locations as soon as they are created,
26598 otherwise they are not set correctly on win32.
26600 2006-06-06 Chris Toshok <toshok@ximian.com>
26602 * CurrencyManager.cs (set_Position): call PullData before
26604 (AddNew): after calling IBindingList.AddNew, update our
26605 listposition, and call OnCurrentChanged/OnPositionChanged (without
26607 (OnCurrentChanged): remove the call to PullData from here.
26608 (OnItemChanged): remove the call to PushData from here.
26609 (OnPositionChanged): change the test from == null to != null to
26610 match the other methods.
26611 (ListChangedHandler): the grossest part of the patch. Implement
26612 this such that it passes the unit tests in CurrencyManagerTest and
26613 the output more or less matches that of MS's implementation.
26615 2006-06-06 Mike Kestner <mkestner@novell.com>
26617 * ListView.cs : only update check state on single click.
26618 * ThemeWin32Classic.cs : fix focus drawing for details view without
26619 fullrowselect. Fixes #78454.
26620 * XplatUIX11.cs : fix for double click emission.
26622 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
26624 * PropertyGridView.cs : Applied Atsushi's patch to fix
26625 font dialog bug (#78197).
26627 2006-06-05 Jackson Harper <jackson@ximian.com>
26629 * TreeNode.cs: Compute the next node for expanding/collapsing
26630 correctly. We now factor in nodes without a NextNode
26631 correctly. (Fixes somes cases in nunit-gui).
26632 * InternalWindowManager.cs: Set the bounds when updating the
26633 virtual position of a tool window.
26635 2006-06-05 Chris Toshok <toshok@ximian.com>
26637 * DataGrid.cs: rename cached_currencymgr to list_manager.
26638 (set_CurrentCell): move SetCurrentCell code here, and clean it up
26640 (CurrentRow, CurrentColumn): single accessors so we can make the
26641 cursor movement code a lot easier to understand.
26642 (CurrentRowIndex): implement this in terms of CurrentRow.
26643 (BeginEdit): clean this up a bit.
26644 (CancelEditing): sort out the is_editing/is_changing/is_adding
26646 (EndEdit): minor changes.
26647 (OnKeyDown): add a comment about a (most likely) unnecessary
26649 (OnMouseDown): cancel editing when we click on a row header. And
26650 use the CurrentRow setter, not CurrentCell.
26651 (ProcessDialogKey): directly call ProcessGridKey.
26652 (UpdateSelectionAfterCursorMove): factor out this common block of
26653 code (it's used everywhere that we move the cursor by updating row
26655 (ProcessGridKey): pretty substantial overhaul. Use the
26656 CurrentRow/CurrentColumn properties to make the code a lot more
26657 readable. Only use the CurrentCell property when we have to
26658 modify both row and column at once. Tab behavior is still broken,
26659 and Delete is untested.
26660 (Select): if we have no selected rows, set selection_start to
26662 (EditCurrentCell): rename EditCell this. It was only ever invoked
26663 with CurrentCell as the arg, so drop the arg and rename it.
26665 * DataGridColumnStyle.cs: clean up the constructors a little, and
26666 drop CommonConstructor().
26668 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
26669 actually get notified when the user hits it.
26670 (ProcessKeyMessage): *substantially* simplify this method.
26671 There's no reason (that I can see) for the textbox to be making
26672 calls into the datagrid at all. Remove all of them but the ones
26673 for Enter handling. those will take some more work.
26675 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
26676 calling HideEditBox.
26677 (HideEditBox): if we have an active textbox, render it invisible
26678 without causing a re-layout of the datagrid.
26680 2006-06-05 Mike Kestner <mkestner@novell.com>
26682 * ListView.cs : fix NRE crasher when focuseditem is cleared by
26683 collection changes by resetting it to Items[0]. Fixes #78587.
26685 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26687 * MessageBox.cs: if the height of the text is larger than the icon_size,
26688 use that. Fixes bug #78575.
26690 2006-06-05 Jackson Harper <jackson@ximian.com>
26692 * TreeView.cs: Fix line drawing when scrolling. To do this each
26693 node is basically responsible for drawing its entire horizontal
26694 area. When drawing a node it draws its parent node lines if
26696 - Adjust the clip area to the viewport rectangle
26697 - Fix Left/Right key handling to match MS. (It expand/collapses
26698 and moves to parents/first child but does not move selection to
26700 - Fix SetTop to work with new bound calculation code
26701 - When scrollbars are no longer needed we need to reset scrolling
26702 vars and recalculate the visible order so the redraw is correct
26703 * TreeNode.cs: We can't expand/collapse nodes with no children.
26705 2006-06-03 John Luke <john.luke@gmail.com>
26707 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
26708 so the colors work without dev packages
26710 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
26713 - Select: Implemented to just use activate. Seems to match MS
26714 behaviour closest. Documented to only do actual control walking
26715 based on it's parameters if in a container control so I moved
26717 - Removed selection check logic from our internal Select() method
26718 * ContainerControl.cs:
26719 - Select: Moved selection logic from Control here, since MS documents
26720 that containers obey the bool arguments. No longer calling base
26722 2006-06-02 Jackson Harper <jackson@ximian.com>
26724 * TreeView.cs: If the selected node isn't changed when we get
26725 focus update the previously selected node so that we see the
26728 2006-06-02 Mike Kestner <mkestner@novell.com>
26730 * ComboBox.cs: restructure grab and general mouse event handling.
26731 Make the composite control raise mouse events like it was a single
26732 control for leaves/enters/motion/up/down events. fix dropdown list
26733 coordinate mangling and refactor it into the scrollbar subclass to
26734 reduce code duplication. Fixes #78282 #78361 and #78457.
26736 2006-06-02 Mike Kestner <mkestner@novell.com>
26738 * ScrollBar.cs: remove Capture setting/clearing, as it happens
26739 automatically in the Control.WndProc.
26741 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26743 * FileDialog.cs: fix crash when running SharpChess, which sets the
26744 FilterIndex to 2 with only one Filter.
26746 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26748 * ToolBar.cs: add SizeSpecified property.
26749 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
26750 try to figure out our real size, otherwise fallback to what the
26753 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26755 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
26756 * Control.cs (WndProc): MS always calls the DefWndProc to pass
26759 2006-06-01 Mike Kestner <mkestner@novell.com>
26761 * ListView.cs: revamp the focus management in ListView. It still
26762 causes churn of LostFocus/GotFocus emissions on clicks, but it's
26763 better than not handling focus at all. Will revisit when pdb feels
26764 the general focus handling is solid. Fixes #78526.
26766 2006-06-01 Jackson Harper <jackson@ximian.com>
26768 * TreeView.cs: Set the default border style in the constructor.
26769 - Move painting to use OnPaintInternal instead of capturing
26770 WM_PAINT, this is the correct way of doing things
26771 - UpdateBelow shouldn't invalidate the scrollbar area
26772 - Cap the top on update below in case the node was above the top
26773 of the viewport rectangle.
26774 - ExpandBelow and Collapse below need to obey Begin/End Update.
26775 * TreeNode.cs: Make is_expanded internal so the treenode
26776 collection can change it without firing the whole event chain.
26777 * TreeNodeCollection.cs: When clearing all the child nodes make
26778 sure to recalc the visible order.
26779 - Improve algo for remove the top node
26781 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26783 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26784 SendMessage directly calling window procedures, which in turn might
26787 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
26789 * Control.cs: Don't handle WM_SETFOCUS if the same window already
26790 has focus (works around X11 sending a FocusIn after our SetFocus)
26791 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26793 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
26795 * Mime.cs: Fix for the NET_2_0 build.
26796 NameValueCollection needs StringComparer now.
26798 2006-05-31 Chris Toshok <toshok@ximian.com>
26800 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26801 return (via an out parameter) the starting X of the column.
26802 (UpdateVisibleColumn): track change to FromPixelToColumn.
26803 (HitTest): add a ColumnResize case here.
26804 (DrawResizeLine): new function, probably poorly named.
26806 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
26807 only need to keep one reference.
26808 (set_ListManager): same.
26809 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26810 Also, add support for HitTestType.ColumnResize.
26811 (OnMouseMove): add column resize behavior here, and change the
26812 cursor to the correct one as we move around the datagrid.
26813 (OnMouseUp): terminate the column resize if we're resizing.
26814 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26815 for the current cell.
26816 (ConnectListManagerEvents): use cached_currencymgr.
26817 (DisconnectListManagerEvents): fill this in, using
26818 cached_currencymgr.
26819 (SetCurrentCell): remove cached_currencymgr_events handling.
26820 (SetDataMember): only call DisconnectListManagerEvents if
26821 cached_currencymgr is != null.
26822 (SetDataSource): same.
26823 (OnListManagerCurrentChanged): cached_currencymgr_events ->
26824 cached_currencymgr.
26826 2006-05-31 Jackson Harper <jackson@ximian.com>
26828 * BindingManagerBase.cs: Remove somedebug code that creeped into
26830 * TreeNode.cs: We get the indent level dynamically right now, so
26831 don't track it as a member.
26832 * TreeNodeCollection.cs: Make sure all nodes added to the list
26833 have parents, treeviews/topnodes setup properly.
26834 - Don't attempt to track indent level.
26836 2006-05-30 Jackson Harper <jackson@ximian.com>
26838 * BindingContext.cs: Create the currency manager tables here.
26839 This allows us to more easily create null tables (when bad data
26840 members are used), and more easily create related currency
26842 * CurrencyManager.cs: All the table creation stuff is done by the
26843 binding context now.
26844 - Current should throw an exception if listposition is -1.
26845 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26848 2006-05-30 Mike Kestner <mkestner@novell.com>
26850 * ListView.cs: allow reexpansion of zero-width column headers.
26853 2006-05-28 Chris Toshok <toshok@ximian.com>
26855 * CurrencyManager.cs (get_Current): after the late binding
26856 listposition = -1 fix, we need to guard against it here and return
26857 null, otherwise we raise an exception (which is swallowed
26858 elsewhere, and breaks datagrid databinding.)
26860 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26862 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26863 than WM_SYSKEY, don't throw if get something unexpected (#78507)
26865 2006-05-26 Jackson Harper <jackson@ximian.com>
26868 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26869 values, it's faster and it's all we care about (we don't care if
26870 the names aren't equal).
26871 * KeyboardLayouts.cs: Eliminate some dead code.
26873 * X11Keyboard.cs: Lazy init keyboard detection.
26874 - Cleanup access modifiers a little.
26876 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26878 * XplatUIX11.cs: Once again, attempting to get layout just right.
26880 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
26882 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26883 the sizes of each link section, that will result in sizes that
26884 match DrawString's layout (Fixes #78391)
26886 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
26888 * FileDialog.cs: If AddExtension property is true autocomplete the
26889 extensions in SaveFileDialog correctly. Fixes bug #78453.
26890 Set MyNetwork and MyComputer to "C:\" for windows. This should
26891 fix part 8 of bug #78446 for now.
26893 2006-05-26 Chris Toshok <toshok@ximian.com>
26895 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
26896 invalidate the current row header if we need to, but presumably
26897 we'll invalidate the row corrsponding to the bounds or
26899 (GridHScrolled): switch back to this method, as it's part of the
26900 public api. *sigh*.
26901 (GridVScrolled): same.
26902 (OnMouseWheel): hack up something that more or less works. Call
26903 GridHScrolled/GridVScrolled directly, instead of duplicating much
26904 of their code here.
26905 (EnsureCellVisibility): reinstate a bunch of this code, since we
26906 can't just set the scrollbar Value and expect to do all the work
26907 in the ValueChanged handler. Also, Call Update() after scrolling
26908 in one direction so the other XplatX11.ScrollWindow call has the
26909 proper stuff in the proper places.
26910 (EditCell): set is_editing to true before calling .Edit.
26912 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26913 don't bother comparing first.
26914 (OnKeyPress): call grid.ColumnStartedEditing before calling
26915 base.OnKeyPress. this will set is_changing and invalidate the row
26916 header if necessary.
26917 (ProcessKeyMessage): for WM_CHAR messages, call
26918 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
26921 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26922 it's done in the DataGrid.
26923 (NextState): call grid.ColumnStartedEditing, which takes care of
26924 invalidating the row header (and setting is_changing).
26926 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26927 here. it's done in the DataGrid.
26929 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26931 * Control.cs: allow changing the cursor when the mouse position is
26932 out of bounds but Capture is set.
26933 * LinkLabel.cs: handle the case when the mouse button is pressed on the
26934 linklabel but released somewhere else.
26936 2006-05-25 Jackson Harper <jackson@ximian.com>
26938 * TreeView.cs: When we get focus if there is no selected node make
26940 - Remove some uneeded setup code from Draw.
26941 * TreeNodeCollection.cs: If the tree doesn't have a top node when
26942 a new node is inserted make the new node the top.
26944 * Timer.cs: Use Utc time so that no local time zone stuff needs to
26945 be used (should be faster).
26947 2006-05-25 Chris Toshok <toshok@ximian.com>
26949 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26950 problem with the last commit.
26952 2006-05-25 Chris Toshok <toshok@ximian.com>
26954 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26955 need the invalidate call here, while scrolling right-to-left via
26956 the left arrow key (i.e. moving the editing cell while scrolling).
26958 * DataGrid.cs (.ctor): remove the initialization of
26959 ctrl_pressed/shift_pressed. We no longer track them using key
26960 up/down handlers, but by using Control.ModifierKeys. Also, switch
26961 to using ValueChanged handlers on the scrollbars instead of
26962 Scrolled event handlers. This simplifies a bunch of the scrolling
26964 (GridHValueChanged): rename from GridHScrolled, and change it to
26965 work with the new event args.
26966 (GridVValueChanged): same.
26967 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26968 (OnMouseWheel): actually scroll the datagrid. Don't change the
26970 (ProcessGridKey): correct all the keyboard navigation stuff I
26971 could find. Ctrl up/down/left/right/home/end work now.
26972 (EnsureCellVisibility): correct method name spelling. Also,
26973 simplify this a touch by not explicitly calling the
26974 ScrollToRow/ScrollToColumnInPixels methods. We just set the
26976 (OnKeyUpDG): no need for this method now.
26978 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26980 * LinkLabel.cs: display the OverrideCursor when hovering the label.
26983 2006-05-25 Chris Toshok <toshok@ximian.com>
26985 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26988 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
26990 * Application.cs: Moved setting of is_modal and closing to before
26991 we create the control, to allow the event handlers called as a
26992 result of creation affect closing. Also removed Gonzalo's previous
26993 change to setting DialogResult, the behaviour has been moved to
26996 - ShowDialog(): Removed explicit creation of the form, let RunLoop
26998 - ShowDialog(): If no dialog result is set, we need to return Cancel
26999 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
27000 the close is cancelled
27002 2006-05-25 Jackson Harper <jackson@ximian.com>
27004 * StatusBar.cs: We only need to update the sizes of the other
27005 panels when we have auto size contents. Also we are only updating
27006 the contents of the panel, not the borders, so compensate for the
27007 border width (TODO: get this width from the theme somehow).
27008 * TreeView.cs: Scrollable is true by default
27009 - Use invalidate instead of refresh where needed
27010 - Factor the scrollable value into scrollbar updating
27011 - Update the scrollbars if the Scrollable property is altered
27012 - Update the selected node if its ImageIndex is changed
27013 - Handle null nodes in UpdateNode (mainly so we don't have to
27014 check if selected is null when updating it
27015 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
27016 are factored into the visible count
27017 - Use VisibleCount for clarity in the code
27018 - When the font is changed we need to recurse through all the
27019 nodes and invalidate their sizes
27021 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27023 * Application.cs: set the DialogResult to fixed when the main form is
27024 hidden or destroyed while being modal.
27026 2006-05-25 Miguel de Icaza <miguel@novell.com>
27028 * Theme.cs: Use Tangoified messagebox icons.
27030 (GetSizedResourceImage): Also cope with width = 0 and do not
27031 trigger a warning in that case (0 means "give me your icon from
27032 the resouce, no special size needed).
27034 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
27036 * Application.cs: Leave runloop if the the main modal form is
27037 hidden (fixes #78484)
27039 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
27041 * BindingContext.cs : reject null datasource in Contains() and
27043 * CurrencyManager.cs : check data_member validity when data_source
27044 is dataset. When it is late binding, the initial position is -1.
27046 2006-05-24 Jackson Harper <jackson@ximian.com>
27048 * TreeNodeCollection.cs: Dont't recalculate the visible order on
27049 inserted nodes that aren't visible. This changes the
27050 max_visible_order which confuses scrollbar settings.
27051 - Use the enumerator to get the prev node instead of duplicating
27053 * TreeView.cs: Use new method for setting scrollbar values
27054 - Don't set the bounds every time the scrollbar is updated
27055 - When updating below the root node use an invalidate instead of a
27056 refresh to prevent the child controls (scrollbars) from being
27057 refreshed. (UpdateBelow still needs to be reworked anyways).
27058 - Reenable SetBottom now that visible orders are set correctly,
27059 added some debug code incase we ever get bad values there again.
27060 - Set the scrollbar max to 2 less then the max value, this
27061 compensates for the max value being one above the node count, and
27062 for scrollbars adding one extra "notch".
27063 - When drawing image nodes if there is an imagelist we draw the
27064 first image in the list if the supplied image index is out of the
27065 image list's bounds.
27067 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
27069 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
27070 we receive a size change from the WM (Fixes #78503)
27072 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
27074 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
27075 rectangle (Fixes #78501)
27077 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
27080 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
27082 - Fixed MouseMove to no longer switch pressed state unless the left
27083 mouse button is pressed. Atsushi provided the original patch (#78485)
27085 2006-05-24 Jackson Harper <jackson@ximian.com>
27087 * ScrollBar.cs: New internal methods that allow us to change a
27088 couple values on the scrollbar (the most common case is maximum
27089 and large change) without getting multiple invalidates.
27091 2006-05-24 Chris Toshok <toshok@ximian.com>
27093 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
27094 (Edit): save off the original state in oldState, and set
27095 grid.is_editing to true.
27096 (OnKeyDown): abort editing if escape is pressed. also, call
27097 NextState if space is pressed.
27098 (OnMouseDown): call NextState.
27099 (NextState): factor out shared code from OnKeyDown and OnMouseDown
27100 here. Also, only invalidate the row header once (on the initial
27101 is_changing switch) to save on redraws.
27103 2006-05-24 Chris Toshok <toshok@ximian.com>
27105 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
27106 if the value in the cell is different than it was before. This
27107 keeps us from triggering a layout when we move around a datarid
27108 with a highlighted cell.
27109 (Edit): suspend layout when creating/positining the text box, and
27110 resume passing false so we don't ever actually re-layout.
27111 (ReleaseHostedControl): same.
27112 (EnsureTextBox): reformat slightly, and set WordWrap to false.
27114 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
27115 control-key sequences should go to the datagrid - remove that
27116 lock. Also, modify the conditions under which we move between
27117 cells when moving the cursor within a cell, and remove the "this"
27118 and "base" from field accesses. We weren't even consistent, given
27119 they all were in the base class.
27121 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
27123 * Binding.cs : (.ctor)
27124 An obvious NRE fix for BindingTest.CtorNullTest().
27126 2006-05-23 Chris Toshok <toshok@ximian.com>
27128 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
27129 them between lines. This fixes some quirks editing cells in the
27132 2006-05-23 Jackson Harper <jackson@ximian.com>
27134 * TreeView.cs: Use begin/end update when doing expand/collapse all
27135 so that we don't get flicker on the scrollbar.
27137 2006-05-23 Jackson Harper <jackson@ximian.com>
27139 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
27140 treenode calculations to be independant of the painting code. To
27141 do this nodes track a visible order which is calculated by the
27143 - Call new methods for expanding/collapsing nodes. These methods
27144 use scrollwindow so we don't have to update everything below the
27146 * TreeView.cs: Refactored drawing and scrolling code. We don't
27147 need to update nodes when drawing anymore or calculate scrollbar
27149 - Added new methods for expanding/collapsing nodes. These methods
27150 use ScrollWindow so as to not have to redraw all the nodes below.
27151 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
27152 we add/remove nodes or sort.
27153 - Handle removing the selected and the top node properly.
27155 2006-05-23 Chris Toshok <toshok@ximian.com>
27157 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
27158 maybe this should actually happen in the datagrid code?
27159 (EndEdit): no need to invalidate anything, given that
27160 ReleaseHostedControl causes the datagrid to relayout, which
27161 invalidates everything anyway.
27163 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
27164 in SetCurrentCell).
27165 (set_SelectionBackColor): call InvalidateSelection instead of
27167 (set_SelectionForeColor): same.
27168 (BeginEdit): Flesh this out a bit.
27169 (CancelEditing): only do any of this if we're editing/adding.
27171 (OnMouseDown): there's no need to cancel editing here, it's done
27173 (SetCurrentCell): only invalidate the current row header if it's a
27174 different row than the new one.
27175 (ShiftSelection): fix this to work like MS does.
27176 (ResetSelection): factor out the invalidation of selected_rows to
27177 InvalidateSelection.
27178 (SetDataSource): cancel any editing that's going on.
27180 * DataGridColumnStyle.cs
27181 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
27182 call the non-interface version.
27184 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
27185 header rectangle with the clip rectangle so we don't redraw the
27186 entire header for just a small area. Gets rid of the last flicker
27187 when horizontally scrolling.
27188 (DataGridPaintRow): same.
27190 2006-05-23 Mike Kestner <mkestner@novell.com>
27192 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
27193 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
27194 poorly placed checkbox on the MS control. Fixes Alex's unfiled
27195 Critical bug report.
27197 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
27199 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
27200 and this fixes #78493
27202 2006-05-23 Miguel de Icaza <miguel@novell.com>
27204 * Theme.cs (GetSizedResourceImage): Scale images if the proper
27207 * FileDialog.cs: Do not change the background for the side bar as
27208 it wont work nicely with the theme, and also reduces the artifacts
27209 in rendering the icons (which I want to fix too).
27211 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
27212 resources, not resgen resources.
27214 (PlatformDefaultHandler): Pull images using the new API.
27216 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
27218 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
27219 a reference to the hwnd and will not remove it unless there are
27220 no pending exposures (fixes #78341)
27221 * XplatUI.cs: Improved debug
27223 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
27225 * MenuAPI.cs : don't handle OnClick event when it was not the left
27226 button. Fixed bug #78487.
27228 2006-05-23 Mike Kestner <mkestner@novell.com>
27230 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
27231 prefer submenus to the top menu for item lookup, to avoid popping down
27234 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
27236 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
27237 Graphics.FillRectangle as the visual results are really bad (even
27238 on win). We now draw perfect arrows (and perfect shadows when the
27239 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
27240 Pen.DashPattern to draw the dots of each line.
27242 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
27244 * FileDialog.cs: Update the filename combobox when navigating through
27245 the ListView with the cursor keys. Fixes part 7 of bug #78446.
27247 2006-05-22 Mike Kestner <mkestner@novell.com>
27249 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
27252 2006-05-22 Mike Kestner <mkestner@novell.com>
27254 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
27255 requests. Fix a misspelled parameter and a copy paste exception error
27258 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
27260 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
27261 to get the same width/height (5/13) on X11 as the default font has on
27262 win32. This means that our DefaultFont emSize is smaller than the
27263 the MS SWF equivalent (even thought the width/height stays the same)
27265 2006-05-20 Jackson Harper <jackson@ximian.com>
27268 * MdiWindowManager.cs:
27269 * InternalWindowManager.cs: Make sure to use the border width from
27272 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
27274 * PrintDialog.cs: Implements printer details
27276 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
27278 * FileDialog.cs: Added focus handling for PopupButtonPanel.
27279 Fixes part 1 and 2 of bug #78446
27281 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
27283 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
27284 instead of sticking to the first ever calculated value
27286 2006-05-19 Mike Kestner <mkestner@novell.com>
27288 * ComboBox.cs: fix mouse motion selection to use MousePosition and
27289 PointToClient, since Capture is set. Fixes #78344.
27291 2006-05-19 Mike Kestner <mkestner@novell.com>
27293 * ListView.cs: match MS behavior in Details view where items are not
27294 drawn if Columns.Count == 0.
27295 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
27296 Use a separate pen to draw the check, since changing the width affects
27297 the box as well. Fixes #78454.
27299 2006-05-18 Miguel de Icaza <miguel@novell.com>
27301 * ListView.cs: ArgumentOutOfRangeException, single versions of the
27302 exception should throw the name of the invalid argument.
27304 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
27305 there are no files listed.
27307 2006-05-18 Jackson Harper <jackson@ximian.com>
27309 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
27312 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27314 * Control.cs: Brought back our old UpdateZOrder method as a private
27315 function and switched our calls from UpdateZOrder to the new one.
27316 This fixes the Paint.Net canvas disappearing bug.
27318 2006-05-18 Jackson Harper <jackson@ximian.com>
27321 * ThemeWin32Classic.cs:
27322 * InternalWindowManager.cs: Move the drawing into the theme,
27323 expose everything the theme should need from the window manager.
27325 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27327 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
27328 from the call to NativeWindow to avoid walking up the parent chain
27329 further than needed (speeds up setting cursors and avoids setting
27330 the wrong cursor if a parent has another cursor defined)
27331 * Cursor.cs: When loading an icon as cursor, MS uses the center of
27332 the icon as hotspot, not what's contained as hotspot in the icon
27333 file. This fixes the perceived drawing offset seen with Paint.Net
27335 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27338 - Store the calculated rectangle in Hwnd object and use it when
27339 setting the client size
27340 - Force Toolwindows to always be type Dock, to ensure they're on top
27342 2006-05-18 Mike Kestner <mkestner@novell.com>
27344 * ComboBox.cs: first pass at ComboBox rework. Layout is more
27345 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
27346 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
27347 Substantial refactoring to remove confusing nested classes. Coding
27348 standard and Get+Set->property refactorings. Shift to index based
27349 highlighting in ComboListBox instead of constantly using IndexOf and
27350 Items[]. Add invalidations on resize for DropDownList to fix ugliness
27351 in FileDialog growth. Draw borders manually since Simple mode needs
27352 to look like two independent controls. Make listbox border
27353 conditional to DropDownStyle. Improved OwnerDraw support.
27355 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
27357 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
27358 Don't set the disposed graphics to null, so we can throw the "right"
27359 exception if the graphics is reused later (added a flag to avoid
27360 double disposing). Some behaviours are different under 2.0 and are
27361 filled under bug #78448.
27363 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
27365 * Control.cs: When double-buffering is enabled, we need to reset
27366 our graphics context between paint calls. Otherwise, any
27367 transformations and other alterations on the context will
27368 become cumulative (#77734)
27370 2006-05-18 Mike Kestner <mkestner@novell.com>
27372 * ListView.cs: do focused item selection like MS on clicks.
27373 Rework focus handling for ItemControl so LostFocus invalidates as
27375 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
27376 the ListView ItemControl has focus.
27378 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
27380 * XplatUIX11.cs: If client_window ends up being width or height zero
27381 due to border settings, move it off window inside whole_window (#78433)
27383 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
27385 * Mime.cs: Shrink the mime file cache correctly.
27387 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
27389 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
27391 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27393 * XplatUIX11.cs (AddExpose): More sanity checks
27395 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27398 - AddExpose: Don't add expose ranges outside the size of our
27400 - Cast opacity values to Int32 to avoid crashes with certain
27402 - Added disabled code paths that protect against illegal cross-
27403 thread painting (Developers.exe)
27405 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27407 * ProgressBar.cs: Invalidate the control when it's resized
27408 since block size is based on control size. (#78388)
27410 2006-05-16 Miguel de Icaza <miguel@novell.com>
27412 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
27413 of setting the incoming argument to the "reset" value, we set the
27414 this.datamember to string.empty (before we were invalidating the
27419 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27421 * Form.cs: Only apply transparency settings after the form
27422 is created. (Fixes #77800)
27424 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27426 * ApplicationContext.cs: Grab the HandleDestroyed event so
27427 we know when to fire OnMainFormClosed
27429 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27431 * Application.cs: Introduced sub-class to allow tracking of
27432 threads and centralized triggering of the event mess for
27433 ThreadExit, AppExit, etc.. (#76156)
27435 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
27438 - Do not return a null icon index value for a mime subclass.
27439 Instead try the main mime type class too.
27440 - Seems that some newer distributions don't have a link to some
27441 gnome default icons anymore. So check the default gnome dir too.
27444 2006-05-16 Jackson Harper <jackson@ximian.com>
27446 * MdiClient.cs: Don't paint the parent background image if we have
27447 our own background image.
27449 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
27452 - PerformLayout: Do not shrink space filled by DockStyle.Fill
27453 controls, all filled controls are supposed to overlap (#78080)
27454 - UpdateZOrder is supposed to update the control's z-order in the
27455 parent's z-order chain. Fixed to behave like that
27456 - BringToFront: Removed obsolete code
27457 - SendToBack: Simplyfied
27458 - SetChildIndex: Trigger layout calculations when Z-order changes
27459 since layout is done by z-order
27461 2006-05-16 Chris Toshok <toshok@ximian.com>
27463 [ fixes bug #78410 ]
27464 * DataGrid.cs (set_AlternatingBackColor): use
27465 grid_drawing.InvalidateCells instead of Refresh().
27466 (set_BackColor): call grid_drawing.InvalidateCells.
27467 (set_BackgroundColor): use Invalidate instead of Refresh.
27469 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
27470 invalidate the cell area.
27472 2006-05-15 Chris Toshok <toshok@ximian.com>
27474 [ fixes bug #78011 ]
27475 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
27476 on to DataGridPaintRow.
27477 (DataGridPaintRow): take a clip argument, and only draw the cells
27478 which intersect it. same with the not_usedarea.
27480 * Theme.cs (DataGridPaintRow) add @clip parameter.
27482 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
27483 XplatUI.ScrollWindow.
27484 (ScrollToRow): same.
27486 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
27487 with last column which was causing a gray swath to appear with the
27488 XplatUI.ScrollWindow code.
27490 2006-05-15 Chris Toshok <toshok@ximian.com>
27492 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
27493 use XplatUI.ScrollWindow.
27494 (VerticalScrollEvent): use XplatUI.ScrollWindow.
27496 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27498 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
27500 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27502 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
27503 file since there are no equivalent X11 cursors
27505 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
27507 * MonthCalendar.cs : DateTimePicker should reflect selected date
27508 on mouse*up*, not mouse*down*. Fixed originally reported part of
27511 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
27513 * TabControl.cs : When argument index is equal or more than tab
27514 count, just ignore. Fixed bug #78395.
27516 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
27518 * Control.cs: Dispose all child controls when control is diposed (#78394)
27520 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27522 * ColorDialog.cs: Finally it is possible to select the color with
27525 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27527 * PrintDialog.cs: Fix typo
27529 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
27531 * PrintDialog.cs: PrintDialog is not resizable
27532 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
27533 color. Made some ToolBar drawing methods protected virtual.
27535 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
27537 * PrintDialog.cs: Implementation of the PrintDialog
27539 2006-05-12 Chris Toshok <toshok@ximian.com>
27541 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
27542 thumb, instead use MoveThumb. This has the side effect of making
27543 most of the other thumb moving machinery use MoveThumb as well.
27544 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
27545 need to actually invalidate the rectangle where the new thumb will
27547 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
27548 We force an Update() after, so it's not as fast as it could be,
27549 but at least there's zero flicker and no droppings.
27550 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
27551 (UpdateThumbPos): add another argument (dirty), which says whether
27552 or not to calculate/add dirty regions which we later invalidate.
27553 For cases where we know we're going to use MoveThumb, we pass
27554 false for this. Otherwise, pass true.
27556 2006-05-12 Jackson Harper <jackson@ximian.com>
27558 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
27561 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
27563 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
27564 and GetClipRegion methods and UserClipWontExposeParent property.
27565 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
27566 overriding UserClipWontExposeParent property, setting to false, since
27567 Win32 handles the required expose messages to draw our clipped parent
27569 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
27570 PaintEventStart to set the user clip region if set.
27572 - Now internally tracking the Region for the control since we need to
27573 store it if the handle is not yet created and only set it when it
27574 becomes created. Before setting the region forced handle creation
27575 - Added code to draw the parents underneath a user-clipped region
27576 * Hwnd.cs: Added UserClip property
27578 2006-05-12 Chris Toshok <toshok@ximian.com>
27580 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
27581 (set_Maximum): same.
27582 (set_Minimum): same.
27583 (set_SmallChange): same.
27584 (OnMouseUpSB): remove the call to refresh when releasing the
27585 thumb. We shouldn't need it.
27587 2006-05-12 Miguel de Icaza <miguel@novell.com>
27589 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
27590 AutoSize set to None, we do not need to relayout everything, we
27591 just need to invalidate the current region.
27593 (Draw): Do not draw the entire ClientArea, just redraw the
27594 clip area being passed.
27596 * MdiClient.cs: Make MdiClient constructor with the Form argument
27599 2006-05-12 Jackson Harper <jackson@ximian.com>
27601 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
27602 parents background image, but strangely not their own.
27603 - (DrawStatusBarPanel): Take into account horizontal alignment
27604 when drawing the strings and icons.
27606 2006-05-12 Mike Kestner <mkestner@novell.com>
27608 * ListBox.cs: avoid invalidations for focus when the collection is
27611 2006-05-12 Chris Toshok <toshok@ximian.com>
27613 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
27614 invalidate the entire thumb area. Call InvalidateDirty which
27615 limits the redraw to the thumb itself and surrounding pixels.
27617 * XplatUIX11.cs (ScrollWindow): optimize copying.
27619 2006-05-12 Chris Toshok <toshok@ximian.com>
27621 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
27622 Figure out the positioning/layout in a single pass instead of
27623 multiple recursive invocations. Speeds up the initial display of
27624 the data grid. Also, make many things private that were
27625 originally public but unused outside this class.
27627 2006-05-11 Jackson Harper <jackson@ximian.com>
27629 * MdiClient.cs: Improved layout code.
27631 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
27633 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
27634 not SelectedObject.
27636 2006-05-11 Chris Toshok <toshok@ximian.com>
27638 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
27639 union of that will always be {0,0,width,height}.
27641 2006-05-11 Jackson Harper <jackson@ximian.com>
27643 * Form.cs: Match MS's DefaultSize for forms (they must have
27644 changed the size in sp2).
27646 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
27648 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
27650 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
27652 * TextControl.cs : Fixed bug #78109. This incorrect position
27653 comparison caused crash on automatic line split.
27654 * TextBoxBase.cs : reduce duplicate code.
27656 2006-05-10 Jackson Harper <jackson@ximian.com>
27658 * MdiClient.cs: Active form is only sent to the back when using
27659 the Next form functionality, when a form is clicked the current
27660 active shouldn't be sent to the back.
27661 - Layout the mdi windows when the container is first made visible.
27662 * Form.cs: Give the MdiClient a ref to the containing form when we
27665 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
27667 * LinkLabel.cs : link_font could be uninitialized, so populate one
27668 before actual use. Fixed bug #78340.
27670 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
27672 * XplatUIX11.cs : clipboard format native value is IntPtr.
27675 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27678 - Instead of showing context menus directly we send WM_CONTEXTMENU,
27679 which is passed up the parent chain by DefWndProc
27680 - We now handle WM_CONTEXTMENU to display any menu, or pass it
27681 to DefWndProc (#77956)
27682 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
27684 2006-05-10 Jackson Harper <jackson@ximian.com>
27686 * MdiClient.cs: We need to remove the controls from the mdi
27687 collection, when we close the window.
27688 * MdiWindowManager.cs: Special handling of closing mdi windows.
27689 * InternalWindowManager.cs: Make the close method virtual so the
27690 mdi window manager can handle it specially.
27692 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
27695 - Recalculate grid when the data source has changed
27696 - Matches styles provided by user from all data sources types
27697 * DataGridTableStyle.cs: For columns that provided by the user set the
27698 with the preferred value is there was unassigned.
27699 * CurrencyManager.cs: throw OnItemChanged event
27701 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27703 * PictureBox.cs: Don't animate until handle is created. Start animation
27704 when handle is created.
27706 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27708 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
27710 * XEventQueue.cs: We don't need to provide the extra info
27712 2006-05-10 Jackson Harper <jackson@ximian.com>
27714 * MdiClient.cs: If the mdi clients parent form has a background
27715 image set, we draw that background image for the mdi area's
27718 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
27720 * TextBoxBase.cs: Set IBeam cursor (#78347)
27722 2006-05-10 Mike Kestner <mkestner@novell.com>
27724 * ToolBar.cs: fix some text padding issues with ButtonSize
27725 calculation. Update the default size to match MS documentation.
27726 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
27727 button size. Fixes #78296.
27729 2006-05-10 Mike Kestner <mkestner@novell.com>
27731 * ListBox.cs: use is_visible for scrollbar positioning in case the
27732 control isn't on screen yet. Fix off by one with Right vs Width
27733 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
27735 2006-05-10 Jackson Harper <jackson@ximian.com>
27737 * X11Dnd.cs: Drop to a control with another control on top of it.
27738 * ToolBar.cs: Work on a copy of the buttons list, so that it can
27739 be modified in click handlers. TODO: Look for similar problems in
27742 2006-05-09 Jackson Harper <jackson@ximian.com>
27744 * Form.cs: Window managers need the old window state when setting
27746 * InternalWindowManager.cs: Allow the base mdi window manager to
27747 handle more of the MDI only stuff (like maximize buttons).
27748 * MdiWindowManager.cs: Fix some snafus in changing the window
27749 state. Add all the menu functionality, for both popup and
27751 * MdiClient.cs: When a new form is selected the currently
27752 activated form is sent to the back, this matches MS.
27753 - Implement a new method to activate the next mdi child window.
27755 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
27758 - Added new InternalCapture method to allow controls to prevent
27759 the capture behaviour on the click handlers
27760 - Switched to use InternalCapture
27762 - Using InternalCapture to prevent mouse captures from being released
27763 on mouse button release (Fixes #78100)
27764 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27765 returns Form borders if a caption is present. (Fixes #78310)
27767 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
27769 * TreeNode.cs: Changed serialization .ctor to not require every field
27770 to be present. (#78265)
27771 * OwnerDrawPropertyBag.cs: Added serialization .ctor
27773 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
27775 * MimeIcon.cs: for is faster than foreach for strings.
27777 2006-05-05 Mike Kestner <mkestner@novell.com>
27779 * CheckedListBox.cs: update check handling code to not use selected.
27780 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27781 behavior for visual feedback, motion response, shift/ctrl handling,
27782 and properly deal with all 4 selection modes. Updates to bounds
27783 handling logic. Add scroll wheel support. [Fixes #77842]
27785 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
27788 - Moved adding of Implicit controls into .ctor. That way, subsequent
27789 creation of the controls will not cause them to think they are
27790 toplevel windows (fixes #78200 header problem)
27791 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27792 - Switched visibility setting of header control to use internal field
27793 to avoid triggering handle creation
27794 - Now checking if handle is created before causing a refresh when items
27795 are added (This makes us now match handle creation time with MS)
27796 * Splitter.cs: Removed loading of private splitter cursor, switched to
27797 Cursors version now that that is loading the right ones
27798 * Cursors.cs: Load proper splitter cursors from resources
27799 * Cursor.cs: Added second method of loading resource cursors for the
27800 VS.Net users amongst us
27802 2006-05-05 Mike Kestner <mkestner@novell.com>
27804 * ListView.cs: give header_control a minimum size based on the
27807 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
27809 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27810 window seems to do that with metacity, so set that type. (#78120)
27812 2006-05-05 Mike Kestner <mkestner@novell.com>
27814 * ListViewItem.cs: fix Details mode checkbox layout bug.
27815 * ThemeWin32Classic.cs: draw a ListView column header for unused space
27816 at the end of the header, if it exists. [Fixes for #78200]
27818 2006-05-04 Jackson Harper <jackson@ximian.com>
27820 * MdiClient.cs: Add a helper property to get the container form.
27821 * MdiWindowManager.cs: We have to make sure to use the menu origin
27822 when drawing the icons and buttons, this fixes maximized window
27823 icons/buttons on win32.
27824 * InternalWindowManager.cs: Reset the restore captions when a
27825 window goes from Maximized to Minimized and vice versa. Move the
27826 DrawMaximizedButtons into the MdiWindowManager source, tool
27827 windows can't be maximized. NOTE: This could use a little
27828 refactoring if time ever permits.
27830 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27832 * TextBox.cs: Add MWFCategoryAttributes
27833 * TextBoxBase.cs: Add MWFCategoryAttributes
27834 * Form.cs: Add MWFCategoryAttributes
27836 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
27838 * Control.cs: Add MWFCategoryAttributes
27839 * ScrollableControl.cs: Add MWFCategoryAttributes
27841 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
27843 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27844 Divider is true. Fix a little glitch in PropertyToolBar
27847 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
27850 - Dispose: Call base.Dispose, this causes the disposed event
27851 to be fired (and probably other, more important stuff)
27852 - SetVisibleCore: Set is_visible to true after creating the
27853 window so that the window still gets created invisible (if
27854 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27855 to generate a WM_ACTIVE message
27856 * Form.cs: Call Dispose when we want to destroy the window, instead of
27857 just destroying the handle (Dispose will do that for us)
27859 - RootWindow also needs a queue, so we can properly process the
27860 property change events from RootWindow (like Activate)
27861 - Generatic synthetic WM_ACTIVE message when the active window is
27864 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27866 * LinkLabel.cs: Trigger a recalc of our label dimensions when
27869 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27871 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27872 for determining width and height (image might not be assigned if
27873 we're drawing an imagelist)
27875 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
27877 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27878 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27880 * Theme.cs: No longer returns hardcoded menu height, instead calls
27882 * Form.cs (OnLoad): Scaling happens before triggering Load events
27885 2006-05-01 Mike Kestner <mkestner@novell.com>
27887 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
27889 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27891 * TextBoxBase.cs: Removed Fixme
27892 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27894 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
27897 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27898 the rectangle relative to the parent, considering borders. We
27899 don't really want that.
27900 - ScrollWindow: Fixed warning to be more understandable
27901 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27902 scrollbars and scroll only the visible area
27903 * RichTextBox.cs: Removed debug output
27905 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27907 * NumericUpDown.cs (Text): Just use base
27908 * UpDownBase.cs: Ensure txtView is created before using it
27910 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27912 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27913 casting to IntPtr to avoid 64bit overflow errors
27915 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27918 - AllowDrop: Don't force handle creation.
27919 - CreateHandle: Added call to tell driver if we're allowed to drop
27921 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
27923 * FileDialog.cs: Remember the last directory not only for the
27924 current instance but also for new FileDialog instances.
27926 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27928 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27929 broke sending async messages
27931 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
27934 - ScrollWindow: Fixed method. We finally generate expose events again
27935 for scrolled areas. This was causing 'garbage' when scrolling
27936 textbox and other controls that used ScrollWindow
27937 - Switched from using the regular queue for paint events to the MS
27938 model of 'generating' paint events when the queue is empty.
27939 We use the new XQueueEvent.Paint subclass to store which windows
27941 - AddExpose now takes the x/y/width/height of the exposed area
27942 and inserts the window into the paint queue if not already there
27943 - InvalidateWholeWindow: Switched to use new AddExpose method
27944 - UpdateMessageQueue: Added which queue to monitor for paint events
27945 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27946 the unlikely case nothing above handles it. We reset the expose
27947 pending states to get them off the queue.
27948 - GetMessage: Now pulls a paint event if no other events are in the
27950 - Invalidate: Switched to new AddExpose method
27951 - PeekMessage: Updated to understand pending paint events
27952 - UpdateWindow: Fixed logic bug. We were only updating if the window
27953 didn't need updating. Also switched to sending WM_PAINT directly,
27955 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27956 and random access Remove(). The random access is needed to handle
27957 UpdateWindow() where a WM_PAINT is sent directly without accessing
27959 * ScrollBar.cs: Added Update() calls to cause immediate updates to
27960 allow for better feedback when scrolling. Scrollbars are small and
27961 the immediate update should make it 'feel' more responsive without
27962 slowing things down. ScrollBar still needs it's invaliate logic
27963 updated to not always invalidate the whole bar on certain changes.
27965 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27968 (BackColor): if the control does not support a transparent background,
27969 return the default backcolor when the parent backcolor is transparent.
27971 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
27973 * Application.cs: Updated to new StartLoop/GetMessage API
27974 * RichTextBox.cs: Provide some output on RTF parsing errors
27975 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27976 new queue_id argument to GetMessage and PeekMessage to allow faster
27977 handling of per-thread queues in drivers.
27978 * Hwnd.cs: Added Queue tracking and property
27979 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27980 * XEventQueue.cs: Added thread trackingA
27981 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27983 - Implemented new per-thread queue
27984 - GetMessage: Fixed return/break behaviour on several cases. We were
27985 returning stale messages in some cases, instead of just processing
27988 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27990 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27992 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
27994 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27995 fixed off-by-one comparisons between Width/Height and Right/Bottom.
27997 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
27999 * PropertyGridView.cs: Fix drop down width.
28001 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
28003 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
28004 a mess in DrawToolBar, so I removed one of them.
28006 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
28008 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
28009 needed (clip). Otherwise we get artifacts.
28011 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
28013 * FixedSizeTextBox.cs: Added constructor to allow specifying which
28015 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
28016 and switched FixedSizeTextBox to only be fixed vertical (#78116)
28017 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
28018 if it matches the scale base font (avoids unneeded scaling)
28020 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
28022 * X11DesktopColors.cs: One gtk_init_check should be enough
28024 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
28026 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
28029 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
28032 - Generate OnTextChanged for Backspace even if we're only deleting
28033 the current selection
28034 - When setting the Text property, only select all text if the
28035 control does not have focus when it is being set. Otherwise
28036 just place the cursor at the beginning of the control
28038 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
28040 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
28041 Added a little helper to draw PropertyGrid ToolBar with a different
28042 border and a different BackColor.
28043 * PropertyGrid.cs: Some background parts didn't get painted with the
28044 correct background color. Added a class that helps us to draw the
28045 correct border for PropertyGridView and a class that helps us to
28046 draw ToolBars with a different backcolor
28047 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
28049 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
28051 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
28052 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
28054 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
28056 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
28057 into the palette entries. Also, since we're working on a copy
28058 we needed to copy the palette back onto the bitmap.
28059 * Cursor.cs: Same fix as XplatUIWin32.cs.
28061 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
28063 * ImageListStreamer.cs: Need to read the var (or we're off)
28065 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
28067 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
28068 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
28069 TextBoxBase.cs: Unused var fixes
28070 * AxHost.cs: Small 2.0 fix
28071 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
28072 as it seems that is what at least Metacity expects. This will make
28073 icons show up on 64bit platforms. We still have some 64bit size
28074 issues, though, since the startup app window size still won't match.
28076 2006-04-25 Mike Kestner <mkestner@novell.com>
28078 * *.cs: cleanup newly reported exception var unused warnings.
28080 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
28082 * ThemeWin32Classic.cs: Button image alignment now matches exactly
28085 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
28087 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
28088 image. The image position is always the same, no matter if the
28089 button is pressed or not.
28091 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
28093 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
28094 selection and set the correct filename for SaveFileDialog.
28095 Patch by Emery Conrad.
28097 2006-04-24 Mike Kestner <mkestner@novell.com>
28099 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
28100 check for item.X outside the ClientRect instead of item.Y. Fixes
28103 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28105 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
28106 trust that value blindly and do some sanity check. Fixes bug #77814.
28108 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28110 * ImageListStreamer.cs: save the mask as a 1bpp image.
28112 2006-04-21 Mike Kestner <mkestner@novell.com>
28114 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
28115 pass Checked and Indeterminate to the Theme Engine. Improve
28116 encapsulation with ListBox.
28117 * ListBox.cs: Keep a StringFormat instead of calculating it every item
28118 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
28119 nested types. Move all CheckState functionality to CheckedListBox.
28120 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
28121 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
28122 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
28123 single base list. Fix scrollbar sizing and placement to mirror MS.
28124 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
28126 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
28127 for CheckedListBox by using new DrawItemState info. Center the
28128 checkboxes on the items. Use new StringFormat property.
28130 2006-04-18 Jackson Harper <jackson@ximian.com>
28132 * Form.cs: MdiChildren don't do default locations the same way as
28133 regular forms. This prevents a crash when trying to position the
28136 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
28138 * PropertyGridTextBox.cs: Formatting, copyright
28139 * PropertiesTab.cs: Formatting
28140 * PropertyGrid.cs: Formatting
28141 * PropertyGridView.cs: Formatting, fix drop down, enabled double
28142 click toggling of values
28144 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
28146 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
28147 * Control.cs (.ctor): verify_thread_handle is static, don't reset
28148 every time a control is created
28149 * Application.cs: Removed obsolete EnableRTLMirroring method
28151 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
28153 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
28154 SelectedIndex to -1. Fixes bug #78121.
28156 2006-04-17 Jackson Harper <jackson@ximian.com>
28158 * Binding.cs: Handle null values for Current and BindingContext.
28159 This occurs when binding is a little delayed.
28160 * CurrencyManager.cs: return null for Current when there are no
28162 - Hookup to the listchanged event on the DataView and update
28163 bindings when the list is changed. This fixes late binding of
28166 2006-04-17 Jackson Harper <jackson@ximian.com>
28169 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
28172 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
28174 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
28176 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
28177 with the correct ButtonState
28179 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
28181 * XplatUIX11.cs: Improved distinguishing between window types to
28182 tell the WM a type closer to what the app wants (Fixes #78107)
28184 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
28186 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
28189 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
28191 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
28192 drawing code to reflect the size grip changes
28194 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28196 * ImageListStreamer.cs: fix handling of the mask that follows the main
28197 bitmap when deserializing and serialize it properly. The generated mask
28198 should better be a 1bpp image, but I'll do that later.
28200 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
28202 * FileDialog.cs: Show something in the DirComboBox on *nix if the
28203 path doesn't fit into some of our Current.Places
28205 2006-04-13 Jackson Harper <jackson@ximian.com>
28207 * ComboBox.cs: Use borders instead of drawing our own decorations,
28208 try to obey correct rules for heights.
28211 * ThemeClearLooks.cs:
28212 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
28213 this is now handled by borders.
28214 - Remove unused DrawListBoxDecorationSize method.
28216 2006-04-13 Mike Kestner <mkestner@novell.com>
28218 * MenuAPI.cs: null guarding for the disbled click check fixes crash
28221 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
28223 * ThemeWin32Classic.cs:
28224 - Fixed CPDrawStringDisabled
28225 - Corrected drawing of disabled menu items
28226 - Fixed drawing of disabled radio buttons (bug #78095)
28227 - Draw check in a disabled CheckBox with color ControlDark
28229 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28231 * Form.cs: Use the provided width when calculating the menu size;
28232 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
28233 and ClientSize.Width won't be updated yet
28234 * Application.cs: Use Visible instead of Show() to make form visible,
28235 this way we create the handle later and menusize is considered
28237 2006-04-12 Mike Kestner <mkestner@novell.com>
28239 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
28242 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28244 * TextBox.cs: Implemented context menu
28246 2006-04-12 Mike Kestner <mkestner@novell.com>
28248 * ListView.cs: implement box selection. fixes #77838.
28249 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
28251 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28253 * XplatUIX11.cs: Added setting of window type when transient window
28254 is created (metacity would move it otherwise)
28255 * X11Structs.cs: Added WINDOW_TYPE atoms
28256 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
28257 background (the control is Opaque but still wants transparent
28260 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28262 * Control.cs: Added OnPaintBackgroundInternal to allow controls
28263 that set Opaque but don't mean it (like all ButtonBase-derived
28264 controls) to still draw their background
28265 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
28268 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28270 * Control.cs (PaintControlBackground): Set the graphics object
28271 on our PaintEvent to null to prevent it from being disposed
28272 when the PaintEvent gets disposed
28274 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
28276 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
28277 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
28279 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
28282 - Added transparency check to BackColor property. Transparent
28283 backgrounds are only allowed if the control styles permit it
28284 - Added recursive painting of parent control background and
28285 foreground if a control with a transparent backcolor is drawn
28286 (Thanks to Tim Ringenback for providing his 'hack' as a base
28287 for this patch) Fixes #77985 and #78026.
28288 - Added Opaque style check before calling OnPaintBackground, no
28289 need to draw the background if the control is opaque
28290 - Removed ControlAccessibleObject owner variable (inherited from
28291 base, no need to define again)
28292 - Added some documentation links explaining the drawing events
28295 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28297 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
28298 that the affected control is the located at the left border of our
28299 parent (Fixes #77936)
28301 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28303 * TextBoxBase.cs: When rendering disabled or readonly controls,
28304 draw the background with 'Control' instead of 'Window' color as
28305 long as the user hasn't specifically set a color
28307 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28309 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
28310 since that won't be updated if the user types text (only if it's
28311 programatically set)
28313 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28315 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
28316 layout changes do to app-triggered resizes will have the proper
28317 display rectangle for layout
28319 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
28321 * ThemeWin32Classic.cs:
28322 - Make use of the SystemBrushes and SystemPens wherever possible
28323 - Corrected some highlight colors
28324 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
28326 * Theme.cs: Added Empty field to CPColor struct
28328 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
28330 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
28331 is displayed when calculating the display rectangle. Thanks to Mike
28332 for teaching me the err of my ways.
28334 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
28336 * ScrollableControl.cs:
28337 - Rewrote DisplayRectangle code, now returning the proper x/y coords
28338 (instead of 0,0) and we now return the real width/height instead of
28339 just the clientrectangle, adjusted for padding. The rectangle is
28340 now cached and created by the new CalculateDisplayRectangle method.
28341 - Created new CalculateDisplayRectange method, which basically does
28342 what get_DisplayRectangle() did originally, but now using the
28343 right edge instead of DisplayRectangle to determine the size of
28345 - get_Canvas(): Fixed it to properly calculate canvas for
28346 right/bottom controls which seem to be placed to the right/bottom
28347 of any controls that have a fixed location
28348 - Removed TODO that's taken care of
28349 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
28350 and SetDisplayRectLocation according to new MSDN2 docs
28351 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
28352 event when that is called, this is added for compatibility
28353 - ScrollControlIntoView(): Implemented.
28354 - Switched scrollbars to be implicit, they shouldn't be selectable
28355 * ContainerControl: Now that ScrollControlIntoView is implemented, we
28356 call it when the active control is set/changed
28357 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
28358 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
28359 implicit_control variable (used for native Win32 message generation)
28360 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
28361 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
28362 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
28363 * XplatUIStructs.cs: Added ScrollBarCommands enum
28365 2006-04-10 Jackson Harper <jackson@ximian.com>
28368 * CheckedListBox.cs:
28375 * PrintPreviewControl.cs:
28381 * UpDownBase.cs: Fixup base event overrides.
28383 2006-04-06 Mike Kestner <mkestner@novell.com>
28385 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
28386 all user-initiated value changes to min <= value <= max-thumbsz+1.
28387 (set_Value): check for vert/horiz when calculating new thumb position.
28388 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
28390 (OnMouseMoveSB): refactor the thumb dragging code and refine
28391 invalidation logic to reduce flicker.
28392 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
28393 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
28394 (UpdateThumbPosition): small code readability cleanup
28396 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
28398 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
28401 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
28403 * ThemeNice.cs: Use a better graphics effect when a button is pressed
28405 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
28407 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
28408 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
28409 This dramatically reduces the number of Pen.Dispose calls.
28410 Where possible call ResPool methods only once instead of calling it
28411 over and over again (for example for the same color).
28413 2006-04-06 Mike Kestner <mkestner@novell.com>
28415 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
28416 Also remove an unused private field on the collection. Fixes #77972.
28418 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
28420 * ThemeNice.cs: Added ToolBar drawing code
28422 2006-04-06 Mike Kestner <mkestner@novell.com>
28424 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
28425 I'm assuming that means we need to look up the toplevel for the
28426 provided control. Fixes the crash trace in #77911 but exposes another
28427 crash in some strange reflection usage in NDocGui.
28429 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
28431 * ThemeNice.cs: Gave it a little silver touch and added Images
28433 * FontDialog.cs: FontDialog is not resizable
28434 * FileDialg.cs: Added SizeGripStyle.Show
28436 2006-04-05 Jackson Harper <jackson@ximian.com>
28438 * KeyboardLayouts.cs: Remove warning.
28440 2006-04-05 Jackson Harper <jackson@ximian.com>
28442 * Control.cs: Enable OnPaintInternal so we can use it for drawing
28443 all of our controls instead of Paint +=.
28458 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
28459 use OnPaintInternal. Remove Width/Height and Visible checks in
28460 paint handler, this is done at a higher level now.
28461 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
28462 * PaintEventArgs.cs: Add a handled flag so controls that don't
28463 want anymore painting after OnPaintInternal can make sure OnPaint
28466 2006-04-05 Mike Kestner <mkestner@novell.com>
28468 * Form.cs: fix the menu WndProc hacks to respect the native enabled
28469 state of the form, so that we don't process events when Modal dialogs
28470 are up. Fixes #77922.
28472 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
28474 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
28477 2006-04-05 Mike Kestner <mkestner@novell.com>
28479 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
28481 2006-04-05 Mike Kestner <mkestner@novell.com>
28483 * ListView.cs (HeaderMouseMove): null guarding for the over column
28484 when setting up the drag_to_index. Fixes #78015.
28486 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
28488 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
28489 in the taskbar. Transient windows seem to accomplish that.
28491 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
28494 - Re-enabled CreateParams.X/Y code for FormStartPosition
28495 - Added code for manual placement when creating the Control
28496 - Incomplete patch to treat MDI forms differently when
28497 setting the ClientSizeCore. (Still need to figure out handling
28500 - When we're explicitly setting the X/Y position of a non-Child
28501 window, let the WM know. Metacity really wants this.
28503 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28505 * ThemeNice.cs: Added CPDrawButton
28507 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28509 * ThemeNice.cs: Changed the color for focused buttons and activated
28510 the arrows for small scroll buttons.
28512 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
28514 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
28515 anymore. Changed some method modifiers to protected (virtual)
28516 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
28518 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
28519 Updated drawing of menus, buttons and progressbars; added
28522 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28524 * ImageListStreamer.cs: implemented serialization/deserialization
28527 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
28529 * ThemeWin32Classic.cs:
28530 - Removed all the DrawFrameControl stuff; CPDrawButton,
28531 CPDrawCheckBox and CPDrawRadioButton are now handled directly
28533 - Updated and corrected the drawing code of CPDrawButton,
28534 CPDrawCheckBox and CPDrawRadioButton to better match ms
28535 - Updated theme checkbox and radiobutton code to use the CP*
28538 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28540 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
28543 2006-03-31 Jackson Harper <jackson@ximian.com>
28545 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
28547 * UpDownBase.cs: Don't CreateGraphics manually, use a
28548 Refresh. Ideally we would invalidate the correct areas here.
28550 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28553 - We now track the mapping state of windows. If a window (or
28554 one of it's parents) is not mapped we no longer permit
28555 WM_PAINT messages to be generated since we'd otherwise get
28556 lots of BadMatch X errors. Jackson did all the work figuring
28558 - Destroying the caret if the window it's contained in is
28559 destroyed. Can't use regular DestroyCaret method since it
28560 might fall into a drawing function (trying to remove the
28561 caret) and with that generate new BadMatch errors. Again,
28562 Jackson tracked this down.
28563 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
28564 make sure we send the messages to all windows. (The old code
28565 would send the WM_DESTROY to the window, and then all child
28566 windows would be 'gone' because the WM_DESTROY handle lookup
28567 would no longer find the destroyed window)
28568 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
28569 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
28571 2006-03-31 Jackson Harper <jackson@ximian.com>
28573 * ScrollableControl.cs: Dont recalc if we are not visible.
28575 2006-03-31 Mike Kestner <mkestner@novell.com>
28577 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
28578 the visibility branch.
28580 2006-03-31 Jackson Harper <jackson@ximian.com>
28582 * ScrollBar.cs: Cap values when incrementing/decrementing.
28584 2006-03-31 Mike Kestner <mkestner@novell.com>
28586 * MenuAPI.cs: setup menu.tracker for popup/context menus.
28587 * ToolTip.cs: guard against timer expirations with no active control.
28588 Not sure why it happened.
28590 2006-03-31 Mike Kestner <mkestner@novell.com>
28592 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
28594 * ToolTip.cs: Position the tooltip based on where the cursor is at
28595 popup time, not at MouseEnter time. Add a Down state so that we don't
28596 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
28597 positioning offset. Lookup DisplaySize at positioning time, since it
28598 can theoretically change during invocation.
28599 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
28600 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
28602 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28604 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
28605 Fixes behaviour when the Text property of the box is String.Empty
28607 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
28609 * XplatUIX11.cs: Only send mouseleave for our client windows, not
28610 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
28613 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28615 * FileDialog.cs: Visual enhancement for the popup buttons in
28618 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
28620 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
28623 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
28625 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
28626 highlighted menu items to match ms
28628 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
28630 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
28632 2006-03-30 Mike Kestner <mkestner@novell.com>
28634 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
28635 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
28636 go active to account for HotLight to Selected transition.
28637 * MenuItem.cs: add internal Selected prop. Fill out the Status
28638 property by calculating it from item info. Add HotLight,
28639 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
28641 2006-03-30 Mike Kestner <mkestner@novell.com>
28643 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
28645 2006-03-29 Jackson Harper <jackson@ximian.com>
28647 * Form.cs: Implement TODO.
28649 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
28651 * PrintPreviewDialog.cs: Implemented missing methods and events; still
28652 missing proper dialog setup in the constructor
28654 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
28656 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
28658 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
28659 - Fixed ResetBindings and removed TODO
28660 - Added check for cross-thread calls to get_Handle()
28661 - Added Marshaller attribute for set_Font to satisfy class status
28662 * FontDialog.cs: Removed TODOs that seemed implemented
28663 * UpDownBase.cs: Removed unneeded TODO and Fixme
28664 * MessageBox.cs: Implemented support for Default button and removed TODO
28665 * FileDialog.cs: Removed obsolete TODO
28666 * DomainUpDown.cs: Removed obsolete TODO
28667 * ButtonBase.cs: Removed obsolete TODO
28668 * XplatUIWin32.cs: Removed obsolete TODO
28670 - Removed obsolete TODO
28671 - Calling CheckAcceptButton when the acceptbutton is changed to allow
28672 internal status updates
28673 - Making sure the active control is selected when the control is created
28674 * CurrencyManager.cs: Removed obsolete TODO
28676 2006-03-29 Mike Kestner <mkestner@novell.com>
28678 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
28679 of PrintPreviewDialog and RichTextBox.
28681 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
28683 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
28684 DarkDark, Light and LightLight colors for a specific color
28685 * ThemeWin32Classic.cs:
28686 - Use Button drawing code to draw RadioButtons and CheckBoxes with
28687 Appearance = Button
28688 - Make use of the new ResPool helper CPColor
28689 - Draw ProgressBar and StatusBar with correct 3D borders
28691 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
28693 * ColorDialog.cs: Return selected color. Fixes bug #77940.
28695 2006-03-28 Mike Kestner <mkestner@novell.com>
28697 * ListView.cs: fix Icon layout to plan for scrollbar widths when
28698 calculating col/row counts.
28700 2006-03-28 Mike Kestner <mkestner@novell.com>
28706 switch to explicit interface method implementation for some methods
28707 corcompare identifies as inconsistent with MS.
28709 2006-03-28 Mike Kestner <mkestner@novell.com>
28713 add a few missing methods from the class status output.
28715 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
28717 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
28720 2006-03-28 Mike Kestner <mkestner@novell.com>
28722 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
28724 2006-03-27 Mike Kestner <mkestner@novell.com>
28726 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
28727 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
28729 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
28731 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
28733 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28735 * ThemeWin32Classic.cs:
28736 - GroupBox: Inserted a little gap between the text and the lines
28738 - Made the code in CPDrawBorder3D more readable
28739 - Corrected the drawing location of the up and down arrows in
28742 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28744 * ControlPaint.cs: Corrected line widths in DrawBorder for
28745 ButtonBorderStyle Inset and Outset
28747 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28749 * ThemeWin32Classic.cs:
28750 - Rewrote the totally broken CPDrawBorder3D method. That was
28751 one of the main problems for the terrific ThemeWin32Classic
28753 - Updated and corrected Button drawing
28754 - Correct the dimensions of the SizeGrip to match ms ones
28755 - Removed a small drawing glitch in DrawComboBoxEditDecorations
28756 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28757 Border3DStyle.Sunken to match ms.
28759 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
28761 * ThemeWin32Classic.cs: First small part of the "de-uglify
28762 ThemeWin32Classic" effort, SizeGrip
28764 2006-03-24 Jackson Harper <jackson@ximian.com>
28766 * XplatUIX11.cs: Give a max idle time of one second, this matches
28767 MS and forces an Idle event every second when there are no other
28768 events in the queue.
28770 2006-03-24 Mike Kestner <mkestner@novell.com>
28772 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28773 * ListView.Item.cs: fix layout issues with null image lists and images
28774 smaller than checkbox size.
28775 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28776 mode like MS does. It's weird, but consistent. ;-)
28779 2006-03-24 Mike Kestner <mkestner@novell.com>
28781 * ListView.cs: Scroll wheel support for the item control. Fixes
28784 2006-03-23 Jackson Harper <jackson@ximian.com>
28786 * ScrollableControl.cs: Special case negative sized areas, not
28788 * MonthCalendar.cs: Save the rect of the clicked date so we can
28789 use it for invalidation.
28790 - Try to cut down on the number of invalidates
28791 - Invalidate the rect the mouse is over and was over when moving
28792 the mouse, so we get the focus box following the cursor.
28794 2006-03-23 Mike Kestner <mkestner@novell.com>
28796 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28797 focus rectangle drawing. Fixes #77835.
28799 2006-03-23 Mike Kestner <mkestner@novell.com>
28801 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28802 the if and else if and reverting back to the original == check on the
28805 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
28807 * FontDialog.cs: Update the example panel if the selected index of
28808 the fontListBox changes.
28810 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
28812 * FileDialog.cs: Make FileDialog remember which directory it was in
28813 last in the same execution.
28815 2006-03-22 Mike Kestner <mkestner@novell.com>
28817 * FileDialog.cs: make the DropDownMenu on the toolbar display
28818 RadioChecks since they are mutually exclusive and that's what MS does.
28820 2006-03-22 Mike Kestner <mkestner@novell.com>
28822 * Theme.cs: add Color param to CPDrawMenuGlyph.
28823 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28824 checks and radio marks and arrows are visible on highlighted items.
28825 * ControlPaint.cs: update to use new Theme signature.
28827 2006-03-22 Mike Kestner <mkestner@novell.com>
28829 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28830 is active. Fixes #77870.
28832 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
28834 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28835 to be focused/selected after startup
28837 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
28840 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28841 CustomColors and ShowHelp properties
28842 - Some internal rewrites to get better results when using the
28845 2006-03-22 Mike Kestner <mkestner@novell.com>
28847 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28848 HoverSelection. Fixes #77836.
28850 2006-03-22 Mike Kestner <mkestner@novell.com>
28852 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
28853 ToggleButtons. (De)Sensitize the Back button around a stack count of
28854 1, not 0. Update ButtonSize based on a pixel count of the win32
28855 control. Adjust the toolbar size/location for new button size.
28857 2006-03-22 Jackson Harper <jackson@ximian.com>
28859 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28861 * ScrollBar.cs: When doing increments and decrements we need to
28862 set the Value property so that ValueChanged gets raised. A
28863 possible optimization here would be to make an internal SetValue
28864 that doesn't invalidate immediately.
28865 * ToolTip.cs: Tooltips get added to their container (when
28866 supplied) so they get disposed when the container is disposed.
28867 - Don't create tooltips for String.Empty. This prevents all these
28868 little 2-3 pixel windows from showing up when running nunit-gui
28869 and driving me mad.
28870 * Form.cs: Don't set topmost when setting the owner if the handles
28871 haven't been created yet. The topmost set will happen when the
28872 handles are created.
28874 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
28877 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28878 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
28879 visible (to allow them to recalculate their sizes)
28881 2006-03-21 Mike Kestner <mkestner@novell.com>
28883 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28884 methods. Removed a ton of redundant code. Still not really happy with
28885 the border rendering, but I think that's mainly because of the
28886 ControlDarkDark being black instead of a dark grey. Depending on how
28887 close we want to be, we might want to revisit those color choices.
28888 Among the new features added during the refactor were DropDownArrow
28889 pressed rendering, Disabled image rendering. Proper flat appearance
28890 boundary rendering. Removed the Divider and Wrapping dividers since I
28891 can't figure out any combination of themes and conditions to make the
28892 MS control draw a horizontal line on a toolbar despite what the
28893 Divider property docs indicate.
28894 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28895 conditions and incorrect layout. Updated to coding standard.
28896 * ToolBarButton.cs: refactored layout and positioning code from
28897 ToolBar to here. Invalidate wherever possible instead of forcing
28898 redraws of the whole toolbar.
28899 (Known remaining issues: explicit ButtonSize smaller than provided
28902 2006-03-21 Mike Kestner <mkestner@novell.com>
28904 * ContextMenu.cs (Show): use the position parameter instead of just
28905 showing at the MousePosition.
28907 2006-03-21 Jackson Harper <jackson@ximian.com>
28909 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28910 control handle this.
28911 * TreeNodeCollection.cs: If we are clearing the root node we need
28912 to reset top_node so calcs can still happen.
28913 * ThemeWin32Classic.cs: This is a Flags so we need to check
28916 2006-03-21 Jackson Harper <jackson@ximian.com>
28918 * DataGrid.cs: Create columns when the binding context has been
28920 * X11Structs.cs: Keysyms are uints.
28921 - Add size to fix build.
28923 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
28925 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28927 - Added ResetMouseHover method to allow controls to retrigger
28928 hovering if they need it more than once
28929 - Implemented MouseHoverTime and MouseHoverSize properties
28930 * Timer.cs: Start() must reset the interval
28931 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28934 2006-03-21 Jackson Harper <jackson@ximian.com>
28936 * X11Keyboard.cs: improved layout detection. Move the nonchar
28937 tables into this file.
28938 * KeyboardLayouts.cs: Move the tables into resource files.
28940 2006-03-21 Mike Kestner <mkestner@novell.com>
28942 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28944 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
28946 * Mime.cs: Various speed optimizations. Looking up mime types
28947 is now 2 times faster than before
28949 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28951 * CreateParams.cs: Added internal menu field
28953 - Switched call order for UpdateBounds; now we always call
28954 the one that also takes ClientSize, and we're calculating the
28955 client size via driver method in the others. The previous
28956 method of tracking client size by difference wasn't working
28957 for forms where even the starting client size wouldn't match
28958 the overall form size (due to borders) (Part of fix for #77729)
28959 - CreateParams(): Do not use parent.Handle unless the handle is
28960 already created. Causes havoc with Nexxia and throws off our
28961 creation of controls
28963 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28964 - Switched handling of ConfigureNotify over to new PerformNCCalc
28965 method (consolidates code)
28966 - Changed RequestNCRecalc to use new PerformNCCalc method
28967 - Added calls to RequestNCRecalc when menus and borders are changed
28968 to allow app to set NC size. (Part of fix for #77729) This matches
28969 when MS send a WM_NCRECALC on Win32 windows.
28970 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28971 (Part of fix for #77729). This matches what MS does, they also
28972 send that message when the form is made visible.
28973 - XException.GetMessage: Improved usability of X errors by including
28974 a translation of the window into Hwnd and Control class
28975 - Improved debug info for window creation, reparenting and destruction
28976 - Created helper method WindowIsMapped() [Currently not used]
28977 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28979 - CreateParams: Now setting our menu on the new internal menu field
28980 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28981 avoid calculating the same property twice
28983 - Improved usability of ToString() for debugging purposes
28984 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28985 determine the height of the menu, instead of just the font. This
28986 required to also create a graphics context and to keep a bmp
28987 around (for performance reasons)
28989 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
28991 * MenuAPI.cs: Added OnMouseUp method
28993 - Now remembering the requested client size, avoids size errors
28994 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28995 instead of base if the menu is active. This is required due to
28996 control now capturing and releasing on down/up and it would
28997 prematurely release our menu capture
28999 2006-03-17 Jackson Harper <jackson@ximian.com>
29001 * KeyboardLayouts.cs: Add the czech layouts.
29003 2006-03-16 Jackson Harper <jackson@ximian.com>
29005 * Control.cs: Use the viewport space when sizing not the controls
29006 client size, so things like ScrollableControl that effect the
29007 viewport size (when scrollbars are added) are computed correctly.
29008 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
29010 - Handle creating BindingManagers for null data sources.
29011 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
29012 source, otherwise when rows are added they are added to the 'fake'
29013 datasource and we will crash when trying to set the position in
29015 - Use Implicit scrollbars on the datagrid so they arent
29018 2006-03-16 Jackson Harper <jackson@ximian.com>
29021 * InternalWindowManager.cs:
29022 * MdiWindowManager.cs:
29023 * X11Keyboard.cs: I really want Mike to love me again (fix
29024 compiler warnings).
29026 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
29029 - OnMouseDown: Switch to editing mode when clicking on the cell
29030 even if we're clicking on the cell that's currently
29032 - ProcessGridKey: Left/Right now wrap like MS.Net does
29033 - ProcessGridKey: Tab now knows to add a new row when tab is
29034 pressed in the cell of the last column of the
29036 - ProcessGridKey: Enter now adds another row if pressed in the last
29037 row and selectes the new row, same column cell
29038 - ProcessGridKey: Home/End navigate columns, not rows, like
29039 originally implemented
29040 - Broke ProcessKeyPreview code out into an extra Internal method
29041 so it can be called from the edit code
29042 * DataGridTextBox.cs (ProcessKeyMessage):
29043 - Switched to accept Tab keypresses
29044 - Added F2 handling to allow jumping to the end of the edited cell
29045 - Added logic to allow moving caret left/right inside edited cell
29046 and making the edited cell jump when the caret hits cell borders
29047 - Tab and Enter are now passed to the datagrid after being handled
29049 - Removed capture code now that Control handles it
29050 - set_SelectionStart now ensures caret is visible
29052 2006-03-16 Jackson Harper <jackson@ximian.com>
29054 * TrackBar.cs: Debackwards the increment/decrement for handling
29055 mouse clicks on the bar with vertical trackbars.
29056 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
29057 bottom to match MS.
29059 2006-03-16 Mike Kestner <mkestner@novell.com>
29061 * ListView.cs: make shift/ctrl keyboard and mouse selection
29062 consistent with the MS control. Fix a bug in
29063 SelectedListViewItemCollection.Clear that was pissing me off for the
29064 better part of a day because the collection was being altered
29065 underneath us as we walked the list.
29067 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
29069 * Control.cs: Not sure how we could miss this so long, but it seems
29070 that MS.Net has Capture set all the way from before calling
29071 OnMouseDown through sending the mouse events until after
29072 OnMouseUp. This will fix DataGrid's selection being set to end
29073 at the location of the MouseUp.
29075 2006-03-15 Jackson Harper <jackson@ximian.com>
29077 * BindingContext.cs: Check the binding after its added so that it
29078 can initialize the binding managers and hookup to events.
29079 * Binding.cs: Data members seem to sometimes include rows/cols in
29080 the format Row.Column we now take this into account.
29081 - Hookup to the position changed event so we can update the
29082 control when the position has changed in the data set.
29083 * CurrencyManager.cs: Take into account the row/col naming
29084 convention when creating dataset tables.
29085 * BindingContext.cs: Using a newer better way of storing
29086 datasource/datamember pairs. Hopefully this better matches MS for
29087 looking up binding managers.
29090 2006-03-15 Jackson Harper <jackson@ximian.com>
29092 * BindingContext.cs: The currency manager needs the data member
29093 name, if the member is a data set we use the name to find the
29095 * CurrencyManager.cs: When creating the list prefer an IList over
29097 - Attempt to create a DataTable from a DataSet (TODO: might need
29098 some better error checking here, although MS doesn't seem to have much)
29099 - If we have a DataTable create a view and use it as our list.
29101 2006-03-15 Mike Kestner <mkestner@novell.com>
29103 * ListView.cs: keep a matrix of the icon mode layout to facilitate
29104 keyboard navigation. Support Up/Down/Left/Right selection correctly
29105 for all 4 View modes.
29106 * ListViewItem.cs: add internal row/col fields for icon layouts.
29108 2006-03-15 Jackson Harper <jackson@ximian.com>
29110 * TabControl.cs: Redraw the tabs when we resize so their newly
29111 calculated sizes are drawn on screen.
29112 * X11Keyboard.cs: Begginnings of XIM support. We also now support
29113 composite characters.
29114 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
29115 - filter events so that composite characters can be created
29117 * X11Structs.cs: Add XIMProperties enum.
29119 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29121 * Control.cs (BringToFront, SendToBack): Don't use window or handle
29122 unless it's created
29124 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29126 * Control.cs (PerformLayout): We don't need to consider visiblity
29127 for anchoring, only for docking. This fixes 'whacky' alignment
29128 in listbox and other controls that use implicit scrollbars after
29129 the previous PerformLayout patch
29130 * ListBox.cs: Switched to use implicit scrollbars
29132 2006-03-14 Mike Kestner <mkestner@novell.com>
29136 - chain up the "new event" overrides to base and use
29137 OnEvent to raise them. Part of fix for bug #76509.
29139 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
29141 * FileDialog.cs: Do not select an item in the parent directory
29144 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29146 * Control.cs (PerformLayout): It would seem that we considered
29147 invisible windows for our layout. Not quite the right thing
29148 to do. Now we don't any longer, thereby fixing bug #76889.
29150 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
29152 * Control.cs (CanFocus): I goofed. A control can have focus
29153 even though it's not selectable. Made it match MS docs.
29155 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29157 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
29158 center by default (fixes #76895)
29159 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
29160 all uses of Border3DSides.All with the explicit ORd together
29161 Left|Right|Top|Bottom because I assume that nobody was aware
29162 that All also implies a center fill. Most places I checked had
29163 a fill right above.
29164 * ProgressBarStyle.cs: Added
29166 2006-03-13 Mike Kestner <mkestner@novell.com>
29168 * ListView.cs: fix breakage in drag shadow header positioning
29169 from Peter's csc compilation fix.
29171 2006-03-13 Mike Kestner <mkestner@novell.com>
29173 * ListView.cs: fix NRE produced by backspacing twice in a focused
29176 2006-03-13 Mike Kestner <mkestner@novell.com>
29178 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
29180 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29182 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
29184 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
29185 the allowed size before making programmatic size changes
29187 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29189 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
29190 set, metacity is broken and will still use the emty sizes in
29191 the struct. (Fix for #77089)
29193 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
29195 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
29196 WindowExStyles and marked both enums as Flags
29197 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
29198 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
29199 to match WindowStyles split
29201 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
29202 - Updated to match WindowStyles split
29204 - Fixed FosterParent creation, was using ExStyle on the Style field
29205 (This should help with Popup focus issues)
29206 - Updated to match WindowStyles split
29208 2006-03-13 Jackson Harper <jackson@ximian.com>
29210 * MdiWindowManager.cs: Use the system menu height. Fixes some
29211 strange sizing issues.
29213 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29215 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
29217 - Scroll to caret after inserting text (#77672)
29218 - Make scroll range one pixel higher, fixes off-by-one error (and
29219 makes underlines visible on the last line)
29221 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29223 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
29224 the keyboard state from being stuck with keys in 'pressed' state when
29225 focus is switched away via keyboard
29226 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
29227 reset the keyboard if no X11 KeyUp events are expected to come
29228 * X11Structs.cs: Switched type of Visible to bool to match driver
29230 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
29233 - Switched caret to be just 1 pixel wide, matches MS and looks less
29235 - Moved caret display 1 pixel down from the top of the control
29237 - InsertCharAtCharet: Update the selection start if moving the caret
29238 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
29239 - No longer always creating the caret when the caret methods are
29240 called. Only the actual ShowCaret/HideCaret will do that now
29241 - Only setting caret visible if the owner control has focus
29242 - UpdateView: Added invalidation-shortcut logic for center and right
29243 aligned text. Previously we'd update all according to the left
29244 logic which caused drawing errors. Also fixed height of invalidated
29245 areas, now properly invalidating the whole area (was off-by-one)
29246 - owner_HandleCreated: Always generate the document when the
29247 handle is created; this ensures that
29249 - Fixed situation where caret would disappear under the right
29250 window border, also improved scrolling behaviour on left-
29252 - Fixed right-aligned textboxes to have a border to the
29253 right instead of the caret being under the right border
29255 - Switched from 'nested' to simple visible/not visible tracking
29256 for caret (part of fix for #77671)
29257 - No longer passing through translated FocusIn/FocusOut messages
29258 since we were notifying too often and the wrong windows. Instead
29259 we just notify our focussed window of receiving or loosing focus
29260 * XplatUIWin32.cs: Switched from 'nested' show/hide
29261 counting for caret to simple visible yes/no behaviour (part of
29264 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
29266 * Mime.cs: Remove debug code...
29268 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
29270 * MimeGenerated.cs: Removed
29271 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
29272 and subclasses) from /usr/(local/)share/mime and
29273 $HOME/.local/share/mime.
29275 2006-03-10 Jackson Harper <jackson@ximian.com>
29277 * MdiWindowManager.cs: Recalc the NC area when a window is
29278 maximized/restored so that the menu area is drawn on forms that
29281 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29283 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29284 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
29285 us to force a WM_NCCALCRESIZE message being sent. This is needed
29286 for MDI maximizing.
29288 2006-03-10 Jackson Harper <jackson@ximian.com>
29290 * Form.cs: We need to use the ActiveMenu when calculating menu
29292 - Fix nullref when the window manager hasn't been created yet.
29293 * Control.cs: Fix nullref when we try to bring a control to the
29294 front that has no parent.
29295 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
29297 - Add a dummy item to the maximized menu so it always has the
29298 correct height. Otherwise when there are no menus we don't get our
29302 2006-03-10 Jackson Harper <jackson@ximian.com>
29304 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
29306 * Form.cs: Make the window_state internal so the window managers
29308 - When an MDI child is maximized let its window manager create the
29309 main menu (so it can add its icon).
29310 - Notify the window managers of state changes
29311 - Let the window manager paint its buttons and handle button
29312 clicks on the menu when it is maximized.
29313 * InternalWindowManager.cs: Move the prev_bounds into the mdi
29314 window manager, since tool windows don't use it, only mdi windows.
29315 - Tell the main form that we don't want it to handle NCPAINT
29316 itself to avoid extra painting.
29317 - Handle clicks on a maximized windows menu.
29318 - Handle window state changes
29319 - Handle minimize/maximize clicks correctly by setting the window state.
29320 * MdiWindowManager.cs: Add an icon menu that (the menu you get
29321 when clicking on the forms icon).
29322 - New method to create a forms maximized menu. This is its normal
29324 - Handle window state changes.
29325 - Handle sizing of maximized windows. Maximized windows are just
29326 drawn bigger then the parent visible area. All controls are still
29327 there, they are just outside the visible area (this matches windows).
29328 * MdiClient.cs: No scrollbars when a child window is maximized.
29329 - Let the children windows figure out how big they should be when
29330 sizing maximized windows.
29331 - Implement a version of ArrangeIconicWindows somewhat similar to
29332 Windows version. There are some little differences, but I don't
29333 think any app will rely on the layout of minimized mdi windows.
29335 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29337 * Padding.cs: Several fixes to allow compiling with csc 2.0
29339 2006-03-09 Jackson Harper <jackson@ximian.com>
29342 * MenuItem.cs: Cheap hack so we can add items to the list without
29343 the events being raised. This allows adding mdi items during
29344 drawing. TODO: Should probably find a better time to add the items.
29346 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29348 * ThemeWin32Classic.cs:
29349 - CheckBox_DrawText: Added logic to not wrap if not enough space
29350 is available (Fix for bug #77727)
29351 - RadioButton_DrawText: Added logic not to wrap if not enough
29352 space is available (Fix for bug #77727). Also removed some
29353 duplicate code, DrawString always drawing the regular text
29354 before hitting the if statement.
29356 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29358 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
29360 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
29362 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
29363 * ContainerControl.cs: Partial implementation of some 2.0 scaling
29364 methods. Moved the new 2.0 properties into alphabetical order with
29365 other properties and added MonoTODO tags
29367 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29369 * AutoScaleMode.cs: Added. Fix build.
29371 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29373 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29374 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
29375 and was requiring premature handle creation for calls from above
29376 * Form.cs, Control.cs: Removed handle arguments from calls to
29377 CalculateClientRect()
29379 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29381 * ListView.cs (HeaderMouseMove): Fix csc compilation.
29382 drag_column.column_rect is MarshalByRef and can't be used that way
29384 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29386 * AxHost.cs: Added deserialization constructor for
29387 AxHost+State (fixes 77743)
29389 2006-03-09 Mike Kestner <mkestner@novell.com>
29392 - Added column drag reordering for details view.
29393 - fixed behavior when mouse is dragged off column and
29394 AllowColumnReorder is false.
29395 * ColumnHeader.cs: clone the format too in Clone.
29396 * Theme.cs: add DrawListViewHeaderDragDetails method.
29397 * ThemeWin32Classic.cs:
29398 - impl new method for drawing drag column shadows and targets.
29399 - support column offset for details mode in DrawListViewItem.
29401 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29403 * TextControl.cs: Reset the char_count when the document is cleared
29404 (Fixes bug reported on mono-winforms mailing list)
29406 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29408 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
29409 of calling base we simply process the key ourselves, since both
29410 DefWindowProc and the handled method would set m.Result.
29413 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
29415 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
29416 method also moves the window; instead implemented a copy of
29417 Control.ScaleCore (Part of fix for #77456)
29419 - Created new CreateGraphicsInternal method to allow providing
29420 a graphics context when no handle is created without triggering
29421 handle creation. (Part of fix for #77456)
29422 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29424 - Switched Constructor to require TextBoxBase instead of Control (to
29425 allow uncast access to CreateGraphicsInternal)
29426 - Safeguarded use of owner.Handle property. No longer accessing it
29427 unless the handle is already created.
29428 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29429 - Now triggering a recalc when owning control becomes visible
29430 * TextBox.cs, RichTextBox.cs: Switched to use new internal
29431 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
29432 premature handle creation (Part of fix for #77456)
29434 - We now only destroy our double-buffering buffers when the
29435 control is resized or disposed, but not when visibility
29436 changes. (The code even re-created them twice every time)
29437 - Now requiring a redraw of the buffer on visibility changes
29438 (fixes bug 77654 part 2)
29439 - Not passing OnParentVisibleChanged up unless the control
29441 - CanFocus: Fixed to match MS documentation
29442 - Focus: Fixed to return actual focus state and to check if
29443 setting focus is legal before setting it
29445 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
29447 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
29448 when to draw focus rectangle by looking at parent focus and
29449 selected state instead. This fixes TabPages on Linux sometimes
29450 having none or multiple focus rectangles.
29451 * XplatUIX11.cs (SetFocus):
29452 - Don't set the focus if the same window already has focus
29453 - Use SendMessage instead of PostMessage (like it's Win32
29454 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
29455 to match MS behaviour
29456 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
29457 are not selectable.
29459 2006-03-07 Jackson Harper <jackson@ximian.com>
29461 * PictureBox.cs: Revert line I accidently committed last week.
29463 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
29466 - Added new IsRecreating and ParentIsRecreating properties to
29467 allow testing if RecreateHandle has been called on ourselves
29468 or one of our parents
29469 - WndProc(WM_DESTROY): If our control handle is being recreated
29470 we immediately need to create the handle when receiving the
29471 destroy, that way our child windows find a valid parent handle
29472 when they themselves are being recreated upon WM_DESTROY receipt
29473 (fix for bug #77654 part 1)
29475 - DestroyWindow: WM_DESTROY must be sent to our own window before
29476 notifying any child windows. MS documents that child windows
29477 are still valid when WM_DESTROY is received. (Control now relies on
29479 - Added some fine-grain debug options
29481 2006-03-06 Jackson Harper <jackson@ximian.com>
29483 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
29484 box and base calculations off this.
29485 * MdiChildContext.cs:
29486 * MdiWindowManager.cs: Don't need to ensure scrollbars here
29489 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
29491 * Splitter.cs: In situations where the affected control is added
29492 to the parent's control list after the splitter, we would not
29493 populate affected. Now we try populating it on mousedown, if
29494 it's not already set, and force it to be re-set whenever our
29497 2006-03-03 Matt Hargett <matt@use.net>
29499 * Control.cs: implement Control.Padding
29500 * Padding.cs: -Padding.All returns -1 when constructing with the
29501 implicit default ctor
29502 -Padding.ToString() matches MS.NET
29503 * ContainerControl.cs: implement
29504 ContainerControl.AutoScaleDimensions
29505 * ListControl.cs: implement ListControl.FormattingEnabled
29506 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
29508 * TabPage.cs: Implement UseVisualStyleBackColor.
29509 * PictureBox.cs: Implement PictureBox.InitialImage.
29511 2006-03-03 Mike Kestner <mkestner@novell.com>
29513 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
29514 event declarations to proxy to base event.
29515 * ListViewItem.cs: update to use ItemControl.
29516 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
29517 * ThemeWin32Classic.cs: update to new ListView theme API and fix
29518 column header label rendering for 0 width columns.
29520 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
29522 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
29523 that causes the control to be created. Fixes #77476.
29525 2006-03-02 Jackson Harper <jackson@ximian.com>
29527 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
29530 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
29532 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
29533 passed in for the EventArgs (fixes #77690)
29535 2006-03-01 Jackson Harper <jackson@ximian.com>
29537 * ScrollBar.cs: Refresh afterbeing resized.
29539 2006-02-28 Mike Kestner <mkestner@novell.com>
29541 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
29542 Clean up a tracker compile warning.
29543 * MenuItem.cs: add internal PerformPopup method.
29546 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29548 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
29549 implicit expose) when the text is set to null
29551 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29553 * RichTextBox.cs (FlushText): When newline is true, we always
29554 need to split the line, even if no text is on it and we may
29555 never eat newlines. (Fixes #77669)
29557 2006-02-28 Mike Kestner <mkestner@novell.com>
29559 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
29560 and set Selected instead.
29561 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
29564 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
29566 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
29568 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
29571 - Got rid of the panel. All controls are now directly added to
29573 - It is now possible to set a font with the Font property
29574 - MinSize and MaxSize property do now what they should
29575 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
29576 - Searching and selecting a font with the font textbox works now,
29577 the same applies to the style and size textbox
29578 - Draw the correct 3D border in the example panel
29579 - Fixed a little mem leak (unused fonts didn't get disposed)
29580 - Many other internal updates/rewrites...
29583 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29586 - InsertRTFFromStream: Added 'number of characters inserted' argument
29587 - set_SelectedRTF: Now using the number of characters to calculate
29588 the new location for the selection and cursor (x/y cannot be used
29589 due to potentially already wrapped text)
29591 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29593 * TextControl.cs: Added property and implemented means to allow
29594 disabling recalculation of a document (can be used to speed up
29595 multiple inserts and is needed to make RTF inserts predictable, see
29597 * RichTextBox.cs: Using the new NoRecalc property of Document to
29598 keep x/y insert locations predictable. Also makes it faster inserting
29599 large chunks of RTF
29601 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
29603 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
29604 it's easier for a child control to handle the other messages without
29605 having to duplicate the special functionality
29607 - WndProc: Removed calling base handler for WM_KEYDOWN and added
29608 code to handle processing the key ourselves, in order to get
29609 access to the result of KeyEventArgs.Handled. We now only call
29610 ProcessKey if they key hasn't been handled already. Fixes #77526.
29611 - set_Text: If null or empty string is given, just clear the
29612 document. Fixes part of #77526
29614 2006-02-27 Jackson Harper <jackson@ximian.com>
29616 * SizeGrip.cs: Paint the background color before painting the grip
29617 so things look right.
29618 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
29620 2006-02-27 Mike Kestner <mkestner@novell.com>
29623 - Restructure layout and invalidation model to remove a ton of
29624 flicker from the control and speed up performance in general.
29625 - Add manual column resize, flickers like crazy, but I already have
29626 some ideas on how I'll fix that. (#76822)
29627 - Merge the three Icon-based views into a single layout method.
29628 - Move item selection interaction logic from the item since
29629 interaction with the collections is more appropriate to the view.
29630 - Deselection on non-item clicks.
29632 - Encapsulate most of the layout. Add some internal props to trigger
29633 layout. Move to a model where Items invalidate themselves instead
29634 of just invalidating the whole control every time something changes.
29635 - Invalidate on Text/Caption changes.
29636 - switch to an offset based layout model to avoid having to absolute
29637 position every element on item moves.
29638 - correct checkbox layout to conform to MS layout.
29639 * ThemeWin32Classic.cs:
29640 - refactor some column header drawing code.
29641 - fix string justification for column headers (#76821)
29642 - make SmallIcon labels top justified for compat with MS impl.
29643 * ThemeClearlooks.cs:
29644 - adjust to new ListViewItem internal checkbox bounds api.
29646 2006-02-27 Jackson Harper <jackson@ximian.com>
29648 * Control.cs: Change where implicit controls fall in the zorder.
29649 They are now on top of all children.
29650 - Synced AddImplicit code with Add
29651 - Removed unused enumerator.
29652 * SizeGrip.cs: Remove the TODO as its been TODONE.
29654 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
29656 * TextControl.cs(Insert): Combine the last lines unless the insertion
29657 string ends with \n\n, otherwise we leave one line too many (Fixes
29658 something I noticed with the testapp for #77526; the bug itself was
29659 already fixed in the previous checkin)
29661 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
29664 - SelectionColor and SelectionFont methods no longer set absolute
29665 styles. Instead, the keep font or color respectively (This
29666 resolves a long-standing FIXME in the code)
29667 - When flushing RTF text, the insert code now considers text trailing
29668 behind the insertion point (Fixes the bug where when replacing
29669 the selected text via SelectedRTF the remainder of the line behind
29670 the selection would stay on the first insertion line)
29672 - AppendText now updates the selection points after inserting text
29673 - AppendText now ensures that the last tag (sometimes 0-length) of
29674 the document is used for the style information (Fixes part of
29677 - Created new FontDefiniton class to allow describing partial style
29679 - StreamLine() now takes a lines argument, to allow it to decide
29680 whether an encountered zero-length tag is the last in the document
29681 (which must be kept to not loose the font/color contained in it,
29683 - Created Combine() and Split() methods for Marker structs, to
29684 support marker updates due to reformatted documents (soft line
29686 - Implemented Document.CaretTag setter
29687 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
29688 of the last line (Not the cause, but also exposed by bug #77220)
29689 - Added LineTag argument to InsertString method, to allow callers
29690 to force a certain tag to be used (required to force use of the
29691 trailing zero-length tag of a document)
29692 - Now updating markers in Combine(), to avoid stale tag markers
29693 - Added some method descriptions to aid maintenance
29694 - Implemented new FormatText concept, allowing additive/subtractive
29695 formatting by only specifying the components that are to be
29696 changed. This was needed for resolving the RTB.SelectedColor/
29697 RTB.SelectedFont fixmes
29698 - Added Break() support method to allow breaking up linetags (used
29699 for partial formatting)
29700 - Added GenerateTextFormat() method. It is used for partial
29701 formatting and allows to generate a full font/color from given
29702 attributes and an existing tag.
29704 2006-02-26 Jackson Harper <jackson@ximian.com>
29706 * XplatUIX11.cs: Use the correct caption height.
29707 - Translate hittest coordinates to screen coords to match MS.
29708 * XplatUIWin32.cs: When we create MDI windows we need to reset
29709 some of the style flags, so we get a nice blank window, and can
29710 draw all the decorations ourselves.
29711 - Set a clipping rectangle on the non client paint event, the
29712 window manager drawing code needs one.
29713 * Form.cs: The window manager needs to know when the window state
29715 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
29716 don't need to factor in border and title sizes in these
29717 methods. TODO: Remove the args and fix the call points.
29718 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
29720 - Let the driver set the cursors.
29721 - Improve active window handling
29722 - Correct sizes for title bars and buttons.
29723 - Match MS drawing better
29724 * MdiWindowManager.cs: We don't need to handle border style
29725 updates specially anymore.
29726 - Check for scrollbars when windows are done moving
29727 - Handle Active properly.
29728 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
29729 correctly. I am spewing the exception though, so we don't hide the
29732 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
29734 * DataGridViewRowPostPaintEventArgs.cs,
29735 DataGridViewCellPaintingEventArgs.cs,
29736 DataGridViewRowCollection.cs,
29737 DataGridViewRowPrePaintEventArgs.cs,
29738 DataGridViewCell.cs: Clear a few warnings and implement a few
29739 exceptions that should be thrown.
29741 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29743 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
29744 'inheriting' our parent's (non-default) cursor. (Part of
29745 the fix for #77479)
29747 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29749 * XplatUIX11.cs: Fixed cast to make csc happy
29751 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
29753 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
29754 it's for the client area (part of fix for #77479 and needed
29755 for MDI window cursor handling)
29757 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29758 the appropriate default cursors and also passing the message
29759 up the parent chain
29760 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29761 for non-client areas
29763 2006-02-15 Jackson Harper <jackson@ximian.com>
29765 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29766 is a real MDI window
29768 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
29770 * X11DesktopColors.cs: Instead of checking the desktop session
29771 string for "KDE" check if it starts with "KDE"
29773 2006-02-10 Jackson Harper <jackson@ximian.com>
29775 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29778 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
29780 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29783 - Got rid of the panel. All controls are now directly added to
29785 - Changed to mono coding style
29787 2006-02-10 Jackson Harper <jackson@ximian.com>
29789 * InternalWindowManager.cs: We don't need the set visibility to
29790 false hack anymore now that peter has written beautiful shutdown
29793 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
29795 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29796 where already explicitly destroyed
29798 2006-02-10 Jackson Harper <jackson@ximian.com>
29800 * MdiClient.cs: Handle the case where windows are too high or to
29801 the left and we need scrollbars.
29803 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
29805 * MimeIcon.cs: Added some icons
29808 - Got rid of the panel. All controls are now directly added to
29810 - Changed to mono coding style
29811 - On Linux "My Computer" and "My Network" will now show some
29812 more usefull information. A new class, MasterMount, gathers
29813 this information from /proc/mount. Updated MWFFileView to make
29814 use of this information
29815 - Fixed a bug that caused FileDialog to crash when
29816 ".recently_used" file had a zero size
29817 - FilterIndex does now what it should
29819 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29822 2006-02-09 Jackson Harper <jackson@ximian.com>
29824 * ComboBox.cs: Don't touch if null.
29826 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
29828 * Cursor.cs: 64bit safeness fix
29829 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29831 2006-02-09 Jackson Harper <jackson@ximian.com>
29833 * Form.cs: If a form is made into an MDI form update the styles so
29834 all the props can get set correctly.
29835 - Kill the mdi_container when we dont need it anymore.
29836 * InternalWindowManager.cs: Add missing NOT
29838 2006-02-08 Jackson Harper <jackson@ximian.com>
29840 * InternalWindowManager.cs: Respek clipping when drawing MDi
29843 2006-02-08 Jackson Harper <jackson@ximian.com>
29845 * Hwnd.cs: Add bits to track non client expose events.
29846 * XplatUIX11.cs: Track non client expose events on the hwnd. This
29847 gives us a proper invalid rect and will allow for some nice
29848 optimizations with NC client drawing
29849 - MDI windows are children windows, so move their style handling
29850 into the child window block.
29851 * InternalWindowManager.cs: Remove a state reset that was
29852 getting invoked at the wrong time. Fixes managed windows getting
29853 into a 'stuck' captured state.
29855 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
29857 * TextControl.cs (Document.ctor): Now initializing
29858 selection_anchor. Fixes #77493
29860 2006-02-07 Jackson Harper <jackson@ximian.com>
29862 * TrackBar.cs: The increment/decrements were backwards.
29864 2006-02-07 Mike Kestner <mkestner@novell.com>
29866 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29867 to the instance itself.
29869 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
29871 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29872 on ulongs and pointers, the size differs between 32bit and 64bit
29875 2006-02-07 Mike Kestner <mkestner@novell.com>
29877 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29878 for 64 bit platforms to work around a metacity bug.
29880 2006-02-07 Jackson Harper <jackson@ximian.com>
29882 * TrackBar.cs: Process the input keys we need, and hookup to
29883 KeyDown instead of using WndProc, so we get key messages.
29885 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
29887 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29889 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29890 we need to translate the XdndVersion atoms array before sending it
29892 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
29895 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29896 number of bits for the property, not the number of bytes. The
29897 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29898 but would not crash since it specified 8 bits instead of 4 bits)
29899 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29900 defined as XID -> long in the C headers)
29901 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
29902 references since those are now IntPtr to begin with
29903 - Switched all Atom.XXX 'int' casts to IntPtr casts
29904 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29905 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29906 - Added XChangeActivePointerGrab DllImport (for X11DnD)
29908 - Changed 'int' type for Atoms in XEvent structures to IntPtr
29909 - Changed atom in HoverStruct to be IntPtr
29911 - Removed local DllImports, switched code to use those from XplatUIX11
29912 - Removed/fixed casts related to the switch of Atom to be a IntPtr
29914 2006-02-06 Mike Kestner <mkestner@novell.com>
29916 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
29917 method signatures in the import region. There may still be some
29918 lingering struct marshaling issues, as I didn't drill down into those.
29921 2006-02-06 Jackson Harper <jackson@ximian.com>
29923 * ComboBox.cs: Dont manually set the top_item, this is computed
29924 when the scrollbar position is set.
29926 2006-02-06 Mike Kestner <mkestner@novell.com>
29928 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29929 startup crashes on amd64. There's other fixes needed. All pinvoke
29930 usage of Atom needs to be mapped to IntPtr for example. And there are
29931 likely other int/long issues to be addressed.
29933 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
29935 * FileDialog.cs: One more...
29937 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29939 * FileDialog.cs: Next try
29941 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29943 * FileDialog.cs: First part of fix for #77464
29945 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
29947 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29948 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29949 AcceptButton border drawing.
29951 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29953 * Form.cs: Moved positioning of form after auto scaling is applied,
29954 otherwise it would possibly use wrong form size.
29956 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
29958 * Control.cs (RecreateHandle): No need to re-create any child
29959 controls, the child windows will get destroyed automatically by
29960 the windowing system or driver, and re-created when the handle
29961 is being accessed the first time. Fixes #77456
29962 * Form.cs: No longer setting the form to closing if the handle is
29963 being recreated. This seems like the right thing to do, don't
29964 have a bug or testcase for this, though.
29966 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29968 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29969 controls to avoid unwanted side effects
29971 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29974 - ScaleCore needs to scale the bounds, not the ClientSize of the
29975 control. Fixes #77416.
29976 - DefaultSize is 0,0 for control
29978 - DefaultSize is 100, 20
29979 - SetBoundsCore: Now enforcing the height, no matter if the provided
29980 height is more or less than the preferred one, as long as AutoSize
29982 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29984 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
29987 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29988 call unless both performLayout is true *and* we have a pending
29990 - ResumeLayout: MS does not completely nest Suspend and Resume,
29991 they bottom out at 0, fixed our code to match that.
29992 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29993 SetBoundsCore, we were updating even when we shouldn't. This fixes
29994 swf-anchors mis-anchoring when resizing the app fast and lots.
29995 - UpdateDistances: Now only setting the left and top distance if
29996 we have a parent and are not suspended, this is based on
29997 a suggestion by Don Edvaldson in bug #77355.
29998 - OnVisibleChanged: Fixed logic when to create the control. We may
29999 not create the control if we have no parent or if it's not visible;
30000 switched to using Visible property instead of is_visible field
30001 since the property also considers parent states. This fixes a bug
30002 when starting Paint.Net
30004 2006-02-02 Jackson Harper <jackson@ximian.com>
30006 * Form.cs: If the forms handle hasn't been created yet don't call
30007 into xplatui to make it top most, just set the topmost flag on the
30008 form in CreateParams
30009 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
30011 2006-02-01 Jackson Harper <jackson@ximian.com>
30013 * ScrollableControl.cs: Refactored the Recalculate method a
30014 little, this wasn't handling all the variants of bottom and right
30015 bars needed to be added and added/removed based on their
30016 counterparts being added/removed (which changes the drawable
30017 size). Also we special case client widths and heights of 0 and
30018 don't add the scrollbar for those.
30020 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
30023 - Added method to get AbsoluteGeometry(); currently unused, but might
30024 be used in the future, if we try again to figure out toplevel
30025 coordinates with some more crappy window managers
30026 - Added FrameExtents() method to retrieve the WM set decoration size
30027 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
30028 to deal with at least KDE, FVWM and metacity (Fixes #77092)
30030 - Added whacky_wm tracking var for metacity
30031 - Added logic to have default menu height if the actual menu height
30032 has not yet been calculated (part of fix for #77426)
30033 * Form.cs: Keep track whether client size has been set and re-set
30034 it if a menu is added/removed afterwards (Fixes #77426)
30036 2006-01-31 Jackson Harper <jackson@ximian.com>
30038 * Control.cs: When a new Site is set on the component attempt to
30039 pull the AmbientProperties from it.
30041 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
30043 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
30044 in the background of the owning form. Fixes #77332
30046 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
30048 * MimeIcon.cs: Fix for #77409
30050 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
30052 * XplatUIX11GTK.cs: Initial import
30054 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
30056 * FixedSizeTextBox: fixes class signature
30058 2006-01-30 Jackson Harper <jackson@ximian.com>
30060 * FixedSizeTextBox.cs: New internal class that represents a
30061 textBox that will not be scaled.
30064 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
30067 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
30069 * XplatUIX11.cs: Retrieve default screen number instead of
30070 assuming 0. Attempted fix for #77318
30072 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
30075 - GetWindowPos: When a window is parented by FosterParent, use
30076 the desktop instead of FosterParent as the base to get coordinates
30077 - CreateWindow: Don't make FosterParent the parent window for Popups
30078 if we don't want a taskbar entry, Popups automatically don't get one
30079 * Hwnd.cs: Need to call remove to actually remove the key from the
30082 2006-01-30 Mike Kestner <mkestner@novell.com>
30084 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
30086 2006-01-30 Jackson Harper <jackson@ximian.com>
30089 * TreeNode.cs: Raise events no matter how the treenode is
30090 checked. Patch by Don Edvalson.
30092 2006-01-30 Jackson Harper <jackson@ximian.com>
30094 * TreeNode.cs: Signature fix.
30096 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
30098 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
30100 2006-01-20 Mike Kestner <mkestner@novell.com>
30102 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
30103 event forwarding when menus are active.
30104 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
30105 Most of the patch is pdb's with a little rework.
30107 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30109 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
30110 Removed GetMenuDC and ReleaseMenuDC methods; replaced
30111 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
30112 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
30113 * InternalWindowManager.cs: Added use of PaintEventStart/End to
30114 handling of WM_NCPAINT message, now passing the PaintEventArgs to
30115 the PaintWindowDecorations method
30116 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
30117 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
30118 * MenuAPI.cs: Made tracker window invisible
30120 - Removed GetMenuDC and ReleaseMenuDC methods
30121 - Implemented the client=false path for PaintEventStart and
30124 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30126 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
30127 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
30130 - MaximizeBox, MinimizeBox: Recreate the handle when setting
30132 - CreateParams: Reworked the styles to match MS look'n'feel,
30133 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
30134 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
30136 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30138 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
30139 window is not mapped, since otherwise every form that's being
30140 created is considered minimized, which is wrong.
30141 * Form.cs: Catching the exception and returning our internal value
30144 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
30146 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
30147 SetWindowMinMax() to have means to tell the driver about the minimum,
30148 maximum and maximized state window sizes. (Part of the fix for #76485)
30150 - Implemented tracking of minimum and maximum window size, now calling
30151 new SetWindowMinMax() driver method to tell the driver (Part of the
30153 - Finished handling of WM_GETMINMAXINFO method, now setting all values
30154 (Completes fix for #76485)
30155 - Calling new SetWindowMinMax driver method when the handle for a
30156 form is created, to make sure the driver knows about it even if
30157 the values have been set before the window was created
30158 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
30159 to avoid messing up our anchoring calculations (partial fix
30161 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
30163 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
30164 - Improved GetWindowState() to detect 'Minimized' state on Metacity
30165 (and presumably other freedesktop.org compliant WMs). Left the
30166 assumption unmapped=minimized, needed for SetVisible to work.
30167 - Now setting the window state when creating windows
30168 - Fixed SetVisible to consider/set the window state when mapping
30169 a Form. We cannot set the state before it's mapped, and we cannot
30170 use Form.WindowState once it's mapped (since it would ask the
30171 driver and get 'normal'. Therefore, we grab the state before
30172 mapping, map, and then set state.
30173 - Implmemented SetWindowMinMax method; Metacity does not seem to
30174 honor the ZoomHints, though.
30176 - Removed MINMAXINFO (moved to XplatUIStructs)
30177 - Added SetWindowMinMax stub (on Win32 the only way to set that
30178 information is in response to the WM_GETMINMAXINFO message, which
30179 is handled in Form.cs)
30180 - Added logic to SetVisible to set the proper window state when a
30181 form is made visible (fixes #75720)
30183 2006-01-26 Jackson Harper <jackson@ximian.com>
30185 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
30186 same way we handle them with Invoke.
30188 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
30191 - Added tracking of window state so CreateParams can return
30192 the appropriate style
30193 - Moved setting of WS_CAPTION style in CreateParams to allow
30194 styles without caption
30195 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
30196 control if the TextBox property is accessed. Fixes #77345
30198 - get_Created: now uses is_disposed and is_created to determine
30199 return value (suggested by Jackson)
30200 - CreateHandle: No longer exits if the handle is being recreated
30201 - RecreateHandle: If the handle is not yet created call the
30202 appropriate method to create either control or handle. If the
30203 control is already created CreateHandle will simply exit instead
30204 of just creating the handle
30205 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
30206 now SendMessage WM_DESTROY directly to the control when DestroyWindow
30209 - When DestroyWindow is called, instead of waiting for the
30210 DestroyNotification from X11, we directly post it to the WndProc
30211 and immediately dispose the hwnd object.
30212 Same applies to DestroyChildWindows, and this obsoletes the
30213 expose_pending tracking. Contrary to Win32 behaviour we destroy our
30214 child windows before our own, to avoid X11 errors.
30215 - Removed the direct sending of WM_PAINT on UpdateWindow
30217 - Reworked DoEvents and GetMessage to allow access to internal queue
30218 even when trying non-blocking access to the queue. Fixes #77335.
30219 Based on a patch suggestion by Don Edvalson. The new private
30220 GetMessage can now also be used as a backend for a PeekMessage
30222 * XplatUI.cs: Improved debug output for CreateWindow
30224 2006-01-25 Jackson Harper <jackson@ximian.com>
30226 * Help.cs: Allow param to be null. Patch by Don Edvalson.
30228 2006-01-24 Jackson Harper <jackson@ximian.com>
30230 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
30231 when we have a MaxDropItems lower then the selected index.
30233 2006-01-24 Jackson Harper <jackson@ximian.com>
30235 * Control.cs: Don't allow selection of non visible controls, allow
30236 selection of controls without parents.
30238 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
30240 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
30241 * DataGridDrawingLogic.cs: Add editing row only when is necessary
30243 2006-01-23 Jackson Harper <jackson@ximian.com>
30245 * UpDownBase.cs: Make the textbox handle all the selection and
30246 tabbing. This fixes tabing to updown controls.
30248 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
30250 * TextBoxBase.cs: fixes exception thown the object was null
30252 2006-01-23 Jackson Harper <jackson@ximian.com>
30254 * ButtonBase.cs: Just use the base CreateParams. They set
30255 visibility and enabled correctly.
30258 * MonthCalendar.cs: Lets let the base set as much of the
30259 createparams as possible so we don't have duplicate code all over
30262 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
30264 * ThemeGtk.cs: Added TrackBar and some experimental code to
30265 get double buffering back
30267 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
30269 * DataGrid.cs: Allows row number set internally higher than the last
30270 when creating a new row. Restores the editing functionality.
30272 2006-01-20 Mike Kestner <mkestner@novell.com>
30274 * MimeIcon.cs: delay Image creation until the icons are accessed
30275 instead of creating 190 scaled images on GnomeHandler startup.
30277 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
30279 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
30280 first call base before processing the event. Fixes #77279
30282 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
30284 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
30285 that the stride for the GDI bitmap would match the stride of
30288 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
30290 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
30292 2006-01-19 Jackson Harper <jackson@ximian.com>
30294 * ComboBox.cs: Hookup the text controls keydown event so we get
30295 those when the text control has the focus.
30297 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30299 * Label.cs: Now using the base events instead of defining new ones;
30300 this allows us to just call the base properties without having to
30301 duplicate all base property logic
30303 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30305 * Label.cs: A label by default is not a tabstop (Fixes one of our
30306 failing nunit tests)
30308 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30310 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
30311 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
30313 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
30315 * Cursor.cs: Reimplemented creating cursor bitmaps without using
30316 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
30319 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
30320 constructor creates images that can't be saved. Part of the fix
30322 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
30323 - SetWindowState: Switched ShowWindow flags (part of an upcoming
30324 bug fix for handling window state in forms properly)
30326 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30328 * ThemeGtk.cs: Simplify ScrollBar drawing
30330 2006-01-18 Jackson Harper <jackson@ximian.com>
30332 * Splitter.cs: Set the default dock style for the splitter control
30333 in the constructor.
30335 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30337 * ThemeGtk.cs: Corrected StateType and ShadowType for
30340 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30342 * Control.cs: Make use of Theme.DoubleBufferingSupported
30344 - Added drawing for flat style buttons
30345 - Added ScrollBar drawing
30347 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
30349 * ThemeClearlooks.cs: Removed some unneeded code.
30350 * ThemeGtk.cs: First part of ThemeGtk enhancements.
30352 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
30354 * LinkLabel.cs: We need to update the hover drawing when
30355 leaving the control as well.
30357 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
30359 * DataGrid.cs: Clicking on non empty areas in the columns
30360 area was giving an exception
30362 2006-01-17 Jackson Harper <jackson@ximian.com>
30364 * ThemeWin32Classic.cs:
30365 * ListView.cs: Do not draw/clip the headers when the header style
30368 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
30370 * DataGrid.cs: Fixes 77260
30372 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
30374 * DataGrid.cs: Clicking on a column on a empty grid was giving
30377 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
30379 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
30380 or any keypress will crash the grid.
30382 2006-01-17 Mike Kestner <mkestner@novell.com>
30384 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
30385 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
30386 invisible/previously-visible items.
30389 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
30391 * ThemeClearlooks.cs:
30392 - Added CL_Draw_Button method; now other theme controls that are
30393 not derived from button or do not have a button can draw buttons
30395 - Updated ComboBox drawing
30396 - Beautified RadioButton drawing
30397 - Corrected drawing of bottom and left tabs
30398 - Beautified DateTimePicker and MonthCalendar
30399 - Added CPDrawButton and CPDrawRadioButton
30401 2006-01-16 Jackson Harper <jackson@ximian.com>
30403 * ComboBox.cs: Set the initial value of the scrollbar to the
30404 current index. Reduce the numbers of refreshs and IndexOfs called.
30406 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
30408 * FileDialog.cs: When the file listview is focused hitting the
30409 backspace key moves the fileview to the parent directory
30411 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30414 - Added RecreateHandle call when changing taskbar visibility to
30415 trigger reparenting in Win32 driver (Fixes #75719)
30416 - If a window has minimize or maximize buttons, it cannot have
30419 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
30420 the toplevel form with FosterParent (A toolwindow not on the
30421 taskbar) (Fixes #75719)
30422 - Made FosterParent a toolwindow
30424 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30426 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
30428 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30430 * ToolTip.cs: If SetToolTip is called from a control and the mouse
30431 is currently over that control, make sure that tooltip_window.Text
30434 2006-01-13 Mike Kestner <mkestner@novell.com>
30436 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
30438 2006-01-13 Jackson Harper <jackson@ximian.com>
30440 * TreeView.cs: On MS GetNodeAt never actually factors in the X
30441 value passed. Also redraw the selected node when we recieve
30442 focus, so tabbing between trees works correctly.
30444 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
30446 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
30447 ~/.gconf/%gconf-tree.xml, so use
30448 .gconf/desktop/gnome/interface/%gconf.xml
30450 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30452 * TextControl.cs: Draw text in gray if control is disabled
30454 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30456 * TreeView.cs: Draw the focus rectangle outside the highlight, to
30457 make sure it's always visible. Fixes #76680.
30459 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
30461 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
30463 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
30465 * PageSetupDialog.cs: Added.
30466 * PrintDialog.cs: Attributes.
30467 * PrintPreviewControl.cs: Updates.
30468 * PrintPreviewDialog.cs: Updates.
30470 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30472 * Control.cs: Undid my selection check fix, since it's not needed
30474 - Now considering the presence of hscroll/vscroll when sizing
30475 vscroll/hscroll respectively. Fixed bug #77077
30476 - Added Left/Up/Down/Right to IsInputKey list to prevent
30477 ContainerControl from stealing them. This fixes what I broke
30478 with my last checkin.
30480 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30482 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
30483 I finally understand how the property can be set without a setter :-)
30485 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30488 - Switched RunLoop to use static Message.Create to create a
30490 - Added PreProcessMessage call in runloop for keyboard events; this
30491 is part of the fix for #77219, I overlooked this originally in the
30492 MSDN doc for PreProcessMessage
30494 - Removed call to PreProcessMessage from handling of keyboard
30495 messages; it's supposed to be done in the message pump
30496 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
30497 per MSDN documentation.
30498 - IsInputChar: All chars are input chars by default; removed the
30499 parent calling chain, MS does not document that
30500 - PreProcessMessage: If IsInputChar is true, we want to return false
30501 to allow dispatching of the message
30502 - When selecting the next control, now also check that we're not
30503 selecting ourselves again and therefore return a false positive.
30505 - Tried to match return values for IsInputKey and ProcessDialogKey
30506 to what MS returns; moved processing of our special keys outside
30507 ProcessDialogKey since MS does not seem to return true on those.
30508 - Moved code that previously was in ProcessDialogKey into new private
30509 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
30510 - Reworked handling of WM_CHAR to not have to duplicate code from
30511 Control.cs anymore, instead we simply call down to base.
30513 2006-01-12 Jackson Harper <jackson@ximian.com>
30515 * ComboBox.cs: We always need to refresh the text area when
30516 EndUpdate is called. Fixes the combobox in the file dialog.
30517 * Control.cs: Don't create the creator_thread until the controls
30518 handle is created. Also in InvokeRequired we check if the
30519 creator_thread is null. This gives the effect of InvokeRequired
30520 returning true if the controls handle is not created yet, and
30523 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30526 - Added StartLoop() driver method. This is used to allow drivers to
30527 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
30528 loop for a particular thread
30529 - Added EndLoop() driver method. This is called once the message
30530 pump for the thread is shut down
30531 - Added SupportsTransparency method to allow the driver to indicate
30532 opacity support for windows
30534 - Removed TODO attribute, completed AllowTransparency property
30535 - Added documented logic to Opacity
30536 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
30537 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
30538 versions of CompatibleTextRendering
30539 * X11Structs.cs: Added opacity atom to our atom enumeration
30540 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
30541 of a form might be set before it's reparented by the WM, and we need
30542 the opacity value without calling up to Form)
30543 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
30544 SupportsTransparency() driver methods
30545 * Application.cs: Now calling StartLoop and EndLoop driver methods
30547 - Added opacity atom registration
30548 - Added StartLoop()/EndLoop() methods. They're empty right now but
30549 will need to get implemented when we switch to a per-thread queue
30550 - Implemented SupportsTransparency() method
30551 - Implemented SetWindowTransparency() method
30552 - Added support for setting the opacity value when a window is
30553 reparented (since the opacity needs to be set on the WM frame)
30554 * XplatUIOSX.cs, XplatUIWin32.cs:
30555 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
30557 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
30559 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
30561 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
30563 * FileDialog.cs: Added ToolTip for MWFFileView
30564 * MimeIcon.cs: Rewrote GnomeHandler.
30565 - Get currently used gnome icon theme from
30566 ($HOME)/.gconf/%gconf-tree.xml
30567 - Make use of inherited icon themes
30568 - Support SVG icon themes like Tango via librsvg
30570 2006-01-12 Miguel de Icaza <miguel@novell.com>
30572 Revert's Jackson's revert which broke 2.0 builds. Fix both
30575 * Application.cs: Move the use_compatible_text_rendering outside
30576 the NET_2_0 define. If we ever need to use the
30577 use_compatible_text_rendering on the individual controls they will
30578 access the variable from the common shared code paths.
30580 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
30583 - Added more granular debug options
30584 - Added method to print both window text and id
30585 - Switched debug output to use new Window() debug method
30586 - Added IsEnabled() driver method
30587 - Added EnableWindow() driver method
30589 - Removed end_modal; no longer needed, new loop handles termination
30590 via 'closing' variable
30591 - If form is modal, setting DialogResult will now initiate loop
30592 termination via 'closing' variable
30593 - Added support for is_enabled/WS_DISABLED to CreateParams
30594 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
30596 - Removed code that's now in RunLoop from ShowDialog()
30597 - Added various documented sanity checks to ShowDialog()
30598 - Added handling of WM_DESTROY message; we set 'closing' on getting
30599 the message to indicate the message pump to terminate
30600 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
30601 send by the Application.ExitThread method. (We send the message
30602 to destroy the window after all other events have been
30603 processed through the queue, instead of destroying the handle
30605 - Moved code from Close() method to WM_CLOSE handler; added logic
30606 to only send close-related events if the form is not displayed
30608 * Splitter.cs (..ctor): Fixed typo in resource name
30610 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
30612 - set_Cursor: Now only setting calling into XplatUI if the handle for
30613 the control is already created; this avoids implict handle creation
30614 or crashes if it's not created
30615 - set_Enabled: Now setting the enabled state via the new driver method
30616 instead of just tracking it
30617 - CreateParams: Added logic to set WS_DISABLED based on enabled state
30618 - CreateControl: Reordered event firing and method calls to more
30619 closely fire events in the order MS does. Now setting the
30620 enabled state in the driver when creating the control.
30621 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
30623 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
30624 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
30625 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
30627 - Added tracking of window enabled state (get_Enabled/set_Enabled)
30628 - Added EnabledHwnd property to easily allow a driver to find the
30629 handle of the first enabled window in the parent chain (this is
30630 used by drivers to pass up input events of disabled windows)
30631 * XplatUIDriver.cs: Added IsEnabled() method
30633 - Removed crude and obsolete exiting tracking variable
30634 - Removed internal ModalRun(); replaced by RunLoop()
30635 - Implemented private CloseForms() method to allow closing all
30636 windows owned by a particular (or all) threads
30637 - Exit() now properly closes all windows without forcing the message
30639 - Removed obsolete InternalExit() method
30640 - Changed Run() methods to use new RunLoop() message pump
30641 - Implemented new RunLoop() method for both modal and non-modal forms
30643 - get_CreateParams: Added setting of WS_DISABLED
30644 - Simplified ShowDialog(); now all the work is done in RunLoop(),
30645 invoked via Form.ShowDialog()
30646 * NativeWindow.cs: We don't remove the window from the collection when
30647 the handle is destroyed; there might still be messages for it in the
30648 queue (mainly the resulting WM_DESTROY); instead it will be removed
30649 when Control calls InvalidateHandle in the WM_DESTROY handler
30651 - CreateWindow: Added logic to handle the WS_DISABLED window style
30652 - EnableWindow: Implemented based on Hwnd.Enabled
30653 - GetMessage: Reset PostQuitState so the method can be called again
30654 - Implemented support for disabled windows (passing messages to the
30655 first enabled parent) in handling all input messages
30656 - Added optimizations for handling Expose events
30657 - Implemeted new driver method IsEnabled()
30658 - Now always resetting paint pending tracking vars when we start paint
30659 - Re-implemented UpdateWindow via just sending a WM_PAINT message
30660 * XplatUIOSX.cs: Added IsEnabled method stub
30661 * XplatUIWin32.cs: Implemented new IsEnabled() method
30663 2006-01-11 Jackson Harper <jackson@ximian.com>
30665 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30666 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
30667 variables a little.
30668 * ColorDialog.cs: Clear out the old form before adding the new
30671 2006-01-11 Jackson Harper <jackson@ximian.com>
30673 * X11Dnd.cs: Make sure to add all the text formats when adding
30674 strings to the data object.
30675 * TreeNodeCollection.cs: When adding to a sorted tree we need to
30676 do some redrawing too. Also change the UpdateNode to an
30677 UpdateBelow so the newly added node gets painted.
30679 2006-01-11 Miguel de Icaza <miguel@novell.com>
30681 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30682 LinkLabel.cs, PropertyGrid.cs: Implement the
30683 UseCompatibleTextRendering property for 2.x
30685 * Application.cs (SetCompatibleTextRenderingDefault): Add.
30687 2006-01-11 Jackson Harper <jackson@ximian.com>
30689 * TreeView.cs: Use the property for setting the selected node so
30690 the correct events get raised.
30691 * TreeNode.cs: Update the tree when the fore/back colours of a
30694 2006-01-10 Jackson Harper <jackson@ximian.com>
30696 * TreeView.cs: Allow setting SelectedNode to null.
30698 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30700 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
30702 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30704 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
30706 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30708 * PrintDialog.cs: Added attributes and set default property values.
30710 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30712 * PrintControllerWithStatusDialog.cs:
30713 Added PrintControllerWithStatusDialog.
30715 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30717 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30718 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
30720 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
30722 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
30724 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
30726 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
30727 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
30729 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
30731 * MimeIcon.cs: Added internal class SVGUtil.
30733 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
30735 * FileDialog.cs: Don't crash if there are two files with the
30736 same name but different locations.
30738 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
30740 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
30741 dates across multiple month grids. Used to not highlight entire
30742 month, but does now.
30744 2006-01-06 Jackson Harper <jackson@ximian.com>
30746 * MonthCalendar.cs: Removed DoEvents call to prevent a running
30747 message loop. Change timer intervals to numbers that seem more
30750 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
30752 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
30753 object for location info since screen object is now implemented.
30755 2006-01-05 Jackson Harper <jackson@ximian.com>
30757 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30758 * AsyncMethodResult.cs: We no longer use a WeakReference for the
30759 AsyncMethodResult, this is because we ALWAYS want the
30760 ManualResetEvent to get set.
30761 * Control.cs: When disposing use an async invoke to call shutdown
30762 code, so that thigns don't block on the finalizer thread. Also
30763 check if we even have a message loop before trying to send
30764 messages, if we don't then don't bother sending messages.
30765 - No more weak references for async methods
30766 * XplatUIDriver.cs: No more weak references for async methods.
30768 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30770 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30771 returns two FontFamily with the same name
30773 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
30775 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
30776 drawing disabled text. Instead using the ColorGrayText color
30778 2006-01-04 Jackson Harper <jackson@ximian.com>
30780 * TreeNode.cs: redraw the node when its image index is changed.
30782 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
30784 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30785 time I checked there are no others like it.
30787 2006-01-04 Jackson Harper <jackson@ximian.com>
30789 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30790 this gives the behavoir I was looking for.
30791 * Control.cs: Special case Invoking EventHandlers, this matches MS
30792 and fixes part of bug #76326.
30794 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30796 * ThemeClearlooks.cs, FileDialog.cs:
30797 - Reflect the latest Theme class changes
30798 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
30801 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
30803 * Theme.cs: Cache UI resource images and resize them if needed
30805 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30807 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30808 is called. This fixes the crash in Nexxia when setting the font
30809 attributes in the chat. [However, RTF needs a look-over to make sure
30810 that all SelectionXXX methods handle the special case that selection
30811 is empty and therefore the change must be applied to all text starting
30812 at the cursor/selection start]
30814 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30816 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30817 XplatUIOSX.cs: Added SendMessage and PostMessage methods
30818 * X11Keyboard.cs: Switched to new way of calling PostMessage
30820 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
30822 * Theme.cs: Added theme interface for images to allow the theme to
30823 control what images are used for things like FileDialog, MessageBox
30825 * MessageBox.cs: Now uses the new Theme icon/image interfaces
30827 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
30830 - Removed some dead code
30831 - Opening a recently used file does work now
30832 - Small UI enhancements
30835 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
30837 * FileDialog.cs: Forgot too add __MonoCS__
30839 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
30841 * FileDialog.cs: We are able to read recently used files now let's
30842 go on and write them.
30844 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
30846 * FileDialog.cs: Breathe some life into "last open"/"recently used"
30848 * MimeIcon.cs: Do a check for the top level media type also
30850 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
30852 * ThemeClearlooks.cs:
30853 - Added CPDrawStringDisabled
30854 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30855 some chars if the text doesn't fit into text_rect
30856 - DrawListViewItem: If View = View.LargeIcon center the image;
30857 rewrote the drawing of ListViewItem.Text if View =
30860 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
30862 * MimeIcon.cs: Use default KDE icon theme if there is no
30863 "48x48" directory for the current icon theme, fixes #77114
30864 * Mime.cs: Disable not working and actually not used code.
30865 * ThemeWin32Classic.cs:
30866 - Replace "new SolidBrush" in GetControlBackBrush and
30867 GetControlForeBrush with ResPool.GetSolidBrush
30868 - Changed DrawListViewItem from private to protected virtual
30870 - Added form.MaximizeBox = true
30871 - Don't throw an exception if there is a broken symbolic link
30873 2005-12-23 Jackson Harper <jackson@ximian.com>
30875 * TabControl.cs: Give the panels focus, keyboard navigation is
30876 fixed so this works correctly now.
30877 - We need these key events also.
30878 * ToolBar.cs: Remove some of the poor mans double buffering.
30880 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
30882 * ComboBox.cs: The internal TextBox now returns the focus.
30884 2005-12-23 Jackson Harper <jackson@ximian.com>
30886 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
30888 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30890 * Control.cs: Removed debug code
30891 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30894 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30896 * Control.cs: When creating the control, update the Z-order after
30897 all it's children are created, too. (Fixes nexxia not showing
30900 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
30902 * Control.cs: Do not update the anchoring distances if layout is
30903 suspended, instead do it once layout is resumed
30905 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30908 - After many hours of debugging, for both Jackson and
30909 myself, it turns out that it helps to set the parent of a control
30910 if you want to actually see it onscreen. In the spirit of that
30911 discovery, we're now setting the parent of the control and
30912 it's children when the control's handle is created. This fix
30913 will make Lutz Roeder's Reflector run happily.
30914 - now just creating the handle instead of the whole control when
30915 getting a graphics context for the control.
30917 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30919 * ScrollableControl.cs: When calculating the canvas, don't consider
30920 the scrollbar widths. Instead, predict if horizontal scrollbar
30921 will affect canvas when deciding on vertical display and vice versa.
30923 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
30925 * RichTextBox.cs: Set default RTF font for documents that don't
30926 have a font table (Fixes #77076)
30928 2005-12-22 Jackson Harper <jackson@ximian.com>
30930 * TextBoxBase.cs: It's difficult to do, but you can have an empty
30931 clipboard. This prevents a NullRef in that case.
30932 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30933 clipboard. PRIMARY is for the currently selected text only. (We
30934 should implement PRIMARY at some point.
30936 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30938 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30939 a Unicode function with a structure that was defined in Ansi way.
30942 2005-12-21 Jackson Harper <jackson@ximian.com>
30944 * StatusBar.cs: Statusbar handles its fore/back colours on it's
30945 on. Because thats how it rolls. (and this avoids it using ambient
30947 * ThemeWin32Classic.cs: Use the proper back color for filling.
30948 * Menu.cs: Use the system menu bar color for drawing menu
30949 bars. Using the window back color will bring ambient colours into
30952 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
30954 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30955 Bitmaps were created and not disposed.
30957 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30959 * Control.cs (CreateControl): Don't do anything if the control is
30960 already created, otherwise we'd fire the OnCreated event more than
30963 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30965 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30966 will always match. Instead return -1. Fixes #76464.
30968 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30970 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30971 neither the beginning nor the end of the line (Fixes bug #76479)
30973 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
30976 - ControlNativeWindow.ControlFromHandle(): Now handling situation
30977 where handle is invalid
30978 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30979 instead of slower linear search
30980 * NativeWindow.cs: Don't remove the window from the hashtable until
30981 after the driver has destroyed it (since the driver might use
30982 Control.FromHandle to lookup the control object
30983 * Hwnd.cs: Added DestroyPending property to track if a window is
30984 already destroyed as far as the driver is concerned and only hasn't
30985 yet notified the control
30987 - Activate(): Check if the window is still valid before using the
30989 - Implemented DestroyChildWindow() method to mark child windows as
30990 destroyed when a window is destroyed. This prevents situations
30991 where we might call an X method based on queued events for a
30992 window that already has been destroyed but we haven't yet pulled
30993 the destroy method from the queue.
30994 - Added a call to the new DestroyChildWindow() method to the drivers
30995 DestroyWindow code. Also now marking the destroyed window itself
30998 2005-12-20 Jackson Harper <jackson@ximian.com>
31001 * StatusBarPanel.cs: Don't calculate panel sizes on draw
31002 anymore. Just do them when needed, also track the rects of panels
31003 so that we can optimize refreshing more in the future.
31005 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
31007 * ColorDialog.cs: Fixed focus drawing in small color controls
31009 2005-12-19 Jackson Harper <jackson@ximian.com>
31011 * InternalWindowManager.cs:
31012 * MdiWindowManager.cs: Cleanup some coordinate system changes so
31013 moving windows works properly.
31015 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
31018 - Removed call to InitLayout() from SetBoundsCore(); doc says
31019 it's only called when a control is added to a container
31020 - Split InitLayout logic, moved to separate UpdateDistances() method
31021 since we need to perform those calculations more often than just
31022 when adding the control to a container. (Needed to fix #77022)
31023 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
31024 - Reduced the OnBindingContextChanged events count, don't send them
31025 unless the control is created, we still aren't totally matching
31026 MS, but I can't quite figure out some of their rules
31028 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
31030 * ThemeClearlooks.cs: Corrected distance between ProgressBar
31033 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
31035 * ThemeClearlooks.cs:
31036 - Updated ProgressBar drawing
31037 - Corrected drawing of ScrollBars and scroll buttons
31038 - Some temporary fixes for minor pixel artefacts
31040 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
31043 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
31044 cause events to be sent in the same order as MS does.
31045 - Added ChangeParent() method to trigger various OnXXXChanged events
31046 that need to be fired when a parent changes (This is a reworking
31047 of the patch from r54254, with the X11 errors fixed)
31048 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
31049 since on MS we get OnLayoutChanged events when calling Clear()
31050 - Changed Enabled property to consider parent state as well, if a
31051 parent is not enabled, the control will not be either
31052 - Changed Parent property to simply call Controls.Add() since that
31053 now does all the work required, this way we avoid code duplication
31054 - Threw in a few OnBindingsContextChanged calls to try and match
31055 when MS sends them. We seem to send a few too many, though.
31056 - Added call to CreateControl when adding the control to a parent.
31057 We were never calling CreateControl. Still needs some work, in
31058 some places we treat HandleCreated and ControlCreated as equal,
31060 - Removed obsolete commented out code from UpdateZOrder()
31062 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
31064 * ThemeClearlooks.cs: Updated TrackBar drawing.
31066 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
31068 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
31070 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
31072 * FileDialog.cs: Add the Help button and the open readonly
31073 checkbox only if needed
31075 2005-12-16 Jackson Harper <jackson@ximian.com>
31077 * Control.cs: Make sure we have an active menu before trying to
31078 process commands on it. Prevents menu-less forms from crashing
31079 when Alt is pressed.
31080 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
31082 * RichTextBox.cs: Expand statement to help out gmcs and fix the
31085 2005-12-16 Jackson Harper <jackson@ximian.com>
31087 * InternalWindowManager.cs: Don't translate tool windows screen
31088 coordinates. This fixes windows 'bouncing' around when being moved.
31090 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
31093 - MaxLength now treats 2^31-1 equal to unlimited length (this is
31094 not quite MS compatible, MS uses that number only for single line
31095 and 2^32-1 for multi-line, but I figure it won't hurt keeping
31097 - Now enforcing the MaxLength limit when entering characters
31098 - Added argument to internal Paste() method to track if it's called
31099 from programatically or via keyboard, since keyboard driven pastes
31100 need to enforce max-length
31101 - Added logic to Paste to only paste as many chars as MaxLength
31103 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
31105 - Added Length property to return number of characters in document
31106 - Added private CharCount property which only tracks actual chars
31107 in the document (no linefeeds) and fires event when CharCount
31109 - Added tracking of character count to all methods that alter it
31110 - Added LengthChanged event to allow applications to subscribe
31111 to any changes to the document
31113 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
31116 - Removed local password_char field (moved to TextBoxBase)
31117 - Now setting the document's password var when password is
31120 - Added password_char field (needed here so MultiLine can
31122 - Added logic to MultiLine property setter to set the document's
31123 variable when password display is allowed
31124 - Removed debug code and made some debug code conditional
31126 - Added RecalculatePasswordLine() method to handle special password
31128 - Added PasswordChar property, also added related tracking vars
31129 - Draw() method now uses local text var for grabbing text to draw,
31130 this var is set to line.text unless we're doing password display,
31131 then it is set to the pre-generated all-password-chars line
31132 - Added calling RecalculatePasswordLine() method for password lines
31134 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
31137 - Added Reparented property to allow tracking of Window Manager
31138 reparenting actions (which affect X/Y calculations of toplevel
31140 - Made ToString() print window handles in hex
31142 - AddConfigureNotify(): Now uses reparented state off Hwnd to
31143 determine if X/Y needs offsetting
31144 - AddConfigureNotify(): Fixed offset calculations
31145 - Now adds ReparentNotify messages into the queue
31146 - Now processes ReparentNotify messages and causes a
31147 WM_WINDOWPOSCHANGED message to be sent upstream if a window
31148 is reparented (as most likely it's X/Y coordinates are changed
31151 2005-12-14 Jackson Harper <jackson@ximian.com>
31153 * XplatUIX11.cs: Tool windows still need to respek focus.
31155 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
31157 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
31158 have a working release
31160 2005-12-13 Jackson Harper <jackson@ximian.com>
31162 * Form.cs: Update styles after setting the border style regardless
31163 of whether or not the window is using a window manager.
31165 2005-12-13 Jackson Harper <jackson@ximian.com>
31167 * Form.cs: We now hook into an internal window manager instead of just an
31168 MDI subsystem, this is so we can have properly behaving tool windows.
31169 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
31170 * InternalWindowManager.cs: New internal class that acts as a
31171 window manager for tool windows and as a base for mdi windows.
31172 * MdiWindowManager.cs: New class that acts as a window manager for
31175 2005-12-12 Jackson Harper <jackson@ximian.com>
31177 * Control.cs: Updates so we match behavoir for for implicit
31178 controls. Fixes explosions in MDI.
31180 2005-12-12 Jackson Harper <jackson@ximian.com>
31182 * Control.cs: Implement Invalidate (Region).
31184 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
31187 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
31188 the same events as MS does. MS fires events for each property
31189 except, for unknown reasons, Cursor, when the control is reparented.
31190 I can't seem to totally match add/remove since MS also fires some
31191 VisibleChanged events, which makes no sense. Consolidated the
31192 parenting code into a separate method so it can be called from
31193 both Add and Remove. set_Parent no longer needs any special logic
31194 as it calls the parent's add method which implicitly fires
31196 - Removed some obsolete code and debug output
31197 - Enabled state is inherited from parents, if this is enabled
31199 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
31201 * Form.cs: Removed commented out code
31203 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
31206 - Added internal version of Invoke, with additional argument
31207 indicating if we're calling it from a Dispose() handler. That
31208 way we can avoid BeginInvoke throwing an exception if we're
31209 calling for an already destroyed window.
31210 - Added a dispose argument to BeginInvokeInternal, and made the
31211 check if a valid window handle chain exists conditional on
31212 it not being a dispose call
31213 - Removed code in DestroyHandle to destroy our children. Since we
31214 now handle the WM_DESTROY message we will catch all our children
31216 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
31218 - Added a field to track the application context of the form.
31219 - No need to set closing variable as response to WM_CLOSE, instead
31220 we destroy the window. We also call PostQuitMessage if the form
31221 has an application context (which makes it the main app form,
31222 which, when closed terminates the app)
31224 - Dropped Exit() method, it's naming was confusing
31225 - Added PostQuitMessage() which causes GetMessage to return false
31226 once the message queue is empty
31227 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
31229 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
31230 no longer a valid XplatUI method, but left it in since it's used
31231 internally. Added empty PostQuitMessage() method.
31232 * MenuAPI.cs: Replaced call to Exit() with call to
31233 PostQuitMessage, even though this is probably no longer needed.
31234 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
31235 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
31237 - Replaced call to XplatUI.Exit() with PostQuitMessage()
31238 - Removed old debug code that would call XplatUI for exception
31239 display, enabled standard exception handling (Still not enabled
31240 though, until NativeWindow's ExternalExceptionHandler define
31243 - Added internal method to allow control to update NativeWindow
31244 after a window has been destroyed
31245 - Added handling of already destroyed windows when calling i
31247 - Added removal of handle from list on ReleaseHandle
31249 - Dropped GetMessageResult var and related code
31250 - Added PostQuitState to field to track if PostQuitMessage has been
31252 - Dropped Exit() method
31253 - Added PostQuitMessage() method
31254 - GetMessage now will return false if PostQuitState is set and no
31255 more messages are in the queue.
31256 - Expose handler will no longer generate WM_PAINT messages if we are
31257 in PostQuitState since it's very likely any windows have already
31258 been destroyed, and since Hwnd won't get updated until we have
31259 processed the DestroyNotify we'd be causing X errors.
31261 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31263 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
31264 Thanks to Mike for pointing out the err of my ways.
31266 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31268 * Control.cs(PreProcessMessage): Moved menu handling back, but
31269 after all other key handling, to match MS (who handles Menu in
31271 * Menu.cs (WndProc): Removed my brainfart
31273 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31275 * Control.cs(PreProcessMessage): Removed special menu handling
31276 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
31278 2005-12-07 Mike Kestner <mkestner@novell.com>
31280 * Control.cs : special case SYSKEYUP so that we can adjust keynav
31281 state according in tracker.
31282 * Menu.cs : promote tracker field to base class and provide a tracker
31283 lookup capability. Add/Remove shortcuts dynamically if the top menu
31284 has a tracker. Unparent items that are removed from the collection.
31285 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
31286 * Theme*.cs: add always_show_hotkeys field to support configurability
31287 of mnemonic display. win32 doesn't show mnemonics until Alt is
31290 2005-12-07 Jackson Harper <jackson@ximian.com>
31292 * MdiChildContext.cs: Use Control.ResetCursor.
31293 * Control.cs: ResetCursor needs to set the property so that the
31294 correct XplatUI call gets made.
31296 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31298 * Control.cs: More fixes to make our key events match MS. We
31299 were not setting the modifier state on KeyData, and we were
31300 not generating any events when Alt was pressed with a key
31301 since handling of WM_SYSxxx was missing for the OnKey methods.
31303 2005-12-07 Jackson Harper <jackson@ximian.com>
31305 * MdiChildContext.cs: reenable the sizing code.
31306 - When the mouse leaves a window reset its cursor.
31308 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
31310 * ThemeClearlooks.cs: Reflect latest Hwnd changes
31312 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
31314 * Hwnd.cs: Now using the theme 3d bordersize to calculate
31315 widths of Fixed3D borders
31317 2005-12-07 Jackson Harper <jackson@ximian.com>
31319 * MdiClient.cs: Fix warnings. Earn Mike's love.
31321 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
31323 * ThemeClearlooks.cs:
31324 - Adjusted mouse over button color
31325 - Added first parts of CheckBox drawing
31326 - Added correct color for selected text background
31327 - Fixed ComboBox drawing
31328 - Added CPDrawBorder3D and CPDrawBorder
31330 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31332 * XplatUIX11.cs: Added call to XBell for AudibleAlert
31334 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31336 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
31337 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
31338 alert users via sound. We could add an enum arg with different
31339 types of alerts in the future
31341 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
31343 * Control.cs: Fix behaviour problems pointed out by Mike
31345 2005-12-05 Mike Kestner <mkestner@novell.com>
31347 * StatusBarPanel.cs: add Invalidate method and hook it into all the
31348 prop setters. Calls parent.Refresh for now, but could be maybe be
31349 optimized with an internal method on StatusBar at some point.
31352 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
31354 * RichTextBox.cs: Implemented get_SelectionColor
31356 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
31358 * ThemeClearlooks.cs:
31359 - Removed dead code
31360 - Draw black button border only if button is Form.AcceptButton
31361 - Draw correct button color for pressed RadioButton if the mouse
31362 has entered the button
31363 - Updated ProgressBar drawing!
31364 - Updated CPDrawSizeGrip drawing
31365 - Updated StatusBarPanel drawing
31367 2005-12-05 Mike Kestner <mkestner@novell.com>
31369 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
31370 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
31372 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
31374 * ThemeClearlooks.cs: Initial check-in, activate with
31375 export MONO_THEME=clearlooks
31376 * ThemeEngine.cs: Added ThemeClearlooks
31378 2005-12-03 Mike Kestner <mkestner@novell.com>
31380 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
31383 2005-12-02 Jackson Harper <jackson@ximian.com>
31385 * Form.cs: If the child form has no menu the default main menu is
31386 used as the active menu.
31388 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31390 * ListBox.cs: Check if any items exist before trying to resolve
31391 coordinates into items
31393 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31395 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
31396 as the second color for the background hatch
31398 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
31400 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
31401 * RichTextBox.cs: FormatText position arguments are 1-based, now making
31402 sure that what we pass to FormatText is always 1-based. Fixes #76885
31404 2005-11-29 Miguel de Icaza <miguel@novell.com>
31406 * NumericUpDown.cs (EndInit): When we are done initializing,
31407 reflect any updates on the UI.
31409 2005-12-02 Jackson Harper <jackson@ximian.com>
31411 * ImplicitHScrollBar.cs:
31412 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
31413 their container controls.
31414 * TreeView.cs: Use the new implicit scrollbars.
31416 2005-12-02 Jackson Harper <jackson@ximian.com>
31418 * TreeView.cs: Make top_node internal so the TreeNodeCollections
31420 * TreeNodeCollection.cs: If we remove the topnode we need to
31421 update topnode to the next node in line.
31422 - When clearing nodes go through the same process as removing
31423 them, so they get depareneted and checked if they are top node.
31425 2005-12-01 Jackson Harper <jackson@ximian.com>
31427 * TreeView.cs: When imagelists are used the image area is
31428 selectable as well as the text.
31429 - If there are no selected nodes select the first one.
31430 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
31431 so don't do it more then we need to.
31433 2005-12-01 Jackson Harper <jackson@ximian.com>
31435 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
31436 that arrows can be scaled.
31438 2005-12-01 Jackson Harper <jackson@ximian.com>
31440 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
31441 fail. Patch by Dieter Bremes
31443 2005-11-30 Jackson Harper <jackson@ximian.com>
31445 * Form.cs: Property is 2.0 only
31446 * PrintDialog.cs: Signature fix.
31448 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
31451 - No longer artificially moves text 2 pixels down (now that we have
31452 borders this is no longer needed)
31453 - Added calcs for left, hanging and right indent
31455 2005-11-23 Mike Kestner <mkestner@novell.com>
31457 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
31459 2005-11-30 Jackson Harper <jackson@ximian.com>
31461 * MdiChildContext.cs: Set the cloned menus forms, as these don't
31462 get cloned as part of CloneMenu ().
31463 * Menu.cs: Make sure the parent of the items get set correctly
31464 when they are added. And the owners are notified of the changes.
31465 * Form.cs: Create an ActiveMenu property, so that when MDI is used
31466 we can change the menu being displayed/handled by the form without
31467 changing the menu assosciated with the form.
31468 - Don't let Mdi children draw/handle menus.
31470 2005-11-30 Jackson Harper <jackson@ximian.com>
31472 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
31473 a MenuChanged event. Just to make the API a little more
31476 * MenuItem.cs: Use the new OnMenuChanged
31477 * MdiChildContext.cs: Handle menu merging.
31478 * Form.cs: Implement MergedMenu.
31480 2005-11-30 Jackson Harper <jackson@ximian.com>
31482 * Menu.cs: We were misusing Add. Add goes behind the specified
31483 index according to the docs, and does not replace the specified
31484 index. So I added an Insert method.
31486 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
31488 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
31489 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
31491 * RichTextBox.cs: Added calls to base for DnD events
31493 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
31496 - Fixed drag-selection related crash; style fixes
31497 - Implemented undo class
31498 o Implemented method to capture document state for specified
31499 range in document tree
31500 o Implemented method to restore captured document state
31501 o Implemented cursor tracking
31502 o Implemented basic undo stack
31503 - Added undo cursor tracking to methods altering cursor location
31504 - Added undo tracking to selection deletion (still missing
31505 other text-altering hookups)
31507 - Added SelectionLength property
31508 - Implemented CanPaste()
31509 - Implemented Paste()
31510 - Added missing protected methods
31511 - Fixed RTF->Document conversion; now uses font index 0 and color
31512 index 0 as the default font for the parsed text
31513 - Fixed RTF<->Document font size translation
31514 - Fixed RTF generation, now properly handles cross-tag boundaries
31515 for single line selection
31516 - No longer always appends blank line to generated RTF
31518 - Added missing attributes
31519 - Hooked up undo-related methods
31521 - Implemented Copy()
31522 - Implemented Paste()
31523 - Implemented Cut()
31524 - Fixed caret mis-behaviour on backspace across line-boundaries
31526 2005-11-29 Jackson Harper <jackson@ximian.com>
31528 * MdiClient.cs: Add a method for activating mdi children. Very
31529 basic right now. I imagine someday it might need more girth.
31530 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
31531 children windows names are added to the menu item.
31532 * ThemeWin32Classic.cs: Draw the arrow if the item is an
31533 mdilist. This happens regardless of whether or not there are any
31534 mdi windows to see in the list, and according to my tests happens
31535 before the items are even added. Also happens if there isn't even
31536 an mdi client to get windows from.
31538 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
31540 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
31541 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
31543 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
31545 * DataGridTableStyle.cs:
31546 - Create always the styles for the missing columns even if they are
31547 provided by the user (not default table style)
31550 - Fixes SetDataBinding (always re-attach source)
31551 - Fixes SetNewDataSource (only clear styles if they are not for
31553 - Expands OnTableStylesCollectionChanged to handle style refresh
31554 and remove properly
31556 2005-11-29 Jackson Harper <jackson@ximian.com>
31558 * FileDialog.cs: Implement missing bits, remove some dead
31560 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
31561 creation of the panel so that the options set on the dialog are
31562 seen when the panel is created.
31563 * TreeView.cs: raise a click when items are clicked.
31565 2005-11-29 Jackson Harper <jackson@ximian.com>
31567 * MdiClient.cs: Pass some signature methods through to base.
31569 2005-11-28 Jackson Harper <jackson@ximian.com>
31571 * ListView.cs: Raise the click event when items are clicked.
31573 2005-11-28 Jackson Harper <jackson@ximian.com>
31575 * MdiClient.cs: Make this algorithm even more beautiful. And fix
31578 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
31580 * ThemeNice.cs: - Removed 1 pixel bitmaps
31581 - Use SmoothingMode.AntiAlias where it makes sense
31582 (ScrollButton arrow for example)
31583 - Enhanced Button focus drawing
31584 - Fixed ComboBox drawing (no artefacts anymore, focus
31585 rectangle is back again, reduced size of ComboButton, etc.)
31586 - Fixed RadioButton focus drawing for Appearence.Button
31587 - Slight ScrollButton redesign
31588 - Some LinearGradientBrush size fixes
31589 - GroupBoxes have now rounded edges
31590 - Fixed StatusBar drawing
31592 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
31594 * ThemeNice.cs: - Remove dead code
31595 - use correct background colors for menus, etc.
31596 - Fake pixel drawing with 1 pixel bitmaps
31598 2005-11-24 Jackson Harper <jackson@ximian.com>
31600 * MdiClient.cs: Size the scrollbars when resizing the window.
31601 - Resize the maximized windows when the client is resized
31602 * Form.cs: Make the child context available
31604 2005-11-23 Jackson Harper <jackson@ximian.com>
31606 * MdiChildContext.cs: Don't size windows if they are maximized.
31608 2005-11-23 Mike Kestner <mkestner@novell.com>
31610 * ContextMenu.cs: use MenuTracker.
31611 * Control.cs: remove menu handle usage.
31612 * Form.cs: remove menu handle usage.
31613 * Hwnd.cs: remove menu handle usage.
31614 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
31615 motion and clicks to the new Tracker handlers.
31616 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
31618 * MenuAPI.cs: refactored to combine popup and menubar event handling.
31619 Killed the MENU and MENUITEM data types and associated collections
31620 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
31621 MenuTracker class that exposes the leftovers from the old MenuAPI
31622 static methods. Restructured Capture handling so that only one grab is
31623 done for the entire menu hierarchy instead of handing off grabs to
31624 submenus. Tracker now has an invisible control to Capture when active.
31625 * MenuItem.cs: add sizing accessors, kill Create
31627 * Theme.cs: remove menu handle and MENU(ITEM) usage.
31628 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
31629 MENU(ITEM). remove menu handle usage, use Menu directly.
31630 * XplatUIDriver.cs: remove menu handle usage.
31631 * XplatUIOSX.cs: remove menu handle usage.
31632 * XplatUIWin32.cs: remove menu handle usage.
31633 * XplatUIX11.cs: remove menu handle usage.
31635 2005-11-22 Jackson Harper <jackson@ximian.com>
31637 * Hwnd.cs: Don't compute the menu size for
31638 DefaultClientRectangle.
31639 - Reenable menu sizes being computed for GetClienRectangle.
31640 * Form.cs: Remove comment of trechery
31642 2005-11-22 Jackson Harper <jackson@ximian.com>
31644 * Hwnd.cs: The adjustments for the menu bar are made when it is
31645 attached to the form.
31647 2005-11-19 Jackson Harper <jackson@ximian.com>
31649 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
31650 (just like on windows).
31652 2005-11-19 Jackson Harper <jackson@ximian.com>
31654 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
31655 use real buttons anymore because they are in non client area. The
31656 one TODO here is that I need to somehow invalidate a section of
31657 the non client area.
31659 2005-11-18 Jackson Harper <jackson@ximian.com>
31661 * Control.cs: Put the enum check back in now that MDI doesnt have
31662 to use this to set border styles.
31663 * Form.cs: Only set mdi child windows borders if the handle has
31665 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
31666 this directly on to the driver.
31667 - Get the move start position before adjusting for the titlebar
31668 height, this fixes the windows "skipping" when they are first
31671 2005-11-18 Jackson Harper <jackson@ximian.com>
31673 * XplatUIX11.cs: Just compute the mdi borders separately as they
31674 don't totally match up with normal form borders.
31676 2005-11-18 Jackson Harper <jackson@ximian.com>
31678 * Control.cs: Set WS_ styles for borders, so that the driver does
31679 not have to retrieve the control instance to figure out what kind
31680 of borders it should have.
31681 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
31682 driver can know its an mdi child easily.
31683 * XplatUIX11.cs: Get the border styles and whether the window is
31684 MDI from the Styles and ExStyles params instead of having to get a
31685 control. This prevents a chicken and egg problem.
31687 2005-11-18 Jackson Harper <jackson@ximian.com>
31689 * MdiClient.cs: Fix typo so scrollbars show up correctly.
31691 2005-11-18 Jackson Harper <jackson@ximian.com>
31693 * MdiClient.cs: Calculate when to add and remove scrollbars
31695 * MdiChildContext.cs: Adjust the y position to take the titlebar
31697 - No height for FormBorderStyle.None
31699 2005-11-18 Jackson Harper <jackson@ximian.com>
31701 * Control.cs: Allow non enum values to be used for
31702 InternalBorderStyle. MDI does this to set a special border style.
31703 - New utility methods for converting points to/from client coords
31704 - Add the newly created control to the Controls collection before
31705 updating its style. This way UpdateStyle can walk the control
31706 heirarchy to find the control if needed.
31707 so I don't need to create a new Point object all the time.
31708 * Form.cs: Let MDI windows handle their border styles.
31709 - Set styles on MDI windows so the correct title style is derived.
31710 * MdiChildContext.cs: Move all the painting and window handling
31711 into the non client area.
31712 - Use correct sizing and put correct buttons on frames based on
31713 the FormBorderStyle.
31714 - Notify the mdi client about scrolling
31715 - Need to handle the buttons ourselves now, because they are all
31716 in non client areas and we can't add controls there.
31717 * MdiClient.cs: Halfway to scrolling, this implementation is
31718 somewhat broken though, we need to check to make sure other
31719 windows aren't causing scrolling before removing the bars. Also
31720 the bars need to be drawn on top, maybe I can switch implicit
31721 controls to be on top.
31722 * Hwnd.cs: caption_height and tool_caption_height are now
31723 properties of an hwnd, this way they can be set by the driver
31724 based on the type of window they are. In X11 the window manager
31725 handles the decorations so caption_height is zero unless its an
31727 - Add 3 pixel borders for MDI windows (0xFFFF).
31728 - Get rid of some code duplication, have DefaultClientRectanle
31729 just call GetClientRectangle.
31730 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
31732 - Set border styles differently for mdi windows.
31733 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
31736 2005-11-15 Mike Kestner <mkestner@novell.com>
31738 * Menu.cs: when adding an item to the collection, if item is already
31739 parented, remove it from the parent.
31741 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
31743 * X11DesktopColors.cs: Added KDE support
31745 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
31748 - Clipboard methods now can translate Rtf format
31749 - No longer removes clipboard contents whenever a new format is added
31750 to allow placing multiple formats on the clipboard
31751 * Clipboard.cs: Clipboard now supports getting a IDataObject and
31752 will place all formats contained in it onto the clipboard. Also
31753 now cleans the clipboard before placing a new object onto it
31755 - Implemented set_Rtf
31756 - Implemented set_SelectedRtf
31757 - Created InsertRTFFromStream() method to allow single code base
31758 for all properties and methods that insert RTF into document
31759 - Removed debug output
31761 - Fixed Delete(int) to fix up line numbers
31762 - Fixed ReplaceSelection to combine start and end line
31763 - Fixed serious DeleteChars bug that would leave the document tree
31765 - Improved DumpTree with several logic checks to detect broken
31767 - Removed debug lines
31768 - Fixed Caret.WordForward/WordBack moving code, now always also
31769 updates caret.tag (fixes crash when word-selecting across tag
31770 boundaries via keyboard)
31771 - Added Insert() method for inserting multiline text into documents
31772 - Fixed DeleteChars() calculation errors that would cause a broken
31773 tag chain with multiple tag lines
31774 - DeleteChars() no longer crashes on multi-tag lines if not all tags
31775 - Split() no longer moves caret if split is at caret location
31776 - ReplaceSelection() now updates the cursor and re-displays it
31777 - ReplaceSelection() now uses new Insert() method to avoid code
31779 - FormatText() can now handle formatting partial lines
31781 - Append now uses new TextControl.Insert() method (this avoids
31783 - Implemented Ctrl-X (Cut) (
31784 - Implemented Ctrl-C (Copy)
31785 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
31786 regeneration when pasting text; roundtripping Copy&Paste within
31787 edit control still fails due to some calculation bugs in GenerateRTF)
31788 - The Delete key will now remove the current selection if it is visible
31789 * TextBox.cs: Removed debug lines
31790 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31791 driver to be initialized and can't therefore be done via a static ctor)
31793 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
31795 * TextControl.cs: Added backend code for finding char arrays and strings
31797 - Added mouse wheel scroll support
31798 - Added support for VScroll and HScroll events
31800 - Implemented all seven Find() variants
31801 - Implemented GetCharFromPosition()
31802 - Implemented GetCharIndexFromPosition()
31803 - Implemented GetLineFromIndex()
31804 - Implemented GetPositionFromCharIndex();
31805 - Implemented SaveFile for PlainText and UnicodeText
31806 - Fixed set_Font, now setting a new font applies that font to
31808 - Implemented generic Document to RTF converter
31809 - Implemented SaveFile for RichText format (still missing unicode
31810 conversion for non-ansi chars)
31811 - Implemented get_Rtf
31812 - Implemented get_SelectedRtf
31814 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
31816 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31817 to allow any captures to be released before triggering OnClick. This
31818 way a click handler may capture the mouse without interference.
31819 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31820 This way we send them even though X may not allow a grab (if the window
31821 isn't visible, for example)
31823 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
31825 * DataGridViewRowEventArgs.cs: DataGridView implementation
31826 * DataGridViewElement.cs: DataGridView implementation
31827 * DataGridViewComboBoxCell.cs: DataGridView implementation
31828 * DataGridViewDataErrorContexts.cs: DataGridView implementation
31829 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31830 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31831 * ImageLayout.cs: DataGridView implementation
31832 * DataGridViewComboBoxColumn.cs: DataGridView implementation
31833 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31834 * DataGridViewSelectionMode.cs: DataGridView implementation
31835 * IDataGridViewEditingControl.cs: DataGridView implementation
31836 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31837 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31838 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31839 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31840 * DataGridViewColumnSortMode.cs: DataGridView implementation
31841 * DataGridView.cs: DataGridView implementation
31842 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31843 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31844 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31845 * Padding.cs: DataGridView implementation
31846 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31847 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31848 * DataGridViewRowEventHandler.cs: DataGridView implementation
31849 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31850 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31851 * DataGridViewButtonCell.cs: DataGridView implementation
31852 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31853 * DataGridViewEditMode.cs: DataGridView implementation
31854 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31855 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31856 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31857 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31858 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31859 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31860 * DataGridViewCellEventHandler.cs: DataGridView implementation
31861 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31862 * DataGridViewCellStyleConverter.cs: DataGridView implementation
31863 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31864 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31865 * DataGridViewColumnEventArgs.cs: DataGridView implementation
31866 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31867 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31868 * QuestionEventArgs.cs: DataGridView implementation
31869 * IDataGridViewEditingCell.cs: DataGridView implementation
31870 * DataGridViewTriState.cs: DataGridView implementation
31871 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31872 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31873 * DataGridViewColumnCollection.cs: DataGridView implementation
31874 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31875 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31876 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31877 * DataGridViewColumn.cs: DataGridView implementation
31878 * DataGridViewCellBorderStyle.cs: DataGridView implementation
31879 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31880 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31881 * DataGridViewRow.cs: DataGridView implementation
31882 * DataGridViewImageCellLayout.cs: DataGridView implementation
31883 * DataGridViewImageCell.cs: DataGridView implementation
31884 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31885 * DataGridViewCheckBoxCell.cs: DataGridView implementation
31886 * DataGridViewHeaderCell.cs: DataGridView implementation
31887 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31888 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31889 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31890 * DataGridViewTextBoxColumn.cs: DataGridView implementation
31891 * QuestionEventHandler.cs: DataGridView implementation
31892 * DataGridViewCellStyleScopes.cs: DataGridView implementation
31893 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31894 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31895 * DataGridViewCell.cs: DataGridView implementation
31896 * DataGridViewCellEventArgs.cs: DataGridView implementation
31897 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31898 * DataGridViewCellStyle.cs: DataGridView implementation
31899 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31900 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31901 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31902 * TextFormatFlags.cs: DataGridView implementation
31903 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31904 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31905 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31906 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31907 * DataGridViewButtonColumn.cs: DataGridView implementation
31908 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31909 * HandledMouseEventArgs.cs: DataGridView implementation
31910 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31911 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31912 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31913 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31914 * DataGridViewRowCollection.cs: DataGridView implementation
31915 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31916 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31917 * DataGridViewHitTestType.cs: DataGridView implementation
31918 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31919 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31920 * DataGridViewColumnEventHandler.cs: DataGridView implementation
31921 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31922 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31923 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31924 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31925 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31926 * DataGridViewContentAlignment.cs: DataGridView implementation
31927 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31928 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31929 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31930 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31931 * DataGridViewPaintParts.cs: DataGridView implementation
31932 * DataGridViewCellCollection.cs: DataGridView implementation
31933 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31934 * DataGridViewImageColumn.cs: DataGridView implementation
31935 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31936 * DataGridViewElementStates.cs: DataGridView implementation
31937 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31938 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31939 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31940 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31941 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31942 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31943 * DataGridViewRowHeaderCell.cs: DataGridView implementation
31944 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31945 * DataGridViewTextBoxCell.cs: DataGridView implementation
31946 * DataGridViewBand.cs: DataGridView implementation
31947 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31948 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31949 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31950 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31951 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31952 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31953 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31954 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31955 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31956 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31957 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31959 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
31961 * ThemeWin32Classic.cs:
31962 - Draw the outside focus rectangle around buttons
31963 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31964 doesn't use end caps for every dash of a line anymore. This
31965 workaround ignores the forecolor.
31967 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
31969 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31972 2005-11-07 Jackson Harper <jackson@ximian.com>
31974 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31976 2005-11-07 Jackson Harper <jackson@ximian.com>
31978 * ScrollableControl.cs: Calculate the maximum and change vars
31979 (more) correctly so that scrollbars appear as a sensible size.
31981 2005-11-04 Jackson Harper <jackson@ximian.com>
31983 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31985 * TreeView.cs: When the tree is sorted null out the top_node so
31986 that it is recalculated.
31987 - Use dotted lines instead of dashed lines to match MS better.
31989 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
31992 - Implements key search for items. Useful when browsing files with FileDialog
31993 - When changing view mode or when clear the items reset scrollbar positions
31995 2005-11-04 Jackson Harper <jackson@ximian.com>
31997 * CurrencyManager.cs: Implement the MetaDataChanged event, the
31998 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31999 as to what the method may do as there is no real way of creating a
32000 derived CurrencyManager and calling the method.
32002 2005-11-03 Jackson Harper <jackson@ximian.com>
32004 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
32005 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
32006 method which seems to just be used internally to refresh the tabs.
32008 2005-11-03 Jackson Harper <jackson@ximian.com>
32010 * TabControl.cs: Implement the remove method. Fix some broken
32013 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
32015 * DateTimePicker.cs:
32016 - Added missing DateTimePickerAccessibleObject class
32017 - Added missing events
32018 - Added OnFontChanged method
32019 * Form.cs: Added missing attributes
32020 * TreeView.cs: Added missing attributes
32022 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
32024 * GridItemCollection.cs: Fix signatures
32026 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
32028 * XplatUI.cs: Updated build rev/date
32029 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
32030 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
32031 * Application.cs: Trigger context-specific ExitThread events
32033 2005-11-03 Jackson Harper <jackson@ximian.com>
32037 * GridTableStylesCollection.cs:
32042 * MonthCalendar.cs: Signature fixes
32044 2005-11-03 Jackson Harper <jackson@ximian.com>
32046 * TreeNodeCollection.cs: Remove should not be virtual.
32047 * TreeView.cs: Implement the last of the missing methods.
32049 2005-11-03 Jackson Harper <jackson@ximian.com>
32051 * TreeNodeConverter.cs: Implement to get off my class-status back.
32053 2005-11-03 Jackson Harper <jackson@ximian.com>
32055 * TreeView.cs: Hookup the bits for drag and drop.
32056 * TreeNode.cs: Don't cache the tree_view or index anymore, now
32057 that nodes can be moved from tree to tree easily this just causes
32058 all sorts of problems.
32059 * TreeNodeCollection: Don't need to give treenodes an index and
32060 treeview anymore when they are added, these are computed on the
32061 fly. Also make sure to remove a node before its added.
32063 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
32066 - Added CaretSelection enum
32067 - Added comparison methods to Marker struct, makes selection code
32069 - Added SelectionStart and SelectionEnd as 'moveable' location for
32070 the CaretDirection enum and handler
32071 - Added selection_prev variable to track optimized invalidation for
32072 word and line selection
32073 - Added SelectionVisible property (returns true if there is a valid
32075 - Switched CaretHasFocus to only display the caret if there is no
32077 - Avoiding StringBuilder.ToString to retrieve a single char, instead
32078 using the direct character index; should be much faster
32079 - Added various conditional debug statements
32080 - Fixed invalidation calculation for selection ranges
32081 - Added ExpandSelection() method to support word and line selection
32082 - Switched SetSelectionToCaret to use new Marker compare overloads
32083 - Added central IsWordSeparator() method to determine word
32084 separators/whitespace and FindWordSeparator() to streamline common
32085 usage of IsWordSeparator()
32087 - Removed unneeded grabbed variable, it was just mirroring
32089 - No longer firing OnTextChanged event when Text setter is called,
32090 since the base will fire the event for us
32091 - Added handling of Ctrl-Up/Down selection
32092 - Added handling of Shift-Cursorkey selection
32093 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
32095 - Added handling of Shift and Ctrl-Shift-Home/End selection
32096 - Removed some debug output
32097 - Added handling for single/double/tripple-click to place caret/
32098 select word/select line respectively (Fixes bug #76031)
32099 - Added support for drag expansion of word/line selection
32100 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
32103 2005-11-02 Jackson Harper <jackson@ximian.com>
32105 * X11Dnd.cs: If the drag is going to and from a MWF window just
32106 copy the data instead of sending it out through the X Selection
32109 2005-11-02 Jackson Harper <jackson@ximian.com>
32112 * XplatUIX11.cs: When in a drag we don't want motion notify
32113 messages to get passed on to the other controls. This prevents
32114 mouse move messages from showing up in the drag source.
32116 2005-11-02 Jackson Harper <jackson@ximian.com>
32118 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
32119 the correct button is release to end a drag.
32120 * XplatUIX11.cs: Make the button state internal so the drag system
32121 can access it. Dragging needs to know about all button releases,
32122 not just left button.
32124 2005-11-02 Miguel de Icaza <miguel@novell.com>
32126 * Form.cs (Icon): If the icon is null, reset the icon to the
32129 * Cursor.cs: When writing the AND-mask bitmap do not include the
32130 number of colors, but hardcode those to two (black and white),
32131 fixes the loading of color cursors (Paint Dot Net).
32133 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
32134 turn off autoscaling.
32136 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
32138 2005-11-02 Jackson Harper <jackson@ximian.com>
32140 * X11Dnd.cs: Make sure to send a status message if the pointer
32141 enters a control that can not accept a drop, otherwise the cursor
32142 isn't updated correctly. Also tried to compress the lines of code
32145 2005-11-02 Jackson Harper <jackson@ximian.com>
32147 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
32148 set actions correctly. This isn't perfect as XDND and win32 have
32149 some differences on how you allow actions. I'll clear this up by
32150 adding a path for drag from MWF to MWF windows.
32151 * XplatUIX11.cs: Hook into the dnd system.
32153 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
32155 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
32156 previously shown but they are no longer need it. Very obvious when
32157 browsing files with FileDialog.
32159 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
32161 * Control.cs: We always need to call OnPaintBackground. We pretty much
32162 ignore AllPaintingInWmPaint and always do the painting there, whether
32163 it's set or not, since we always ignore the WM_ERASEBKGND message
32164 (which we don't generate on X11). This fixes #76616.
32165 * Panel.cs: Removed unneeded background painting. This happens properly
32166 in Control.cs already
32168 2005-10-31 Mike Kestner <mkestner@novell.com>
32170 * Menu.cs: Add items to collection before setting their index.
32171 * MenuItem.cs : add range checking with ArgumentException like MS.
32174 2005-10-31 Jackson Harper <jackson@ximian.com>
32176 * ListBox.cs: Invalidate if the area is visible at all not just
32177 contained in the visible rect. Fixes unselection of semi visible
32180 2005-10-31 Jackson Harper <jackson@ximian.com>
32182 * Control.cs: Consistently name the dnd methods. Make them
32183 internal so we can override them to match some MS behavoir
32185 * Win32DnD.cs: Use the new consistent names.
32187 2005-10-31 Jackson Harper <jackson@ximian.com>
32189 * TreeView.cs: Don't draw the selected node when we lose focus.
32191 2005-10-31 Jackson Harper <jackson@ximian.com>
32193 * X11Dnd.cs: We still need to reset the state even though a full
32194 reset isn't being done, otherwise status's still get sent all over
32197 2005-10-31 Jackson Harper <jackson@ximian.com>
32199 * Control.cs: Make the dnd_aware flag internal so the dnd
32200 subsystem can check it. Catch exceptions thrown in dnd handlers to
32202 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
32203 * X11Dnd.cs: Handle null data in the converters. Set the XDND
32204 version when sending a XdndEnter. Use the control/hwnd dnd_aware
32205 flags to reduce the number of dnd enters/status's sent.
32207 2005-10-31 Jackson Harper <jackson@ximian.com>
32209 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
32211 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
32213 * PictureBox.cs: Fixes 76512
32215 2005-10-28 Jackson Harper <jackson@ximian.com>
32217 * X11Dnd.cs: Early implementation to support winforms being a drag
32218 source for data on X11. Also restructured the converters so they
32219 can go both ways now.
32220 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
32222 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
32224 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
32227 2005-10-27 Jackson Harper <jackson@ximian.com>
32229 * TreeNode.cs: Implement serialization so my DnD examples will work.
32231 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
32233 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
32234 TreeView.cs: Don't dispose objects that are not owned.
32236 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
32238 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
32239 should retrieve the current cursor and report that, but XplatUI
32240 doesn't (yet) have an interface for that (and I'm not sure I even
32242 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
32243 until any message loop processing is done (and the WM_SETCURSOR
32244 replaces the cursor to the proper one)
32246 - Fixed override behaviour, we can't set the cursor globally on X11,
32247 just for our windows.
32248 - Invalidating the System.Drawing X11 display handle when we are
32250 * Control.cs: Fix to make csc happy
32252 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
32255 - get_Text: Add last line (without trailing newline) to returned
32256 value (Fixes 76212)
32257 - get_TextLength: Count last line in returned length
32258 - ToString: Call Text property instead of duplicating code
32260 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
32262 * ImageList.cs: Dispose ImageAttributes objects.
32264 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
32266 * ImageList.cs: Use attribute constructors with less arguments where
32269 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
32271 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
32272 Use typeof instead of strings when assembly is referenced. Added
32273 some more comments.
32275 2005-10-21 Jackson Harper <jackson@ximian.com>
32277 * ListView.cs: Raise a double click event. Also tried to somewhat
32278 fix when the selectedindexchanged event is raised. Its still
32281 2005-10-21 Jackson Harper <jackson@ximian.com>
32283 * TreeView.cs: New method to invalidate the plus minus area of a
32284 node without invalidating the whole node (maybe this can be used
32285 in some more places).
32286 * TreeNodeCollection.cs: When adding to an empty node we need to
32287 invalidate its plus minus area so the little block shows up.
32289 2005-10-21 Jackson Harper <jackson@ximian.com>
32291 * TreeView.cs: Make sure that when we invalidate a node the bounds
32292 are big enough to cover the selected box and the focus
32293 rectangle. Use a different colour for the lines connecting nodes
32294 so they show up with all themes.
32296 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32298 * NativeWindow.cs: Don't call anything that could call into the driver,
32299 we might be on a different thread.
32301 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32303 * Control.cs(Dispose): Since Dispose might run on a different thread,
32304 make sure that we call methods that could call into the driver via
32305 invoke, to avoid thread issues
32307 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
32309 * XplatUI.cs: Removed finalizer
32310 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
32311 not allowing to be called on the finalizer thread.
32313 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
32316 - Reverted r51889 and r51891.
32317 - Added ImageListItem class that stores unmodified image items and image
32318 properties required to create list images until handle is created.
32319 - Added AddItem and moved image creation logic to AddItemInternal.
32320 - Added CreateHandle method that creates images based on unmodified items.
32321 - Added DestroyHandle that changes state to store unmodified items.
32322 - Add and AddStrip methods no more create handle.
32323 - ReduceColorDepth has no return value.
32324 - Dispose destroys handle.
32325 - Modified other methods to reflect the above changes.
32326 - Implemented key support.
32327 - Added profile 2.0 members and attributes.
32328 - Added private Reset and ShouldSerialize methods that provide the same
32329 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
32330 them as they are private.
32331 - Added some more comments about implementation details.
32333 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32335 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
32337 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32339 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
32341 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
32343 * DataGridDrawingLogic.cs: Fixes column hit calcultation
32344 * DataGridColumnStyle.cs: Remove debug message
32346 2005-10-20 Jackson Harper <jackson@ximian.com>
32348 * TreeView.cs: We can always get input keys regardless of whether
32349 or not editing is enabled. They are used for navigation.
32351 2005-10-20 Jackson Harper <jackson@ximian.com>
32353 * TreeNode.cs: Use the viewport rect for determining if a node
32354 needs to be moved for visibility. Don't use Begin/End edit. This
32355 calls a full refresh when its done.
32356 * TreeView.cs: New SetBottom works correctly. Make the viewport
32357 rect property internal so the treenodes can see it. When clicking
32358 on a node we need to ensure that its visible because it might just
32359 be partly visible when clicked.
32361 2005-10-20 Jackson Harper <jackson@ximian.com>
32363 * TreeNodeCollection.cs: Remove debug code.
32365 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
32367 * Datagrid.cs: Implements column sorting in Datagrid
32368 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
32370 2005-10-20 Jackson Harper <jackson@ximian.com>
32372 * TreeNodeCollection.cs: Remove items properly. Update the correct
32373 area after removing them.
32375 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
32377 * Datagrid.cs: Should not call base.OnPaintBackground
32379 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32381 * XplatUIX11.cs (GetMessage):
32382 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
32383 window instead of client window
32384 - Now properly calculates NC_xBUTTONUP message coordinates
32385 - ScreenToMenu now properly calculates it's coordinates of whole
32386 window, since menus are in the whole window, not in the client
32388 - Added WholeToScreen coordinate translation method
32390 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32392 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
32393 want to return a message, loop back to the beginning of the function
32394 and grab the next real message to process instead.
32396 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
32398 * Splitter.cs: Properly set limits if no filler control is used
32400 2005-10-19 Jackson Harper <jackson@ximian.com>
32402 * ColorDialog.cs: Don't show the help button if it is not enabled
32403 instead of disabling it (this is what MS does). Don't create the
32404 panel until the dialog is run, otherwise the vars (such as
32405 ShowHelp) are not set yet.
32407 2005-10-19 Jackson Harper <jackson@ximian.com>
32409 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
32410 are reduced when adding nodes.
32412 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
32415 2005-10-19 Jackson Harper <jackson@ximian.com>
32417 * FolderBrowserDialog.cs: End editing our treeview so the window
32418 actually gets refreshed.
32420 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
32422 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
32423 Obsoleted handling of WM_ERASEBKGND, now always draws our background
32426 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32428 * MenuAPI.cs: Returns after Hidding window
32429 * XplatUIX11.cs: Added TODO found while debugging menu issues
32431 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
32433 * XplatUIX11.cs: Do not re-map the whole window when it's size
32434 becomes non-zero unless it's supposed to be actually visible
32436 2005-10-18 Jackson Harper <jackson@ximian.com>
32438 * TreeView.cs: We don't need to keep a count anymore.
32439 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
32440 use the Grow method.
32442 2005-10-18 Jackson Harper <jackson@ximian.com>
32444 * TreeNodeCollection.cs: Insert is not supported on arrays, so
32445 implement it manually here.
32447 2005-10-18 Jackson Harper <jackson@ximian.com>
32449 * ImageList.cs: Dont kill the list when the colour depth is
32450 changed, just change the colour depth of all the images.
32451 - Same goes for setting the image size. Just resize them all
32452 instead of killing the list softly.
32454 2005-10-18 Jackson Harper <jackson@ximian.com>
32456 * Control.cs: Don't invalidate empty rectangles.
32458 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32461 - Adds checked item to the Checked/Item lists (where empty before)
32462 - Do not add items to the Selected lists if they are already present
32464 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
32465 - When deleting items make sure that we delete them for the Selected
32466 and Checked list also.
32468 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
32470 * Label.cs: Dispose objects no longer used
32471 * ThemeWin32Classic.cs: Dispose objects no longer used
32473 2005-10-18 Jackson Harper <jackson@ximian.com>
32475 * TabControl.cs: Don't refresh the whole control when the tabs are
32476 scrolled, we just need to refresh the tab area.
32478 2005-10-17 Jackson Harper <jackson@ximian.com>
32480 * XplatUIX11.cs: Compress code a little bit. Only calculate the
32481 after handle when we need it.
32483 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
32485 * Control.cs: When the parent size changes, recalculate anchor
32486 positions. Partial fix for #76462
32488 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
32490 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
32491 drawn. Fixes #76462
32493 2005-10-17 Jackson Harper <jackson@ximian.com>
32495 * MonthCalendar.cs: Don't create the numeric up down until our
32496 handle is created. Otherwise our handle is created in the
32497 constructor and we don't know if we are a WS_CHILD or WS_POPUP
32500 2005-10-17 Jackson Harper <jackson@ximian.com>
32502 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
32505 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
32506 * TreeNode.cs : small logical fix (was using local var instead of field)
32508 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
32510 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
32512 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
32514 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
32516 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
32519 - Re-implemented anchoring code. My first version was really broken.
32520 This fixes bug #76033. Unlike the previous implementation we will
32521 no longer have round errors since all numbers are calculated from
32522 scratch every time. Removed various anchor-related obsolete vars.
32523 - InitLayout no longer causes layout event firing and layout to be
32526 2005-10-16 Jackson Harper <jackson@ximian.com>
32528 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
32531 2005-10-16 Jackson Harper <jackson@ximian.com>
32533 * TabControl.cs: Remove debug code.
32535 2005-10-16 Jackson Harper <jackson@ximian.com>
32537 * XEventQueue.cs: Increase the default queue size (very simple
32538 apps needed to grow the queue).
32539 * Hwnd.cs: No finalizer so we don't need to suppress
32540 finalization. Compute the invalid area manually so a new rectangle
32541 does not newto be created.
32542 * ScrollableControl.cs: Don't set any params (otherwise visibility
32543 isn't set correctly).
32544 * MdiChildContext.cs: New constructor takes the mdi parent so it
32545 doesn't have to be computed and avoids a crash on windows. Draw
32546 the window icon properly, and allow the text to be seen.
32547 * Form.cs: Use new MdiChildContext constructor. Make sure the
32548 child context isn't null in wndproc.
32549 * TabControl.cs: Don't set focus, this is muddling keyboard
32550 behavoir. Expand the tab rows when a window size increase will
32551 allow extra tabs to be seen. Don't allow tabs smaller than the
32552 width of a window to be scrolled out of view.
32554 * TreeView.cs: Use measure string to calculate a nodes width, the
32555 width is cached and only updated when the text or the font is
32556 changed. Don't check for expand/collapse clicks on the first level
32557 nodes if root lines are disabled.
32559 2005-10-16 Ritvik Mayank <mritvik@novell.com>
32561 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
32563 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
32565 * DataGridBoolColumn.cs: fixes warning
32567 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
32569 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
32570 to match more to match more precisely the MS Net behavior
32572 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32574 * Hwnd.cs: Added field to track if window is mapped
32576 - Unmap windows if they become 0-size, re-map when
32577 they are >0 again; fixes #76035
32578 - Re-set our error handler after initializing X11Desktop
32579 to override any error handlers Gtk or whatever was called
32582 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32584 * CheckedListBox.cs: Removed unused vars
32585 * ListView.cs: Fixed signatures
32586 * RichTextBox.cs: Removed unused vars
32587 * TextBoxBase.cs: Removed unused vars
32588 * XplatUIWin32.cs: Removed unused vars
32589 * XplatUIX11.cs: Removed unused vars
32590 * XplatUI.cs: Updated version and date to latest published
32592 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32594 * Cursor.cs: Added private .ctor to work around a bug in
32595 resourceset (Thanks to Geoff Norton for the help on this)
32596 * SplitterEventArgs.cs: Made fields accessible so we don't
32597 waste boatloads of objects and can reuse the same one
32599 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
32600 any captions and borders when generating screen coordinates
32601 * Splitter.cs: Reimplemented control, now fully complete, uses
32602 rubberband drawing, supports and obeys all properties, has
32605 2005-10-13 Miguel de Icaza <miguel@novell.com>
32607 * Form.cs (Form): Setup default values for autoscale and
32608 autoscale_base_size; Make these instance variables, not static
32611 (OnLoad): on the first load, adjust the size of the form.
32613 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
32615 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
32616 width argument to DrawReversibleRectangle()
32617 * XplatUIWin32.cs, XplatUIX11.cs:
32618 - Implemented width for DrawReversibleRectangle()
32619 - Added logic to DrawReversibleRectangle that recognizes a zero
32620 width or height and only draws a line in that situation
32622 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
32624 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
32625 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
32626 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
32627 method (it uses our FosterParent window to get a graphics context)
32629 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
32631 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
32632 and SetWindowBackground methods
32634 - Setting proper ControlStyles
32635 - We no longer call XplatUI.SetWindowBackground and XplatUI.
32636 EraseWindowBackground, instead we draw the window background
32637 ourselves in PaintControlBackground. This behaviour is
32638 required to match MS, where, when OnPaintBackground is not
32639 called, the background is not drawn.
32640 - Removed unneeded Refresh() in set_Text
32641 * Hwnd.cs: Dropped the ErasePending support. No longer needed
32643 - Created DeriveStyles method to translate from CreateParams to
32644 FormBorderStyle and TitleStyle, also handles BorderStyle (which
32645 matches FormBorderStyle enum values)
32646 - Consolidated SetHwndStyles and CalculateWindowRect border/title
32647 style calculations into single DeriveStyles method
32648 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
32649 from redrawing the whole window on any resize or expose.
32650 - Fixed CreateWindow usage of SetWindowValuemask. Before not
32651 all styles were applied to our whole/client window appropriately
32652 - Removed EraseWindowBackground() and SetWindowBackground() methods
32653 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
32654 no longer clear/redraw the background through X
32655 - Removed handling of erase_pending bit, we have no use for it (or
32658 - Removed generation and handling of WM_ERASEBKGND message
32659 - Removed EraseWindowBackground() and SetWindowBackground() methods
32660 - Removed handling of hwnd.ErasePending flag
32662 - Removed EraseWindowBackground() and SetWindowBackground() methods
32663 - We no longer call EraseWindowBackground on PaintEventStart, we
32664 ignore the fErase flag, erasing is handled in Control in the
32666 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
32667 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
32668 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
32669 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
32670 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
32671 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
32672 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
32674 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
32676 * PropertyGrids.cs: Get sub properties
32677 * PropertyGridView.cs: Fix drawing code
32679 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32681 * ListBox.cs: Fixes 76383
32683 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32685 * DataGridTextBoxColumn.cs: Sets location and size before attachment
32686 * ThemeWin32Classic.cs: Fixes border drawing and calculations
32687 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
32690 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32692 * ComboBox.cs: Fixes border drawing
32694 2005-10-10 Miguel de Icaza <miguel@novell.com>
32696 * MimeIcon.cs: Ignore errors if the file can not be read.
32698 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
32700 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
32701 - Fixed border calculations
32702 - Fixed horizontal scrolling in single column listboxes
32703 - Fixed drawing issues
32705 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
32707 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
32708 FormBorderStyle enum
32709 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
32710 code to determine FormBorderStyles from CreateParams
32712 - Fixed bug where we'd set the wrong window styles if we were
32713 not creating an MDI window
32714 - Added call to XplatUI.SetBorderStyle when form borders are set
32715 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
32717 - Removed obsolete edge style
32718 - Switched from BorderStyle to FormBorderStyle
32720 2005-10-10 Jackson Harper <jackson@ximian.com>
32722 * Form.cs: Use the property to get the window handle instead of
32723 accessing it directly. Prevents a null reference exception.
32725 2005-10-10 Jackson Harper <jackson@ximian.com>
32727 * TreeView.cs: Don't adjust the rect given to DrawString now that
32728 our libgdiplus draws correctly.
32730 2005-10-08 Jackson Harper <jackson@ximian.com>
32732 * TreeView.cs: Don't try to find the clicked on node if there are
32733 no nodes in the tree.
32735 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
32741 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
32743 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
32744 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
32746 Use ResPool for brushes and dispose System.Drawing objects that
32747 are not used anymore.
32749 2005-10-07 Jackson Harper <jackson@ximian.com>
32751 * MdiChildContext.cs: Use the new borders instead of drawing them
32754 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
32756 * Calling UpdateBounds after changing the window's BorderStyle
32757 since the style can change the ClientSize
32759 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32761 * Control.cs: Made PaintControlBackground virtual
32762 * Panel.cs: Overriding PaintControlBackground instead of using paint
32763 event; paint event method was interfering with 'real' users of the
32766 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
32768 * ThemeWin32Classic.cs: remove border drawing since it is handled
32769 by the base control class now and was causing double border drawing.
32771 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32773 * Panel.cs: Redraw our background on paint. Not a pretty solution,
32774 but it does seem to match MS behaviour. This fixes bug #75324
32776 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32778 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32779 somewhat hackish looking
32781 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32784 - We now accept Enter even if AcceptEnter is false, if the containing
32785 form does not have an AcceptButton configured (fixes bug #76355)
32786 - Calculations are now fixed to no longer use Width/Height, but
32787 ClientSize.Width/Height, since we now support borders (this was
32788 a result of fixing borders and therefore bug #76166)
32789 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
32790 true (fixes bug #76354)
32792 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32795 - Defaulting BorderStyle and setting it in XplatUI when our window
32797 - Added enum check to InternalBorderStyle setter
32799 - Added drawing of window borders
32800 - Now properly calculates WM decorations offset for toplevel
32801 windows (fixes bug #74763)
32803 - Implemented BorderStyles for windows (we're letting win32 draw
32805 - Fixed the signature for SetWindowLong
32806 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32807 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
32809 * UpDownBase.cs: Remove drawing of borders, this is handled by
32810 the driver, outside the client area
32811 * ListView.cs: Removed bogus border calculations. The control should
32812 be oblivious to borders, since those are not part of the client
32814 * X11DesktopColors.cs: Commented out (currently) unneeded variables
32815 * ThemeWin32Classic.cs: Removed border calculations from ListView
32818 2005-10-06 Jackson Harper <jackson@ximian.com>
32820 * MdiChildContext.cs: Clear out the old virtual position remove
32821 all the unneeded calls to CreateGraphics.
32823 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32825 * TextControl.cs: Use proper color for highlighted text; fixes #76350
32827 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32830 - Added loading and setting of our new default icon
32831 - Only set icon if window is already created
32833 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
32836 - Do not explicitly set the foreground and background colors, to
32837 allow inheriting from parents (fixes #76302)
32838 - Use Control's InternalBorderStyle property to deal with borders
32840 2005-10-06 Jackson Harper <jackson@ximian.com>
32842 * MdiChildContext.cs: Use the new xplatui function to draw a
32845 2005-10-06 Jackson Harper <jackson@ximian.com>
32847 * Form.cs: Add the parent before creating the child context cause
32848 we need the parent when setting up the child.
32850 2005-10-06 Jackson Harper <jackson@ximian.com>
32852 * FolderBrowserDialog.cs: redo the tree population code so a
32853 second thread isn't used. Should be a lot faster and more stable
32856 2005-10-05 Jackson Harper <jackson@ximian.com>
32858 * TreeView.cs: There are no expand/collapse boxes if the node has
32861 2005-10-05 Jackson Harper <jackson@ximian.com>
32863 * X11DesktopColors.cs: Get menu colours for the gtk theme.
32865 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
32867 * FileDialog.cs: Fix InitialDirectory
32869 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
32872 - Fixes changing between styles
32873 - Fixes simple mode
32874 - Fixes last item crashing when navigating with keyboard
32876 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
32878 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32880 2005-10-05 Jackson Harper <jackson@ximian.com>
32882 * TreeView.cs: If updating the root node do a full refresh.
32883 * TreeNode.cs: The root node should be expanded by default. Also
32884 added a utility prop to tell if we are the root node.
32885 * TreeNodeCollection.cs: Only refresh if the node we are being
32886 added to is expanded. Also added a comment on a potential
32889 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
32891 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
32892 in dispose method. Fixes #76330
32894 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
32896 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32898 - Implements vertical and horizontal scrolling using XplatUI
32899 - Fixes keyboard navagation
32900 - Fixes EnsureVisible
32902 - Handles and draws focus properly
32905 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
32907 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32908 Create handle. NET_2_0: Destroy handle when value is null.
32910 2005-10-03 Jackson Harper <jackson@ximian.com>
32912 * ScrollBar.cs: My last scrollbar patch was broken. This is a
32913 revert and a new patch to prevent the thumb from refreshing so
32916 2005-10-02 Jackson Harper <jackson@ximian.com>
32918 * ScrollBar.cs: Don't update position if it hasn't actually
32919 changed. This occurs when you hold down the increment/decrement
32920 buttons and the thumb gets to the max/min.
32922 2005-10-01 Jackson Harper <jackson@ximian.com>
32925 * MdiChildContext.cs:
32926 * MdiClient.cs: Implement ActiveMdiChild in Form.
32928 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
32930 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32932 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
32934 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32937 2005-09-30 Jackson Harper <jackson@ximian.com>
32939 * ListBox.cs: Don't do a full refresh unless some data has
32942 2005-09-30 Jackson Harper <jackson@ximian.com>
32944 * TreeView.cs: Make sure that the checkboxes size is factored in
32945 even when not visible.
32947 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32949 * FileDialog.cs: Fix Jordi's build break
32951 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
32954 - Use standard the Windows colours for the combobox as espected
32955 - Dispose objects that use resouces when no longer need them
32957 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32959 * X11DesktopColors.cs: Initial incomplete implementation
32960 * XplatUIX11.cs: Added call to initialize X11DesktopColors
32962 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
32965 - Switched Theme color names to match the names defined in
32966 System.Drawing.KnownColors. Life's hard enough, no need to make
32968 - Added setters to all theme color properties so themes can set
32969 their color schemes. The setters also propagate the color changes
32970 to System.Drawing.KnownColors via reflection
32971 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32972 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32973 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32974 use the new, more logical theme color names
32975 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32977 * ThemeWin32Classic.cs:
32978 - Removed code to set the old classic Windows colors. Instead it
32979 now relies on the colors returned by System.Drawing.KnownColors
32980 which will be either modern static colors (Unix) or colors
32981 read from the user's configuration (Win32)
32982 - Updated to use the new, more logical theme color names
32983 - Switched DataGrid drawing code to use only Theme colors instead of
32984 a mix of System.Drawing.KnownColors and Theme colors
32985 - DrawFrameControl(): Removed code that fills the button area, the
32986 fill would overwrite any previous fill done by a control. This
32988 - Added DrawReversibleRectangle() stub
32989 * ScrollableControl.cs: Set visible state to false when scrollbars
32990 are removed (pdn fix)
32991 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
32992 DrawReversibleRectangle() method to allow drawing primitive
32994 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32996 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
32998 * ImageList.cs: Add(Icon): Create handle.
33000 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
33003 * ThemeWin32Classic.cs:
33004 - Fixes detail mode
33006 - Issues with drawing
33008 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
33010 * ImageList.cs: Moved RecreateHandle back to ImageList as event
33011 source has to be the ImageList.
33013 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
33015 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
33017 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
33019 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
33021 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
33023 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
33025 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
33026 * GridItem.cs: Fixed TODOs
33027 * GridItemCollection.cs: Added ICollection interface
33029 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
33031 * ImageList.cs: Resize icons when needed.
33033 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
33036 - Fixes GetBounds and returns on screen rects
33038 - Fixes vertical and horzintal scrolling of items
33039 * ThemeWin32Classic.cs:
33042 2005-09-29 Raja R Harinath <harinath@gmail.com>
33044 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
33046 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
33048 * ImageList.cs: Added comments about handle creation. Moved Handle,
33049 HandleCreated and OnRecreateHandle implementations to ImageCollection.
33050 Handle is created in Add methods.
33052 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
33054 * DataGridDrawingLogic.cs:
33055 - Takes rows into account on Colum calculations
33056 - Returns the column when clickig
33058 - Fixes default HitTestInfo values
33059 - Fixes HitTestInfo.ToString
33060 - Fixes ResetBackColor
33062 2005-09-28 Jackson Harper <jackson@ximian.com>
33064 * MdiChildContext.cs: Obey rules for fixed sized windows (no
33065 sizing or cursor changes). Also added some temp code to draw the
33066 titlebars text (Makes dev a little easier).
33068 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
33070 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
33072 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
33074 * ListBox.cs: Fixes bug 76253
33076 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
33078 * ImageList.cs: Added comments about the current implementation. Added
33079 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
33080 Format32bppArgb to preserve transparency and can use Graphics.FromImage
33081 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
33082 with Bitmap.LockBits for better performance. Revised the whole file to
33083 match MS.NET behaviour and provide better performance. Non-public
33084 interface members are calling public members even when they throw
33085 NotSupportedException for better maintainability. Moved ColorDepth,
33086 ImageSize, ImageStream and TransparentColor implementations to
33087 ImageCollection for better performance as these properties are not used
33089 * ImageListStreamer.cs: Added a new internal constructor that takes an
33090 ImageList.ImageCollection and serializes Images based on
33091 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
33092 match ImageList property name.
33094 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
33096 * ListBox.cs: Fixes IndexFromPoint for last item
33098 2005-09-27 Jackson Harper <jackson@ximian.com>
33100 * Form.cs: Set the position of new mdi children correctly.
33102 2005-09-27 Jackson Harper <jackson@ximian.com>
33104 * MdiClient.cs: New mdi children need to be added to the back of
33105 the controls collection so the zorder is set correctly. Also add a
33106 count of all the child windows that have been created.
33108 2005-09-27 Jackson Harper <jackson@ximian.com>
33110 * Form.cs (CreateParams): Setup MDI forms correctly.
33112 2005-09-27 Jackson Harper <jackson@ximian.com>
33114 * MdiChildContext.cs:
33115 * MonthCalendar.cs:
33121 * ScrollableControl.cs:
33122 * ComboBox.cs: Add implicit controls using the new implict control
33123 functionality in ControlCollection. Also try to block multiple
33124 control add in a suspend/resume layout to save some cycles.
33126 2005-09-27 Jackson Harper <jackson@ximian.com>
33128 * Control.cs: Add functionality to the controls collection to add
33129 'implicit controls' these are controls that are created by the
33130 containing control but should not be exposed to the user. Such as
33131 scrollbars in the treeview.
33132 * Form.cs: The list var of the ControlsCollection is no longer
33133 available because of the potential of implicit controls getting
33134 ignored by someone accessing the list directly.
33136 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
33138 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
33139 loose it's parent. (Fixed bug introduced in r49103 when we added
33140 setting the child parent to null on Remove)
33142 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
33144 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
33145 * Splitter.cs: Added missing attributes for BorderStyle property.
33146 * TextBoxBase.cs: Marked Calculate* methods internal.
33147 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
33150 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
33152 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
33154 2005-09-25 Jackson Harper <jackson@ximian.com>
33156 * TreeView.cs: Update the node bounds correctly regardless of
33157 whether the node is visible.
33159 2005-09-25 Jackson Harper <jackson@ximian.com>
33161 * ImageList.cs: Don't dispose the image after it is added to the
33162 image list. Only reformat images that need to be resized.
33164 2005-09-25 Jackson Harper <jackson@ximian.com>
33166 * ImageList.cs: Don't set the format when changing the image.
33168 2005-09-25 Jackson Harper <jackson@ximian.com>
33170 * TreeView.cs: We can't just assume the node has a font. Use the
33171 treeviews font if no node font is available.
33173 2005-09-25 Jackson Harper <jackson@ximian.com>
33175 * TreeView.cs: Allow the scrollbars to be reset with negative
33177 - Don't add scrollbars to negative sized windows.
33179 2005-09-23 Jackson Harper <jackson@ximian.com>
33181 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
33182 old Mono.Posix. Also remove some stray code that shouldn't have
33185 2005-09-23 Jackson Harper <jackson@ximian.com>
33187 * TreeView.cs: Attempt at proper sizing of the horizontal
33188 scrollbar. Also don't resize the scrollbars unless they are
33191 2005-09-23 Jackson Harper <jackson@ximian.com>
33193 * TreeView.cs: We don't need to expand the invalid area when the
33194 selection changes, as this is all drawn in the node's bounding
33195 box. The area needs to be expanded (previous typo was contracting
33196 it) when the focus rect moves.
33198 2005-09-23 Jackson Harper <jackson@ximian.com>
33200 * TreeView.cs: Display the selection box under the correct
33201 circumstances. We were rendering white text with no selection box
33204 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
33206 * TextControl.cs(Split): Now updates selection start/end if it points
33207 into a line that's being split. Fixes a FIXME and bug #75258
33209 2005-09-23 Jackson Harper <jackson@ximian.com>
33212 * ListControl.cs: Don't use the path when retrieving binding
33213 managers from the binding context. My bat sense tells me that the
33214 path is only used on insertion.
33216 2005-09-22 Jackson Harper <jackson@ximian.com>
33218 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
33220 2005-09-22 Jackson Harper <jackson@ximian.com>
33222 * Splitter.cs: There are special cursors used for splitting.
33223 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
33225 2005-09-22 Jackson Harper <jackson@ximian.com>
33227 * Splitter.cs: Change the cursor appropriately when the splitter
33228 is moused over, so the user actually knows there is a splitter
33231 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33233 * Label.cs : Fix ToString method to give same output as MS.NET
33235 2005-09-22 Jackson Harper <jackson@ximian.com>
33237 * TreeView.cs: Create the scrollbars when the handle is created
33238 and add them right away, just make them invisble. Also account for
33239 the window being shrunk vertically to the point that the vert
33240 scrollbar needs to be added.
33241 - Remove some 0.5 adjustments to get around anti aliasing issues.
33243 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
33245 * MainMenu.cs: Fixes default value
33246 * MenuItem.cs: Fixes default value
33248 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
33250 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
33252 2005-09-21 Jackson Harper <jackson@ximian.com>
33254 * Control.cs: Don't try to set the border style on the window if
33255 it hasn't been created. When the window is created the border
33256 style will be used.
33258 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33260 * Control.cs (Update): Don't call XplatUI if we don't have a
33263 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33265 * ContainerControl.cs: Instead of throwing an exception, print
33266 a one-time warning about Validate not being implemented
33267 * XplatUIWin32.cs: Removed debug output
33269 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33271 * Control.cs: Only set XplatUI background if we expect the windowing
33272 system to handle the background. This stops controls that draw their
33273 own background from flickering
33275 * XplatUIX11.cs: Support custom visuals and colormaps for window
33276 creation. This allows, amongst other things, using MWF X11 windows
33279 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
33281 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
33282 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
33283 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
33284 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
33285 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
33286 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
33287 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
33288 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
33289 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
33290 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
33291 GridColumnStylesCollection.cs,
33292 IDataGridColumnStyleEditingNotificationService.cs,
33293 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
33294 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
33295 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
33296 TreeNodeCollection.cs, AmbientProperties.cs,
33297 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33298 DataObject.cs, ErrorProvider.cs, Splitter.cs,
33299 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
33300 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
33301 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
33302 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
33303 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
33304 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
33305 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
33306 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
33307 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
33308 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
33309 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
33310 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
33311 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
33312 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
33313 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
33314 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
33315 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
33316 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
33317 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
33318 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
33319 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
33320 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
33321 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
33322 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
33323 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
33324 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
33325 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
33326 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
33327 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
33328 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
33329 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
33330 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
33331 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
33332 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
33333 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
33335 2005-09-21 Jackson Harper <jackson@ximian.com>
33337 * TreeNode.cs: Call Before/After Expand not Collapse when
33340 2005-09-20 Jackson Harper <jackson@ximian.com>
33342 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
33344 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
33348 - Fixes proper storing of subitems
33349 - Fixes not updated items
33351 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
33353 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
33354 things if our window handle isn't created yet. Also disabled
33355 debug for TextBoxBase
33357 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
33359 * MenuAPI.cs: Remove filtering of events to allow menu usage
33361 2005-09-20 Miguel de Icaza <miguel@novell.com>
33363 * Cursor.cs: Allow null to be passed to Cursor.Current.
33365 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
33367 * ThemeWin32Classic.cs:
33368 - Change some private methods/fields to protected virtual so that
33369 they can be accessed and overriden in derived classes
33370 - First refactoring of some methods. Derived themes now don't
33371 need to duplicate the complete code from ThemeWin32Classic
33373 - Added nice StatusBar
33374 - Derive from ThemeWin32Classic and not Theme
33375 - Removed duplicate ThemeWin32Classic code
33377 2005-09-20 Miguel de Icaza <miguel@novell.com>
33379 * Control.cs (ControlCollection.Add): If the value null is passed
33380 the control is ignored.
33382 Optimize this loop.
33384 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
33386 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
33387 PostQuitMessage state.
33388 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
33390 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
33392 * Application.cs: Our constructor will never get called, move
33393 initialization to fields; fixes bug #75933
33395 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33398 - Allow files to be selected properly using file name
33400 - Add ability to change diretory (absolute / relative)
33401 using file name combo box.
33403 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
33406 - Fixes Multicolumn listboxes item wrong calculations
33407 - Allows to click when only one item is in the listbox
33408 - Fixes crash when no items using keyboard navigation
33410 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
33412 * ComboBox.cs: Reverted almost everything from the latest patch which
33415 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
33418 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
33420 - When DropDownStyle is Simple, it does not show scrollbar
33421 to the last item of the list.
33422 - When DropDownStyle is Simple, it crashed when the list was
33423 scrolled down with the down cursor key.
33424 - Fixed a bug that when DropDownStyle is DropDownList, the
33425 selected item was not shown.
33426 - The position of the selected item was not preserved when
33427 the next dropdown happened.
33428 * ThemeWin32Classic.cs:
33429 - Items were wrapped at the right end.
33430 * CheckedListBox.cs:
33433 - Items should be fully shown.
33434 - When resizing and vertical scrollbar disappeared, the item
33435 of index 0 should be on the top of the list.
33436 - GetItemRectangle should consider the size of ver. scrollbar
33438 - SizingGrip area should not be allocated when it is not
33440 - Now it reflects MinWidth of the containing panel and
33441 fixed a crash that happens when its width becomes so small.
33443 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
33445 * CheckedListBox.cs: Fixes bug 76028
33446 * ListBox.cs: Fixes bug 76028
33448 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
33450 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
33451 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
33453 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
33455 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
33457 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
33459 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
33461 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
33463 * IRootGridEntry.cs: Added
33464 * PropertyGridCommands.cs: Added
33465 * PropertiesTab.cs: Added missing methods and property
33466 * PropertyGridView.cs: Made class internal
33467 * PropertyGridTextBox.cs: Made class internal
33469 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33471 * MimeIcon.cs: Try to check some other environment variables
33472 if "DESKTOP_SESSION" returns "default"
33474 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33476 * ThemeNice.cs: Corrected background colors (e.g. menus)
33477 * ColorDialog.cs: Use correct background colors for controls
33479 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
33481 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
33483 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
33485 * RichTextBox.cs: Added initial implementation
33486 * lang.cs: Removed. Was accidentally checked in long time ago
33487 * TODO: Removed. Contents were obsolete
33489 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
33491 * PropertiesTab.cs : Added
33493 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
33495 * PropertyGrid.cs : Update
33496 * PropertyGridView.cs : Update
33497 * System.Windows.Forms.resx : Added images and strings
33499 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
33501 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
33503 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
33505 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
33506 a busy loop right after the Ungrab the X11 display is otherwise
33509 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
33511 * ThemeWin32Classic.cs: Optimise the use of clipping
33513 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
33515 * DataGrid.cs: fixes recursion bug
33517 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
33520 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
33523 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
33525 * ThemeNice.cs: Draw nice ProgressBars
33527 2005-09-01 Miguel de Icaza <miguel@novell.com>
33529 * VScrollBar.cs: Another buglet found by Aaron's tool.
33531 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
33534 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
33537 - Added nicer menu drawing
33541 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33543 * CreateParams.cs (ToString): Made output match MS
33544 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
33545 handle is already created (to avoid forcing window creation)
33546 * XplatUIX11.cs: Set window text to caption after creating window,
33547 in case Text was set before window was created
33548 * Form.cs: Use this.Text instead of a static string as caption
33550 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33552 * NotifyIcon.cs: Don't set the window to visible; this screws
33553 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
33554 OnPaint without a bitmap)
33555 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
33556 happen very often anyway; we could add the check to the WM_PAINT
33557 event generation code
33559 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33561 * NotifyIcon.cs: Fill the icon area with a background color, to
33562 avoid 'residue' when transparent icons are drawn
33564 - Handle whole_window == client_window when destroying windows
33565 - SystrayAdd(): Set client_window to whole_window value to
33566 get mouse and other events passed to NotifyIcon
33568 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
33570 * Form.cs: Set proper default for Opacity property
33572 - ShowSystray(): Don't bother creating telling the OS
33573 about the systray item if no icon is provided
33574 - Now handles WM_NCPAINT message to deal with whole/client window
33576 - Create window as visible to not get caught by Expose optimization
33577 * Hwnd.cs: Removed debug message
33578 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
33579 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
33580 PaintEventStart/End to use new client argument
33582 - Commented out debug messages
33583 - Switched PaintEventStart/End to use new client argument
33584 * XplatUI.cs: Added client window bool to PaintEventStart()/
33585 PaintEventEnd() calls, to support drawing in non-client areas
33586 * XplatUIDriver.cs:
33587 - Added client window bool to PaintEventStart()/PaintEventEnd()
33588 calls, to support drawing in non-client areas
33589 - Added conditional compile to allow using MWF BeginInvoke
33592 - Added some conditional debug output
33593 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
33594 whole/client window split
33595 - Implemented handling of client argument to PaintEventStart()/End()
33597 - Throw exception if BeginInvoke() is called and the window handle
33598 or one of the window's parent handles is not created
33599 - Added conditional compile to allow using MWF BeginInvoke on
33601 - get_Parent(): Only sets parent if handle is created. This avoids
33602 forcing window handle creation when parent is set.
33603 - Now fires Layout and Parent changed events in proper order
33604 - Switched to use Handle instead of window.Handle for Z-Order setting,
33605 the get_Parent() patch above causes us to possibly get null for 'window'
33606 - Implemented handling of client argument to PaintEventStart()/End()
33607 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
33609 - Now sends a Refresh() to all child windows when Refresh() is called
33611 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
33613 * Form.cs: Added (non-functional) Opacity property
33614 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
33616 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
33617 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
33618 use export MONO_THEME=nice to activate it.
33619 Currently supported controls:
33623 - TabControl (TabAlignment.Top only, other will follow)
33624 * ThemeEngine.cs: Add theme nice
33625 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
33628 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
33630 * Splitter.cs: Resize docked control and its neighbor.
33632 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33633 -- Making Windows with Menus layout correctly --
33634 * Form.cs : The first leg of the fix
33635 Menu setter - adjust Client Size as needed to make space for the menu
33636 SetClientSizeCore - doesn't call base version to be able to pass the
33637 menu handle to XplatUI.CalculateWindowRect
33638 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
33639 * XplatUIX11.cs: The critical second leg of the fix
33640 GetWindowPos needs to use a recalculated client_rect
33641 so that resizing the window doesn't break layout of child controls.
33642 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
33643 Lots of \t\n killed
33645 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
33647 * Label.cs: Now properly recalculates width and height on Font and Text
33648 changes if AutoSize is set
33650 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
33651 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
33653 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
33655 * ImageList.cs: Makes ToString method compatible with MS
33657 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
33659 * MenuAPI.cs: fixes bug 75716
33661 2005-08-11 Umadevi S <sumadevi@novell.com>
33662 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
33664 2005-08-11 Umadevi S <sumadevi@novell.com>
33665 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
33667 2005-08-10 Umadevi S <sumadevi@novell.com>
33668 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
33670 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
33672 * Menu.cs: fixes bug 75700
33673 * MenuAPI.cs: fixes navigation issues
33675 2005-08-09 Umadevi S <sumadevi@novell.com>
33676 * CheckedListBox.cs - simple fix for GetItemChecked.
33678 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
33680 * ComboBox.cs: Serveral fixes
33681 * ListBox.cs: Serveral fixes
33683 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
33685 * ComboBox.cs: Fixes FindString methods and GetItemHeight
33686 * ListBox.cs: Fixes FindString methods
33688 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
33690 * DataGrid.cs: fixes bugs exposed by new tests
33692 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
33694 * Mime.cs: Compile Mono assembly references only if compiling
33695 with Mono (Allows to build with VS.Net again)
33697 2005-07-28 Marek Safar <marek.safar@seznam.cz>
33699 * Control.cs (PaintControlBackground): Draw background image
33701 (CheckForIllegalCrossThreadCalls): Stubbed.
33703 * Form.cs (OnCreateControl): Center when should be centered.
33705 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
33707 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
33709 * Binding.cs: Binding to properties should be case unsensitive
33711 2005-07-18 vlindos@nucleusys.com
33713 * DataGrid.cs: fixes setmember order
33715 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
33717 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
33718 * FileDialog.cs: FileDialog is now resizable and uses the new
33721 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
33723 * DataGridTextBoxColumn.cs: default value
33724 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
33725 * GridTableStylesCollection.cs: fixes checking MappingName
33726 * DataGridDrawingLogic.cs: fixes drawing logic issues
33727 * DataSourceHelper.cs: rewritten to make compatible with more data sources
33728 * DataGrid.cs: fixes
33730 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
33732 * MimeGenerated.cs: Use case sensitive comparer for
33733 NameValueCollections
33735 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
33737 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
33738 * ThemeWin32Classic.cs: bug fixes, code refactoring
33739 * DataGridDrawingLogic.cs: bug fixes, code refactoring
33740 * DataGrid.cs: bug fixes, code refactoring
33741 * DataGridTextBox.cs: bug fixes, code refactoring
33742 * DataGridColumnStyle.cs: bug fixes, code refactoring
33743 * Theme.cs: bug fixes, code refactoring
33745 2005-07-01 Peter Bartok <pbartok@novell.com>
33747 * TextControl.cs: Quick fix for the reported crash on ColorDialog
33748 and other text box usage
33750 2005-07-01 Jackson Harper <jackson@ximian.com>
33752 * TabControl.cs: Make sure the bottom of the tab covers the pages
33755 2005-06-30 Peter Bartok <pbartok@novell.com>
33757 * Form.cs (ShowDialog): Assign owner of the dialog
33758 * TextBoxBase.cs: Always refresh caret size when deleting, caret
33759 might have been moved to a tag with different height
33761 2005-06-30 Jackson Harper <jackson@ximian.com>
33763 * Form.cs: Don't create an infinite loop when setting focus
33764 * MenuItem.cs: Don't dirty the parents if we don't have any
33766 2005-06-29 Ben Maurer <bmaurer@ximian.com>
33768 * LibSupport.cs: Rename
33770 2005-06-29 Peter Bartok <pbartok@novell.com>
33772 * TextBoxBase.cs: Re-align caret after deleting a character
33774 - DeleteChars(): Ensure that tag covers the provided position
33775 - StreamLine(): Drop reference for dropped tag
33777 2005-06-29 Peter Bartok <pbartok@novell.com>
33780 - Selections now work properly, anchoring at the initial location
33781 and properly extending in either direction (SetSelectionToCaret(),
33782 SetSelectionStart() and SetSelectionEnd())
33783 - No longer redraws the whole control on selection change, now
33784 calculates delta between previous and new selection and only
33785 invalidates/redraws that area
33786 - Fixed FindPos() math off-by-one errors
33787 - Changed DeleteChars() to verify the provided tag covers the
33788 provided position, selections may have a tag that doesn't cover
33789 the position if the selection is at a tag border
33790 - Fixed off-by-one errors in DeleteChars()
33791 - Added missing streamlining check in DeleteChars() to remove
33793 - Implemented Invalidate() method, now properly calculates exposures
33794 between two given lines/positions
33795 - Implemented SetSelection()
33796 - Obsoleted and removed FixupSelection()
33797 - Improved RecalculateDocument() logic, removing code duplication
33799 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33801 * LibSupport.cs: changes to match different input/output arguments.
33803 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33805 * LibSupport.cs: added libsupport.so init routine.
33807 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
33809 * ControlBindingsCollection.cs
33810 - Throws an exception on null datasource when adding
33811 - Checks for duplicated bindings when adding
33813 2005-06-28 Jackson Harper <jackson@ximian.com>
33815 * TreeView.cs (OnKeyDown): Support left and right properly
33816 (navigates as well as expanding and collapsing.
33817 - Add support for Multiply, this expands all the selected nodes
33819 - Fix some tabbing.
33821 2005-06-28 Jackson Harper <jackson@ximian.com>
33823 * TreeView.cs: Implement keyboard navigation, currently supports,
33824 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33825 support for toggling checkboxes with the space bar.
33827 2005-06-28 Jackson Harper <jackson@ximian.com>
33829 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33832 2005-06-28 Jackson Harper <jackson@ximian.com>
33834 * TreeView.cs: Add missing event.
33836 2005-06-27 Peter Bartok <pbartok@novell.com>
33839 - Made line ending size configurable (now allows for counting
33840 lineendings as \n or \r\n)
33841 - Added margin to viewport to keep caret visible on right side
33842 - Fixed translation routines for line/pos to documentpos to consider
33843 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33844 - Fixed some line-endings to be unix style
33845 - Fixed Document.FormatText to perform it's calculations 1-based
33846 - Added descriptions for a few methods that might otherwise get
33848 - Added NOTE section with some basic conventions to remember at
33849 the top of the file
33850 - Major fixup for RichTextBox selection drawing:
33851 * Fixed crashes when multiple tags on a single line were selected
33852 * fixed selection box drawing not overlaying text
33853 * fixed bogus offset calculation for tags not starting at index 1
33854 * Switched behaviour from using multiple Substrings of a
33855 StringBuilder.ToString() to using multiple
33856 StringBuilder.ToString(start, length) statements, hoping this is
33857 faster (kept original version commented out in the code, in case
33858 original version was faster)
33859 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
33861 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33864 2005-06-27 Jackson Harper <jackson@ximian.com>
33866 * TabControl.cs: Move to the left and right with the arrow
33867 keys. These keys don't cycle beyond first and last like
33868 tab. Refresh all the tabs when scrolling them to the left or
33871 2005-06-27 Jackson Harper <jackson@ximian.com>
33874 - ToString: Added method
33875 - CreateParams: Remove TODO and comment
33876 - OnKeyDown: Cycle through bounds properly.
33877 - SelectedIndex: Scroll to the right or left if we need to
33878 display the newly selected tab.
33880 2005-06-23 Jackson Harper <jackson@ximian.com>
33882 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33885 2005-06-23 Jackson Harper <jackson@ximian.com>
33887 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33888 CTRL-SHIFT-TAB, and HOME, END are there any others?
33890 2005-06-23 Jackson Harper <jackson@ximian.com>
33892 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33894 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33896 * DataGridTextBoxColumn.cs: fixes and enhancements
33897 * ThemeWin32Classic.cs: fixes and enhancements
33898 * DataGridBoolColumn.cs: fixes and enhancements
33899 * DataGridDrawingLogic.cs: fixes and enhancements
33900 * CurrencyManager.cs: fixes and enhancements
33901 * DataGrid.cs: fixes and enhancements
33902 * DataGridColumnStyle.cs: fixes and enhancements
33904 2005-06-22 Jackson Harper <jackson@ximian.com>
33906 * TabControl.cs: Add some missing methods that just call into the
33907 base. Make the TabPageCollection's IList interface behave in the
33908 same manner as the MS implementation.
33910 2005-06-22 Peter Bartok <pbartok@novell.com>
33912 * TextControl.cs: Added sanity check
33914 - Fixed wrapping behaviour, don't set wrap on single line controls
33915 (this fixes the breakage of colordialog introduced in an earlier
33917 - Added rudimentary support for autoscrolling right-aligned controls
33918 (still needs fixing, also, center alignment scroll is missing)
33920 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
33922 * ScrollBar.cs: Fixes thumbpos on Maximum values
33924 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
33926 * PropertyGridView.cs: Pass context information to UITypeEditors
33928 2005-06-21 Peter Bartok <pbartok@novell.com>
33931 - Now calling PositionCaret with absolute space coordinates
33932 - Enabled vertical scrolling
33933 - Better tracking of scrollbar changes, tied into WidthChange
33935 - Improved cursor tracking
33936 - Removed debug output
33938 - PositionCaret coordinates are now works in absolute space, not
33940 - Improved tracking of document size
33941 - Added events for width and height changes
33943 2005-06-21 Peter Bartok <pbartok@novell.com>
33945 * Form.cs: Set focus to active control when form is activated
33947 - Added word-wrap functionality to RecalculateLine()
33948 - Added some short function descriptions for VS.Net to aid in
33949 writing dependent controls
33950 - Added Caret property, returning the current coords of the caret
33951 - Added ViewPortWidth and ViewPortHeight properties
33952 - Added Wrap property
33953 - Added CaretMoved event
33954 - Removed some old debug code
33955 - Split() can now create soft splits
33956 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33957 - Added method to format existing text
33958 - Fixed size/alignment calculations to use viewport
33959 - RecalculateDocument now can handle changing line-numbers while
33963 - Added some wrap logic, we don't wrap if alignment is not left
33964 - Added casts for scrollbar var, base class switched types to
33965 also support RichTextBoxA
33966 - Implemented handling of scrollbar visibility flags
33969 - Switched scrollbars type to RichTextBoxScrollBars to support
33971 - Added tracking of canvas width/height
33972 - Switched scrollbars to be not selectable (to keep focus on text)
33973 - Added central CalculateDocument() method to handle all redraw
33975 - Added ReadOnly support
33976 - Added WordWrap support
33977 - Fixed handling of Enter key (we now treat it as a DialogKey)
33978 - Fixed caret positioning when h or v scroll is not zero
33979 - Fixed placing/generation of vertical scrollbar
33980 - Added CalculateScrollBars() method to allow updating scrollbar
33981 limits and visibility
33982 - Fixed handling of horizontal scroll
33983 - Added handling of vertical scroll
33984 - Implemented auto-'jump' when caret moves to close to a left or
33985 right border and there is text to be scrolled into view (currently
33986 there's the potential for a stack overflow, until a bug in
33987 scrollbar is fixed)
33989 2005-06-21 Geoff Norton <gnorton@customerdna.com>
33991 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33993 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
33997 - return application/x-zerosize for files with size zero
33998 (if no extension pattern matches).
33999 - check matches collection for strings too.
34000 - return only the first mime type if the name value
34001 collection has more than one mime type.
34003 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
34005 * PropertyGrid.cs: Cleaned up some TODOs
34006 * PropertyGridView.cs: Added support for UITypeEditors
34008 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
34010 * DataGrid.cs: clears cached value
34012 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
34014 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
34015 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
34016 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
34017 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
34019 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
34021 * ThemeWin32Classic.cs: fixes colour
34023 2005-06-15 Peter Bartok <pbartok@novell.com>
34025 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
34026 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
34027 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
34028 * Control.cs: Added some MWFCategory and MWFDescription attributes
34029 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
34031 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
34033 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
34036 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
34038 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
34039 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
34040 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
34041 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
34042 * DataGrid.cs: default datagrid settings for Default Styles, fixes
34043 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
34045 2005-06-13 Jackson Harper <jackson@ximian.com>
34047 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
34048 isn't printed when the user enables dropping. (X11 does accept
34051 2005-06-13 Jackson Harper <jackson@ximian.com>
34053 * TreeView.cs: Remove some TODOS.
34055 2005-06-13 Jackson Harper <jackson@ximian.com>
34057 * Form.cs: Hook into the mdi framework.
34058 * MdiClient.cs: Use the base control collections add method so
34059 parents get setup correctly. Set the default back colour and dock
34061 * MdiChildContext.cs: New class, this bad actor handles an
34062 instance of an MDI window. Right now there is only basic
34063 support. You can drag, close, and resize windows. Minimize and
34064 Maximize are partially implemented.
34066 2005-06-13 Jackson Harper <jackson@ximian.com>
34068 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
34069 freaky when both vals are negative. NOTE: There are probably other
34070 places in XplatUIX11 that this needs to be done.
34072 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
34074 * DataGrid.cs: implement missing methods, move KeyboardNavigation
34075 * DataGridColumnStyle.cs: fixes signature
34077 2005-06-12 Jackson Harper <jackson@ximian.com>
34079 * XplatUIX11.cs: Use sizing cursors similar to the ones on
34082 2005-06-11 Jackson Harper <jackson@ximian.com>
34084 * StatusBarPanel.cs: Signature cleanups. Implement
34087 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
34089 * DataGridTextBoxColumn.cs: Honors aligment
34090 * GridColumnStylesCollection.cs: Contains is case unsensitive
34091 * GridTableStylesCollection.cs: several fixes
34092 * DataGridTableStyle.cs: default column creation
34093 * DataGridDrawingLogic.cs: fixes
34094 * CurrencyManager.cs: ListName property
34095 * DataGrid.cs: multiple styles support
34096 * DataGridColumnStyle.cs: fixes
34099 2005-06-10 Peter Bartok <pbartok@novell.com>
34101 * Control.cs(Select): Moved SetFocus call to avoid potential
34102 loops if controls change the active control when getting focus
34103 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
34104 the up/down buttons
34106 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
34108 * ImageListConverter.cs: Implemented
34110 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
34112 * MonthCalendar.cs: Wired in NumericUpDown control for year
34114 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
34116 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
34117 DoubleClick events, since they are not meant to be fired.
34119 2005-06-09 Peter Bartok <pbartok@novell.com>
34121 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
34122 Jonathan's standalone controls into MWF, implemented missing
34123 events, attributes and methods; added xxxAccessible classes
34124 * AccessibleObject.cs: Made fields internal so other classes
34125 can change them if needed
34127 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
34129 * UpDownBase.cs: Complete implementation
34130 * NumericUpDown.cs: Complete implementation
34131 * DomainUpDown.cs: Complete implementation
34133 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
34135 * DataGridTextBoxColumn.cs: drawing fixes
34136 * DataGridCell.cs: fixes ToString method to match MSNet
34137 * DataGridTableStyle.cs: fixes
34138 * DataGridBoolColumn.cs: fixes, drawing
34139 * DataGridDrawingLogic.cs: fixes, new methods
34140 * DataGridTextBox.cs: Keyboard and fixes
34142 - Keyboard navigation
34144 - Row selection (single, multiple, deletion, etc)
34147 2005-06-07 Jackson Harper <jackson@ximian.com>
34149 * ThemeWin32Classic.cs: Clear the background area when drawing
34152 2005-06-06 Peter Bartok <pbartok@novell.com>
34154 * ImageListStreamer.cs: Fixed signature for GetData
34155 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
34157 - Added missing ChildAccessibleObject class
34158 - Added missing OnXXXFocus overrides, switched to using those
34159 instead of the event handler
34161 - Added Parent property for ControlAccessibleObject
34164 - Added ResetBindings()
34165 * ListBindingConverter.cs: Implemented some methods
34166 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
34167 * ImageList.cs: Implemented basic handle scheme, removed TODOs
34168 * ContainerControl.cs: Fixed signature, now subscribing to the
34169 ControlRemoved event instead of overriding the handler, LAMESPEC
34170 * CurrencyManager.cs: Added missing attribute
34171 * MonthCalendar.cs: Added missing properties
34173 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
34175 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
34177 2005-06-06 Gaurav Vaish and Ankit Jain
34179 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
34180 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
34182 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
34184 * Control.cs: fixes CreateParams Width / Height.
34186 2005-06-05 Peter Bartok <pbartok@novell.com>
34188 * Win32DnD.cs: Removed compilation warnings
34190 2005-06-05 Peter Bartok <pbartok@novell.com>
34192 * Control.cs (CreateParams): Since we don't know if one of the
34193 properties we use is overridden, lets make sure if we fail accessing
34194 we continue with a backup plan
34196 2005-06-05 Peter Bartok <pbartok@novell.com>
34199 - Removed debug output
34200 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
34202 - Plugged resource leak
34203 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
34206 2005-06-05 Peter Bartok <pbartok@novell.com>
34208 * XplatUIWin32.cs: Removed DnD code
34209 * Win32DnD.cs: Implemented drop source and drop target functionality
34211 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
34213 * UpDownBase.cs: remove duplicate addition of event, enable some code
34214 that was commented out.
34215 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
34216 Validate input when a key is pressed. It works fine now for every
34217 combination of Hexadecimal. Only missing some drawing love when sharing
34218 space with other controls.
34220 2005-06-04 Peter Bartok <pbartok@novell.com>
34223 - We need to pass a window for DragDrop, so enable callback events
34224 - Added DnD callback events when being a DragSource
34225 * XplatUI.cs (StartDrag): Added window handle argument
34226 * XplatUIDriver.cs (StartDrag): Added window handle argument
34227 * QueryContinueDragEventArgs: Made fields internally accessible so
34228 drivers can set them
34229 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
34232 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
34234 * DataGridTextBoxColumn.cs: column text editing
34235 * DataGridTableStyle.cs: Respect columns styles created by the user
34236 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
34237 * DataGridBoolColumn.cs: bool column editing
34238 * DataGrid.cs: fixes to scrolling, properties, etc
34239 * DataGridTextBox.cs: handle keyboard
34240 * DataGridColumnStyle.cs: fixes
34242 2005-06-02 Jackson Harper <jackson@ximian.com>
34244 * ImageListStreamer.cs: Somewhat broken implementation of
34245 GetObjectData. The RLE needs some work to match MS properly.
34247 2005-06-02 Jackson Harper <jackson@ximian.com>
34249 * X11Dnd.cs: Attempting to keep at least one file in MWF
34252 2005-06-02 Peter Bartok <pbartok@novell.com>
34254 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
34257 2005-06-02 Peter Bartok <pbartok@novell.com>
34259 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
34260 * XplatUI.cs: Added DoDragDrop() method
34261 * XplatUIDriver.cs: Added DoDragDrop() method
34263 2005-06-02 Jackson Harper <jackson@ximian.com>
34265 * Splitter.cs: Implement BorderStyle.
34267 2005-06-02 Jackson Harper <jackson@ximian.com>
34269 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
34270 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
34273 2005-06-02 Peter Bartok <pbartok@novell.com>
34276 - Added Data setter
34277 - Fixed broken insertion code for SetData, now also
34278 overwrites any existing entry of the same format name
34279 * Hwnd.cs: Added list of pointers that automatically gets
34280 freed when the window is disposed
34281 * XplatUI.cs: Call driver initialization method when loading
34284 - OnDragLeave takes EventArgs, not DragEventArgs
34285 - Added setting of WS_EX_ACCEPTFILES style when dropping is
34287 - Forces style update when drop state changes
34288 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
34289 not perfect since we cannot (yet) call the IDataObject.GetData()
34290 method, we keep getting 0x80004005 error, dunno why)
34292 2005-06-02 Peter Bartok <pbartok@novell.com>
34294 * DragEventArgs.cs: Make fields internal so we can cache the
34295 object and re-set the fields from XplatUI
34297 2005-06-02 Jackson Harper <jackson@ximian.com>
34299 * Control.cs: Add some internal methods so the DnD subsystem can
34300 raise DnD events. Also call into the driver when AllowDrop is set.
34302 * XplatUIDriver.cs: New method for setting whether or not a window
34303 is allowed to accept drag and drop messages.
34305 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
34307 * ScrollBar.cs: Make sure that values sent in Scroll events
34308 are always between Maximum and Minimum.
34310 2005-06-01 Marek Safar <marek.safar@seznam.cz>
34312 * Menu.cs: Call MenuChanged when menuitem visibility has been
34314 * MenuItem.cs: Rebuild menu when item is (not) visible.
34315 * MainMenu.cs: MainMenu has special MenuChanged.
34316 * Theme.cs: Caption and FrameBorderSize are not fixed.
34317 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
34318 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
34320 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
34321 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
34323 2005-05-30 Jackson Harper <jackson@ximian.com>
34325 * DataFormat.cs: We can't statically initialize this stuff because
34326 it calls into the xplatui and could create a loop. So we lazy init
34329 2005-05-28 Jackson Harper <jackson@ximian.com>
34331 * Control.cs: Proper implementation of Product(Name/Version).
34333 2005-05-27 Jackson Harper <jackson@ximian.com>
34335 * DataObject.cs: Dont crash if no data is found.
34337 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
34338 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
34339 as per status page, guessing it should be set to true
34341 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
34343 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
34344 * DataGridTableStyle.cs: set proper formatting text, def header text
34345 * ThemeWin32Classic.cs: new themable paramaters
34346 * DataGridBoolColumn.cs: paint check box, get data, fixes
34347 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
34348 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
34349 * DataGridColumnStyle.cs: fixes
34350 * Theme.cs: new themable paramaters
34352 2005-05-26 Peter Bartok <pbartok@novell.com>
34354 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
34356 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34357 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
34359 2005-05-24 Peter Bartok <pbartok@novell.com>
34361 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
34362 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
34363 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
34364 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
34365 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
34366 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
34367 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
34368 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
34369 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
34370 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
34371 missing attributes, etc
34372 * DataGridPreferredColumnWidthTypeConverter.cs: Added
34374 2005-05-24 Peter Bartok <pbartok@novell.com>
34376 * Help.cs: Added, implemented trivial functions, throws up MessageBox
34377 when user tries to get help
34378 * DataObject.cs, DataFormats.cs, LinkArea.cs,
34379 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
34380 to suppress warnings
34381 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
34382 avoid unreachable code warning
34384 2005-05-20 Peter Bartok <pbartok@novell.com>
34386 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
34388 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34390 * DataGridTextBoxColumn.cs: Basic painting methods
34391 * DataGridTableStyle.cs: Set table style in the column
34392 * ThemeWin32Classic.cs: Use Theme for colors
34393 * DataGridDrawingLogic.cs: Implement more drawing
34394 * DataGrid.cs: drawing, theming, enhacements, fixes
34395 * DataGridColumnStyle.cs: fixes, drawing
34396 * Theme.cs: theming for Datagrid
34398 2005-05-20 Peter Bartok <pbartok@novell.com>
34400 * Cursor.cs: Implemented GetObjectData() method
34402 2005-05-20 Peter Bartok <pbartok@novell.com>
34404 * Cursors.cs: Added setting of cursor name
34406 - Implemented constructors
34407 - Implemented Draw and DrawStretched
34408 - Implemented Current property
34409 - Implemented == and != operators
34410 - Implemented Dispose()
34411 - Implemented ToString
34412 - Added missing attributes
34414 - Added missing reset for OverrideCursor when DoEvents is called
34415 - Fixed creation of cursor, logic was wrong
34417 - Added missing reset for OverrideCursor when DoEvents is called
34418 - Fixed creation of cursor, bit arrays were swapped
34419 * Clipboard.cs: Removed obsolete MonoTODO attribute
34421 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34423 * ComboBox.cs: fixes OnSelectedItemChanged
34424 * ControlBindingsCollection.cs: fixes item range check
34426 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
34429 - Calc preferred height properly
34430 - Implement missing properties
34432 * NumericUpDown.cs: Implement missing events
34434 2005-05-19 Jackson Harper <jackson@ximian.com>
34436 * TabControl.cs: New method that resizes the tab pages before
34437 redrawing them. This as needed as the control is double buffered
34438 and sizing will not be recalculated unless ResizeTabPages is
34440 * TabPage.cs: Set base.Text instead of Text in the constructor so
34441 that UpdateOwner does not get called. Use the new Redraw method of
34442 TabControl instead of Refresh so the sizing is recalculated.
34443 * ThemeWin32Classic.cs: Draw the text for button tabs.
34445 2005-05-19 Jackson Harper <jackson@ximian.com>
34447 * Control.cs: Paint control background images. Fix typo where
34448 PaintControlBackground was not getting called correctly.
34450 2005-05-19 Peter Bartok <pbartok@novell.com>
34452 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
34453 I can investigate, apparently I broke FileDialog
34455 2005-05-19 Marek Safar <marek.safar@seznam.cz>
34457 * AxHost.cs: Some simple properties.
34458 * Control.cs: window must be accessible after ctor.
34459 * Form.cs: Added TransparencyKey property.
34460 * TextBoxBase.cs: Implemented Clear. Text property can be null.
34461 * XplatUIWin32.cs: SetBorderStyle implemented.
34463 2005-05-18 Peter Bartok <pbartok@novell.com>
34465 * DataObject.cs: Entries are not global but particular to the
34466 DataObject, now it behaves that way
34467 * XplatUIWin32.cs: Implemented Clipboard methods
34468 * Clipboard.cs: Implemented
34469 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
34470 * XplatUIOSX.cs: Updated to final clipboard prototypes
34471 * XplatUIX11.cs: Implemented Clipboard methods
34472 * XplatUIDriver.cs: Updated to final clipboard prototypes
34473 * XplatUIStructs.cs:
34474 - Added BITMAPINFOHEADER struct
34475 - Added ClipboardFormats enum
34477 - Added ClipboardStruct
34478 - Added Atom enum items for clipboard types
34479 - Fixed atom types for Selection event structures
34481 - Added internal properties and methods for drivers to enumerate
34483 - Switched initialization method to allow drivers to assign their
34484 own IDs even for the MS predefined clipboard IDs
34485 * XplatUI.cs: Updated to final clipboard interface
34487 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34488 * PropertyGridView.cs: Fixed compiler warnings.
34490 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34491 * PropertyGrid.cs: Added some event calls
34492 * PropertyGridView.cs: Change drawing code to use double buffering
34493 * PropertyGridTextBox.cs: Changed Text property name
34494 * GridItem.cs: Added Bounds property.
34495 * GridEntry.cs: Added Bounds property.
34497 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
34499 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
34500 since GetType() may not return the correct type if the object is
34503 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
34505 * TreeNodeCollection.cs: fixes get/set item ranges
34507 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
34509 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
34511 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
34513 * ComboBox.cs: Fix item range comparation
34514 * ListView.cs: Fix item range comparation
34516 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
34519 - Clear example panel when OnPaint is called
34520 - Better solution for displaying the example panel text
34521 - Select default indexes in the ListBoxes
34523 2005-05-11 Geoff Norton <gnorton@customerdna.com>
34525 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
34527 2005-05-11 Peter Bartok <pbartok@novell.com>
34529 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
34530 * SelectionRangeConverter.cs: Implemented
34531 * PropertyGrid.cs: Fixed attribute value
34533 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
34534 - Added Sebastien Pouliot's CAS Stack Propagation fixes
34535 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
34536 that's common to all drivers. First methods to go there are
34537 Sebastien Pouliot's CAS Stack Propagation helper methods
34538 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
34539 Sebastien Pouliot for CAS Stack Propagation
34541 2005-05-11 Geoff Norton <gnorton@customerdna.com>
34544 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
34546 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
34548 * DataGridTextBoxColumn.cs: fixed some members
34549 * GridColumnStylesCollection.cs: indexed column is case insensitive
34550 * DataGridTableStyle.cs: fixes
34551 * ThemeWin32Classic.cs: add new theme parameter
34552 * Theme.cs: add new theme parameter
34553 * DataGridDrawingLogic.cs: Datagrid's drawing logic
34554 * DataGrid.cs: fixes, new internal properties, etc.
34555 * DataGridColumnStyle.cs: allows to set grid value
34558 2005-05-10 Peter Bartok <pbartok@novell.com>
34560 * AccessibleObject.cs:
34561 - Removed MonoTODO attribute on help, method is correct
34562 - Fixed Bounds property
34563 * AxHost.cs: Moved MonoTODO
34564 * ButtonBase.cs: Now setting AccessibleObject properties
34565 * RadioButton.cs: Setting proper AccessibleObject role
34566 * CheckBox.cs: Setting proper AccessibleObject role
34567 * ControlBindingsCollection.cs: Added properties, methods and attributes
34568 * DataFormats.cs: Fixed awkward internal API, and changed to enable
34569 userdefined DataFormats.Format items as well
34570 * ListControl.cs: Removed data_member from the public eye
34571 * OpenFileDialog.cs:
34572 - Made class sealed
34573 - Added missing attributes
34574 * SaveFileDialog.cs: Added missing attributes
34575 * ImageListStreamer.cs: Fixed code that caused warnings
34576 * LinkLabel.cs: Removed unreachable code
34577 * TreeView.cs: Fixed code that caused warnings
34578 * PropertyGridView.cs: Fixed code that caused warnings
34579 * GridColumnStylesCollection.cs: Added missing attributes
34580 * GridTableStylesCollection: Added missing attribute
34581 * PropertyManager: Added .ctor
34582 * SecurityIDType: Added
34583 * DataObject.cs: Implemented class
34584 * LinkArea.cs: Added missing attribute
34586 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
34588 * RadioButton.cs: call base method to allow to fire OnClick event
34589 * UpDownBase.cs: OnMouseUp call base method
34590 * CheckedListBox.cs: call base method before returning
34591 * TrackBar.cs: call base method before returning
34594 2005-05-10 Peter Bartok <pbartok@novell.com>
34596 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
34599 2005-05-10 Peter Bartok <pbartok@novell.com>
34601 * DataFormats.cs: Implemented
34602 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
34603 XplatUIX11.cs: Added Clipboard APIs
34604 * XplatUIWin32.cs: Implemented Clipboard APIs
34605 * FolderBrowserDialog.cs: Added missing event, attributes
34607 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
34609 * CheckBox.cs: call base method to allow to fire OnClick event
34611 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
34613 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
34615 2005-05-06 Peter Bartok <pbartok@novell.com>
34617 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
34618 * Screen.cs: Implemented
34619 * HelpNavigator.cs: Added
34620 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
34622 * HelpProvider.cs: Implemented all we can do until we have a CHM
34623 help library (which means that "What's This" does work now)
34625 2005-05-06 Jackson Harper <jackson@ximian.com>
34627 * XplatUIX11.cs: Fix waking up the main loop.
34629 2005-05-05 Peter Bartok <pbartok@novell.com>
34631 * XplatUI.cs: Updated revision
34632 * Form.cs: Removed enless loop
34633 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
34634 * Label.cs (OnPaint): Added call to base.OnPaint()
34635 * ToolTip.cs: Made ToolTipWindow reusable for other controls
34636 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
34637 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
34639 * ButtonBase.cs: Moved base.OnPaint() call to end of method
34640 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
34641 to ToolTip.ToolTipWindow for drawing and size methods; this allows
34642 reuse of ToolTipWindow by other controls
34643 * SizeGrip.cs: Moved base.OnPaint() call to end of method
34644 * XplatUIX11.cs: Now clipping drawing area (experimental)
34645 * PictureBox.cs: Moved base.OnPaint() call to end of method
34646 * Theme.cs: Fixed ToolTip abstracts to match new format
34647 * ErrorProvider.cs: Implemented
34649 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
34651 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
34655 - Implements LinkBehavior
34656 - Fixes many issues
34658 2005-05-03 Jackson Harper <jackson@ximian.com>
34660 * ListView.cs: Calculate the scrollbar positioning on resize and
34661 paint, so they get put in the correct place.
34663 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
34665 * ColorDialogs.cs: The small color panels are now handled by
34666 SmallColorControl. This fixes drawing of the focus rectangle
34667 and adds a 3D border.
34669 2005-05-03 Peter Bartok <pbartok@novell.com>
34671 * Control.cs: Modified version of Jonathan Chamber's fix for
34674 2005-05-03 Jackson Harper <jackson@ximian.com>
34676 * ListView.cs: Remove redraw variable. Control now handles whether
34677 or not a redraw needs to be done, and will only raise the paint
34678 event if redrawing is needed.
34680 2005-05-03 Jackson Harper <jackson@ximian.com>
34682 * Splitter.cs: No decorations for the splitter form. Cache the
34685 2005-05-03 Jackson Harper <jackson@ximian.com>
34687 * TreeView.cs: Use dashed lines to connect nodes. Use the
34688 ControlPaint method for drawing the focus rect instead of doing
34691 2005-05-02 Peter Bartok <pbartok@novell.com>
34693 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
34695 2005-04-29 Jackson Harper <jackson@ximian.com>
34697 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
34698 entire image buffer. Just clear the clipping rectangle.
34700 2005-04-29 Jackson Harper <jackson@ximian.com>
34702 * ThemeWin32Classic.cs: Don't draw list view items that are
34703 outside the clipping rectangle.
34705 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
34707 * ListBox.cs: added horizontal item scroll
34709 2005-04-29 Jackson Harper <jackson@ximian.com>
34711 * ThemeWin32Classic.cs: Remove some old debug code that was
34712 causing flicker with the new double buffering code.
34714 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
34716 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
34717 behave like combobox and comboboxlist (still not sure if this is
34720 2005-04-28 Jackson Harper <jackson@ximian.com>
34722 * ThemeWin32Classic.cs: Don't fill the middle of progress
34723 bars. This fills areas outside of the clip bounds that don't need
34726 2005-04-28 Jackson Harper <jackson@ximian.com>
34728 * Control.cs: Don't expose functionality to touch the image buffers.
34730 * ListView.cs: We do not need to (and no longer can) manipulate
34731 the image buffers directly. All of this is handled by Control.
34733 2005-04-28 Peter Bartok <pbartok@novell.com>
34735 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
34736 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
34737 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
34739 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
34742 - Adjust control's height for non-simple comboboxes (bug fix)
34744 * MenuAPI.cs: remove unused var
34745 * ScrollBar.cs: remove unsed var
34747 * ListBox.cs: unselect items when clearing
34749 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
34751 * ListControl.cs: honors OnPositionChanged and default Selected Item
34752 * ListBox.cs: unselect items when clearing
34754 2005-04-27 Jackson Harper <jackson@ximian.com>
34756 * X11Keyboard.cs: Initialize a default keyboard and give a warning
34757 if a "correct" keyboard is not found. This will make us not crash,
34758 but might give some users bad keyboard layouts...seems to be the
34759 same thing rewind does.
34761 2005-04-27 Jackson Harper <jackson@ximian.com>
34763 * BindingManagerBase.cs: Attach the current/position changed
34764 handlers to their respective events.
34766 2005-04-27 Jackson Harper <jackson@ximian.com>
34768 * Control.cs: Make sure that the first WM_PAINT does a full draw,
34770 * ThemeWin32Classic.cs: Don't fill the background for picture
34771 boxes. This could overright user drawing.
34772 * ComboBox.cs: Just fill the clipping rect not the entire client
34773 rect when drawing the background. This prevents pieces of the
34774 image buffer from getting overwritten and is theoretically faster.
34776 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
34778 * ComboBox.cs: Databinding support fixes, fire missing events
34779 * ListControl.cs: implement missing methods and properties, fixes
34780 * ThemeWin32Classic.cs: Databiding support on Drawing
34781 * CheckedListBox.cs: Databinding support fixes, fire missing events
34782 * ListBox.cs: Databinding support fixes, fire missing events
34784 2005-04-25 Peter Bartok <pbartok@novell.com>
34786 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34788 2005-04-25 Jackson Harper <jackson@ximian.com>
34790 * TreeView.cs: Use the horizontal scrollbars height not width when
34791 determining how much of the client area is available.
34793 2005-04-25 Jackson Harper <jackson@ximian.com>
34795 * Control.cs: Double buffering is handled differently now. As per
34796 the spec, the extra buffer is created in the WM_PAINT message and
34797 passed down to the control's drawing code.
34805 * PropertyGridView.cs:
34817 * DateTimePicker.cs:
34819 * TreeView.cs: Update to new double buffering system.
34820 * MonthCalendar.cs: Uncomment block, as Capture is now
34821 working. Update to new double buffering
34822 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34823 * PaintEventArgs.cs: New internal method allows us to set the
34824 graphics object. This is used for double buffering.
34825 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34826 rectangle. The internal paint_area var has been removed from
34827 StatusBar. The clipping rect should be used instead.
34828 * Theme.cs: Give the PictureBox drawing method a clipping rect.
34829 * TabPage.cs: The RefreshTabs method was removed, so just call the
34830 tab controls Refresh method now.
34831 * TabControl.cs: Update to new double buffering. Make sure the
34832 handle is created before sizing the tab pages, otherwise we will
34833 get stuck in a loop.
34835 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
34837 * LinkLabel.cs: Fix typo, bug #74719; patch
34838 from Borja Sanchez Zamorano
34840 2005-04-22 Jackson Harper <jackson@ximian.com>
34842 * TreeNode.cs: Implement Handle stuff.
34843 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34845 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
34847 * DataGridTextBoxColumn.cs: call base constructors, fixes
34848 * GridColumnStylesCollection.cs: missing events, methods, and functionality
34849 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34850 * DataGridTableStyle.cs: implements create default column styles
34851 * DataGridBoolColumn.cs: which types can handle
34852 * DataGrid.cs: missing methods, fixes, new functionality
34853 * DataGridColumnStyle.cs: fixes
34855 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
34856 * FolderBrowserDialog.cs:
34857 - Use a thread to fill the TreeView
34858 - Adjusted some sizes
34860 2005-04-19 Peter Bartok <pbartok@novell.com>
34862 * LinkLabel.cs: (Re-)create the pieces when setting the Text
34863 property. Fixes #74360.
34865 2005-04-19 Jackson Harper <jackson@ximian.com>
34867 * XEventQueue.cs: Lock when getting the lockqueue size.
34868 * PictureBox.cs: Call base OnPaint
34870 2005-04-19 Peter Bartok <pbartok@novell.com>
34872 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34873 messages were no longer being processed (this broke BeginInvoke)
34876 2005-04-18 Jackson Harper <jackson@ximian.com>
34878 * TreeView.cs: buglet that caused node images to get drawn
34879 regardless of whether or not they were in the clipping rectangle.
34881 2005-04-18 Jackson Harper <jackson@ximian.com>
34883 * CurrencyManager.cs: There are four rules for GetItemProperties:
34884 - If the type is an array use the element type of the array
34885 - If the type is a typed list, use the type
34886 - If the list contains an Item property that is not an object, use
34888 - use the first element of the list if there are any elements in
34891 2005-04-17 Jackson Harper <jackson@ximian.oom>
34893 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34894 click. This handles offsets for scrolling properly and reduces
34895 memory. Also fixed GetNode to not offset now that TopNode works
34897 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34899 2005-04-17 Jackson Harper <jackson@ximian.com>
34901 * CursorConverter.cs: Initial implementation.
34903 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34905 * ListControl.cs: work towards complex data binding support on ListControl
34906 * CurrencyManager.cs: work towards complex data binding support on ListControl
34907 * ListBox.cs: work towards complex data binding support on ListControl
34910 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
34912 * GridTableStylesCollection.cs: fixes name and constructor
34913 * DataGridTableStyle.cs: fixes
34914 * DataGridBoolColumn.cs: fixes names and constructors
34915 * DataGrid.cs: define methods and properties. Some init implementations
34916 * DataGridCell.cs: define methods and properties. Some init implementations
34917 * GridTablesFactory.cs: Define methods and properties
34919 2005-04-15 Geoff Norton <gnorton@customerdna.com>
34921 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
34922 graphics port changes. We still want the coordinates in global screen
34925 2005-04-14 Jackson Harper <jackson@ximian.com>
34927 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34928 check plus minus or checkbox clicks unless those features are enabled.
34930 2005-04-14 Jackson Harper <jackson@ximian.com>
34932 * TreeView.cs: Add methods for setting the top and bottom visible
34933 nodes. TreeNode::EnsureVisible uses these methods.
34934 * TreeNode.cs: Implement EnsureVisible
34936 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
34938 * Form.cs: Pospone menu assignation if the window has not been created yet
34939 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34942 2005-04-12 Jackson Harper <jackson@ximian.com>
34944 * TreeView.cs: Set the TopNode properly when scrolling
34945 occurs. This has the added benifit of reducing the amount of
34946 walking that needs to be done when drawing. Also removed an old
34948 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34950 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
34952 * Timer.cs: fixes interval setting when the timer is already enabled
34954 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
34956 * FolderBrowserDialog.cs: First approach
34958 2005-04-09 Peter Bartok <pbartok@novell.com>
34960 * FolderBrowserDialog: Added
34962 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
34964 * LinkLabel.cs: move drawing code into the theme
34965 * ThemeWin32Classic.cs: drawing code and painting background bugfix
34966 * Theme.cs: define DrawLinkLabel method
34968 2005-04-05 Jackson Harper <jackson@ximian.com>
34970 * BindingContext.cs: Use weak references so these bad actors don't
34971 stay alive longer then they need to.
34973 2005-04-05 Jackson Harper <jackson@ximian.com>
34975 * ListControl.cs: Basic implementation of complex databinding.
34977 * ListBox.cs: Add calls to ListControl databinding methods.
34979 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
34982 - Don't change PopupButtonState to Normal when the
34983 PopupButton gets pressed several times.
34984 - Renamed ButtonPanel to PopupButtonPanel
34986 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
34988 * ColorDialog.cs: Use cached objects instead of creating them
34989 * LinkLabel.cs: Use cached objects instead of creating them
34990 * Splitter.cs: Use cached objects instead of creating them
34991 * FontDialog.cs: Use cached objects instead of creating them
34992 * PropertyGridView.cs: Use cached objects instead of creating them
34993 * MessageBox.cs: Use cached objects instead of creating them
34994 * FileDialog.cs: Use cached objects instead of creating them
34995 * ThemeWin32Classic.cs: Use cached objects instead of creating them
34996 * TreeView.cs: Use cached objects instead of creating them
34998 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
35000 * Control.cs: use Equals to compare the font since no == op
35001 * ScrollBar.cs: use Equals to compare the font since no == op
35003 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
35005 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
35007 2005-04-01 Jackson Harper <jackson@ximian.com>
35009 * Binding.cs: Implement IsBinding.
35010 * BindingManagerBase.cs:
35011 * PropertyManager.cs:
35012 * CurrencyManager.cs: Add IsSuspended property.
35014 2005-04-01 Jackson Harper <jackson@ximian.com>
35016 * Binding.cs: Had some IsAssignableFrom calls backwards.
35018 2005-04-01 Jackson Harper <jackson@ximian.com>
35020 * Binding.cs: Handle null data members when pulling data.
35021 * PropertyManager.cs: Handle the data member being a property that
35024 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
35026 * DataGridTextBoxColumn.cs: fixes signature
35027 * DataGrid.cs: calls right constructor
35029 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
35031 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
35032 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
35033 * GridTableStylesCollection.cs: implements GridTableStylesCollection
35034 * DataGridTableStyle.cs: implements DataGridTableStyle
35035 * DataGridBoolColumn.cs: implements DataGridBoolColumn
35036 * DataGridTextBox.cs: implements DataGridTextBox
35037 * DataGridColumnStyle.cs: implements DataGridColumnStyle
35039 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
35041 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
35043 2005-03-29 Peter Bartok <pbartok@novell.com>
35046 - Properly implemented CompanyName property
35047 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
35048 returns a path that includes CompanyName, ProductName and
35049 Version (fixes bug #70330)
35051 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
35053 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
35056 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
35058 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
35060 - Added ReadOnly CheckBox
35061 - Further refactoring: moved some code from Open-/SaveFileDialog
35064 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
35066 * OpenFileDialog.cs: Fixed CheckFileExists
35068 Moved FileView and DirComboBox outside FileDialog class.
35069 They can now be used outside FileDialog
35071 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
35073 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
35074 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
35076 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
35078 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
35079 - Added missing CreatePrompt property in SaveDialog
35080 - Overall SaveDialog handling should be better now
35081 - Added non standard ShowHiddenFiles property
35082 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
35083 - Added InitialDirectory and RestoreDirectory support
35085 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
35087 * FileDialog.cs: Made dirComboBox usable
35089 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
35091 * FileDialog.cs: Added Filter support (case sensitiv)
35093 2005-03-24 Jackson Harper <jackson@ximian.com>
35095 * TabControl.cs: Need a couple more pixels for the lines.
35097 2005-03-23 Jackson Harper <jackson@ximian.com>
35099 * TabControl.cs: Give the tab page focus when it is selected.
35101 2005-03-23 Jackson Harper <jackson@ximian.com>
35103 * TabControl.cs: Account for the drawing of tabs borders when
35104 invalidating. If the slider was clicked dont do click detection on
35107 2005-03-23 Jackson Harper <jackson@ximian.com>
35109 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
35111 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
35113 * CategoryGridEntry.cs: Added
35114 * GridItem.cs: Added helper properties
35115 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
35116 * GridEntry.cs: Updated code for collection
35117 * PropertyGrid.cs: Cleaned up some formatting
35118 * PropertyGridView.cs: Added drop down functionality for enums.
35119 * GridItemCollection.cs: Added enumerator logic
35120 * PropertyGridEntry.cs: Added
35122 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
35125 - Removed unnecessary commented code
35126 - Fixed handling for entering the filename manually in the combobox
35128 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
35130 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
35132 2005-03-18 Peter Bartok <pbartok@novell.com>
35134 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
35135 them being touching the border
35137 2005-03-18 Peter Bartok <pbartok@novell.com>
35139 * TextControl.cs: Quick hack to center text better
35141 2005-03-18 Peter Bartok <pbartok@novell.com>
35144 - Don't throw NotImplemented exceptions, just print a notice once
35145 instead (requested by Miguel). This makes running existing SWF
35148 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
35149 - Added context menu trigger on right click
35150 * Panel.cs: Trigger invalidate on resize
35152 - Removed old double-buffer drawing
35153 - Added ResizeRedraw style to force proper update of statusbar
35155 - Removed debug output
35156 * ThemeWin32Classic.cs:
35157 - Fixed drawing of status bar, now draws Text property if there
35158 are no defined panels
35160 2005-03-18 Jackson Harper <jackson@ximian.com>
35162 * ImageList.cs: When the image stream is set pull all the images
35164 * ImageListStreamer.cs: Implement reading image list streams.
35166 2005-03-18 Peter Bartok <pbartok@novell.com>
35168 * ThemeWin32Classic.cs (DrawPictureBox):
35169 - Fixed calculations for centered drawing
35170 - Fixed drawing for normal mode, not scaling the image on normal
35172 2005-03-18 Peter Bartok <pbartok@novell.com>
35174 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
35177 - Made Open/Save button the accept button for FileDialog
35178 - Tied the cancel button to the IButtonControl cancel button
35179 - Save/Open now properly builds the pathname
35180 - Now handles user-entered text
35181 - Preventing crash on right-click if no item is selected
35182 - Fixed Text property, now uses contents of textbox
35183 - Fixed SelectedText property, now just returns the text part that
35184 is selected in the text box
35186 2005-03-18 Jackson Harper <jackson@ximian.com>
35188 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
35189 rect, make sure to de-adjust the interior rect after drawing the
35192 2005-03-18 Peter Bartok <pbartok@novell.com>
35194 * MenuAPI.cs: Remove menu *before* executing selected action to
35195 prevent the menu from 'hanging around'
35197 2005-03-17 Geoff Norton <gnorton@customerdna.com>
35199 * XplatUIOSX.cs: Implemented WorkingArea property
35201 2005-03-17 Peter Bartok <pbartok@novell.com>
35203 * XplatUIX11.cs: Fixed menu coord calculations
35204 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
35205 for calculating offsets
35207 2005-03-17 Peter Bartok <pbartok@novell.com>
35209 * Hwnd.cs: Do not consider menu presence for default client
35210 rectangle location/size
35211 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
35212 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
35213 translation functions
35214 * FileDialog.cs: Fixed (what I presume is a) typo
35216 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
35218 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
35219 X access (avoids X-Async errors)
35221 2005-03-16 Jackson Harper <jackson@ximian.com>
35223 * TabControl.cs: Raise the SelectedIndexChanged event.
35225 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
35227 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
35228 - Removed vertical ToolBar and replaced it with a custom panel
35229 (desktop and home button already work)
35230 - Added Help button (some controls get resized or relocated then)
35231 - Draw correct text depending on Open or Save.
35232 - Fixed some typos...
35234 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
35237 - Only change Maximum and Minimum when need it (bug fix)
35239 2005-03-15 Peter Bartok <pbartok@novell.com>
35241 * Form.cs: Use Handle for icon, to trigger creation if
35242 the window does not yet exist
35244 - CanSelect: Slight performance improvement
35245 - Focus(): Preventing possible recursion
35246 - Invalidate(): Removed ControlStyle based clear flag setting
35247 - WM_PAINT: fixed logic for calling OnPaintBackground
35248 - WM_ERASEBKGND: Fixed logic, added call to new driver method
35249 EraseWindowBackground if the control doesn't paint background
35251 - Moved EraseWindowBackground() method to internal methods
35252 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
35253 is sent via SendMessage on BeginPaint call on Win32
35255 - Added EraseWindowBackground() method
35256 - No longer sends WM_ERASEBKGND on .Expose, but on call to
35257 PaintEventStart, which more closely matches Win32 behaviour
35258 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
35259 - Fixed SetFocus() to properly deal with client and whole windows
35260 * Hwnd.cs: Added ErasePending property
35261 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
35262 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
35264 2005-03-12 Geoff Norton <gnorton@customerdna.com>
35267 - Fix hard loop when timers exist.
35268 - Fix bugs with middle and right click for 3 button mice.
35270 2005-03-11 Peter Bartok <pbartok@novell.com>
35273 - get_WorkingArea: Need to call X directly, GetWindowPos only
35274 returns cached data now
35275 - Added sanity check to GetWindowPos hwnd usage
35277 2005-03-11 Jackson Harper <jackson@ximian.com>
35279 * BindingManagerBase.cs: This method isn't used anymore as
35280 PullData now updates the data in the control.
35282 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
35284 * Form.cs: fixes menu drawing on X11
35285 * MenuAPI.cs: fixes menu drawing on X11
35287 2005-03-11 Peter Bartok <pbartok@novell.com>
35289 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
35290 from Jonathan Gilbert; should fix bug #73606
35291 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
35292 in Screen coordinates. Thanks, Jordi.
35293 * Form.cs: Added missing attribute
35295 2005-03-11 Peter Bartok <pbartok@novell.com>
35298 - Rudimentary Mdi support
35299 - Removed outdated FormParent code
35300 - Implemented lots of missing properties and methods, still missing
35301 transparency support
35302 - Added missing attributes
35303 - Implemented support for MaximumBounds
35304 - Added firing of various events
35305 * XplatUI.cs: Added SetIcon() method
35306 * XplatUIDriver.cs: Added SetIcon() abstract
35307 * XplatUIOSX.cs: Stubbed out SetIcon() method
35309 - Implemented SetIcon() support
35310 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
35311 - Switched to unix line endings
35313 - Made POINT internal so for can access it as part of MINMAX
35314 - Implemented SetIcon() support
35315 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
35316 native Mdi support again, might have to go managed)
35317 * Control.cs: Now fires the StyleChanged event
35318 * MdiClient.cs: Added; still mostly empty
35320 2005-03-10 Peter Bartok <pbartok@novell.com>
35322 * SaveFileDialog.cs: Added emtpy file
35324 2005-03-08 Peter Bartok <pbartok@novell.com>
35326 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
35327 in turn triggers OnCreateContro) when creating a handle for the
35329 * TextControl.cs: Fixed endless loop in certain cases when
35330 replacing the current selection
35332 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
35335 - Honors NewValue changes in Scroll events allowing apps to change it
35336 - Adds First and Last Scroll events
35337 - Fixes Thumb events
35339 2005-03-07 Peter Bartok <pbartok@novell.com>
35341 * Hwnd.cs: Added DefaultClientRectangle property
35342 * XplatUI.cs: Now using the X11 driver Where() method, which provides
35343 more detailed debug information
35345 - Fixed size-change feedback loop, where we would pull an old size
35346 off the queue and mistakenly change our window's size to an
35348 - Now compressing ConfigureNotify events, to reduce looping and
35350 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
35353 2005-03-07 Jackson Harper <jackson@ximian.com>
35355 * Binding.cs: Push data pushes from data -> property. Check if the
35356 property is readonly when attempting to set it.
35358 2005-03-07 Jackson Harper <jackson@ximian.com>
35360 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
35361 instead of IsSubclassOf. Pulling data now sets the value on the
35363 * PropertyManager.cs:
35364 * CurrencyManager.cs: Just need to pull data when updating now,
35365 because PullData will set the value on the control.
35367 2005-03-04 Jackson Harper <jackson@ximian.com>
35369 * Binding.cs: Implement data type parsing and converting on pulled
35370 data. TODO: Are there more ways the data can be converted?
35372 2005-03-04 Jackson Harper <jackson@ximian.com>
35374 * Binding.cs: Support <Property>IsNull checks. Also bind to the
35375 controls Validating method so we can repull the data when the
35376 control loses focus.
35378 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
35381 - Fixes null string format
35384 - Adds enum type checks
35385 - Fixes redrawing and recalc need after changing some properties
35386 - Fixes on focus_item set after the event
35387 - Fixes adding columns after the control has been created
35389 * ThemeWin32Classic.cs:
35390 - Fixes CheckBox focus rectangle
35391 - Fixes ColumnHeader drawing
35394 2005-03-03 Jackson Harper <jackson@ximian.com>
35396 * Binding.cs: Bind to <Property>Changed events so we can detect
35397 when properties are changed and update the data.
35399 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
35402 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
35403 - Fixes ImageList constructor with ImageList container
35404 - Fixes image scaling (wrong parameters at DrawImage)
35406 2005-02-02 Jackson Harper <jackson@ximian.com>
35408 * Binding.cs: Make property searches case-insensitive. Eliminate
35409 some duplicated code.
35411 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
35414 - Handle focus event
35415 - Fix scrollbar events
35416 - Discard highlighted item if remove it
35417 - Fixes SelectedItem with strings
35419 2005-03-01 Peter Bartok <pbartok@novell.com>
35422 - Fixed Visible property, now follows (once again) parent chain
35423 to return false if any control in the chain is visible=false
35424 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
35425 - Fixed several places where is_visible instead of Visible was used
35426 - Implemented FIXME related to focus selection when setting focused
35427 control to be invisible
35429 * XplatUIWin32.cs: Now using proper method to find out if window is
35430 visible. Thanks to Jordi for pointing it out
35432 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
35434 * ComboBox.cs: show/hide scrollbar instead of creating it
35436 2005-02-27 Jackson Harper <jackson@ximian.com>
35438 * CurrencyManager.cs: Add PositionChanged stuff.
35440 2005-02-27 Peter Bartok <pbartok@novell.com>
35442 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
35443 * XplatUIOSX.cs: Added GetMenuOrigin() stub
35444 * XplatUIWin32.cs: Implemented GetMenuOrigin()
35446 - Implemented GetMenuDC()
35447 - Implemented GetMenuOrigin()
35448 - Implemented ReleaseMenuDC()
35449 - Implemented generation of WM_NCPAINT message
35450 - Implemented generation and handling of WM_NCCALCSIZE message
35451 * Form.cs: Added debug helper message for Jordi's menu work
35453 - Modified ClientRect property; added setter, fixed getter to handle
35454 setting of ClientRect
35455 - Added MenuOrigin property
35457 2005-02-26 Peter Bartok <pbartok@novell.com>
35460 - Destroys the caret if a window that's being destroyed contains it
35461 - Ignores expose events coming from the X11 queue for windows that
35462 already are destroyed
35463 - Now uses the proper variable for handling DestroyNotify, before we
35464 marked the wrong window as destroyed
35465 - Improved/added some debug output
35467 2005-02-26 Peter Bartok <pbartok@novell.com>
35469 * X11Keyboard.cs: Fixes to work on 64bit systems
35471 2005-02-26 Peter Bartok <pbartok@novell.com>
35474 - Now calling OnHandleDestroyed from DestroyHandle()
35475 instead of Dispose()
35476 - Removed bogus call to controls.Remove() from DestroyHandle()
35478 2005-02-26 Peter Bartok <pbartok@novell.com>
35480 * Control.cs: Properly destroy child windows when our handle is
35483 2005-02-25 Peter Bartok <pbartok@novell.com>
35486 - Added 'DriverDebug' define to allow tracing XplatUI API calls
35487 - Alphabetized Static Methods and Subclasses
35490 - Added XException class to allow custom handling of X11 exceptions
35491 - Created custom X11 error handler, tied into XException class
35492 - Added support for MONO_XEXCEPTIONS env var to allow the user
35493 to either throw an exception on X errors or continue running
35494 after displaying the error
35495 - Added handling of DestroyNotify message
35496 - Added handler for CreateNotify message (still disabled)
35497 - Improved (tried to at least) Where method to provide file and lineno
35499 - Added XErrorHandler delegate
35500 - Added XRequest enumeration (to suppor translation of errors)
35502 2005-02-25 Jackson Harper <jackson@ximian.com>
35504 * PropertyManager.cs: Implement editing features
35505 * CurrencyManager.cs:
35506 * Binding.cs: First attempt at UpdateIsBinding
35507 * BindingManagerBase.cs: Call UpdateIsBinding before
35508 pushing/pulling data.
35510 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
35512 * MenuAPI.cs: Respect disabled items
35513 * ThemeWin32Classic.cs
35514 - Caches ImageAttributes creation for DrawImageDisabled
35515 - Fixes vertical menu line drawing
35516 - Draws disabled arrows in disable menu items
35518 2005-02-24 Peter Bartok <pbartok@novell.com>
35521 - Added UserData property to allow associating arbitrary objects
35523 - Fixed leak; now removing Hwnd references from static windows array
35525 - Fixed Graphics leak in PaintEventEnd
35526 - Removed usage of HandleData, switched over to Hwnd class
35527 * HandleData.cs: Removed, obsoleted by Hwnd.cs
35529 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
35531 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
35532 * ScrollBar.cs: Fixes bug
35533 * TrackBar.cs: removes death code, clipping, mimize refreshes,
35534 keyboard navigation enhancements
35536 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
35538 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
35539 * GroupBox.cs: Add control styles
35540 * Label.cs: Add control styles
35541 * UpDownBase.cs: Add control styles
35542 * ListBox.cs: Add control styles
35543 * XplatUIWin32.cs: Fixes wrong parameter order
35546 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
35548 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
35550 2005-02-23 Jackson Harper <jackson@ximian.com>
35552 * PropertyManager.cs: Implement property binding. This doesn't
35553 seem to work yet though as (I think) there are some bugs in
35554 System.ComponentModel.PropertyDescriptor.
35555 * BindingContext.cs: Use new PropertyManager constructor.
35557 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
35559 * ProgressBar.cs: use clip region in ProgressBar
35560 * ThemeWin32Classic.cs: use clip region in ProgressBar
35562 2004-02-22 Jackson Harper <jackson@ximian.com>
35564 * BindingsCollection.cs: Remove some debug code.
35566 2005-02-22 Jackson Harper <jackson@ximian.com>
35568 * BindingContext.cs:
35569 * ControlBindingsCollection.cs:
35570 * CurrencyManager.cs:
35572 * BindingManagerBase.cs: Initial implementation
35573 * BindingsCollection.cs: Add an internal contains method that the
35574 BindingManagerBase uses to ensure bindings aren't added twice to
35576 * PropertyManager.cs: Stubbed out.
35578 * ContainerControl.cs: Hook up databinding
35580 2005-02-22 Geoff Norton <gnorton@customerdna.com>
35583 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
35584 Fixed Invalidate/Update chain.
35585 Fixed tons of other minor bugs (this is almost a complete rewrite).
35587 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
35589 * ComboBox.cs: do subcontrol creation when the control is created
35591 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35593 * Label.cs: fixes image drawing (image and imagelist)
35594 * ThemeWin32Classic.cs: cache brushes
35596 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35598 * Form.cs: Move menu drawing code to Theme class
35599 * ComboBox.cs: Move ComboBox drawing code to Theme class
35600 * MenuItem.cs: Move menu drawing code to Theme class
35601 * MenuAPI.cs: Move menu drawing code to Theme class
35602 * ThemeWin32Classic.cs: New methods
35603 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
35604 * ListBox.cs: Move Listbox drawing code to Theme class
35605 * Theme.cs: New methods
35607 2005-02-20 Peter Bartok <pbartok@novell.com>
35610 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
35611 only process mnemonics on those)
35612 - Fixed event sequence for key handling; first calling
35613 ProcessKeyEventArgs now
35615 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
35616 for processing non-character keys
35617 - Fixed WM_CHAR to generate proper event sequence before processing
35618 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
35621 2005-02-19 Peter Bartok <pbartok@novell.com>
35623 * UserControl.cs: Added TextChanged event; added attributes
35624 * SizeGrip.cs: Implemented resizing and optional display of grip
35625 * Form.cs: Fixed attribute
35626 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35627 Changed meaning of ScrollWindow bool argument; instead of the
35628 clear attribute (which will be true usually anyway), it gives the
35629 option of moving child controls as well.
35631 - Changed to match new ScrollWindow argument
35632 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
35633 now handles the implicit parent window a WM puts around us
35634 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
35636 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
35637 * TreeView.cs: Adjusted to new ScrollWindow arguments
35639 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
35641 * Form.cs: Menu integration with non-client area
35642 * MenuItem.cs: Menu integration with non-client area
35643 * MenuAPI.cs: Menu integration with non-client area
35645 2005-02-18 Peter Bartok <pbartok@novell.com>
35647 * MethodInvoker.cs: Added
35648 * MdiLayout.cs: Added
35649 * SendKeys.cs: Started implementation
35650 * ErrorIconAlignment.cs: Added
35652 2005-02-18 Peter Bartok <pbartok@novell.com>
35654 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
35655 * Form.cs: Added handling for Menu-related Non-client messages
35657 2005-02-17 Peter Bartok <pbartok@novell.com>
35659 * UpDownBase.cs: Fixed typo, compilation errors
35660 * DomainUpDown.cs: Fixed attribute value
35662 2005-02-16 Miguel de Icaza <miguel@novell.com>
35664 * UpDownBase.cs: Attach entry events.
35666 Add ForeColor property, Focused, InterceptArrowKeys (interception
35667 does not work yet).
35669 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
35672 - Redraw non client are on Setmenu
35673 - Calc proper menu starting point
35675 2005-02-17 Peter Bartok <pbartok@novell.com>
35677 * Application.cs: Fixed message_filter check
35679 2005-02-17 Peter Bartok <pbartok@novell.com>
35681 * Application.cs: Now calls registered message filters
35682 * DockStyle.cs: Fixed attribute
35683 * Form.cs: Fixed attribute
35684 * Menu.cs: Fixed attribute
35685 * ToolTip.cs: Fixed attribute
35686 * TreeNode.cs: Added missing attributes and arranged in regions
35687 * PropertyGrid.cs: Fixed signatures
35688 * TreeNodeCollection.cs: Added attributes
35689 * Splitter.cs: Added missing attributes; arranged into regions
35690 * TabPage.cs: Added missing attributes; arranged into regions
35691 * TextBoxBase.cs: Added missing attributes
35692 * TextBox.cs: Added missing attributes
35693 * ArrangeDirection.cs: Added missing attributes
35694 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
35695 * ToolBarButton.cs: Fixed attributes
35696 * AnchorStyles.cs: Fixed attribute
35697 * TrackBar.cs: Fixed attributes
35698 * TabControl.cs: Added missing attributes and arranged into regions
35699 * ToolBar.cs: Fixed attribute
35700 * StatusBar.cs: Fixed signature, organized into regions and added
35702 * StatusBarPanel.cs: Fixed attributes
35703 * ContentsResizedEventArgs.cs: Implemented
35704 * ContentsResizedEventHandler.cs: Implemented
35705 * DateBoldEventArgs.cs: Implemented
35706 * DateBoldEventHandler.cs: Implemented
35707 * UpDownEventArgs.cs: Implemented
35708 * UpDownEventHandler.cs: Implemented
35710 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
35712 * Form.cs: first Menu NC refactoring
35713 * MenuAPI.cs: first Menu NC refactoring
35715 2005-02-16 Peter Bartok <pbartok@novell.com>
35717 * ImeMode.cs: Added missing attributes
35718 * Menu.cs: Fixed attribute
35719 * GroupBox.cs: Fixed attribute
35720 * Label.cs: Fixed attribute
35721 * ColorDialog.cs (RunDialog): Removed TODO attribute
35722 * ComboBox.cs: Fixed attributes
35723 * ListControl.cs: Added missing attributes
35724 * PropertyGrid.cs: Fixed attributes
35725 * Control.cs: Fixed attributes
35726 * ListViewItem.cs: Added TypeConverter attribute
35727 * NotifyIcon.cs: Fixed attributes
35728 * ListView.cs: Fixed attributes
35729 * ButtonBase.cs: Fixed attribute
35730 * ImageList.cs: Added missing attributes
35731 * ContainerControl.cs: Fixed signature
35732 * CheckedListBox.cs: Fixed attribute; added missing attributes
35733 * Panel.cs: Fixed attributes
35734 * PropertyTabChangedEventArgs.cs: Added missing attribute
35735 * PropertyValueChangedEventArgs.cs: Added missing attribute
35736 * Binding.cs: Fixed attribute
35737 * ListViewItemConverter: Implemented ListViewSubItemConverter class
35738 * ListBox.cs: Fixed attribute; added missing attributes;
35739 * ScrollableControl.cs: Added missing attributes
35740 * PictureBox.cs: Added missing attributes; implemented missing property
35741 * DateTimePicker.cs: Added missing attributes
35742 * Theme.cs (ToolWindowCaptionHeight): Fixed type
35743 * MonthCalendar.cs: Fixed attributes
35744 * StatusBarPanel.cs: Added missing attributes
35745 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
35747 2005-02-16 Peter Bartok <pbartok@novell.com>
35749 * TextBoxBase.cs: The previous method to enforce height yet remember
35750 the requested high was less than ideal, this is an attempt to do
35752 * Control.cs: Added comment about possible problem
35753 * Copyright: Updated format
35754 * GridItemType.cs: Fixed swapped values
35756 2005-02-15 Jackson Harper <jackson@ximian.com>
35758 * BaseCollection.cs: Use property so we never access an
35759 uninitialized list. Also initialize the list in the property.
35761 2005-02-15 Peter Bartok <pbartok@novell.com>
35763 * GroupBox.cs (ProcessMnemonic): Implemented
35764 * Label.cs (ProcessMnemonic): Implemented
35765 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35768 2005-02-15 Peter Bartok <pbartok@novell.com>
35770 * RadioButton.cs (ProcessMnemonic): Implemented
35771 * CheckBox.cs (ProcessMnemonic): Implemented
35773 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35775 - Added internal method to allow calling ProcessMnemonic from other
35777 * ContainerControl.cs:
35778 - Started support for handling validation chain handling
35779 - Implemented ProcessMnemonic support
35780 - Added Select() call to Active, to make sure the active control
35782 * Form.cs: Setting toplevel flag for Forms (this was lost in the
35783 FormParent rewrite)
35784 * ThemeWin32Classic.cs:
35785 - DrawCheckBox(): Fixed stringformat to show hotkeys
35786 - DrawRadioButton(): Fixed stringformat to show hotkeys
35787 * CommonDialog.cs: Removed WndProc override, not needed
35789 2005-02-14 Peter Bartok <pbartok@novell.com>
35791 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35792 missed those in the rewrite
35794 2005-02-14 Miguel de Icaza <miguel@novell.com>
35796 * NumericUpDown.cs (Increment, ToString): Add.
35797 (DecimalPlaces): implement.
35801 * UpDownBase.cs: Add the designer attributes.
35803 2005-02-13 Peter Bartok <pbartok@novell.com>
35805 * Panel.cs: Removed border_style, now in Control
35806 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35807 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35809 2005-02-13 Peter Bartok <pbartok@novell.com>
35811 * MouseButtons.cs: Added missing attributes
35812 * XplatUIStructs.cs: Added enumeration for title styles
35813 * LeftRightAlignment.cs: Added missing attributes
35814 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35815 it compatible with Graphics.FromHwnd()
35816 * SelectedGridItemChangedEventArgs.cs: Fixed property type
35817 * Keys.cs: Added missing attributes
35818 * SelectionRange.cs: Added missing attributes
35819 * SelectionRangeConverter.cs: Added
35821 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35822 ReleaseMenuDC methods
35823 - Renamed ReleaseWindow to UngrabWindow
35824 - Added proper startup notice to allow version identification
35826 - Added missing attributes
35827 - Removed FormParent concept
35828 * Label.cs: Removed border_style field, now in Control
35829 * RadioButton.cs: Now properly selects RadioButton when focus is
35831 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35833 - Added missing attributes
35834 - Added borderstyle handling
35835 - Removed FormParent concept support
35836 - Fixed calls to XplatUI to match changed APIs
35837 - Fixed bug that would case us to use disposed Graphics objects
35838 - Removed unneeded internal methods
35839 - PerformLayout(): Fixed to handle DockStyle.Fill properly
35840 - SelectNextControl(): Fixed to properly check common parents
35841 * TextBoxBase.cs: Removed border_style field (now in Control)
35843 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35844 fixed calculations for form size
35845 - Added support for localized strings and icons
35846 - Improved form size calculations, added border
35847 * ListView.cs: Removed border_style field (now in Control)
35848 * X11Structs.cs: Moved several structs from X11 driver here
35849 * X11Keyboard.cs: Changed debug message
35850 * Application.cs: Removed FormParent concept support
35852 - Resetting end_modal flag
35853 - Removed FormParent concept support
35854 * NativeWindow.cs: Removed FormParent concept support
35855 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35856 Client area and Non-Client whole window to allow support for WM_NC
35858 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35859 prevent using it until it supports Hwnd as per Geoff Norton's request
35860 * ToolBar.cs: Fixed drawing, was not doing proper drawing
35861 * PictureBox.cs: Removed border_style field, now in Control
35862 * XplatUIWin32.cs: Added new driver methods
35864 2005-02-12 Peter Bartok <pbartok@novell.com>
35866 * OpacityConverter.cs: Implemented
35867 * Hwnd.cs: Internal class to support drivers that need to emulate
35868 client area/non-client area window behaviour
35870 2005-02-11 Peter Bartok <pbartok@novell.com>
35872 * KeysConverter.cs: Implemented
35874 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
35876 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35877 * LinkLabel: Added missing attributes
35878 * MainMenu.cs: fixes ToString
35879 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35880 * ListBox.cs: fixes event position
35881 * TrackBar.cs: adds missing attributes and events
35883 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
35885 * MenuItem.cs: Use SystemInformation and bug fixes
35886 * MenuAPI.cs: Use SystemInformation and bug fixes
35888 2005-02-09 Jackson Harper <jackson@ximian.com>
35890 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35891 their keystate otherwise things like VK_MENU get stuck "on".
35893 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
35895 * ListBox.cs: Fixes AddRange bug
35897 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
35900 - Add missing attributes
35901 - Add missing method
35903 * CheckedListBox.cs: Added missing attributes
35904 - Add missing attributes
35905 - Remove extra method
35907 * ComboBox.cs: Added missing attributes
35908 * VScrollBar.cs: Added missing attributes
35909 * ScrollBar.cs: Added missing attributes
35910 * ListBox.cs: Fixes signature, add missing consts
35911 * LinkArea.cs: Added missing attributes
35914 2005-02-08 Peter Bartok <pbartok@novell.com>
35916 * Menu.cs: Added missing attributes
35917 * MainMenu.cs: Added missing attributes
35918 * GroupBox.cs: Added missing attributes
35919 * Label.cs: Added missing attributes
35920 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35922 - Added Instance and Options properties
35923 - Added missing attributes
35924 * Cursor.cs: Made Serializable
35925 * NotifyIcon: Added missing attributes
35926 * MenuItem.cs: Added missing attributes
35927 * TextBoxBase.cs: Implemented AppendText() and Select() methods
35928 * Panel.cs: Added Missing attributes
35929 * MonthCalendar.cs: Fixed CreateParams
35931 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35935 - Fixes issues with links
35936 - Adds the class attributes
35938 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
35941 - Fixes button when no items available in dropdown
35942 - Fixes repainting problems
35943 - Adds the class attributes
35945 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35947 * XplatUIOSX.cs: Detect the menu bar and title bar height from
35948 the current theme. Cache these on startup.
35950 2005-02-07 Jackson Harper <jackson@ximian.com>
35952 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35953 the scrollbar buttons when they are depressed.
35955 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35957 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35958 Get the display size from the main displayid. We currently dont
35959 support multiple display configurations.
35961 2005-02-07 Geoff Norton <gnorton@customerdna.com>
35963 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35965 2005-02-07 Miguel de Icaza <miguel@novell.com>
35967 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35969 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
35971 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35973 2005-02-04 Jackson Harper <jackson@ximian.com>
35975 * ThemeWin32Classic.cs: Respect the clipping rect when
35976 drawing. Only fill the intersection of clips and rects so there
35977 isn't a lot of large fills.
35978 * ScrollBar.cs: Pass the correct clipping rect to the theme
35979 engine. Remove some debug code.
35981 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
35983 * DateTimePicker.cs:
35984 - Fixed crash on DateTime.Parse, use Constructor instead
35986 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35990 - Owner draw support (MeasureItem and DrawItem)
35992 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
35995 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35996 - Fixes MenuItems.Add range
35998 - MergeMenu and Clone and CloneMenu functions
36000 2005-02-03 Jackson Harper <jackson@ximian.com>
36002 * ScrollBar.cs: Make abstract
36003 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
36006 2005-02-03 Jackson Harper <jackson@ximian.com>
36008 * ScrollBar.cs: First part of my scrollbar fixups. This removes
36009 all the unneeded refreshes and uses invalidates with properly
36012 2005-02-03 Peter Bartok <pbartok@novell.com>
36014 * ComponentModel.cs: Added
36015 * IDataGridEditingService.cs: Added
36016 * Timer.cs: Added missing attributes
36017 * ToolTip.cs: Added missing attributes
36019 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
36021 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
36023 2005-02-03 Peter Bartok <pbartok@novell.com>
36025 * ListBox.cs: Added missing attributes
36027 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
36030 - Fixes font height after font change
36031 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
36033 2005-02-02 Peter Bartok <pbartok@novell.com>
36035 * HandleData.cs: Introduced static methods to allow class
36036 to be more self-contained and track it's own HandleData objects
36037 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
36038 HandleData to use new static methods
36040 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
36043 - Fixes default size and PreferredHeight
36045 - ObjectCollection.Insert implementation
36051 - ObjectCollection.Insert implementation
36052 - No selection after clean
36055 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
36057 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
36059 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
36062 - Caches ItemHeight calculation for OwnerDrawVariable
36063 - Handles dropdown properly
36064 - Fixes several minor bugs
36066 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
36069 - Fixes 71946 and 71950
36070 - Fixes changing Multicolumn on the fly
36071 - Fixes keyboard navigation on Multicolumn listboxes
36073 2005-01-31 Geoff Norton <gnorton@customerdna.com>
36075 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
36076 crash reporter log.
36078 2005-01-31 Geoff Norton <gnorton@customerdna.com>
36080 * XplatUIOSX.cs: Allow applications to actually exit.
36082 2005-01-31 Geoff Norton <gnorton@customerdna.com>
36084 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
36085 their parent at creation time rather than lazily later. Fixes a major
36086 regression we were experiencing.
36088 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
36090 * ThemeWin32Classic.cs: more date time picker painting fixes
36091 * DateTimePicker.cs: more monthcalendar drop down fixes
36092 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
36094 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
36097 - When moving the thumb going outside the control should stop the moving
36098 - Adds the firing of missing events
36099 - Fixes no button show if Size is not specified
36100 - End / Home keys for keyboard navigation
36102 2005-01-30 Peter Bartok <pbartok@novell.com>
36104 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
36105 sanity check to prevent theoretical loop
36106 * XplatUIWin32.cs (SetVisible): Removed debug output
36107 * XplatUIX11.cs (SystrayChange): Added sanity check
36108 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
36109 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
36110 behaviour, valid until the X11 client window rewrite is done
36111 * TextBox.cs (ctor): Setting proper default foreground and background
36114 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
36116 * Theme: Added DrawDateTimePicker to interface
36117 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
36118 * DateTimePicker.cs: Created (still needs keys and painting code)
36119 * DateTimePickerFormat.cs: added
36120 * MonthCalendar.cs: fixed CreateParams for popup window mode
36122 2005-01-29 Peter Bartok <pbartok@novell.com>
36124 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
36125 this should also the calculations for ligher/darker
36126 * Theme.cs: Fixed defaults for ScrollBar widths/heights
36128 2005-01-29 Peter Bartok <pbartok@novell.com>
36130 * ArrangeDirection.cs: Added
36131 * ArrangeStartingPositon.cs: Added
36132 * SystemInformation.cs: Implemented
36133 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
36134 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
36135 used by SystemInformation class
36136 * X11Strucs.cs: Added XSizeHints structure
36138 - Fixed CreateParams to make sure the menu window is always visible
36139 - TrackPopupMenu: Added check to make sure we don't draw the
36142 2005-01-29 Peter Bartok <pbartok@novell.com>
36144 * HandleData.cs: Added method for altering invalid area
36145 * TextBoxBase.cs: Implemented TextLength
36147 2005-01-28 Peter Bartok <pbartok@novell.com>
36149 * XplatUIX11.cs: Improvement over last patch, not sending
36150 the WM_PAINT directly anymore, instead we scroll any pending
36151 exposed areas and let the system pick out the WM_PAINT later
36153 2005-01-28 Peter Bartok <pbartok@novell.com>
36155 * SWF.csproj: Deleted, no longer used. Instead,
36156 Managed.Windows.Forms/SWF.csproj should be used
36157 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
36158 directly, to avoid a potential race condition with the next
36161 2005-01-28 Peter Bartok <pbartok@novell.com>
36163 * XplatUI.cs: Made class internal
36165 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
36167 * CheckedListBox.cs:
36170 - Missing methods and events
36172 2005-01-27 Peter Bartok <pbartok@novell.com>
36174 * Application.cs (Run): Don't use form if we don't have one
36176 2005-01-27 Peter Bartok <pbartok@novell.com>
36178 * TextBoxBase.cs (get_Lines): Fixed index off by one error
36180 2005-01-27 Peter Bartok <pbartok@novell.com>
36182 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
36183 * GridItem.cs: Added; Patch by Jonathan S. Chambers
36184 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
36185 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
36186 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
36187 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
36188 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36189 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36190 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36191 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36192 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36193 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36195 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
36198 - Draw focus on Simple Combobox
36199 - Fixes drawing issues
36202 2005-01-27 Peter Bartok <pbartok@novell.com>
36205 - Place window in default location, instead of hardcoded 0/0
36206 - Send initial LocationChanged event
36208 - UpdateBounds after creation to find out where the WM placed us
36209 - Make sure that if the ParentForm changes location the Form
36211 * XplatUIX11.cs: XGetGeometry will not return the coords relative
36212 to the root, but to whatever the WM placed around us.
36213 Translate to root coordinates before returning toplevel
36215 * XplatUIWin32.cs: Removed debug output
36216 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
36217 flag to GetWindowPos, to allow translation of coordinates on X11
36219 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
36221 * ListBox.cs: connect LostFocus Event
36223 2005-01-27 Peter Bartok <pbartok@novell.com>
36225 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36226 XplatUIX11.cs: Extended the Systray API
36227 * Form.cs: Removed debug output
36228 * Application.cs: Fixed focus assignment, always need to call
36229 XplatUI.Activate() since Form.Activate() has rules that may
36231 * NotifyIcon.cs: Should be complete now
36232 * ToolTip.cs: Worked around possible timer bug
36234 2005-01-27 Jackson Harper <jackson@ximian.com>
36237 - Only invalidate the effected tabs when the
36238 selected index changes. This reduces drawing and gets rid of some
36240 - Only refresh if the tabs need to be shifted, otherwise only
36241 invalidate the slider button.
36242 - On windows the tabs are not filled to right if the slider is
36245 2005-01-27 Jackson Harper <jackson@ximian.com>
36247 * TabControl.cs: Only refresh on mouseup if we are showing the
36248 slider. Also only invalidate the button whose state has changed.
36250 2005-01-26 Peter Bartok <pbartok@novell.com>
36252 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
36253 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
36254 and SystrayRemove() methods
36255 * XplatUIOSX.cs: Stubbed Systray methods
36257 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
36259 - Fixed broken XChangeProperty calls (marshalling messed up things)
36260 * X11Structs.cs: Added enums and structs required for Size hinting
36261 * NotifyIcon.cs: Added & implemented
36263 2005-01-26 Jackson Harper <jackson@ximian.com>
36265 * TabControl.cs: Space vertically layed out tabs properly.
36267 2005-01-26 Peter Bartok <pbartok@novell.com>
36269 * Form.cs (CreateClientParams): Always set the location to 0,0
36270 since we're a child window.
36272 * Control.cs (SetVisibleCore): Always explicitly setting the location
36273 of a toplevel window, apparently X11 doesn't like to move windows
36274 while they're not mapped.
36276 2005-01-26 Jackson Harper <jackson@ximian.com>
36278 * TabControl.cs: Implement FillToRight size mode with vertically
36281 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
36283 * ControlPaint.cs, ThemeWin32Classic.cs
36284 - Fixes DrawFocusRectangle
36286 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
36289 - MenuBar tracking only starts when item is first clicked
36290 - Fixes menu hidding for multiple subitems
36291 - Unselect item in MenuBar when item Executed
36294 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
36297 - IsInputKey for ListBox
36300 - Shift and Control item selection
36301 - Implement SelectionMode.MultiExtended
36302 - Fixes RightToLeft
36304 - IsInputKey implemented
36305 - Do not generate OnTextChangedEdit on internal txt changes
36307 2005-01-23 Peter Bartok <pbartok@novell.com>
36309 * AccessibleObject.cs: Partially implemented Select()
36310 * MonthCalendar.cs: Added missing attributes and events
36311 * Form.cs: Fixed CreateParams behaviour, now controls derived from
36312 form can properly override CreateParams.
36313 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
36314 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
36315 Control performs Invalidate & Update
36316 * NativeWindow (CreateHandle): Added special handling for Form
36317 and Form.FormParent classes to allow overriding of From.CreateParams
36319 - ControlNativeWindow: Renamed 'control' variable to more intuitive
36321 - ControlNativeWindow: Added Owner property
36322 - Removed usage of Refresh() on property changes, changed into
36323 Invalidate(), we need to wait until the queue is processed for
36324 updates, direct calls might cause problems if not all vars for
36325 Paint are initialized
36326 - Added call to UpdateStyles() when creating the window, to set any
36327 styles that CreateWindow might have ignored.
36328 - Added support for Form CreateParent overrides to UpdateStyles()
36329 * MessageBox.cs: Removed no longer needed FormParent override stuff,
36330 CreateParams are now properly overridable
36331 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
36332 CreateParams are now properly overridable
36334 2005-01-23 Miguel de Icaza <miguel@ximian.com>
36336 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
36339 Capture LostFocus and OnTextBoxChanged. The later introduces a
36340 recursive invocation that I have not figured out yet.
36342 Reset the timer when not using (it was accumulating).
36345 (OnTextBoxChanged): Set UserEdit to true here to track whether the
36346 user has made changes that require validation.
36348 Reset changing to avoid loops.
36350 2005-01-22 Miguel de Icaza <miguel@ximian.com>
36352 * NumericUpDown.cs: Display value at startup.
36354 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
36357 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
36358 filled in. Added some basic parsing of text.
36360 Still missing the OnXXX method overrides, and figuring out the
36361 events that must be emitted.
36363 * UpDownBase.cs: Handle UserEdit on the Text property.
36365 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
36368 - Fixes IntegralHeight
36371 2005-01-21 Jackson Harper <jackson@ximian.com>
36373 * TabControl.cs: Set the SelectedIndex property when SelectedTab
36374 is set so that the page visibility is updated and the tabs are
36377 2005-01-21 Jackson Harper <jackson@ximian.com>
36379 * TabControl.cs: Use cliping rectangle for blitting. Give the
36380 theme the clipping rect so we can do clipping while
36381 drawing. Remove some debug code.
36383 2005-01-21 Jackson Harper <jackson@ximian.com>
36385 * TabPage.cs: Add a new method so tab pages can force the tab
36386 control to recalculate the tab page sizes.
36387 * TabControl.cs: UpdateOwner needs to make the tab control recalc
36390 2005-01-20 Jackson Harper <jackson@ximian.com>
36392 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
36394 2005-01-20 Jackson Harper <jackson@ximian.com>
36396 * TreeView.cs: Set the bounds for nodes properly. They were
36397 getting screwed up when checkboxes were not enabled, but images
36400 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
36403 - Owner draw support
36406 2005-01-20 Jackson Harper <jackson@ximian.com>
36408 * XplatUIStructs.cs: More misc keys
36409 * X11Keyboard.cs: Ignore some control keys.
36411 2005-01-20 Jackson Harper <jackson@ximian.com>
36413 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
36414 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
36416 2005-01-19 Peter Bartok <pbartok@novell.com>
36418 * Control.cs: Un-selecting the control when it is loosing focus
36420 2005-01-19 Jackson Harper <jackson@ximian.com>
36422 * TreeView.cs: Hook up to the text controls leave event so we can
36423 end editing when the users clicks outside the text box.
36425 2005-01-19 Jackson Harper <jackson@ximian.com>
36427 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
36428 get set in the conversion array.
36430 2005-01-19 Peter Bartok <pbartok@novell.com>
36432 * Application.cs (ModalRun): Added a call to CreateControl to ensure
36433 focus is properly set
36435 - Added missing attributes
36436 - removed styles, those are already set in the base class
36438 - Added missing attributes
36439 - Added clip window styles
36440 * CheckBox.cs: Added missing attributes
36442 - FormParentWindow.CreateParams: Added required clip styles
36443 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
36444 also filters modifier keys
36446 - Added assignment of Accept and Cancel button to enable Enter
36447 and Esc keys in MessageBox dialogs
36448 - FormParentWindow.CreateParams: Added required clip styles
36449 * RadioButton.cs: Added missing attributes
36450 * TextControl.cs: No longer draws selection if control does not
36453 - Now draws simple rectangle around test area to make it obvious
36454 there's a control. This is a hack until we properly support borders
36455 - A few simple fixes to support selections better, now erases selected
36456 text when typing, and resets selection when using movement keys
36458 2005-01-19 Miguel de Icaza <miguel@ximian.com>
36460 * UpDownBase.cs: Added some new properties.
36462 * DomainUpDown.cs: Implement a lot to get my test working.
36464 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36466 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
36468 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36470 * OSXStructs (WindowAttributes): Fixed csc complaints
36472 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36475 OSXStructs.cs: Initial refactor to move enums and consts into
36476 OSXStructs and use them in the driver for greater readability.
36478 2005-01-19 Geoff Norton <gnorton@customerdna.com>
36480 * XplatUIOSX.cs: Initial support for Standard Cursors.
36481 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
36483 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
36485 * ComboBox.cs: ability to change style when the ctrl is already
36486 created, missing methods and events, bug fixes, signature fixes
36488 2005-01-19 Peter Bartok <pbartok@novell.com>
36490 * Cursors.cs (ctor): Added ctor to fix signature
36492 2005-01-18 Peter Bartok <pbartok@novell.com>
36494 * Button.cs: Implemented DoubleClick event
36496 - Fixed keyboard handling to behave like MS, where the press of
36497 Spacebar is equivalent to a mousedown, and the key release is
36498 equivalent to mouseup. Now a spacebar push will give the same
36499 visual feedback like a mouse click.
36500 - Added missing attributes
36501 - Added ImeModeChanged event
36502 - Added support for generating DoubleClick event for derived classes
36504 - Implemented DoubleClick event
36505 - Added missing attributes
36506 * CommonDialog.cs: Added missing attribute
36507 * ContextMenu.cs: Added missing attributes
36509 - AutoChecked buttons do not allow to be unselected when clicked
36510 (otherwise we might end up with no selected buttons in a group)
36511 - Added missing attributes
36512 - Implemented DoubleClickEvent
36513 * ThreadExceptionDialog.cs: Enabled TextBox code
36515 2005-01-18 Peter Bartok <pbartok@novell.com>
36517 * Form.cs: Removed debug output
36518 * Button.cs: Added support for DoubleClick method
36520 2005-01-18 Peter Bartok <pbartok@novell.com>
36523 - Added method to parent window that allows triggering size
36524 calculations when a menu is added/removed
36525 - set_Menu: Cleaned up mess from early days of Form and Control,
36526 now properly triggers a recalc when a menu is added/removed
36527 - Added case to select form itself as focused form if no child
36529 - Added PerformLayout call when showing dialog, to ensure properly
36532 - Select(): Made internal so Form can access it
36533 - Focus(): Only call Xplat layer if required (avoids loop), and sets
36535 * Application.cs (Run): Removed hack and calls PerformLayout instead
36536 to trigger calculation when Form becomes visible
36538 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
36540 * ComboBox.cs: fixes for ownerdraw
36542 2005-01-18 Peter Bartok <pbartok@novell.com>
36545 - Sentinel is no longer static, each Document gets it's own, this
36546 avoids locking or alternatively overwrite problems when more
36547 than one text control is used simultaneously.
36548 - Switched to use Hilight and HilightText brushes for text selection
36550 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
36552 2005-01-18 Peter Bartok <pbartok@novell.com>
36555 - Hooked up the following events:
36563 o SystemColorsChanged
36564 o ParentFontChanged
36566 - Removed debug output
36567 - Added a call to the current theme's ResetDefaults when a color change
36569 * Form.cs: Now setting the proper ImeMode
36570 * Theme.cs: Defined a method to force recreation of cached resources
36571 and rereading of system defaults (ResetDefaults())
36572 * ThemeWin32Classic.cs: Added ResetDefaults() stub
36574 2005-01-17 Peter Bartok <pbartok@novell.com>
36576 * Control.cs: Added missing attributes
36578 2005-01-17 Jackson Harper <jackson@ximian.com>
36580 * TreeNode.cs: Implement editing. Add missing properties selected
36582 * TreeView.cs: Implement node editing. Also some fixes to use
36583 Invalidate (invalid area) instead of Refresh when selecting.
36585 2005-01-17 Peter Bartok <pbartok@novell.com>
36588 - Implemented InvokeGotFocus() method
36589 - Implemented InvokeLostFocus() method
36590 - Implemented InvokePaint() method
36591 - Implemented InvokePaintBackground() method
36592 - Implemented InvokeClick() method
36593 - Implemented FindForm() method
36594 - Implemented RectangleToClient() method
36595 - Implemented ClientToRectangle() method
36596 - Implemented ResetBackColor() method
36597 - Implemented ResetCursor() method
36598 - Implemented ResetFont() method
36599 - Implemented ResteForeColor() method
36600 - Implemented ResetImeMode() method
36601 - Implemented ResetLeftToRight() method
36602 - Implemented ResetText() method
36603 - Implemented Scale() methods
36604 - Implemented ScaleCore() method
36605 - Implemented Update() method
36606 - Removed unused variables
36607 - Stubbed AccessibilityNotifyClients and
36608 ControlAccessibleObject.NotifyClients() methods (dunno what to do
36610 - Now setting proper default for RightToLeft property
36611 - Fixed bug in SetClientSizeCore that would cause windows to get
36613 - Now sending Click/DoubleClick events
36614 - Now selecting controls when left mouse button is clicked on
36616 * AccessibleEvents.cs: Added
36617 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
36618 * XplatUIOSX.cs: Stubbed UpdateWindow() method
36619 * XplatUIWin32.cs: Implemented UpdateWindow() method
36620 * XplatUIX11.cs: Implemented UpdateWindow() method
36621 * Form.cs: Removed stray semicolon causing CS0162 warning
36622 * ThemeWin32Classic.cs: Fixed unused variable warnings
36623 * ScrollableControl.cs: Now calls base method for ScaleCore
36624 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
36625 style to avoid interference with internal click handler (which is
36626 different than standard Control click handling)
36628 - Now unchecks all sibling radio buttons when control is
36629 selected (Fixes #68756)
36630 - Removed internal tabstop variable, using the one inherited from
36633 2005-01-17 Jackson Harper <jackson@ximian.com>
36635 * NavigateEventArgs.cs: Fix base type.
36636 * LinkLabel.cs: Sig fix
36638 2005-01-17 Jackson Harper <jackson@ximian.com>
36640 * TreeView.cs: Only invalidate the effected nodes bounds when
36643 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36645 * XplatUIWin32.cs: fixes Win32 marshaling
36646 * XplatUIX11.cs: fixes method signature
36648 2005-01-17 Peter Bartok <pbartok@novell.com>
36650 * XplatUIX11.cs: Clean up resources when we no longer need them
36652 2005-01-17 Peter Bartok <pbartok@novell.com>
36654 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
36655 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
36656 and DestroyCursor() methods.
36657 * Cursor.cs: Partially implemented, now supports standard cursors;
36658 still contains some debug code
36659 * Cursors.cs: Implemented class
36661 - WndProc(): Added handling of WM_SETCURSOR message, setting the
36663 - Implemented Cursor property
36664 - Replaced break; with return; more straightforwar and possibly
36666 - Now properly setting the result for WM_HELP
36667 * X11Structs.cs: Added CursorFontShape enum
36668 * XplatUIStructs.cs:
36669 - Added StdCursor enum (to support DefineStdCursor() method)
36670 - Added HitTest enum (to support sending WM_SETCURSOR message)
36672 - Now sends the WM_SETCURSOR message
36673 - Implemented new cursor methods
36674 * XplatUIOSX.cs: Stubbed new cursor methods
36676 - Implemented new cursor methods
36677 - Added GetSystemMetrics function and associated enumeration
36679 2005-01-15 Peter Bartok <pbartok@novell.com>
36682 - WndProc(): Now handles EnableNotifyMessage
36683 - SelectNextControl(): Fixed bug where if no child or sibling
36684 controls exist we looped endlessly
36686 2005-01-14 Jackson Harper <jackson@ximian.com>
36688 * TreeView.cs: Recalculate the tab pages when a new one is added
36689 so that the proper bounding rects are created.
36691 2005-01-14 Jackson Harper <jackson@ximian.com>
36693 * TreeView.cs: Draw a gray box instead of a grip in the lower
36694 right hand corner when there are both horizontal and vertical
36697 2005-01-14 Jackson Harper <jackson@ximian.com>
36699 * Control.cs: When erasing backgrounds use FromHwnd instead of
36700 FromHdc when there is a NULL wparam. This occurs on the X driver.
36701 * XplatUIX11.cs: Set the wparam to NULL.
36703 2005-01-13 Jackson Harper <jackson@ximian.com>
36705 * PictureBox.cs: Implement missing methods (except ToString, need
36706 to test that on windows) and events. When visibility is changed we
36707 need to redraw the image because the buffers are killed. When size
36708 is changed refresh if the sizemode needs it.
36710 2005-01-13 Peter Bartok <pbartok@novell.com>
36712 * Control.cs (SelectNextControl): Was using wrong method to select
36715 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36717 * ComboBox.cs: fixes dropstyle
36719 2005-01-13 Peter Bartok <pbartok@novell.com>
36722 - Implemented Select() override
36723 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
36724 - Now sets keyboard focus on startup
36725 * Control.cs (SelectNextControl): Now properly handles directed=true
36727 - WndProc: Now passes tab key on to base if AcceptTabChar=false
36728 - Added (really bad) focus rectangle (mostly for testing)
36729 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
36730 to enforce redraw on focus changes
36731 * ContainerControl.cs:
36732 - Fixed detection of Shift-Tab key presses
36733 - Fixed traversal with arrow keys
36734 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
36735 gonna keep this or if it's complete yet
36737 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
36739 * ComboBox.cs: missing properties, fixes
36741 2005-01-13 Peter Bartok <pbartok@novell.com>
36743 * Panel.cs (ctor): Setting Selectable window style to off
36744 * Splitter.cs (ctor): Setting Selectable window style to off
36745 * GroupBox.cs (ctor): Setting Selectable window style to off
36746 * Label.cs (ctor): Setting Selectable window style to off
36748 2005-01-12 Miguel de Icaza <miguel@ximian.com>
36750 * UpDownBase.cs (InitTimer): If the timer has been already
36751 created, enable it.
36753 Use a TextBox instead of a Label.
36755 2005-01-12 Jackson Harper <jackson@ximian.com>
36757 * TreeView.cs: Refresh the tree after sorting the nodes. Always
36758 draw the connecting node lines (when ShowLines is true).
36759 * TreeNode.cs: The nodes index can now be updated. This is used
36760 when a node collection is sorted.
36761 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36762 insert or an existing unsorted node collection can be sorted.
36764 2005-01-12 Peter Bartok <pbartok@novell.com>
36766 * ContainerControl.cs: Implemented ProcessDialogKeys()
36768 2005-01-12 Peter Bartok <pbartok@novell.com>
36771 - Implemented SelectNextControl() method
36772 - Several focus related bug fixes
36773 - Fixed Docking calculations to match MS documentation and
36776 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
36778 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36781 2005-01-12 Peter Bartok <pbartok@novell.com>
36784 - Fixed broken Contains() method
36785 - Implemented GetNextControl() method. Finally. This is the pre-
36786 requisite for focus handling.
36788 2005-01-12 Peter Bartok <pbartok@novell.com>
36790 * OSXStrucs.cs: Added
36792 2005-01-12 Peter Bartok <pbartok@novell.com>
36795 - Removed PeekMessageFlags
36796 - Implemented SetWindowStyle() method
36797 * XplatUIStructs.cs: Added PeekMessageFlags
36798 * X11Structs: Added missing border_width field to XWindowChanges struct
36800 - PeekMessage: Now throws exception if flags which are not yet
36801 supported are passed
36802 - Implemented SetWindowStyle() method
36803 - Fixed SetZOrder to handle AfterHwnd properly
36804 * XplatUI.cs: Added SetWindowStyle() method
36805 * XplatUIDriver.cs: Added SetWindowStyle() abstract
36807 - Implemented UpdateStyles() method
36808 - Implemented UpdateZOrder() method
36809 * XplatUIOSX.cs: Added SetWindowStyle() stub
36811 2005-01-12 Geoff Norton <gnorton@customerdna.com>
36813 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36817 2005-01-11 Jackson Harper <jackson@ximian.com>
36819 * TreeView.cs: Still need to draw lines to siblings even if out of
36820 the current node is out of the clip.
36822 2005-01-11 Jackson Harper <jackson@ximian.com>
36824 * TreeView.cs: When setting the hbar/vbar/grip position use
36825 SetBounds so that perform layout is only called once. Also suspend
36826 and resume layout so layout is only done once for all controls.
36827 - Removed some debug fluff
36828 * SizeGrip.cs: Call base implmentation in overriding methods.
36829 - When visibility is changed the drawing buffers are killed so we
36832 2005-01-11 Jackson Harper <jackson@ximian.com>
36834 * TreeView.cs: Calculate the open node count while drawing. This
36835 saves us an entire tree traversal for every paint operation. Use
36836 a member var for the open node count so less vars are passed around.
36838 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
36840 * MonthCalendar.cs:
36841 - fixed selection to use mousemove, not mouse polling on timer
36842 * ThemeWin32Classic.cs
36843 - removed redundant unused variable "no_more_content"
36845 2005-01-11 Peter Bartok <pbartok@novell.com>
36847 * XplatUIX11.cs (DoEvents): Needs to return when no more events
36848 are pending, so it now calls PeekMessage instead of GetMessage;
36849 implemented a incomplete version of PeekMessage
36851 2005-01-11 Peter Bartok <pbartok@novell.com>
36853 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36855 * TextBoxBase.cs: Added sending of TextChanged event
36857 2005-01-10 Jackson Harper <jackson@ximian.com>
36859 * TreeView.cs: Try not to draw outside the clipping rectangle on
36862 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
36864 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36866 2005-01-10 Jackson Harper <jackson@ximian.com>
36869 - Implement fast scrolling. Now only the newly
36870 exposed nodes are drawn and the old image is moved using the
36871 XplatUI::ScrollWindow method.
36872 - Factor in height of nodes when calculating whether or not the
36873 node is in the clipping rect.
36875 2005-01-10 Jackson Harper <jackson@ximian.com>
36877 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36879 2005-01-10 Peter Bartok <pbartok@novell.com>
36881 * Application.cs: Added temporary hack to resolve all our resize
36882 required issues on startup. This will get fixed properly at
36883 some point in the future
36885 2005-01-10 Jackson Harper <jackson@ximian.com>
36887 * SizeGrip.cs: New internal class that is used as a sizing
36888 grip control...hence the name.
36890 2005-01-10 Peter Bartok <pbartok@novell.com>
36892 * Control.cs: Implemented proper TabIndex handling, now assigning
36893 a tabindex when a control is added to a container
36894 * GroupBox.cs (ctor): Now sets the Container style bit, required
36895 for Control.GetNextControl()
36897 2005-01-09 Jackson Harper <jackson@ximian.com>
36899 * TextBoxBase.cs: Clear window when scrolling (fixes build).
36901 2005-01-09 Peter Bartok <pbartok@novell.com>
36903 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36904 XplatUIX11.cs: Added ability to control ScrollWindow expose and
36905 an overload for ScrollWindow to allow only scrolling a rectangle
36907 2005-01-09 Peter Bartok <pbartok@novell.com>
36910 - Implemented SetDesktopBounds method
36911 - Implemented SetDesktopLocation method
36913 2005-01-08 Jackson Harper <jackson@ximian.com>
36915 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36916 the node count has changed, this removes to VScroll::Refresh calls
36919 2005-01-08 Geoff Norton <gnorton@customerdna.com>
36921 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36923 2005-01-07 Jackson Harper <jackson@ximian.com>
36925 * TreeNode.cs: Just update the single node when it is
36926 checked. Don't refresh after toggling, the Expand/Collapse already
36928 * TreeView.cs: Respect clipping a little more when drawing. Try
36929 not to redraw things that don't need to be redrawn. Just hide the
36930 scrollbars when they are no longer needed instead of removing
36931 them, so they don't have to be created again and again.
36933 2005-01-07 Geoff Norton <gnorton@customerdna.com>
36935 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
36936 coordinates to window space to place the caret properly, FIXED.
36937 Implement GetWindowState & SetWindowState
36939 2005-01-06 Peter Bartok <pbartok@novell.com>
36942 - Implemented ClientSize property
36943 - Implemented DesktopBounds property
36944 - Implemented DesktopLocation property
36945 - Implemented IsRestrictedWindow property
36946 - Implemented Size property
36947 - Implemented TopLevel property
36948 - Implemented FormWindowState property
36950 - Implemented GetTopLevel() method
36951 - Implemented SetTopLevel() method
36952 * X11Structs.cs (Atom):
36953 - Added AnyPropertyType definition
36954 - Added MapState definiton and updated XWindowAttribute struct
36955 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36956 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36957 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36959 - Implemented GetWindowState() and SetWindowState() methods
36960 - Fixed Win32GetWindowLong return type
36962 - Introduced central function for sending NET_WM messages
36963 - Implemented GetWindowState() and SetWindowState() methods
36964 * TextBoxBase.cs (set_Lines):
36965 - Now uses Foreground color for text added via Text property (Duh!)
36966 - Added code to remember programmatically requested size (fixes
36967 behaviour when Multiline is set after Size)
36968 - Added AutoSize logic
36970 2005-01-06 Jackson Harper <jackson@ximian.com>
36972 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36974 2005-01-06 Jackson Harper <jackson@ximian.com>
36976 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36977 set to less then 0.
36979 2005-01-06 Jackson Harper <jackson@ximian.com>
36981 * ScrollableControl.cs: Lazy init the scrollbars.
36983 2005-01-06 Jackson Harper <jackson@ximian.com>
36985 * Theme.cs: Speed up getting pens and solid brushes, by using
36986 their ARGB as a hash instead of tostring and not calling Contains.
36988 2005-01-06 Peter Bartok <pbartok@novell.com>
36991 - Implemented OnActivated and OnDeactivate event trigger
36992 - Implemented Activate() method
36993 - Fixed ShowDialog() to activate the form that was active before
36994 the dialog was shown
36996 - Added global active_window var that tracks the currently active
36998 - Now always grabs Property changes from the root window to always
36999 catch changes on the active window property
37000 - Added code to PropertyNotify handler to send Active/Inactive
37001 messages when state changes. This puts X11 and Win32 en par on
37002 WM_ACTIVATE notifications (except for double notifications when
37003 the user clicks away from our modal window to another one of our
37006 2005-01-05 Jackson Harper <jackson@ximian.com>
37008 * ImageList.cs: Implment ctor
37010 2005-01-05 Geoff Norton <gnorton@customerdna.com>
37012 * XplatUIOSX.cs: Implement Activate/SetTopmost
37014 2005-01-05 Geoff Norton <gnorton@customerdna.com>
37016 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
37018 2005-01-05 Geoff Norton <gnorton@customerdna.com>
37020 * XplatUIOSX.cs: Implement GetActive/SetFocus.
37022 2005-01-05 Peter Bartok <pbartok@novell.com>
37024 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
37025 XplatUIOSX.cs: Added GetActive method to return the currently
37026 active window for the application (or null, if none is active)
37028 - Implemented ActiveForm
37029 - Commented out owner assignment for modal dialogs (causes problems
37030 on Win32, since the owner will be disabled)
37031 - Reworked some Active/Focus handling (still incomplete)
37032 * CommonDialog.cs: Commented out owner assignment for modal dialogs
37033 (causes problems on Win32, since the owner will be disabled)
37034 * IWin32Window: Added ComVisible attribute
37036 2005-01-05 Peter Bartok <pbartok@novell.com>
37038 * ToolTip.cs (WndProc): Enable setting focus now that we have the
37039 required XplatUI functions.
37041 2005-01-05 Peter Bartok <pbartok@novell.com>
37043 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
37044 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
37045 to implement focus and activation handling; still incomplete and
37048 2005-01-04 Peter Bartok <pbartok@novell.com>
37050 * TextBoxBase.cs: Changed access level for Document property to
37051 match switch to internal for TextControl
37053 2005-01-04 Peter Bartok <pbartok@novell.com>
37055 * AccessibleObject: Added ComVisible attribute
37057 2005-01-04 Jackson Harper <jackson@ximian.com>
37059 * X11Keyboard.cs: Remove unneeded var.
37061 2005-01-04 Jackson Harper <jackson@ximian.com>
37063 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
37065 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
37066 ClientMessage. This makes apps exit cleanly (more often).
37068 2005-01-04 Jackson Harper <jackson@ximian.com>
37070 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
37071 handling focus, return correct colors and fonts,
37072 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
37073 handle selection, horizontal scrolling, and mouse interaction.
37075 2005-01-04 Peter Bartok <pbartok@novell.com>
37077 * ICommandExecutor.cs: Added
37078 * IDataGridColumnStyleEditingNotificationService.cs: Added
37079 * IFeatureSupport.cs: Added
37080 * IFileReaderService.cs: Added
37081 * IDataObject.cs: Added ComVisible attribute
37082 * AmbientProperties.cs: Added
37083 * BaseCollection.cs: Added missing attributes
37084 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
37085 * BaseCollection.cs: Added missing attributes
37086 * Binding.cs: Added TypeConverter attribute
37087 * BindingContext.cs: Added DefaultEvent attribute
37088 * BindingsCollection.cs: Added DefaultEvent attribute
37089 * Button.cs: Added DefaultValue attribute
37090 * DragEventArgs.cs: Added ComVisible attribute
37091 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
37092 * KeyEventArgs.cs: Added ComVisible attribute
37093 * KeyPressEventArgs.cs: Added ComVisible attribute
37094 * MouseEventArgs.cs: Added ComVisible attribute
37095 * NavigateEventArgs.cs: Added
37096 * NavigateEventHandler.cs: Added
37097 * FeatureSupport.cs: Added
37098 * OSFeature.cs: Added
37099 * Theme.cs: Added abstract Version property to support OSFeature
37100 * ThemeWin32Classic.cs: Added Version property to
37101 support OSFeature.Themes
37102 * ProgressBar.cs: Removed OnPaintBackground override, not required since
37103 the proper styles to avoid background drawing are set, also doesn't
37105 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
37106 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
37107 * ScrollEventArgs.cs: Added ComVisible attribute
37108 * SplitterEventArgs.cs: Added ComVisible attribute
37109 * AccessibleSelection.cs: Added Flags attribute
37110 * Appearance.cs: Added ComVisible attribute
37111 * Border3DSide.cs: Added ComVisible attribute
37112 * Border3DStyle.cs: Added ComVisible attribute
37113 * BorderStyle.cs: Added ComVisible attribute
37114 * DragAction.cs: Added ComVisible attribute
37115 * ErrorBlinkStyle.cs: Added
37116 * ScrollEventType.cs: Added ComVisible attribute
37117 * AnchorStyles.cs: Added Editor attribute
37118 * DockStyle.cs: Added Editor attribute
37119 * HorizontalAlignment.cs: Added ComVisible attribute
37120 * HelpEventArgs.cs: Added ComVisible attribute
37121 * PaintEventArgs.cs: Added IDisposable
37123 2005-01-04 Peter Bartok <pbartok@novell.com>
37125 * TextControl.cs: Switched Line, LineTag and Document classes to
37128 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
37130 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
37131 Simple mode, fixes, IntegralHeight, etc.
37133 2005-01-04 Peter Bartok <pbartok@novell.com>
37135 * TextBoxBase.cs: Using proper font variable now
37137 2005-01-04 Peter Bartok <pbartok@novell.com>
37139 * Form.cs (ShowDialog): Set parent to owner, if provided
37140 * GroupBox.cs: Removed unused vars
37142 - Added GetHashCode() for Document and LineTag classes
37143 - Removed unused variables
37144 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
37145 to allow translation between continuous char position and line/pos
37146 * CheckBox.cs: Removed vars that are provided by base class
37147 * RadioButton.cs: Removed vars that are provided by base class, added
37148 new keyword where required
37149 * LinkLabel.cs: Added new keyword where required
37150 * Control.cs (WndProc): Removed unused variable
37152 - Finished SelectionLength property
37153 - Implemented SelectionStart property
37154 - Implemented Text property
37155 - Removed unused vars
37156 * MessageBox.cs: Added new keyword where required
37157 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
37159 * MenuAPI.cs: Added new keyword where required
37160 * ButtonBase.cs: Removed vars that are provided by base class, added
37161 new keyword where required
37162 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
37163 argument to double, to allow compiling with csc 2.0 (Atsushi ran
37165 * Application.cs (Run): Now triggers the ThreadExit event
37166 * CommonDialog.cs: Added new keyword where required; now properly sets
37167 parent (owner) for dialog
37168 * XplatUIX11.cs: Commented out unused vars
37169 * StatusBar.cs: Fixed signature for Text property
37170 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
37172 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
37174 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
37175 TrackBar.cs, MonthCalendar.cs: remove unused vars
37177 2005-01-03 Jackson Harper <jackson@ximian.com>
37179 * ThemeWin32Classic.cs:
37180 * X11Keyboard.cs: Remove unused vars.
37182 2005-01-03 Peter Bartok <pbartok@novell.com>
37185 - set_Text: Tied into TextControl
37186 - set_TextAlignment: Tied into TextControl
37188 - Added alignment properties and implemented alignment handling
37189 and drawing (still has a bug, not generating proper expose events)
37190 - Added new Line() constructor to allow passing the line alignment
37191 - Fixed selection setting, properly handling end<start now
37192 - Added aligment considerations to RecalculateDocument()
37194 - Now properly enforces control height for single line controls
37195 - Added support for CharacterCasing
37196 - Added IsInputKey override
37197 - Fixed Keys.Enter logic
37198 - Added SetBoundsCore override
37199 - Fixed mouse selection handling
37201 2005-01-03 Jackson Harper <jackson@ximian.com>
37204 - Collapse and uncheck all nodes when CheckBoxes is disabled.
37205 - Checkboxes are always aligned to the bottom of the node,
37206 regardless of item height.
37207 - Use the node bounds to draw the text so we can center it when
37208 the item height is greater then the font height.
37209 - Node::Bounds are only the text part of the node.
37210 * TreeNode.cs: New method to combine collapsing and unchecking all
37213 2005-01-02 Jackson Harper <jackson@ximian.com>
37215 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
37216 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
37217 tree when a check is changed. TODO: Only refresh the checked node.
37219 2004-12-30 Jackson Harper <jackson@ximian.com>
37221 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
37222 * TreeNode.cs: When collapsing make sure to never collapse the
37225 2004-12-29 Jackson Harper <jackson@ximian.com>
37227 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
37229 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
37231 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
37233 2004-12-28 Peter Bartok <pbartok@novell.com>
37235 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
37238 2004-12-28 Peter Bartok <pbartok@novell.com>
37240 * Control.cs (WndProc): Added WM_HELP handler, now generates
37241 HelpRequested event
37242 * Form.cs: Added HelpButton property and required support code
37243 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
37245 2004-12-28 Peter Bartok <pbartok@novell.com>
37248 - Made DialogForm.owner variable internal
37249 - Added check to ensure owner form is set before setting
37250 owner properties in CreateParams
37252 2004-12-28 Geoff Norton <gnorton@customerdna.com>
37254 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
37255 swizzling. Implement ClientToScreen and ScreenToClient. Implement
37256 GetCursorPos. Fix major visibility issues. Rework the windowing
37257 system to support borderless/titleless windows (implements menus).
37258 Fix GetWindowPos. Implement initial background color support for
37261 2004-12-28 Peter Bartok <pbartok@novell.com>
37263 * Form.cs (get_CreateParams): Make sure we have an owner before using
37264 the owner variable. Implement proper default if no owner exists
37266 2004-12-28 Peter Bartok <pbartok@novell.com>
37268 * In preparation for making Managed.Windows.Forms the default build target
37269 for System.Windows.Forms, the following stubbed files were added.
37270 Dialogs are currently being implemented by contributors and are only
37271 short-term place holders.
37272 * ColorDialog.cs: Initial check-in (minmal stub)
37273 * DataGrid.cs: Initial check-in (minimal stub)
37274 * DataGridLineStyle.cs: Initial check-in (minimal stub)
37275 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
37276 * DataGridTableStyle.cs: Initial check-in (minimal stub)
37277 * FontDialog.cs: Initial check-in (minimal stub)
37278 * FileDialog.cs: Initial check-in (minimal stub)
37279 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
37280 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
37281 * OpenFileDialog: Initial check-in (minimal stub)
37282 * IComponentEditorPageSite.cs: Initial check-in
37283 * Splitter.cs: Initial check-in (for Jackson)
37284 * SplitterEventArgs.cs: Initial check-in (for Jackson)
37285 * SplitterEventHandler.cs: Initial check-in (for Jackson)
37286 * TextBox.cs: Initial check-in; still needs some wiring to
37287 TextControl backend
37288 * Form.cs: Implemented ControlBox property
37289 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
37290 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
37291 * TextControl.cs: Added selection functionality; added todo header
37293 - Implemented Lines property
37294 - Implemented TextHeight property
37295 - Implemented SelectedText property
37296 - Implemented SelectionLength property
37297 - Implemented SelectAll method
37298 - Implemented ToString method
37299 - Removed and cleaned up some debug code
37300 - Implemented (still buggy) mouse text selection
37302 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
37304 * ComboBox.cs: Complete DropDownList implementation, fixes.
37306 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
37308 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
37309 * ComboBoxStyle.cs: ComboBoxStyle enum
37310 * ComboBox.cs: Initial work on ComboBox control
37312 2004-12-21 Peter Bartok <pbartok@novell.com>
37314 * Control.cs (ctor, CreateParams): Moved setting of is_visible
37315 forward so that anything that creates a window gets the default,
37316 also no longer uses Visible property in CreateParams to avoid
37317 walking up the parent chain and possibly get the wrong visible
37318 status. Fixed IsVisible to no longer walk up to the parent.
37320 2004-12-21 Peter Bartok <pbartok@novell.com>
37322 * Form.cs (ShowDialog): Unset modality for the proper window
37324 2004-12-20 Peter Bartok <pbartok@novell.com>
37326 * CommonDialog.cs: Initial check-in
37328 2004-12-20 Peter Bartok <pbartok@novell.com>
37330 * Control.cs (Visible): Now uses the parent window instead of the
37331 client area window for the property
37334 - ShowDialog(): Now uses the proper window for modality
37335 - The default visibility state for the form parent is now false. This
37336 will prevent the user from seeing all the changes to the form and
37337 its controls before the application hits Application.Run()
37338 - Removed some stale commented out code
37341 - Added FindWindow() method to have a method to check for existence
37343 - Added ability to override default exception handling (for example
37344 when debugging with VS.Net; to do this the ExternalExceptionHandler
37346 - Removed some useless debug output
37349 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
37350 not working as expected
37351 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
37352 property to allow switching back to the modal window if focus is
37353 given to another one of our windows (Application Modal)
37354 - Now only sets override_redirect if we create a window
37356 - Moved EventMask selection before mapping of newly created window
37357 so we can catch the map event as well
37358 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
37359 - Added various Atom related DllImports
37360 - Implemented Exit() method
37361 - .ctor() : No longer shows window if WS_VISIBLE is not defined
37362 in the CreateParams
37364 * MessageBox.cs: Now properly deals with the FormParent window by
37365 providing an override the FormParent CreateParams property to
37366 set as POPUP instead of OVERLAPPED window.
37368 2004-12-19 Geoff Norton <gnorton@customerdna.com>
37370 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
37371 Minor code cleanup.
37373 2004-12-19 Geoff Norton <gnorton@customerdna.com>
37375 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
37377 2004-12-18 Peter Bartok <pbartok@novell.com>
37379 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
37380 implementing SetModal() method
37382 2004-12-18 Peter Bartok <pbartok@novell.com>
37384 * X11Structs.cs (XGCValues): Fixed type of function element
37385 * XplatUI.cs: Added ScrollWindow() method
37386 * XplatUIDriver.cs: Added ScrollWindow() abstract
37387 * XplatUIWin32.cs: Implemented ScrollWindow() method
37388 * XplatUIX11.cs: Implemented ScrollWindow() method
37389 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
37391 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37393 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
37394 Some more keyboard support (INCOMPLETE)
37396 2004-12-17 Peter Bartok <pbartok@novell.com>
37399 - Added color attribute to line tags.
37400 - Added color argument to all functions dealing with tags
37401 - Added color argument support to various functions
37402 - Fixed miss-calculation of baseline/shift in certain circumstances
37404 * TextBoxBase.cs: Added new color option to test code
37406 2004-12-17 Jackson Harper <jackson@ximian.com>
37409 * MonthCalendar.cs: Signature fixes
37411 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37413 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
37414 keyboard event moved it. Create a new graphics context for each paint resolves this
37416 2004-12-17 Geoff Norton <gnorton@customerdna.com>
37418 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
37419 Make caret exist and go blink blink. Initial keyboard support.
37420 Fix exception handler, Add Invalidate support. Change way RefreshWindow
37423 2004-12-17 Jackson Harper <jackson@ximian.com>
37425 * XplatUIStructs.cs: Updated set of virtual keycodes.
37426 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
37428 2004-12-17 Jackson Harper <jackson@ximian.com>
37430 * XplatUIX11.cs: Prune old keyboard code.
37432 2004-12-17 Jackson Harper <jackson@ximian.com>
37434 * XplatUIX11.cs: When generating mouse wparams get the modifier
37435 keys from the ModifierKeys property.
37437 2004-12-17 Jackson Harper <jackson@ximian.com>
37439 * X11Keyboard.cs: Send up/down input when generating
37440 messages. Remove some unused vars.
37442 2004-12-17 Jackson Harper <jackson@ximian.com>
37445 * TreeView.cs: get rid of warnings.
37447 2004-12-17 Jackson Harper <jackson@ximian.com>
37449 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
37451 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
37453 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
37454 CheckedListBox.cs: Implementation
37456 2004-12-17 Peter Bartok <pbartok@novell.com>
37458 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
37460 2004-12-16 Peter Bartok <pbartok@novell.com>
37463 - InsertCharAtCaret(): Fixed start pos fixup
37464 - CaretLine_get: No longer derives the line from the tag, the tag
37465 could be stale if lines in the document have been added or deleted
37466 - RebalanceAfterDelete(): Fixed bug in balancing code
37467 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
37468 - Line.Streamline(): Now can also elminate leading empty tags
37469 - DumpTree(): Added a few more tests and prevented exception on
37471 - Added Debug section for Combining lines
37472 - Delete(): Now copies all remaining properties of a line
37475 - Left mousebutton now sets the caret (and middle button still acts
37476 as formatting tester, which must go away soon)
37477 - Added Debug section for Deleting/Combining lines
37478 - Fixed calculations for UpdateView after Combining lines
37480 2004-12-16 Peter Bartok <pbartok@novell.com>
37482 * TextControl.cs: Now properly aligns text on a baseline, using the
37483 new XplatUI.GetFontMetrics() method. Simplified several calculations
37484 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
37487 2004-12-16 Peter Bartok <pbartok@novell.com>
37489 * XplatUI.cs: Added GetFontMetrics() method
37490 * XplatUIDriver.cs: Added GetFontMetrics() abstract
37491 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
37492 into libgdiplus, our private GetFontMetrics function
37493 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
37494 * XplatUIWin32.cs: Implemented GetFontMetrics() method
37496 2004-12-16 Jackson Harper <jackson@ximain.com>
37498 * XplatUIStruct.cs: Add enum for dead keys
37499 * X11Keyboard.cs: Map and unmap dead keys.
37501 2004-12-16 Jackson Harper <jackson@ximian.com>
37503 * X11Keyboard.cs: Detect and use the num lock mask.
37505 2004-12-16 Peter Bartok <pbartok@novell.com>
37507 * Control.cs (CreateGraphics): Added check to make sure the
37508 handle of the window exists before calling Graphics.FromHwnd()
37510 2004-12-16 Peter Bartok <pbartok@novell.com>
37512 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
37513 contains a lot of code that's not supposed to be there for the
37514 real thing, but required for developing/testing the textbox
37517 2004-12-16 Peter Bartok <pbartok@novell.com>
37520 - Fixed Streamline method
37521 - Added FindTag method to Line
37522 - Added DumpTree method for debugging
37523 - Added DecrementLines() method for deleting lines
37524 - Fixed UpdateView to update the cursor to end-of-line on single-line
37526 - Added PositionCaret() method
37527 - Fixed MoveCaret(LineDown) to move into the last line, too
37528 - Added InsertChar overload
37529 - Fixed InsertChar tag offset calculations
37530 - Added DeleteChar() method
37531 - Added Combine() method for folding lines
37532 - Fixed Delete() method, no longer allocates wasted Line object and
37533 now copies all properties when swapping nodes
37534 - Delete() method now updates document line counter
37536 2004-12-15 Jackson Harper <jackson@ximian.com>
37538 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
37539 * X11Keyboard.cs: Expose the currently selected modifier keys
37540 through a property.
37542 2004-12-15 Peter Bartok <pbartok@novell.com>
37544 * TextControl.cs: Initial check-in. Still incomplete
37546 2004-12-15 Jackson Harper <jackson@ximian.com>
37549 * TreeView.cs: Fix build on csc (second time today ;-))
37551 2004-12-15 Jackson Harper <jackson@ximian.com>
37553 * TreeView.cs: Store the treenodes plus/minus box bounds when it
37554 is calculated and use this for click testing.
37555 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
37557 2004-12-15 Jackson Harper <jackson@ximian.com>
37559 * TreeView.cs: Pass the nodes image index to the image list when
37560 drawing that image.
37562 2004-12-15 Jackson Harper <jackson@ximian.com>
37564 * X11Keyboard.cs: Set messages hwnd.
37565 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
37566 post_message calls.
37568 2004-12-15 Jackson Harper <jackson@ximian.com>
37570 * X11Keyboard.cs: Fix to compile with csc.
37572 2004-12-15 Jackson Harper <jackson@ximian.com>
37574 * X11Structs.cs: Add key mask values
37575 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
37576 * X11Keyboard.cs: New file - Extrapolates and interpolates key
37577 down/up foo into WM_CHAR foo
37578 * KeyboardLayouts.cs: Common keyboard layouts
37579 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
37580 post messages into the main queue.
37582 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
37584 * Button.cs: implement ProcessMnemonic
37585 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
37587 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
37588 * ButtonBase.cs: Show HotkeyPrefix (not the &)
37590 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
37592 * MonthCalendar.cs: Implemented click-hold for next/previous month
37595 2004-12-11 Peter Bartok <pbartok@novell.com>
37598 - Added XKeyboardState (moved from XplatUIX11.cs)
37599 - Added XCreateGC related enums and structures
37600 - Added GXFunction for XSetFunction
37602 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
37604 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
37605 CaretVisible() calls
37607 * ToolTip.cs: Added code to prevent stealing focus from app windows
37609 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
37610 DestroyCaret, SetCaretPos and CaretVisible)
37613 - Added implementation for caret functions
37614 - Moved hover variables into a struct, to make it a bit easier
37615 on the eyes and to debug
37616 - Removed XKeyboardState (moved to XplatUIX11.cs)
37617 - Moved Keyboard properties into the properties region
37619 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
37620 call to get a graphics context for our control
37622 * XplatUIOSX.cs: Added empty overrides for the new caret functions
37624 * TreeView.cs: Fixed bug. No matter what color was set it would always
37625 return SystemColors.Window
37627 * XplatUIWin32.cs: Implemented caret overrides
37629 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
37631 * ListBox.cs: fire events, implement missing methods and properties,
37634 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
37636 * MonthCalendar.cs: invalidation bug fixing
37637 * ThemeWin32Classic.cs: paint fixing
37639 2004-12-09 Geoff Norton <gnorton@customerdna.com>
37641 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
37642 prepare the CGContextRef there now.
37644 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
37646 * MonthCalendar.cs:
37647 - optimisationL only invalidate areas that have changed
37648 * ThemeWin32Classic.cs:
37649 - only paint parts that intersect with clip_area
37651 2004-12-09 Peter Bartok <pbartok@novell.com>
37653 * Application.cs: Undid changes from r37004 which cause problems
37656 2004-12-09 Ravindra <rkumar@novell.com>
37658 * ToolBar.cs: Added support for displaying ContextMenu
37659 attached to a button on ToolBar.
37660 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
37663 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
37665 * Label.cs: autosize works in text change and removes unnecessary
37668 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
37670 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
37673 2004-12-08 Geoff Norton <gnorton@customerdna.com>
37675 * XplatUIOSX.cs: Added mouse move/click/grab support
37676 Remove some debugging WriteLines not needed anymore.
37677 Add window resizing/positioning.
37678 Fix visibility on reparenting.
37680 2004-12-08 Peter Bartok <pbartok@novell.com>
37682 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
37684 2004-12-07 Geoff Norton <gnorton@customerdna.com>
37686 * XplatUIOSX.cs: Initial checkin
37687 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
37689 2004-12-03 Ravindra <rkumar@novell.com>
37691 * ListView.cs: Added some keybindings and fixed scrolling.
37692 ScrollBars listen to ValueChanged event instead of Scroll
37693 Event. This would let us take care of all changes being
37694 done in the scrollbars' values programmatically or manually.
37695 * ListView.cs (CanMultiselect): Added a check for shift key.
37696 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
37697 * ListViewItem.cs (Clone): Fixed. We need to make a copy
37698 of ListViewSubItemCollection as well.
37700 2004-12-06 Peter Bartok <pbartok@novell.com>
37702 * Control.cs (Parent): Added check and exception to prevent
37705 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
37707 * ListBox.cs: implemented clipping, selection single and multiple,
37710 2004-12-03 Ravindra <rkumar@novell.com>
37712 * ListView.cs (ListView_KeyDown):
37713 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
37714 when CTRL key is pressed.
37715 * ListViewItem.cs (Selected): Fixed setting the property.
37717 2004-12-03 Marek Safar <marek.safar@seznam.cz>
37719 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
37721 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
37722 MinimizeBox, ShowInTaskbar, TopMost properties.
37724 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
37725 will be implemented).
37727 2004-12-03 Marek Safar <marek.safar@seznam.cz>
37729 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
37731 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
37734 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
37736 * TreeView.cs: BackColor is Colors.Window.
37738 2004-12-01 Jackson Harper <jackson@ximian.com>
37740 * TreeView.cs: When resizing the tree if the user is making it
37741 smaller we don't get expose events, so we need to handle adding
37742 the horizontal scrollbar in the size changed handler as well as
37743 the expose handler.
37745 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
37747 * DrawItemState.cs: fixes wrong enum values
37749 2004-12-01 Jackson Harper <jackson@ximian.com>
37751 * TreeView.cs: Resize the hbar as well as the vbar on resize.
37753 2004-12-01 Jackson Harper <jackson@ximian.com>
37755 * NodeLabelEditEventArgs.cs:
37756 * NodeLabelEditEventHandler.cs:
37757 * OpenTreeNodeEnumerator.cs:
37759 * TreeNodeCollection.cs:
37761 * TreeViewAction.cs:
37762 * TreeViewCancelEventArgs.cs:
37763 * TreeViewCancelEventHandler.cs:
37764 * TreeViewEventArgs.cs:
37765 * TreeViewEventHandler.cs: Initial implementation.
37767 2004-12-01 Ravindra <rkumar@novell.com>
37769 * ListView.cs (CalculateListView): Fixed scrolling related
37770 calculations. Also, removed some debug statements from other
37772 * ListViewItem.cs: Changed access to 'selected' instance variable
37773 from private to internal.
37774 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37776 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
37778 * ThemeWin32Classic.cs: remove cache of brush and pens for
37779 specific controls and use the global system, fixes scrollbutton
37780 bugs (for small sizes, disabled, etc)
37782 * ScrollBar.cs: does not show the thumb for very small controls
37783 (as MS) and allow smaller buttons that the regular size
37785 2004-12-01 Miguel de Icaza <miguel@ximian.com>
37787 * UpDownBase.cs: Add abstract methods for the interface.
37788 Add new virtual methods (need to be hooked up to TextEntry when it
37790 Add override methods for most features.
37791 Computes the size, forces the height of the text entry.
37793 * NumericUpDown.cs: Put here the current testing code.
37795 * Set eol-style property on all files that do not have mixed line
37796 endings, to minimize the future problems. There are still a few
37797 files with mixed endings, and someone should choose whether they
37798 want to move it or not.
37800 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
37802 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37805 2004-11-30 Ravindra <rkumar@novell.com>
37807 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37808 drawing and replaced use of SystemColors by theme colors.
37809 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37810 * ListView.cs (ListViewItemCollection.Add): Throw exception when
37811 same ListViewItem is being added more than once.
37813 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
37815 * MonthCalendar.cs:
37816 - ControlStyles love to make the control not flicker
37818 2004-11-30 Peter Bartok <pbartok@novell.com>
37820 * CharacterCasing.cs: Added
37822 2004-11-29 Peter Bartok <pbartok@novell.com>
37824 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37825 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37826 I am removing these files as they conflict with already completed
37827 work. While it is fantastic to get contributions to MWF, I
37828 respectfully ask that everyone please coordinate their contributions
37829 through mono-winforms-list or #mono-winforms at this time. We're
37830 explicitly avoiding stubbing and don't want controls that don't have
37831 their basic functionality implemented in svn. Please also see
37832 http://www.mono-project.com/contributing/winforms.html
37835 2004-11-29 Marek Safar <marek.safar@seznam.cz>
37837 * Application.cs (ModalRun): Don't hang after exit.
37839 * Theme.cs: New TreeViewDefaultSize property.
37841 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37842 with less hardcoded SystemColors constant.
37843 Implemented TreeViewDefaultSize.
37845 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37846 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37849 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
37851 * MonthCalendar.cs:
37852 - Fix NextMonthDate and PrevMonthDate click moving calendar
37854 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
37856 * MonthCalendar.cs:
37857 - Fix usage of ScrollChange Property when scrolling months
37859 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
37861 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37862 - Fixes menu destroying
37863 - Support adding and removing items on already created menus
37865 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
37867 * MonthCalendar.cs:
37868 - Re-worked all bolded dates handling to match win32
37869 * ThemeWin32Classic.cs:
37870 - Fixed rendering with bolded dates
37872 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
37874 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37875 - Horizontal scroolbar
37880 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
37882 * MonthCalendar.cs:
37883 - Fix Usage of MaxSelectionCount from SelectionRange
37884 - Fixed Shift + Cursor Selection
37885 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37886 - Fixed normal cursor selection to be compat with win32
37887 - Fixed Shift + Mouse Click selection
37889 2004-11-24 Peter Bartok <pbartok@novell.com>
37891 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37892 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37894 - CreatedKeyBoardMsg now updates keystate with Alt key
37895 - Added workaround for timer crash to CheckTimers, Jackson will
37896 develop a proper fix and check in later
37897 - Implemented DispatchMessage
37898 - Removed calling the native window proc from GetMessage (call
37899 now moved to DispatchMessage)
37901 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37902 the keydata (Fixes bug #69831)
37905 - (DispatchMessage): Switched to return IntPtr
37906 - Added DllImport for SetFocus
37908 2004-11-24 Ravindra <rkumar@novell.com>
37910 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37911 background drawing.
37912 * ListViewItem.cs: Fixed various properties, calculations
37913 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37914 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37915 and some internal properties. Fixed MouseDown handler and Paint
37918 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37920 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37922 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37924 * ContainerControl.cs: correct accidental check in of local changes
37926 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
37928 * ThemeWin32Classic.cs:
37929 - Fixed Drawing Last month in grid (sometimes not showing)
37930 * MonthCalendar.cs:
37931 - Fixed title width calculation bug (makeing title small)
37933 2004-11-23 Peter Bartok <pbartok@novell.com>
37936 - Added generation of WM_MOUSEHOVER event
37937 - Added missing assignment of async_method atom
37938 - Fixed WM_ERASEBKGND; now only redraws the exposed area
37940 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37942 * ThemeWin32Classic.cs:
37943 - Fixed Drawing of today circle when showtodaycircle not set
37944 - fixed drawing of first and last month in the grid (gay dates)
37945 * MonthCalendar.cs:
37946 - Fixed Drawing of today circle
37947 - Fixed drawing of grady dates
37948 - Fixed HitTest for today link when ShowToday set to false
37949 - Fixed DefaultSize to obey ShowToday
37951 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
37953 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37954 * System.Windows.Forms/Theme.cs
37955 * MonthCalendar.cs: added for MonthCalendar
37956 * SelectionRange.cs: added for MonthCalendar
37957 * Day.cs: added for MonthCalendar: added for MonthCalendar
37958 * DateRangeEventArgs.cs: added for MonthCalendar
37959 * DateRangeEventHandler.cs: added for MonthCalendar
37961 2004-11-22 Ravindra <rkumar@novell.com>
37963 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37966 2004-11-22 Miguel de Icaza <miguel@ximian.com>
37968 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37971 * NumericUpDown.cs: Added new implementation.
37972 * UpDownBase.cs: Added new implementation.
37974 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37977 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37980 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37983 2004-11-21 Miguel de Icaza <miguel@ximian.com>
37985 * Timer.cs (Dispose): Should call the base dispose when
37988 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
37990 * ScrollBar.cs: updates thumb position when max, min or increment
37993 2004-11-21 Ravindra <rkumar@novell.com>
37995 * ListView.cs: Implemented item selection, activation and
37996 column header style. Fixed properties to do a redraw, if
37997 required. Added support for MouseHover, DoubleClick, KeyDown
37998 and KeyUp event handling and some minor fixes.
37999 * ListViewItem.cs: Fixed constructor.
38000 * ThemeWin32Classic.cs: Improved drawing for ListView.
38002 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
38004 * ThemeWin32Classic.cs: initial listbox drawing code
38005 * DrawMode.cs: new enumerator
38006 * ListControl.cs: stubbed class
38007 * ListBox.cs: initial implementation
38008 * Theme.cs: new methods definitions
38009 * SelectionMode.cs: new enumerator
38011 2004-11-17 Peter Bartok <pbartok@novell.com>
38013 * XplatUIWin32.cs: Added double-click events to the class style
38014 * Control.cs (WndProc):
38015 - Added handling of click-count to MouseDown/ MouseUp events.
38016 - Added handling of middle and right mouse buttons
38017 - Removed old debug code
38019 2004-11-17 Jackson Harper <jackson@ximian.com>
38021 * XplatUIX11.cs: Use the new Mono.Unix namespace.
38023 2004-11-17 Ravindra <rkumar@novell.com>
38025 * ListView.cs: Added event handling for MouseMove/Up/Down.
38026 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
38027 * ThemeWin32Classic.cs: We need to clear the graphics context and
38028 draw column header in a proper state.
38031 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
38033 * Menu.cs: fixes signature
38035 2004-11-16 Peter Bartok <pbartok@novell.com>
38037 * XplatUIX11.cs (GetMessage): Implemented generation of
38038 double click mouse messages
38040 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
38042 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
38045 2004-11-11 Peter Bartok <pbartok@novell.com>
38047 * HandleData.cs: Added Visible property
38048 * XplatUIX11.cs (IsVisible): Now uses Visible property from
38050 * XplatUIX11.cs: Removed old debug leftovers
38051 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
38052 * Control.cs (WndProc): Removed old debug leftovers,
38053 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
38054 needed WM_SIZE handling
38056 2004-11-11 Jackson Harper <jackson@ximian.com>
38058 * OwnerDrawPropertyBag.cs:
38059 * TreeViewImageIndexConverter.cs: Initial implementation
38061 2004-11-10 Jackson Harper <jackson@ximian.com>
38063 * ThemeWin32Classic.cs:
38064 * TabControl.cs: instead of moving tabs by the slider pos just
38065 start drawing at the tab that is offset by the slider. This way
38066 scrolling always moves by exactly one tab.
38068 2004-11-10 Jackson Harper <jackson@ximian.com>
38070 * TabControl.cs: You can only scroll left when the slider has
38071 already ben moved right.
38073 2004-11-10 Jackson Harper <jackson@ximian.com>
38075 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
38078 2004-11-10 Jackson Harper <jackson@ximian.com>
38080 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
38083 2004-11-09 Jackson Harper <jackson@ximian.com>
38085 * TabControl.cs (CalcXPos): New helper method so we can determine
38086 the proper place to start drawing vertical tabs.
38087 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
38089 2004-11-09 Jackson Harper <jackson@ximian.com>
38091 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
38092 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
38093 and Bottom, left and right are illegal values for this and
38094 multiline is enabled when the alignment is set to left or right.
38095 (DrawTab): Each alignment block should draw the text itself now
38096 because Left requires special love. Also add rendering for Left
38099 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
38101 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
38102 does not destroy the windows, removes debugging messages
38104 2004-11-09 jba <jba-mono@optusnet.com.au>
38106 * ThemeWin32Classic.cs
38107 (DrawButtonBase): Fix verticle text rect clipping in windows
38108 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
38109 rendering and incorrect text rect clipping
38110 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
38111 rendering and incorrect text rect clipping
38113 2004-11-08 Jackson Harper <jackson@ximian.com>
38115 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
38116 bottom when they are bottom aligned so the bottoms of the tabs get
38118 * TabControl.cs (DropRow): Move rows up instead of down when the
38119 tab control is bottom aligned.
38121 2004-11-08 13:59 pbartok
38124 - Added handling for various window styles
38125 - Added handling for popup windows
38126 - Added SetTopmost handling
38128 2004-11-08 13:55 pbartok
38131 - Added argument to SetTopmost method
38132 - Fixed broken ClientToScreen function
38134 2004-11-08 13:53 pbartok
38136 * XplatUIStructs.cs:
38137 - Added missing WS_EX styles
38139 2004-11-08 13:53 pbartok
38141 * XplatUI.cs, XplatUIDriver.cs:
38142 - Added argument to SetTopmost
38144 2004-11-08 13:52 pbartok
38147 - Added XSetWindowAttributes structure
38148 - Improved XWindowAttributes structure
38149 - Added SetWindowValuemask enum
38150 - Added window creation arguments enum
38151 - Added gravity enum
38152 - Added Motif hints structure
38153 - Added various Motif flags and enums
38154 - Added PropertyMode enum for property functions
38156 2004-11-08 13:50 pbartok
38159 - Fixed arguments for updated SetTopmost method
38161 2004-11-08 13:49 pbartok
38164 - Fixed arguments for updated SetTopmost function
38165 - Fixed usage of PointToClient
38167 2004-11-08 13:44 pbartok
38170 - Added Clipping of children and siblings
38172 2004-11-08 13:41 pbartok
38175 - Removed SetMenuBarWindow call. We do this in Form.cs
38177 2004-11-08 13:40 jackson
38179 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
38180 scrolling jimmi in the correct location with bottom aligned tabs
38182 2004-11-08 13:36 pbartok
38184 * ContainerControl.cs:
38185 - Implemented BindingContext
38186 - Implemented ParentForm
38188 2004-11-08 12:46 jackson
38190 * TabControl.cs: Put bottom rendered tabs in the right location
38192 2004-11-08 07:15 jordi
38194 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
38197 2004-11-05 17:30 jackson
38199 * TabControl.cs: When selected tabs are expanded make sure they
38200 don't go beyond the edges of the tab control
38202 2004-11-05 14:57 jackson
38204 * TabControl.cs: Reset show_slider so if the control is resized to
38205 a size where it is no longer needed it's not displayed anymore
38207 2004-11-05 13:16 jackson
38209 * TabControl.cs: Make tab pages non visible when added to the
38212 2004-11-05 12:42 jackson
38214 * TabControl.cs: Implement SizeMode.FillToRight
38216 2004-11-05 12:16 jackson
38218 * Control.cs: Do not call CreateHandle if the handle is already
38221 2004-11-05 11:46 jackson
38223 * TabControl.cs: Remove superflous call to CalcTabRows
38225 2004-11-05 09:07 jackson
38227 * XplatUIX11.cs: Update for Mono.Posix changes
38229 2004-11-05 07:00 ravindra
38231 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
38234 2004-11-04 22:47 jba
38236 * ThemeWin32Classic.cs:
38237 - Fix Button rendering for FlatStyle = Flat or Popup
38238 - Fix RadioButton and CheckBox rendering when Appearance = Button
38239 (normal and flatstyle).
38240 - Correct outer rectangle color when drawing focus rectangle
38241 - Adjust button bounds to be 1 px smaller when focused
38242 - Make button not draw sunken 3d border when pushed (windows compat)
38243 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
38244 - Offset the text in RadioButton and Checkbox when being rendered as
38246 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
38248 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
38249 - Fixed disabled text rendering for normally rendered radiobuttons
38251 2004-11-04 10:26 jackson
38253 * TabControl.cs: Recalculate tab rows when resizing
38255 2004-11-04 07:47 jordi
38257 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
38258 collection completion, drawing issues, missing features
38260 2004-11-04 05:03 ravindra
38263 - We need to recalculate the Thumb area when
38264 LargeChange/maximum/minimum values are changed.
38265 - We set the 'pos' in UpdatePos() method to minimum, if it's less
38266 than minimum. This is required to handle the case if large_change is
38267 more than max, and use LargeChange property instead of large_change
38269 - We return max+1 when large_change is more than max, like MS does.
38271 2004-11-04 04:29 ravindra
38273 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
38274 - Changed default value signatures (prefixed all with ListView).
38275 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
38277 - Fixed calculations for ListViewItem and implemented Clone()
38280 2004-11-04 04:26 ravindra
38282 * Theme.cs, ThemeWin32Classic.cs:
38283 - Changed default ListView values signatures (prefixed all with
38285 - Fixed default size values for VScrollBar and HScrollBar.
38286 - Fixed DrawListViewItem method.
38288 2004-11-04 04:05 ravindra
38290 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
38292 2004-11-04 04:04 ravindra
38294 * ImageList.cs: Implemented the missing overload for Draw method.
38296 2004-11-03 19:29 jackson
38298 * TabControl.cs: Handle dropping rows on selection properly
38300 2004-11-03 11:59 jackson
38302 * TabControl.cs: remove debug code
38304 2004-11-03 11:52 jackson
38306 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
38307 the scrolly widgerywoo
38309 2004-11-02 13:52 jackson
38311 * TabControl.cs: Resize the tab pages and tabs when the tab control
38314 2004-11-02 13:40 jackson
38316 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
38317 selected tab to the bottom
38319 2004-11-02 13:39 jackson
38321 * TabPage.cs: Store the tab pages row
38323 2004-11-02 12:33 jordi
38325 * MenuItem.cs: fixes handle creation
38327 2004-11-02 11:42 jackson
38329 * TabControl.cs: signature fix
38331 2004-11-02 08:56 jackson
38333 * TabControl.cs: Calculate whether the tab is on an edge properly.
38334 Remove top secret debugging code
38336 2004-11-01 19:57 jackson
38338 * TabControl.cs: Add click handling, and proper sizing
38340 2004-11-01 19:47 jackson
38342 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
38345 2004-11-01 19:39 jackson
38347 * TabPage.cs: add internal property to store the bounds of a tab
38350 2004-10-30 04:23 ravindra
38352 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
38355 2004-10-30 04:21 ravindra
38357 * ListView.cs, ListViewItem.cs: Added support for scrolling and
38358 fixed calculations.
38360 2004-10-30 03:06 pbartok
38363 - Removed extension of DllImported libs
38365 2004-10-29 09:55 jordi
38367 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
38368 navigation, itemcollection completion, menu fixes
38370 2004-10-27 22:58 pbartok
38373 - Now throws a nice error message when no X display could be opened
38375 2004-10-26 13:51 jordi
38377 * ListView.cs: removes warning
38379 2004-10-26 03:55 ravindra
38381 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
38382 ThemeWin32Classic.cs: Some formatting for my last checkins.
38384 2004-10-26 03:36 ravindra
38386 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
38387 control and default values.
38389 2004-10-26 03:35 ravindra
38391 * Theme.cs: Added some default values for ListView control.
38393 2004-10-26 03:33 ravindra
38395 * ToolBar.cs: ToolBar should use the user specified button size, if
38396 there is any. Added a size_specified flag for the same.
38398 2004-10-26 03:33 ravindra
38400 * ColumnHeader.cs: Added some internal members and calculations for
38403 2004-10-26 03:32 ravindra
38405 * ListViewItem.cs: Calculations for ListViewItem.
38407 2004-10-26 03:31 ravindra
38409 * ListView.cs: Added some internal members and calculations for
38412 2004-10-22 13:31 jordi
38414 * MenuAPI.cs: speedup menus drawing
38416 2004-10-22 13:16 jackson
38418 * XplatUIX11.cs: Make sure to update exposed regions when adding an
38421 2004-10-22 11:49 jackson
38425 2004-10-22 11:41 jackson
38427 * Control.cs: Check to see if the window should have its background
38428 repainted by X when drawing.
38430 2004-10-22 11:31 jackson
38432 * XplatUIX11.cs: When invalidating areas only use XClearArea if
38433 clear is true, this way we do not get flicker from X repainting the
38436 2004-10-22 11:28 jackson
38438 * XEventQueue.cs: Queue properly
38440 2004-10-21 09:38 jackson
38442 * XEventQueue.cs: Fix access modifier
38444 2004-10-21 09:36 jackson
38446 * XEventQueue.cs: Don't loose messages
38448 2004-10-21 09:22 jackson
38450 * XEventQueue.cs: Don't loose messages
38452 2004-10-20 04:15 jordi
38454 * BootMode.cs: enum need it by SystemInfo
38456 2004-10-19 21:58 pbartok
38459 - Small sanity check
38461 2004-10-19 21:56 pbartok
38464 - Added private FormParentWindow class which acts as the container
38465 for our form and as the non-client area where menus are drawn
38466 - Added/Moved required tie-ins to Jordi's menus
38467 - Fixed/Implemented the FormStartPosition functionality
38469 2004-10-19 21:52 pbartok
38472 - Removed unneeded locals
38473 - Added code to all size and location properties to understand and
38474 deal with the parent container of Form
38476 2004-10-19 21:33 pbartok
38479 - Fixed to deal with new Form subclasses for menus
38481 2004-10-19 17:48 jackson
38483 * XEventQueue.cs: commit correct version of file
38485 2004-10-19 16:50 jackson
38487 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
38489 2004-10-19 16:15 jordi
38491 * MenuAPI.cs: MenuBarCalcSize returns the height
38493 2004-10-19 08:31 pbartok
38496 - Added missing call to PreProcessMessage before calling OnXXXKey
38499 2004-10-19 00:04 ravindra
38501 * ToolTip.cs: Fixed constructor.
38503 2004-10-18 09:31 jordi
38505 * MenuAPI.cs: menuitems in menubars do not have shortcuts
38507 2004-10-18 09:26 jordi
38509 * MenuItem.cs: fixes MenuItem class signature
38511 2004-10-18 08:56 jordi
38513 * MenuAPI.cs: prevents windows from showing in the taskbar
38515 2004-10-18 00:28 ravindra
38517 * ToolTip.cs: Suppressed a warning message.
38519 2004-10-18 00:27 ravindra
38521 * Control.cs: Default value of visible property must be true.
38523 2004-10-17 23:19 pbartok
38526 - Complete implementation
38528 2004-10-17 23:19 pbartok
38531 - Added EnableWindow method
38532 - Added SetModal stub
38533 - Added generation of WM_ACTIVATE message (still needs testing)
38534 - Added SetTopMost stub
38535 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
38537 2004-10-17 23:17 pbartok
38540 - Removed VirtualKeys to XplatUIStructs
38541 - Implemented SetTopMost method
38542 - Implemented EnableWindow method
38543 - Bugfix in ScreenToClient()
38544 - Bugfixes in ClientToScreen()
38546 2004-10-17 22:51 pbartok
38548 * XplatUIStructs.cs:
38549 - Added WS_EX styles to WindowStyles enumeration
38551 2004-10-17 22:50 pbartok
38553 * XplatUI.cs, XplatUIDriver.cs:
38554 - Added method for enabling/disabling windows
38555 - Added method for setting window modality
38556 - Added method for setting topmost window
38558 2004-10-17 22:49 pbartok
38560 * ThemeWin32Classic.cs:
38561 - Added ToolTip drawing code
38563 2004-10-17 22:49 pbartok
38566 - Added ToolTip abstracts
38568 2004-10-17 22:47 pbartok
38571 - Fixed Form.ControlCollection to handle owner relations
38572 - Added Owner/OwnedForms handling
38573 - Implemented Z-Ordering for owned forms
38574 - Removed unneeded private overload of ShowDialog
38575 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
38577 - Fixed Close(), had wrong default
38578 - Added firing of OnLoad event
38579 - Added some commented out debug code for Ownership handling
38581 2004-10-17 22:16 pbartok
38584 - Fixed/implemented flat list of controls
38586 2004-10-17 22:14 pbartok
38589 - Added code to simulate modal dialogs on Win32
38591 2004-10-17 16:11 jordi
38593 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
38596 2004-10-17 13:39 jordi
38598 * MenuAPI.cs: menu drawing fixes
38600 2004-10-15 09:10 ravindra
38602 * StructFormat.cs: General Enum.
38604 2004-10-15 09:09 ravindra
38606 * SizeGripStyle.cs: Enum for Form.
38608 2004-10-15 09:08 ravindra
38610 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
38611 in Theme for ListView.
38613 2004-10-15 09:06 ravindra
38615 * ColumnHeader.cs: Flushing some formatting changes.
38617 2004-10-15 09:05 ravindra
38619 * ListViewItem.cs: Implemented GetBounds method and fixed coding
38622 2004-10-15 09:03 ravindra
38624 * ListView.cs: Implemented Paint method and fixed coding style.
38626 2004-10-15 07:34 jordi
38628 * MenuAPI.cs: fix for X11
38630 2004-10-15 07:32 ravindra
38632 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
38633 - Renamed Paint() method to Draw() for clarity. Also, moved
38634 DrawImage() to OnPaint().
38636 2004-10-15 07:25 ravindra
38638 * CheckBox.cs, RadioButton.cs:
38639 - Removed Redraw (), we get it from ButtonBase.
38640 - Implemented Paint (), to do class specific painting.
38642 2004-10-15 07:16 ravindra
38645 - Redraw () is not virtual now.
38646 - Added an internal virtual method Paint (), so that
38647 derived classes can do their painting on their own.
38648 - Modified OnPaint () to call Paint ().
38650 2004-10-15 06:43 jordi
38652 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
38653 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
38655 2004-10-15 00:30 ravindra
38658 - MessageBox on windows does not have min/max buttons.
38659 This change in CreateParams fixes this on Windows. We
38660 still need to implement this windowstyle behavior in
38663 2004-10-14 05:14 ravindra
38666 - Changed Redraw () to do a Refresh () always.
38667 - Fixed the MouseMove event handling when mouse is pressed,
38668 ie drag event handling.
38669 - Replaced the usage of ToolBarButton.Pressed property to
38670 ToolBarButton.pressed internal variable.
38672 2004-10-14 05:10 ravindra
38674 * ToolBarButton.cs:
38675 - Added an internal member 'inside' to handle mouse move
38676 with mouse pressed ie mouse drag event.
38677 - Changed 'Pressed' property to return true only when
38678 'inside' and 'pressed' are both true.
38679 - Some coding style love.
38681 2004-10-14 00:17 ravindra
38683 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
38686 2004-10-14 00:15 ravindra
38688 * ButtonBase.cs: Redraw () related improvements.
38690 2004-10-14 00:14 ravindra
38692 * MessageBox.cs: Moved InitFormSize () out of Paint method and
38693 removed unnecessary calls to Button.Show () method.
38695 2004-10-13 17:50 pbartok
38699 - Removed destroying of window until we solve the problem of X
38700 destroying the window before us on shutdown
38702 2004-10-13 16:32 pbartok
38705 - Now Redraws on MouseUp for FlatStyle Flat and Popup
38707 2004-10-13 14:18 pbartok
38710 - Added code to destroy the X window
38712 2004-10-13 14:18 pbartok
38715 - Added code to destroy a window
38717 2004-10-13 14:12 pbartok
38720 - Added the Redraw on Resize that got dropped in the last rev
38722 2004-10-13 09:06 pbartok
38724 * ThemeWin32Classic.cs:
38725 - Path from John BouAntoun:
38726 * Fix check rendering (centre correctly for normal style, offset
38727 correctly for FlatStyle).
38728 * Fix border color usage (use backcolor) for FlatStyle.Popup
38729 * Use checkbox.Capture instead of checkbox.is_pressed when
38730 rendering flatstyle states.
38732 2004-10-12 21:48 pbartok
38734 * ThemeWin32Classic.cs:
38735 - Removed all occurences of SystemColors and replaced them with the
38736 matching theme color
38738 2004-10-12 21:41 pbartok
38740 * ThemeWin32Classic.cs:
38741 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
38742 him using the function for flatstyle drawing
38743 - Changed functions to use the new version of CPDrawBorder3D
38745 2004-10-12 21:15 pbartok
38748 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
38749 match MS documentation. They need to return defined colors if the
38750 passed color matches the configured control color. Thanks to John
38751 BouAntoun for pointing this out.
38753 2004-10-12 20:57 pbartok
38756 - Fix from John BouAntoun: Raise ForeColorChanged event when text
38759 2004-10-12 20:46 pbartok
38762 - Fix from John BouAntoun: Now properly sets the Appearance property
38764 2004-10-12 20:45 pbartok
38766 * ThemeWin32Classic.cs:
38767 - Fixes from John BouAntoun: now handles forecolors and backcolors
38768 for flatstyle rendered controls much better; It also fixes normal
38769 checkbox rendering when pushed or disabled.
38771 2004-10-08 02:50 jordi
38773 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38776 2004-10-07 08:56 jordi
38778 * ThemeWin32Classic.cs: Removes deletion of cached brushes
38780 2004-10-06 03:59 jordi
38782 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38783 XplatUIWin32.cs: removes warnings from compilation
38785 2004-10-05 12:23 jackson
38787 * RadioButton.cs: Fix ctor
38789 2004-10-05 11:10 pbartok
38792 - Partial implementation by Benjamin Dasnois
38794 2004-10-05 10:15 jackson
38796 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38799 2004-10-05 03:07 ravindra
38802 - Removed a private method, Draw ().
38803 - Fixed the ButtonDropDown event handling.
38804 - Fixed MouseMove event handling.
38806 2004-10-05 03:04 ravindra
38808 * ThemeWin32Classic.cs:
38809 - Added DrawListView method and ListViewDefaultSize property.
38810 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38811 - Changed DOS style CRLF to Unix format (dos2unix).
38813 2004-10-05 03:03 ravindra
38816 - Added DrawListView method and ListViewDefaultSize property.
38818 2004-10-05 02:42 ravindra
38820 * ToolBarButton.cs: Added an internal member dd_pressed to handle
38821 clicks on DropDown arrow.
38823 2004-10-04 22:56 jackson
38825 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38826 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38827 Control handle the buffers, derived classes should not have to
38828 CreateBuffers themselves.
38830 2004-10-04 21:20 jackson
38832 * StatusBar.cs: The control handles resizing the buffers now.
38834 2004-10-04 21:18 jackson
38836 * Control.cs: When resizing the buffers should be invalidated. This
38837 should be handled in Control not in derived classes.
38839 2004-10-04 14:45 jackson
38843 2004-10-04 02:14 pbartok
38845 * LeftRightAlignment.cs:
38848 2004-10-04 01:09 jordi
38850 * ThemeWin32Classic.cs: fixes right button position causing right
38851 button not showing on horizontal scrollbars
38853 2004-10-02 13:12 pbartok
38856 - Simplified the Invalidate method by using an X call instead of
38857 generating the expose ourselves
38858 - Added an expose when the window background is changed
38859 - Implemented ClientToScreen method
38861 2004-10-02 13:08 pbartok
38864 - Added Win32EnableWindow method (test for implementing modal
38866 - Added ClientToScreen method and imports
38868 2004-10-02 13:07 pbartok
38870 * XplatUI.cs, XplatUIDriver.cs:
38871 - Added ClientToScreen coordinate translation method
38873 2004-10-02 13:06 pbartok
38875 * KeyPressEventArgs.cs:
38876 - Fixed access level for constructor
38878 2004-10-02 13:06 pbartok
38881 - Changed access level for the window_collection hash table
38883 2004-10-02 13:05 pbartok
38886 - Added KeyPreview property
38887 - Added Menu property (still incomplete, pending Jordi's menu work)
38888 - Implemented ProcessCmdKey
38889 - Implemented ProcessDialogKey
38890 - Implemented ProcessKeyPreview
38892 2004-10-02 13:02 pbartok
38895 - Added private method to get the Control object from the window
38897 - Implemented ContextMenu property
38898 - Implemented PointToScreen
38899 - Implemented PreProcessMessage
38900 - Implemented IsInputChar
38901 - Implemented IsInputKey
38902 - Implemented ProcessCmdKey
38903 - Completed ProcessKeyEventArgs
38904 - Fixed message loop to call the proper chain of functions on key
38906 - Implemented ProcessDialogChar
38907 - Implemented ProcessDialogKey
38908 - Implemented ProcessKeyMessage
38909 - Implemented ProcessKeyPreview
38910 - Added RaiseDragEvent stub (MS internal method)
38911 - Added RaiseKeyEvent stub (MS internal method)
38912 - Added RaiseMouseEvent stub (MS Internal method)
38913 - Added RaisePaintEvent stub (MS Internal method)
38914 - Added ResetMouseEventArgs stub (MS Internal method)
38915 - Implemented RtlTranslateAlignment
38916 - Implemented RtlTranslateContent
38917 - Implemented RtlTranslateHorizontal
38918 - Implemented RtlTranslateLeftRight
38919 - Added generation of KeyPress event
38921 2004-10-02 05:57 ravindra
38923 * ListViewItem.cs: Added attributes.
38925 2004-10-02 05:32 ravindra
38927 * ListView.cs: Added attributes.
38929 2004-10-01 11:53 jackson
38931 * Form.cs: Implement the Close method so work on MessageBox can
38934 2004-09-30 14:06 pbartok
38939 2004-09-30 11:34 jackson
38941 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38943 2004-09-30 07:26 ravindra
38945 * ListViewItemConverter.cs: Converter for ListViewItem.
38947 2004-09-30 07:26 ravindra
38949 * SortOrder.cs: Enum for ListView control.
38951 2004-09-30 07:25 ravindra
38953 * ColumnHeader.cs: Supporting class for ListView control.
38955 2004-09-30 07:24 ravindra
38957 * ListView.cs, ListViewItem.cs: Initial implementation.
38959 2004-09-30 07:20 ravindra
38961 * ItemActivation.cs: Enum for ListView Control.
38963 2004-09-29 20:29 pbartok
38966 - Added lookup of pixel value for background color; tries to get a
38967 color 'close' to the requested color, it avoids having to create a
38968 colormap. Depending on the display this could mean the used color
38969 is slightly off the desired color. Might have to change it to a more
38970 resource intensive colormap approach, but it will work as a
38971 workaround to avoid red screens.
38973 2004-09-29 14:27 jackson
38975 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38977 2004-09-28 12:44 pbartok
38979 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38980 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38981 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38982 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38983 TrackBar.cs, VScrollBar.cs:
38984 - Streamlined Theme interfaces:
38985 * Each DrawXXX method for a control now is passed the object for
38986 the control to be drawn in order to allow accessing any state the
38987 theme might require
38989 * ControlPaint methods for the theme now have a CP prefix to avoid
38990 name clashes with the Draw methods for controls
38992 * Every control now retrieves it's DefaultSize from the current
38995 2004-09-28 12:17 jackson
38997 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
39000 2004-09-24 14:57 jackson
39002 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
39003 Gives us a nice little performance boost.
39005 2004-09-24 12:02 jackson
39007 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
39008 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
39009 Control and supporting classes. Initial checkin
39011 2004-09-23 13:08 jackson
39013 * Form.cs: Temp build fixage
39015 2004-09-23 01:39 ravindra
39017 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
39018 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
39019 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
39020 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
39021 EventHandlers needed by ListView Control.
39023 2004-09-22 14:12 pbartok
39025 * ScrollableControl.cs:
39026 - Implemented DockPadding property
39027 - Implemented AutoScroll property
39028 - Implemented AutoScrollMargin property
39029 - Implemented AutoScrollMinSize property
39030 - Implemented AutoScrollPosition property
39031 - Implemented DisplayRectangle property (still incomplete)
39032 - Implemented CreateParams property
39033 - Implemented HScroll property
39034 - Implemented VScroll property
39035 - Implemented OnVisibleChanged property
39037 2004-09-22 14:09 pbartok
39040 - Added Form.ControllCollection class
39041 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
39042 RemoveOwnedForm (still incomplete, missing on-top and common
39043 minimize/maximize behaviour)
39044 - Added StartPosition property (still incomplete, does not use when
39046 - Added ShowDialog() methods (still incomplete, missing forcing the
39049 2004-09-22 14:05 pbartok
39052 - Added message loop for modal dialogs
39054 2004-09-22 14:02 pbartok
39057 - Fixed wrong types for events
39059 2004-09-22 14:00 pbartok
39061 * Shortcut.cs, FormWindowState.cs:
39062 - Fixed wrong values
39064 2004-09-22 12:01 jackson
39066 * Control.cs: Text is never null
39068 2004-09-20 22:14 pbartok
39071 - Fixed accessibility level for Idle handler
39073 2004-09-20 18:54 jackson
39075 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39076 XplatUIX11.cs: New message loop that uses poll so we don't get a
39079 2004-09-17 10:43 pbartok
39082 - Fixed behaviour of arrow buttons. Now properly behaves like
39083 Buttons (and like Microsoft's scrollbar arrow buttons)
39085 2004-09-17 10:14 pbartok
39088 - Added missing release of keyboard/mouse capture
39090 2004-09-17 06:18 jordi
39092 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
39093 Theme.cs: Very early menu support
39095 2004-09-16 17:45 pbartok
39098 - Fixed sending a window to the front
39099 - Added overload for SetWindowPos to avoid casting
39101 2004-09-16 17:44 pbartok
39104 - Added SendToBack and BringToFront methods
39106 2004-09-16 07:00 ravindra
39108 * Copyright: Added Novell URL.
39110 2004-09-16 07:00 ravindra
39112 * ToolBar.cs: Invalidate should be done before redrawing.
39114 2004-09-15 21:19 ravindra
39116 * ColumnHeaderStyle.cs: Enum for ListView Control.
39118 2004-09-15 21:18 ravindra
39120 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
39123 2004-09-13 18:26 jackson
39125 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
39128 2004-09-13 18:13 jackson
39130 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
39131 a second thread and post messages into the main threads message
39132 queue. This makes timing much more consistent. Both win2K and XP
39133 have a minimum timer value of 15 milliseconds, so we now do this
39136 2004-09-13 15:18 pbartok
39138 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39140 - Added Z-Ordering methods
39142 2004-09-13 10:56 pbartok
39145 - Fixed #region names
39146 - Moved properties and methods into their proper #regions
39148 2004-09-13 10:51 pbartok
39151 - Added Accept and CancelButton properties
39152 - Added ProcessDialogKey() method
39154 2004-09-13 08:18 pbartok
39156 * IWindowTarget.cs:
39159 2004-09-10 21:50 pbartok
39162 - Added DoDragDrop() [incomplete]
39163 - Properly implemented 'Visible' handling
39164 - Added SetVisibleCore()
39165 - Implemented FindChildAtPoint()
39166 - Implemented GetContainerControl()
39167 - Implemented Hide()
39169 2004-09-10 19:28 pbartok
39172 - Moved methods into their appropriate #regions
39173 - Reordered methods within regions alphabetically
39175 2004-09-10 18:57 pbartok
39177 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39178 - Added method to retrieve text from window
39180 2004-09-10 18:56 pbartok
39183 - Moved some internal functions into the internal region
39184 - Implemented FontHeight
39185 - Implemented RenderRightToLeft
39186 - Implemented ResizeRedraw
39187 - Implemented ShowFocusCues
39188 - Implemented ShowKeyboardCues
39189 - Implemented FromChildHandle
39190 - Implemented FromHandle
39191 - Implemented IsMnemonic
39192 - Implemented ReflectMessage
39193 - All public and protected Static Methods are now complete
39195 2004-09-10 16:54 pbartok
39198 - Implemented remaining missing public instance properties
39199 - Alphabetized some out of order properties
39201 2004-09-10 05:51 ravindra
39203 * PictureBox.cs: Added a check for null image.
39205 2004-09-10 00:59 jordi
39207 * GroupBox.cs: remove cvs tag
39209 2004-09-09 05:25 ravindra
39211 * ToolBar.cs: Make redraw accessible from ToolBarButton.
39213 2004-09-09 05:23 ravindra
39215 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
39218 2004-09-09 02:28 pbartok
39220 * ThemeWin32Classic.cs:
39221 - Improve disabled string look
39223 2004-09-09 01:15 jordi
39225 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
39228 2004-09-08 23:56 ravindra
39230 * ItemBoundsPortion.cs: It's enum, not a class!
39232 2004-09-08 23:47 ravindra
39234 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
39237 2004-09-08 21:13 ravindra
39239 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
39242 2004-09-08 21:03 ravindra
39244 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
39247 2004-09-08 21:01 ravindra
39249 * ScrollableControl.cs: Removed unreachable code.
39251 2004-09-08 06:45 jordi
39253 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
39255 2004-09-08 01:00 jackson
39257 * XplatUIX11.cs: Only run the timers when updating the message
39258 queue. This effectively gives X messages a higher priority then
39259 timer messages. Timers still need love though
39261 2004-09-07 14:01 jackson
39263 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
39264 this for us and the handle is no longer valid.
39266 2004-09-07 13:59 jackson
39268 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
39269 loop that manages to not crash. TODO: Add poll and cleanup timers
39271 2004-09-07 11:12 jordi
39273 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
39275 2004-09-07 03:40 jordi
39277 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
39278 fixes, methods, multiple links
39280 2004-09-06 06:55 jordi
39282 * Control.cs: Caches ClientRectangle rectangle value
39284 2004-09-05 02:03 jordi
39286 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
39289 2004-09-04 11:10 jordi
39291 * Label.cs: Refresh when font changed
39293 2004-09-02 16:24 pbartok
39296 - Added sanity check to creation of double buffer bitmap
39298 2004-09-02 16:24 pbartok
39301 - Fixed selection of text color
39302 - Fixed handling of resize event; now properly recreates double
39304 - Added missing assignment of TextAlignment
39305 - Added proper default for TextAlignment
39307 2004-09-02 14:26 pbartok
39310 - Added missing RadioButton.RadioButtonAccessibleObject class
39312 2004-09-02 14:26 pbartok
39315 - Added missing Control.ControlAccessibleObject class
39316 - Started to implement Select()ion mechanisms, still very incomplete
39318 2004-09-02 14:25 pbartok
39320 * AccessibleObject.cs:
39321 - Added missing methods
39323 2004-09-02 14:23 pbartok
39325 * AccessibleNavigation.cs, AccessibleSelection.cs:
39328 2004-09-02 10:32 jordi
39330 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
39331 pool for pens, brushes, and hatchbruses
39333 2004-09-01 15:30 jackson
39335 * StatusBar.cs: Fix typo
39337 2004-09-01 14:44 pbartok
39342 2004-09-01 14:39 pbartok
39344 * Button.cs, RadioButton.cs:
39345 - Functional initial check-in
39347 2004-09-01 14:01 pbartok
39350 - Added missing default
39351 - Added missing region mark
39353 2004-09-01 09:10 jordi
39355 * Label.cs: fixes method signatures, new methods, events, fixes
39358 2004-09-01 07:19 jordi
39360 * Control.cs: Init string variables with an empty object
39362 2004-09-01 04:20 jordi
39364 * Control.cs: fires OnFontChanged event
39366 2004-08-31 20:07 pbartok
39369 - Enabled display of strings
39371 2004-08-31 20:05 pbartok
39374 - Added (partial) implementation of DialogResult; rest needs to be
39375 implemented when the modal loop code is done
39377 2004-08-31 19:55 pbartok
39380 - Fixed to match the removal of the needs_redraw concept
39382 2004-08-31 19:55 pbartok
39385 - Removed the rather odd split between 'needs redraw' and redrawing
39386 - Now handles the events that require regeneration (ambient
39387 properties and size)
39389 2004-08-31 19:41 pbartok
39392 - Added firing of BackColorChanged event
39393 - Added TopLevelControl property
39394 - Fixed handling of WM_ERASEBKGRND message
39396 2004-08-31 12:49 pbartok
39402 2004-08-31 12:48 pbartok
39405 - Finished (famous last words)
39407 2004-08-31 04:35 jordi
39409 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
39410 scrolling bugs, adds new methods
39412 2004-08-30 14:42 pbartok
39415 - Implemented CheckBox drawing code
39417 2004-08-30 14:42 pbartok
39420 - Made Redraw() and CheckRedraw() virtual
39421 - Improved mouse up/down/move logic to properly track buttons
39423 2004-08-30 09:44 pbartok
39426 - Updated to fix broken build. Not complete yet.
39428 2004-08-30 09:28 pbartok
39433 2004-08-30 09:17 pbartok
39438 2004-08-27 16:12 ravindra
39440 * ToolBarButton.cs: Added TypeConverter attribute.
39442 2004-08-27 16:07 ravindra
39444 * ImageIndexConverter.cs: Implemented.
39446 2004-08-27 14:17 pbartok
39449 - Removed unneeded stack vars
39450 - First attempt to fix sizing issues when layout is suspended
39452 2004-08-25 15:35 jordi
39454 * ScrollBar.cs: more fixes to scrollbar
39456 2004-08-25 14:04 ravindra
39458 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
39459 Added the missing divider code and grip for ToolBar Control.
39461 2004-08-25 13:20 pbartok
39464 - Control now properly passes the ambient background color to child
39467 2004-08-25 13:20 jordi
39469 * ScrollBar.cs: small bug fix regarding bar position
39471 2004-08-25 12:33 pbartok
39474 - Now only calls SetTimer or KillTimer if the enabled state has
39477 2004-08-25 12:33 pbartok
39480 - Fixed timer handling, now seems to work
39481 - Improved error message for window creation
39483 2004-08-25 12:32 pbartok
39486 - Fixed generation of MouseUp message
39488 2004-08-25 12:29 jordi
39490 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
39491 and fixes for progressbar
39493 2004-08-24 18:43 ravindra
39495 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
39496 in ToolBar control.
39498 2004-08-24 17:15 pbartok
39502 - Added missing events
39505 2004-08-24 17:14 pbartok
39507 * StatusBar.cs, PictureBox.cs:
39508 - Now uses Control's CreateParams
39510 2004-08-24 16:36 pbartok
39513 - Fixed background color handling
39514 - Fixed sending of enter/leave events on a grab
39516 2004-08-24 16:35 pbartok
39519 - Refined definitions for CrossingEvent
39521 2004-08-24 12:37 jordi
39523 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
39524 formmating, methods signature, and adds missing events
39526 2004-08-24 12:24 jordi
39528 * Control.cs: fire OnEnabledChanged event
39530 2004-08-24 11:17 pbartok
39533 - Implemented SetTimer() and KillTimer()
39535 2004-08-24 11:16 pbartok
39538 - Now uses Remove instead of Add to kill the timer
39540 2004-08-24 10:16 jackson
39542 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
39543 picture boxes in the theme now. Draw picture box borders and obey
39546 2004-08-24 05:49 jackson
39548 * Timer.cs: Remove top secret debugging code
39550 2004-08-24 05:34 jackson
39552 * PictureBox.cs: Temp hack to make picture boxes draw their full
39555 2004-08-24 05:29 jackson
39557 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39558 XplatUIX11.cs: Move timers to the driver level. On X they are
39559 queued by the driver and checked on idle.
39561 2004-08-24 01:07 jackson
39563 * XplatUIX11.cs: Use a queue for async messages instead of passing
39564 them as ClientMessages since that was totally broken. Also simply
39565 check for events and return an idle message if none are found. This
39566 gives us an idle handler, and prevents deadlocking when no messages
39569 2004-08-23 18:19 ravindra
39571 * XplatUIWin32.cs: Removed the unwanted destructor.
39573 2004-08-23 17:27 pbartok
39576 - Finishing touches. Works now, just needs some optimizations.
39578 2004-08-23 16:53 jordi
39580 * ScrollBar.cs: small fix
39582 2004-08-23 16:45 pbartok
39585 - Removed debug output
39588 2004-08-23 16:43 jordi
39590 * ScrollBar.cs: [no log message]
39592 2004-08-23 16:10 pbartok
39595 - Fixed handling of WM_CLOSE message
39596 - Removed debug output
39598 2004-08-23 16:09 pbartok
39601 - Added handling of Idle event
39602 - Added handling of form closing
39603 - Fixed reporting of MessageLoop property
39604 - Removed some unneeded code, should provide a bit of a speedup
39606 2004-08-23 15:22 pbartok
39609 - Added InitLayout() method
39610 - Added code to properly perform layout when Anchor or Dock property
39612 - Changed 'interpretation' of ResumeLayout. MS seems to have a
39613 LAMESPEC, tried to do it in a way that makes sense
39615 2004-08-23 14:10 jordi
39617 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
39618 properties and methods
39620 2004-08-23 13:55 pbartok
39623 - Properly fixed Jordi's last fix
39624 - Now uses Cursor's Position property instead of calling XplatUI
39627 2004-08-23 13:44 jordi
39629 * PaintEventHandler.cs: Adding missing attribute
39631 2004-08-23 13:39 pbartok
39634 - Implemented Position property
39636 2004-08-23 13:39 pbartok
39638 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39639 - Added method to move mouse cursor
39641 2004-08-23 13:39 pbartok
39644 - Fixed setting of background color
39645 - Added method to move mouse cursor
39647 2004-08-23 13:16 jordi
39649 * Control.cs: avoids null exception
39651 2004-08-22 17:46 jackson
39653 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
39656 2004-08-22 17:40 jackson
39658 * XplatUIX11.cs: Add some missing locks
39660 2004-08-22 15:10 pbartok
39662 * Control.cs, Form.cs:
39663 - Removed OverlappedWindow style from Control, instead it's default
39665 - Made form windows OverlappedWindow by default
39667 2004-08-22 13:34 jackson
39669 * ScrollBar.cs: Update the position through the Value property so
39670 the OnValueChanged event is raised.
39672 2004-08-22 12:04 pbartok
39675 - Added Cursor.cs and UserControl.cs
39677 2004-08-22 12:03 pbartok
39680 - Started implementation, not usable yet
39682 2004-08-22 12:00 pbartok
39685 - Implemented UserControl (complete)
39687 2004-08-21 19:20 ravindra
39689 * ToolBar.cs: Correcting the formatting mess of VS.NET.
39691 2004-08-21 18:49 ravindra
39693 * ToolBar.cs: Probably this completes the missing attributes in
39696 2004-08-21 18:03 ravindra
39698 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
39699 Fixed toolbar control signatures.
39701 2004-08-21 16:32 pbartok
39706 2004-08-21 16:30 pbartok
39711 2004-08-21 16:19 pbartok
39713 * Control.cs, Label.cs:
39716 2004-08-21 15:57 pbartok
39719 - Added loads of debug output for development
39720 - Fixed typo in method name
39722 2004-08-21 15:52 pbartok
39724 * ToolBarButtonClickEventArgs.cs:
39725 - Added missing base class
39727 2004-08-21 14:53 pbartok
39730 - Updated to match new GrabWindow signature
39732 2004-08-21 14:51 pbartok
39734 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39735 - Added method to get default display size
39737 2004-08-21 14:23 pbartok
39739 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39740 - Added method to query current grab state
39741 - Added argument to allow confining a grab to a window
39743 2004-08-21 14:22 pbartok
39746 - Added [Flags] attribute so that modifiers can be used in bitwise
39749 2004-08-21 14:21 pbartok
39751 * TrackBar.cs, ScrollBar.cs:
39752 - Replaced direct XplatUI calls with their Control counterpart
39754 2004-08-21 13:32 pbartok
39757 - Implemented Created property
39759 2004-08-21 13:28 pbartok
39762 - Implemented ContainsFocus
39764 2004-08-21 13:26 pbartok
39767 - Implemented CausesValidation
39769 2004-08-21 13:21 pbartok
39772 - Implemented CanFocus
39773 - Implemented CanSelect
39774 - Implemented Capture
39776 2004-08-21 12:35 pbartok
39779 - Fixed bug with Async message handling
39780 - Implemented getting the ModifierKeys
39782 2004-08-21 12:32 jackson
39784 * AsyncMethodResult.cs: Make sure we have the mutex before we
39785 release it. Fixes BeginInvoke on windows
39787 2004-08-21 11:31 pbartok
39789 * XplatUIWin32.cs, XplatUIX11.cs:
39790 - Drivers now return proper mouse state
39792 2004-08-21 10:54 jackson
39794 * Control.cs: Implement EndInvoke
39796 2004-08-21 10:48 jackson
39798 * Timer.cs: Remove unneeded finalizer
39800 2004-08-20 19:52 ravindra
39802 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39803 in mouse event handling in the ToolBar control.
39805 2004-08-20 19:50 ravindra
39807 * ImageList.cs: Changed draw method to use the arguments passed in
39810 2004-08-20 18:58 pbartok
39812 * XplatUIStructs.cs:
39813 - Added private message for async communication
39815 2004-08-20 17:38 ravindra
39817 * Control.cs: Made RightToLeft property virtual and removed a
39820 2004-08-20 14:39 jordi
39822 * ThemeGtk.cs: use style_attach
39824 2004-08-20 14:39 pbartok
39827 - Added jackson's Async code from X11 to Win32
39829 2004-08-20 14:09 pbartok
39832 - Added all new files
39834 2004-08-20 14:09 pbartok
39837 - Added call to set window background color
39839 2004-08-20 14:03 pbartok
39841 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39842 - Added method for setting the window background
39844 2004-08-20 14:02 pbartok
39847 - Added method for setting the background color
39848 - Added handling for erasing the window background
39850 2004-08-20 13:45 jordi
39852 * TrackBar.cs: fixes timer, new properties and methods
39854 2004-08-20 13:34 jackson
39856 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39859 2004-08-20 13:22 jackson
39861 * Timer.cs: Timer Tick events are now handed through Controls Async
39862 mechanism so the callbacks are executed in the same thread as X
39864 2004-08-20 13:19 jackson
39866 * XplatUIDriver.cs: Expose functionality to send async messages
39869 2004-08-20 13:18 jackson
39871 * Control.cs: Implement Begininvoke
39873 2004-08-20 13:14 jackson
39875 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39876 messages through the driver
39878 2004-08-20 13:12 jackson
39880 * XplatUIX11.cs: Lock before all X operations. Also added Async
39881 method functionality through XSendEvent
39883 2004-08-20 13:11 jackson
39885 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39886 This will screw up on 64 bit systems)
39888 2004-08-20 13:10 jackson
39890 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39891 Async messages through X/Win32
39893 2004-08-19 19:39 pbartok
39896 - Updated code to match new HandleData.DeviceContext type
39898 2004-08-19 19:38 pbartok
39901 - Made DeviceContext a generic object to allow usage from various
39903 - Added support for queueing Windows messages
39905 2004-08-19 19:37 pbartok
39908 - Added generation of MouseEnter, MouseLeave and MouseHover events
39909 - Added cleanup on EndPaint
39911 2004-08-19 19:17 pbartok
39914 - Added handling of WM_MOUSEHOVER
39915 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39918 2004-08-19 18:55 jordi
39920 * ThemeGtk.cs: fixes button order
39922 2004-08-19 18:12 jordi
39924 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39926 2004-08-19 17:09 pbartok
39929 - Added Right property
39930 - Added RightToLeft property
39932 2004-08-19 16:27 jordi
39934 * ThemeGtk.cs: experimental GTK theme support
39936 2004-08-19 16:26 jordi
39938 * ITheme.cs, Theme.cs: move themes from an interface to a class
39940 2004-08-19 16:25 jordi
39942 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39945 2004-08-19 16:04 pbartok
39948 - Added colormap basics
39949 - Added a way to re-initialize with a different display handle
39950 - Fixed setting of the window background color
39951 - Added various X11 imports related to colors and colormaps
39953 2004-08-19 15:51 pbartok
39956 - Removed packing hints (Paolo suggested this a while back)
39957 - fixed colormap type
39958 - Added default Atom types
39959 - Added Screen and color structs and enums
39961 2004-08-19 15:39 pbartok
39964 - Added missing Draw() method
39965 - Added missing RecreateHandle event
39967 2004-08-19 15:30 pbartok
39970 - Added handling of WM_CLOSE
39972 2004-08-18 13:16 jordi
39974 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39977 2004-08-18 09:56 jordi
39979 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39981 2004-08-17 15:31 ravindra
39983 * SWF.csproj: Updated project.
39985 2004-08-17 15:25 pbartok
39988 - Drawing improvement; don't call UpdateBounds if we are not visible
39989 (or have been minimized)
39991 2004-08-17 15:24 pbartok
39994 - Finished IsVisible
39995 - Added Win32GetWindowPlacement
39997 2004-08-17 15:08 jackson
39999 * Panel.cs: Initial checkin of the Panel
40001 2004-08-17 14:25 pbartok
40004 - Fixed broken handling of default window sizes
40006 2004-08-17 13:29 jackson
40008 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
40009 has a large startup time.
40011 2004-08-17 10:25 jackson
40013 * HandleData.cs: union areas properly
40015 2004-08-17 10:12 jackson
40017 * HandleData.cs: union areas properly
40019 2004-08-16 20:00 ravindra
40021 * ToolBar.cs, ToolBarButton.cs: Added attributes.
40023 2004-08-16 18:48 ravindra
40025 * ToolBar.cs: Added attributes.
40027 2004-08-16 17:17 ravindra
40029 * SWF.csproj: Updated project.
40031 2004-08-16 17:16 jackson
40033 * XplatUIX11.cs: Check for more expose events before sending a
40034 WM_PAINT so they can all be grouped together. This makes dragging a
40035 window across another window redraw in a sane way.
40037 2004-08-16 15:47 pbartok
40040 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
40041 support OnMouseEnter/Leave()
40042 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
40045 2004-08-16 15:46 pbartok
40047 * XplatUIStructs.cs, XplatUIX11.cs:
40048 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
40049 OnMouseEnter/Leave()
40051 2004-08-16 15:34 jackson
40053 * XplatUIX11.cs: Group multiple expose events in HandleData, make
40054 sure messages get the message field set to WM_NULL if they are not
40057 2004-08-16 15:24 jackson
40059 * HandleData.cs: HandleData is used for storing message information
40062 2004-08-15 17:23 ravindra
40064 * ColorDepth.cs: Added attribute.
40066 2004-08-15 17:23 ravindra
40068 * SWF.csproj: Updated project for ToolBar Control.
40070 2004-08-15 17:20 ravindra
40072 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
40073 control and also dos2unix format.
40075 2004-08-15 17:13 ravindra
40077 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
40078 ToolBarButtonClickEventArgs.cs,
40079 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
40080 ToolBarTextAlign.cs: First Implementation of ToolBar control.
40082 2004-08-15 15:31 pbartok
40085 - First (mostly) working version
40087 2004-08-13 16:15 pbartok
40090 - Fixed Anchor default
40092 2004-08-13 15:43 pbartok
40095 - Changed GetCursorPos signature
40097 2004-08-13 15:42 pbartok
40099 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
40100 - Changed signature for GetCursorPos
40102 2004-08-13 15:25 pbartok
40106 - Fixed resizing/exposure handling
40108 2004-08-13 15:22 jordi
40110 * ThemeWin32Classic.cs: removes redundant code and fixes issues
40113 2004-08-13 14:55 jordi
40115 * TrackBar.cs: change from wndproc to events
40117 2004-08-13 13:00 jordi
40119 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40120 XplatUIX11.cs: implements PointToClient (ScreenToClient)
40122 2004-08-13 12:53 pbartok
40125 - Changed GetWindowPos to also provide client area size
40126 - Fixed broken prototypes for several win32 functions
40128 2004-08-13 12:53 pbartok
40130 * XplatUI.cs, XplatUIDriver.cs:
40131 - Changed GetWindowPos to also provide client area size
40133 2004-08-13 12:52 pbartok
40136 - Added generation of WM_POSCHANGED
40137 - Changed GetWindowPos to also provide client area size
40139 2004-08-13 12:52 pbartok
40142 - Added Dispose() and destructor
40143 - Fixed resizing and bounds calculation
40145 - Added memory savings for invisible windows
40147 2004-08-13 12:46 jordi
40149 * TrackBar.cs: adds timer and grap window
40151 2004-08-13 10:25 jackson
40153 * Timer.cs: SWF Timer
40155 2004-08-12 16:59 pbartok
40157 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40158 - Implemented method to get current mouse position
40160 2004-08-12 14:29 jordi
40162 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
40163 enhancement, fix mouse problems, highli thumb, etc
40165 2004-08-12 13:31 pbartok
40168 - Fixed Anchoring bugs
40170 2004-08-12 13:01 jackson
40172 * StatusBar.cs: Don't forget things
40174 2004-08-12 12:54 jackson
40176 * ThemeWin32Classic.cs: Handle owner draw status bars
40178 2004-08-12 12:54 jackson
40180 * StatusBar.cs: Implement missing properties, events, and methods.
40181 Handle mouse clicking
40183 2004-08-12 10:19 jackson
40185 * StatusBarPanelClickEventArgs.cs,
40186 StatusBarPanelClickEventHandler.cs: Classes for handling status
40187 bar panel click events
40189 2004-08-12 10:10 jackson
40191 * Control.cs: Add missing properties
40193 2004-08-12 09:46 pbartok
40195 * BindingsManagerBase.cs:
40196 - Name changed to BindingManagerBase.cs
40198 2004-08-12 09:25 jordi
40200 * ScrollableControl.cs: calls ctrlbase instead of exeception
40202 2004-08-11 16:28 pbartok
40204 * InputLanguageChangingEventArgs.cs:
40205 - Never check in before compiling. Fixes the last check-in
40207 2004-08-11 16:26 pbartok
40209 * InputLanguageChangingEventArgs.cs:
40210 - More signature fixes
40212 2004-08-11 16:20 pbartok
40214 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
40215 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
40216 ImageListStreamer.cs, InputLanguage.cs,
40217 InputLanguageChangedEventArgs.cs,
40218 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
40219 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
40220 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
40221 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40224 2004-08-11 16:16 pbartok
40228 - Added .Net 1.1 method
40230 2004-08-11 15:25 pbartok
40233 - Fixed BindingManagerBase.cs filename
40235 2004-08-11 15:22 pbartok
40237 * BindingManagerBase.cs:
40238 - Was checked in with wrong filename
40240 2004-08-11 14:50 pbartok
40245 2004-08-11 13:41 jordi
40247 * XplatUIWin32.cs: Fixes ClientRect
40249 2004-08-11 13:19 pbartok
40251 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40253 - We had SetWindowPos and MoveWindow to set window positions and
40254 size, removed MoveWindow. We have GetWindowPos, so it made sense to
40255 keep SetWindowPos as matching counterpart
40256 - Added some X11 sanity checking
40258 2004-08-11 12:59 pbartok
40261 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
40262 (It seems that SetBounds is just a front for SetBoundsCore and
40263 SetBoundsCore updates the underlying window system and
40264 UpdateBounds is responsible for updating the variables associated
40265 with the Control and sending the events)
40266 - Major cleanup of Size handling; we now have two sizes, client_size
40267 and bounds. Bounds defines the window with decorations, client_size
40270 2004-08-11 12:55 pbartok
40272 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40273 - Added method to calculate difference between decorated window and
40276 2004-08-11 12:54 pbartok
40279 - Forcing redraw on resize
40281 2004-08-11 11:43 pbartok
40284 - Removed disposing of the actual images when the list is disposed
40286 2004-08-11 09:13 pbartok
40289 - Now properly reparents windows
40291 2004-08-11 08:37 pbartok
40296 2004-08-11 07:47 pbartok
40299 - Rewrote the collection stuff. Might not be as fast now, not
40300 keeping the number of children around and accessible directly, but
40301 it's more straightforward
40303 2004-08-11 07:44 pbartok
40305 * AccessibleObject.cs:
40306 - Fixed to match ControlCollection rewrite
40308 2004-08-11 07:43 pbartok
40311 - Added missing creation of the collection list
40313 2004-08-10 20:08 jackson
40315 * StatusBar.cs: Get the paint message from WndProc
40317 2004-08-10 19:31 jackson
40319 * ThemeWin32Classic.cs: Create Brushes as little as possible
40321 2004-08-10 19:20 jackson
40323 * UICues.cs: Add Flags attribute
40325 2004-08-10 19:19 jackson
40327 * StatusBarPanel.cs: Signature cleanup
40329 2004-08-10 19:10 jackson
40331 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
40332 Initial implementation of status bar item drawing
40334 2004-08-10 17:27 jordi
40336 * TrackBar.cs: add missing methods, properties, and restructure to
40339 2004-08-10 16:24 jackson
40341 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
40342 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
40345 2004-08-10 13:21 jordi
40347 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
40348 enhancements and standarize on win colors defaults
40350 2004-08-10 12:52 jackson
40352 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
40353 ThemeWin32Classic.cs: Implement DrawItem functionality
40355 2004-08-10 12:47 jordi
40357 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
40359 2004-08-10 12:32 jordi
40361 * Control.cs: throw ontextchange event
40363 2004-08-10 11:43 pbartok
40366 - Added more to the still unfinished Dock/Anchor layout code
40368 2004-08-10 11:39 pbartok
40370 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
40371 - Added GetWindowPos method
40373 2004-08-10 11:36 pbartok
40376 - Implemented several methods
40378 2004-08-10 09:47 jackson
40380 * TrackBar.cs: Allow control to handle buffering
40382 2004-08-10 09:41 jackson
40384 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
40386 2004-08-10 09:24 jackson
40388 * Label.cs, LinkLabel.cs: Let Control handle buffering.
40390 2004-08-10 09:09 jackson
40392 * StatusBar.cs: Let Control handle all the buffering.
40394 2004-08-10 09:08 jackson
40396 * Control.cs: Control will now handle the buffering code, so each
40397 control does not have to implement this.
40399 2004-08-10 08:34 jackson
40401 * XplatUIDriver.cs: Use default colors from the theme
40403 2004-08-09 17:12 pbartok
40406 - Fixed several bugs Ravindra pointed out
40408 2004-08-09 16:11 pbartok
40411 - Added incomplete dock layout code
40412 - Added support for mouse wheel
40414 2004-08-09 16:09 pbartok
40417 - Added handling for middle and right mousebutton
40418 - Added handling for mouse wheel
40419 - Added handling for key state and mouse state and position
40420 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
40423 2004-08-09 15:40 jackson
40425 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
40426 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
40429 2004-08-09 15:37 jackson
40431 * StatusBar.cs: Initial implementation of StatusBar
40433 2004-08-09 15:36 jackson
40435 * ITheme.cs: Add support for drawing status bar and getting status
40438 2004-08-09 15:35 pbartok
40443 2004-08-09 15:34 jackson
40445 * ThemeWin32Classic.cs: Add support for drawing status bar and get
40446 status bar item sizes
40448 2004-08-09 15:21 jackson
40450 * ThemeWin32Classic.cs: Use known colors for default control
40453 2004-08-09 15:12 jackson
40455 * ThemeWin32Classic.cs: Make the default font static, it is static
40456 in control so this doesn't change functionality and creating fonts
40459 2004-08-09 14:56 pbartok
40462 - Added GrabMode enum
40464 2004-08-09 14:55 pbartok
40466 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40467 - Removed Run method, was only required for initial development
40469 2004-08-09 14:51 pbartok
40471 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40472 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
40475 2004-08-09 13:48 pbartok
40478 - Fixed default sizing for child windows
40480 2004-08-09 12:56 pbartok
40483 - Added generation of WM_DESTROY message
40484 - Added handling of window manager induced shutdown
40486 2004-08-09 11:31 jackson
40488 * ThemeWin32Classic.cs: New names for control properties
40490 2004-08-09 11:25 jackson
40492 * Control.cs: Use new color names
40494 2004-08-09 11:02 jackson
40496 * XplatUI.cs: Get default window properties from the theme
40498 2004-08-09 11:01 jackson
40500 * ITheme.cs: The theme engine now controls default window
40503 2004-08-09 11:00 jackson
40505 * ThemeWin32Classic.cs: Add default window color properties
40507 2004-08-09 10:17 jackson
40509 * ThemeWin32Classic.cs: Use correct default back color
40511 2004-08-09 10:05 jackson
40513 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
40516 2004-08-09 09:56 jackson
40518 * XplatUI.cs: Remove defaults, these are handled by the theme now.
40520 2004-08-09 09:54 jackson
40522 * Control.cs: Get default properties from the theme.
40524 2004-08-09 09:53 jackson
40526 * ITheme.cs: Themes now handle default control properties
40528 2004-08-09 09:53 jackson
40530 * ThemeWin32Classic.cs: Themes now handle default control
40531 properties so coloring will be consistent
40533 2004-08-08 16:54 jordi
40535 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
40537 2004-08-08 15:08 jordi
40539 * XplatUIX11.cs: fixes keyboard crash
40541 2004-08-08 13:47 jordi
40543 * Label.cs: add cvs header info
40545 2004-08-08 12:09 jackson
40547 * ThemeWin32Classic.cs: Add pen_buttonface
40549 2004-08-08 11:52 jordi
40551 * Label.cs, LinkLabel.cs: [no log message]
40553 2004-08-08 11:34 jordi
40555 * ThemeWin32Classic.cs: Use Windows Standard Colours
40557 2004-08-07 17:32 jordi
40559 * TrackBar.cs: throw exceptions of invalid enums values
40561 2004-08-07 17:31 jordi
40563 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
40566 2004-08-07 16:56 jackson
40568 * HorizontalAlignment.cs: Initial checkin
40570 2004-08-07 13:16 jordi
40572 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
40575 2004-08-07 13:05 jordi
40577 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
40578 GetSysColor defines
40580 2004-08-06 18:01 pbartok
40582 * ThemeWin32Classic.cs:
40583 - Fixed some rounding issues with float/int
40585 2004-08-06 18:00 jackson
40587 * DockStyle.cs, AnchorStyles.cs:
40589 Add flags and serializable attributes.
40591 2004-08-06 17:46 pbartok
40594 - Implemented GetParent
40596 2004-08-06 17:18 pbartok
40599 - Fixed some rounding issues with float/int
40601 2004-08-06 17:17 pbartok
40603 * X11Structs.cs, XplatUIX11.cs:
40604 - Fixed Refresh and Invalidate
40606 2004-08-06 15:30 pbartok
40608 * Control.cs, X11Structs.cs, XplatUIX11.cs:
40609 - Fixed recursive loop when resizing
40610 - Improved/fixed redrawing on expose messages
40612 2004-08-06 09:53 jordi
40614 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
40615 keyboard navigation
40617 2004-08-06 08:02 pbartok
40619 * X11Structs.cs, XplatUIX11.cs:
40620 - Fixed reparenting
40621 - Fixed window border creation
40623 2004-08-05 15:38 pbartok
40626 - Attempted fix for reparenting problems
40628 2004-08-04 15:14 pbartok
40631 - Fixed Invalidation bug (calculated wrong client area)
40632 - Added ClientSize setter
40634 2004-08-04 15:13 pbartok
40637 - Added AutoScale properties
40639 2004-08-04 15:13 pbartok
40642 - Added latest files
40644 2004-08-04 14:11 pbartok
40646 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40648 - Added Invalidate handling
40650 2004-08-03 17:09 jordi
40652 * XplatUIDriver.cs: fixes spelling mistake
40654 2004-07-27 09:53 jordi
40656 * TrackBar.cs: fixes trackbar events, def classname, methods
40659 2004-07-27 09:29 jordi
40661 * ScrollBar.cs: fixes scrollbar events
40663 2004-07-27 04:38 jordi
40665 * Control.cs: changes to be able to run winforms samples
40667 2004-07-26 11:42 jordi
40669 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
40670 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
40672 2004-07-26 05:41 jordi
40674 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
40675 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
40678 2004-07-22 09:22 jordi
40680 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
40681 check link overlapping, implement events, and fixes
40683 2004-07-21 10:28 jordi
40685 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
40687 2004-07-21 10:19 jordi
40689 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
40690 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
40691 LinkLabelLinkClickedEventArgs.cs,
40692 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
40693 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
40696 2004-07-19 13:09 jordi
40698 * Control.cs, Label.cs: label control re-written: added missing
40699 functionlity, events, and properties
40701 2004-07-19 10:49 jordi
40703 * Control.cs: fixes SetBounds logic
40705 2004-07-19 01:29 jordi
40707 * Control.cs: Call RefreshWindow only if the window has created
40709 2004-07-15 14:05 pbartok
40711 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
40712 - Implemented ImageList and ImageList.ImageCollection classes
40713 - Added ColorDepth enumeration
40714 - Updated SWF VS.Net project
40716 2004-07-15 11:06 jordi
40718 * XplatUIStructs.cs: added MsgButons enum
40720 2004-07-15 11:03 jordi
40722 * Control.cs: added basic mouse handeling events
40724 2004-07-15 03:38 jordi
40726 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
40727 Vertical TrackBar control implementation
40729 2004-07-13 09:33 jordi
40731 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
40733 2004-07-13 09:31 jordi
40735 * Control.cs, Form.cs: commit: new properties and fixes form size
40738 2004-07-09 14:13 miguel
40740 * ProgressBar.cs: Spelling
40742 2004-07-09 11:25 pbartok
40745 - Removed usage of Rectangle for drawing. Miguel pointed out it's
40748 2004-07-09 11:17 miguel
40750 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
40752 * ProgressBar.cs: Fixed spelling for `block'
40754 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
40757 Avoid using the += on rect.X, that exposed a bug in the compiler.
40759 2004-07-08 23:21 pbartok
40761 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40762 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40763 BaseCollection.cs, Binding.cs, BindingContext.cs,
40764 BindingMemberInfo.cs, BindingsCollection.cs,
40765 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40766 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40767 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40768 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40769 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40770 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40771 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40772 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40773 FrameStyle.cs, GiveFeedbackEventArgs.cs,
40774 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40775 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40776 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40777 InputLanguageChangedEventArgs.cs,
40778 InputLanguageChangedEventHandler.cs,
40779 InputLanguageChangingEventArgs.cs,
40780 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40781 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40782 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40783 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40784 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40785 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40786 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40787 QueryAccessibilityHelpEventArgs.cs,
40788 QueryAccessibilityHelpEventHandler.cs,
40789 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40790 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40791 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40792 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40793 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40794 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40795 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40796 XplatUIX11.cs, lang.cs: